hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
....@@ -69,8 +69,6 @@
6969 };
7070
7171 &i2c0 {
72
- pinctrl-names = "default";
73
- pinctrl-0 = <&i2c0_pins_a>;
7472 status = "okay";
7573
7674 axp209: pmic@34 {
....@@ -80,8 +78,6 @@
8078 };
8179
8280 &i2c1 {
83
- pinctrl-names = "default";
84
- pinctrl-0 = <&i2c1_pins_a>;
8581 status = "okay";
8682
8783 pcf8563: rtc@51 {
....@@ -91,8 +87,6 @@
9187 };
9288
9389 &i2c2 {
94
- pinctrl-names = "default";
95
- pinctrl-0 = <&i2c2_pins_a>;
9690 status = "okay";
9791 };
9892
....@@ -100,14 +94,14 @@
10094 vref-supply = <&reg_ldo2>;
10195 status = "okay";
10296
103
- button@200 {
97
+ button-200 {
10498 label = "Volume Up";
10599 linux,code = <KEY_VOLUMEUP>;
106100 channel = <0>;
107101 voltage = <200000>;
108102 };
109103
110
- button@400 {
104
+ button-400 {
111105 label = "Volume Down";
112106 linux,code = <KEY_VOLUMEDOWN>;
113107 channel = <0>;
....@@ -116,8 +110,6 @@
116110 };
117111
118112 &mmc0 {
119
- pinctrl-names = "default";
120
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>;
121113 vmmc-supply = <&reg_vcc3v3>;
122114 bus-width = <4>;
123115 cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
....@@ -130,25 +122,6 @@
130122
131123 &otg_sram {
132124 status = "okay";
133
-};
134
-
135
-&pio {
136
- mmc0_cd_pin_h702: mmc0_cd_pin@0 {
137
- pins = "PG0";
138
- function = "gpio_in";
139
- bias-pull-up;
140
- };
141
-
142
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
143
- pins = "PG2";
144
- function = "gpio_in";
145
- bias-pull-up;
146
- };
147
-
148
- usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
149
- pins = "PG1";
150
- function = "gpio_in";
151
- };
152125 };
153126
154127 #include "axp209.dtsi"
....@@ -191,7 +164,7 @@
191164
192165 &uart1 {
193166 pinctrl-names = "default";
194
- pinctrl-0 = <&uart1_pins_b>;
167
+ pinctrl-0 = <&uart1_pg_pins>;
195168 status = "okay";
196169 };
197170
....@@ -201,9 +174,7 @@
201174 };
202175
203176 &usbphy {
204
- pinctrl-names = "default";
205
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
206
- usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
177
+ usb0_id_det-gpios = <&pio 6 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PG2 */
207178 usb0_vbus_det-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
208179 usb0_vbus-supply = <&reg_usb0_vbus>;
209180 usb1_vbus-supply = <&reg_ldo3>;