forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
....@@ -74,8 +74,6 @@
7474
7575 bridge {
7676 compatible = "dumb-vga-dac";
77
- #address-cells = <1>;
78
- #size-cells = <0>;
7977
8078 ports {
8179 #address-cells = <1>;
....@@ -123,8 +121,6 @@
123121 };
124122
125123 &i2c0 {
126
- pinctrl-names = "default";
127
- pinctrl-0 = <&i2c0_pins_a>;
128124 status = "okay";
129125
130126 axp209: pmic@34 {
....@@ -138,14 +134,10 @@
138134 };
139135
140136 &i2c1 {
141
- pinctrl-names = "default";
142
- pinctrl-0 = <&i2c1_pins_a>;
143137 status = "okay";
144138 };
145139
146140 &i2c2 {
147
- pinctrl-names = "default";
148
- pinctrl-0 = <&i2c2_pins_a>;
149141 status = "okay";
150142 };
151143
....@@ -153,35 +145,35 @@
153145 vref-supply = <&reg_vcc3v0>;
154146 status = "okay";
155147
156
- button@191 {
148
+ button-191 {
157149 label = "Volume Up";
158150 linux,code = <KEY_VOLUMEUP>;
159151 channel = <0>;
160152 voltage = <191274>;
161153 };
162154
163
- button@392 {
155
+ button-392 {
164156 label = "Volume Down";
165157 linux,code = <KEY_VOLUMEDOWN>;
166158 channel = <0>;
167159 voltage = <392644>;
168160 };
169161
170
- button@601 {
162
+ button-601 {
171163 label = "Menu";
172164 linux,code = <KEY_MENU>;
173165 channel = <0>;
174166 voltage = <601151>;
175167 };
176168
177
- button@795 {
169
+ button-795 {
178170 label = "Enter";
179171 linux,code = <KEY_ENTER>;
180172 channel = <0>;
181173 voltage = <795090>;
182174 };
183175
184
- button@987 {
176
+ button-987 {
185177 label = "Home";
186178 linux,code = <KEY_HOMEPAGE>;
187179 channel = <0>;
....@@ -190,8 +182,6 @@
190182 };
191183
192184 &mmc0 {
193
- pinctrl-names = "default";
194
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>;
195185 vmmc-supply = <&reg_vcc3v3>;
196186 bus-width = <4>;
197187 cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
....@@ -207,33 +197,10 @@
207197 };
208198
209199 &pio {
210
- mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 {
211
- pins = "PG0";
212
- function = "gpio_in";
213
- bias-pull-up;
214
- };
215
-
216
- led_pins_olinuxino: led_pins@0 {
200
+ led_pins_olinuxino: led-pin {
217201 pins = "PG9";
218202 function = "gpio_out";
219203 drive-strength = <20>;
220
- };
221
-
222
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
223
- pins = "PG2";
224
- function = "gpio_in";
225
- bias-pull-up;
226
- };
227
-
228
- usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
229
- pins = "PG1";
230
- function = "gpio_in";
231
- bias-pull-down;
232
- };
233
-
234
- usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 {
235
- pins = "PG11";
236
- function = "gpio_out";
237204 };
238205 };
239206
....@@ -243,7 +210,6 @@
243210 };
244211
245212 &reg_usb1_vbus {
246
- pinctrl-0 = <&usb1_vbus_pin_olinuxino>;
247213 gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
248214 status = "okay";
249215 };
....@@ -263,7 +229,7 @@
263229
264230 &uart1 {
265231 pinctrl-names = "default";
266
- pinctrl-0 = <&uart1_pins_b>;
232
+ pinctrl-0 = <&uart1_pg_pins>;
267233 status = "okay";
268234 };
269235
....@@ -273,10 +239,8 @@
273239 };
274240
275241 &usbphy {
276
- pinctrl-names = "default";
277
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
278
- usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
279
- usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
242
+ usb0_id_det-gpios = <&pio 6 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PG2 */
243
+ usb0_vbus_det-gpios = <&pio 6 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PG1 */
280244 usb0_vbus-supply = <&reg_usb0_vbus>;
281245 usb1_vbus-supply = <&reg_usb1_vbus>;
282246 status = "okay";