hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/rk3288-veyron-chromebook.dtsi
....@@ -10,56 +10,13 @@
1010 #include <dt-bindings/input/input.h>
1111 #include "rk3288-veyron.dtsi"
1212 #include "rk3288-veyron-analog-audio.dtsi"
13
+#include "rk3288-veyron-edp.dtsi"
1314 #include "rk3288-veyron-sdmmc.dtsi"
1415
1516 / {
1617 aliases {
1718 /* Assign 20 so we don't get confused w/ builtin ones */
1819 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>;
6320 };
6421
6522 gpio-charger {
....@@ -70,18 +27,18 @@
7027 pinctrl-0 = <&ac_present_ap>;
7128 };
7229
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>;
7834
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>;
8542 };
8643 };
8744
....@@ -126,41 +83,6 @@
12683 };
12784 };
12885
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
-
16486 &rk808 {
16587 vcc11-supply = <&vcc_5v>;
16688
....@@ -172,8 +94,7 @@
17294 regulator-min-microvolt = <3300000>;
17395 regulator-max-microvolt = <3300000>;
17496 regulator-state-mem {
175
- regulator-on-in-suspend;
176
- regulator-suspend-microvolt = <3300000>;
97
+ regulator-off-in-suspend;
17798 };
17899 };
179100 };
....@@ -214,36 +135,7 @@
214135 };
215136 };
216137
217
-&vopl {
218
- status = "okay";
219
-};
220
-
221
-&vopl_mmu {
222
- status = "okay";
223
-};
224
-
225138 &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
-
247139 buttons {
248140 ap_lid_int_l: ap-lid-int-l {
249141 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;