.. | .. |
---|
10 | 10 | #include <dt-bindings/input/input.h> |
---|
11 | 11 | #include "rk3288-veyron.dtsi" |
---|
12 | 12 | #include "rk3288-veyron-analog-audio.dtsi" |
---|
| 13 | +#include "rk3288-veyron-edp.dtsi" |
---|
13 | 14 | #include "rk3288-veyron-sdmmc.dtsi" |
---|
14 | 15 | |
---|
15 | 16 | / { |
---|
16 | 17 | aliases { |
---|
17 | 18 | /* Assign 20 so we don't get confused w/ builtin ones */ |
---|
18 | 19 | i2c20 = &i2c_tunnel; |
---|
19 | | - }; |
---|
20 | | - |
---|
21 | | - backlight: backlight { |
---|
22 | | - compatible = "pwm-backlight"; |
---|
23 | | - brightness-levels = < |
---|
24 | | - 0 1 2 3 4 5 6 7 |
---|
25 | | - 8 9 10 11 12 13 14 15 |
---|
26 | | - 16 17 18 19 20 21 22 23 |
---|
27 | | - 24 25 26 27 28 29 30 31 |
---|
28 | | - 32 33 34 35 36 37 38 39 |
---|
29 | | - 40 41 42 43 44 45 46 47 |
---|
30 | | - 48 49 50 51 52 53 54 55 |
---|
31 | | - 56 57 58 59 60 61 62 63 |
---|
32 | | - 64 65 66 67 68 69 70 71 |
---|
33 | | - 72 73 74 75 76 77 78 79 |
---|
34 | | - 80 81 82 83 84 85 86 87 |
---|
35 | | - 88 89 90 91 92 93 94 95 |
---|
36 | | - 96 97 98 99 100 101 102 103 |
---|
37 | | - 104 105 106 107 108 109 110 111 |
---|
38 | | - 112 113 114 115 116 117 118 119 |
---|
39 | | - 120 121 122 123 124 125 126 127 |
---|
40 | | - 128 129 130 131 132 133 134 135 |
---|
41 | | - 136 137 138 139 140 141 142 143 |
---|
42 | | - 144 145 146 147 148 149 150 151 |
---|
43 | | - 152 153 154 155 156 157 158 159 |
---|
44 | | - 160 161 162 163 164 165 166 167 |
---|
45 | | - 168 169 170 171 172 173 174 175 |
---|
46 | | - 176 177 178 179 180 181 182 183 |
---|
47 | | - 184 185 186 187 188 189 190 191 |
---|
48 | | - 192 193 194 195 196 197 198 199 |
---|
49 | | - 200 201 202 203 204 205 206 207 |
---|
50 | | - 208 209 210 211 212 213 214 215 |
---|
51 | | - 216 217 218 219 220 221 222 223 |
---|
52 | | - 224 225 226 227 228 229 230 231 |
---|
53 | | - 232 233 234 235 236 237 238 239 |
---|
54 | | - 240 241 242 243 244 245 246 247 |
---|
55 | | - 248 249 250 251 252 253 254 255>; |
---|
56 | | - default-brightness-level = <128>; |
---|
57 | | - enable-gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>; |
---|
58 | | - pinctrl-names = "default"; |
---|
59 | | - pinctrl-0 = <&bl_en>; |
---|
60 | | - pwms = <&pwm0 0 1000000 0>; |
---|
61 | | - post-pwm-on-delay-ms = <10>; |
---|
62 | | - pwm-off-delay-ms = <10>; |
---|
63 | 20 | }; |
---|
64 | 21 | |
---|
65 | 22 | gpio-charger { |
---|
.. | .. |
---|
70 | 27 | pinctrl-0 = <&ac_present_ap>; |
---|
71 | 28 | }; |
---|
72 | 29 | |
---|
73 | | - panel: panel { |
---|
74 | | - compatible ="innolux,n116bge", "simple-panel"; |
---|
75 | | - status = "okay"; |
---|
76 | | - power-supply = <&vcc33_lcd>; |
---|
77 | | - backlight = <&backlight>; |
---|
| 30 | + lid_switch: lid-switch { |
---|
| 31 | + compatible = "gpio-keys"; |
---|
| 32 | + pinctrl-names = "default"; |
---|
| 33 | + pinctrl-0 = <&ap_lid_int_l>; |
---|
78 | 34 | |
---|
79 | | - ports { |
---|
80 | | - panel_in: port { |
---|
81 | | - panel_in_edp: endpoint { |
---|
82 | | - remote-endpoint = <&edp_out_panel>; |
---|
83 | | - }; |
---|
84 | | - }; |
---|
| 35 | + lid { |
---|
| 36 | + label = "Lid"; |
---|
| 37 | + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; |
---|
| 38 | + wakeup-source; |
---|
| 39 | + linux,code = <SW_LID>; |
---|
| 40 | + linux,input-type = <EV_SW>; |
---|
| 41 | + debounce-interval = <1>; |
---|
85 | 42 | }; |
---|
86 | 43 | }; |
---|
87 | 44 | |
---|
.. | .. |
---|
126 | 83 | }; |
---|
127 | 84 | }; |
---|
128 | 85 | |
---|
129 | | -&edp { |
---|
130 | | - status = "okay"; |
---|
131 | | - |
---|
132 | | - pinctrl-names = "default"; |
---|
133 | | - pinctrl-0 = <&edp_hpd>; |
---|
134 | | - |
---|
135 | | - ports { |
---|
136 | | - edp_out: port@1 { |
---|
137 | | - reg = <1>; |
---|
138 | | - #address-cells = <1>; |
---|
139 | | - #size-cells = <0>; |
---|
140 | | - edp_out_panel: endpoint@0 { |
---|
141 | | - reg = <0>; |
---|
142 | | - remote-endpoint = <&panel_in_edp>; |
---|
143 | | - }; |
---|
144 | | - }; |
---|
145 | | - }; |
---|
146 | | -}; |
---|
147 | | - |
---|
148 | | -&gpio_keys { |
---|
149 | | - pinctrl-0 = <&pwr_key_l &ap_lid_int_l>; |
---|
150 | | - lid { |
---|
151 | | - label = "Lid"; |
---|
152 | | - gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; |
---|
153 | | - wakeup-source; |
---|
154 | | - linux,code = <0>; /* SW_LID */ |
---|
155 | | - linux,input-type = <5>; /* EV_SW */ |
---|
156 | | - debounce-interval = <1>; |
---|
157 | | - }; |
---|
158 | | -}; |
---|
159 | | - |
---|
160 | | -&pwm0 { |
---|
161 | | - status = "okay"; |
---|
162 | | -}; |
---|
163 | | - |
---|
164 | 86 | &rk808 { |
---|
165 | 87 | vcc11-supply = <&vcc_5v>; |
---|
166 | 88 | |
---|
.. | .. |
---|
172 | 94 | regulator-min-microvolt = <3300000>; |
---|
173 | 95 | regulator-max-microvolt = <3300000>; |
---|
174 | 96 | regulator-state-mem { |
---|
175 | | - regulator-on-in-suspend; |
---|
176 | | - regulator-suspend-microvolt = <3300000>; |
---|
| 97 | + regulator-off-in-suspend; |
---|
177 | 98 | }; |
---|
178 | 99 | }; |
---|
179 | 100 | }; |
---|
.. | .. |
---|
214 | 135 | }; |
---|
215 | 136 | }; |
---|
216 | 137 | |
---|
217 | | -&vopl { |
---|
218 | | - status = "okay"; |
---|
219 | | -}; |
---|
220 | | - |
---|
221 | | -&vopl_mmu { |
---|
222 | | - status = "okay"; |
---|
223 | | -}; |
---|
224 | | - |
---|
225 | 138 | &pinctrl { |
---|
226 | | - pinctrl-0 = < |
---|
227 | | - /* Common for sleep and wake, but no owners */ |
---|
228 | | - &global_pwroff |
---|
229 | | - |
---|
230 | | - /* Wake only */ |
---|
231 | | - &suspend_l_wake |
---|
232 | | - >; |
---|
233 | | - pinctrl-1 = < |
---|
234 | | - /* Common for sleep and wake, but no owners */ |
---|
235 | | - &global_pwroff |
---|
236 | | - |
---|
237 | | - /* Sleep only */ |
---|
238 | | - &suspend_l_sleep |
---|
239 | | - >; |
---|
240 | | - |
---|
241 | | - backlight { |
---|
242 | | - bl_en: bl-en { |
---|
243 | | - rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
244 | | - }; |
---|
245 | | - }; |
---|
246 | | - |
---|
247 | 139 | buttons { |
---|
248 | 140 | ap_lid_int_l: ap-lid-int-l { |
---|
249 | 141 | rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; |
---|