forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/sun6i-a31s-sina31s.dts
....@@ -66,8 +66,6 @@
6666
6767 leds {
6868 compatible = "gpio-leds";
69
- pinctrl-names = "default";
70
- pinctrl-0 = <&led_pin_sina31s>;
7169
7270 status {
7371 label = "sina31s:status:usr";
....@@ -116,15 +114,11 @@
116114
117115 &gmac {
118116 pinctrl-names = "default";
119
- pinctrl-0 = <&gmac_pins_mii_a>;
120
- phy = <&phy1>;
117
+ pinctrl-0 = <&gmac_mii_pins>;
118
+ phy-handle = <&phy1>;
121119 phy-mode = "mii";
122120 phy-supply = <&reg_dldo1>;
123121 status = "okay";
124
-
125
- phy1: ethernet-phy@1 {
126
- reg = <1>;
127
- };
128122 };
129123
130124 &hdmi {
....@@ -139,7 +133,7 @@
139133
140134 &ir {
141135 pinctrl-names = "default";
142
- pinctrl-0 = <&ir_pins_a>;
136
+ pinctrl-0 = <&s_ir_rx_pin>;
143137 status = "okay";
144138 };
145139
....@@ -147,14 +141,14 @@
147141 vref-supply = <&reg_aldo3>;
148142 status = "okay";
149143
150
- button@158 {
144
+ button-158 {
151145 label = "Volume Up";
152146 linux,code = <KEY_VOLUMEUP>;
153147 channel = <0>;
154148 voltage = <158730>;
155149 };
156150
157
- button@349 {
151
+ button-349 {
158152 label = "Volume Down";
159153 linux,code = <KEY_VOLUMEDOWN>;
160154 channel = <0>;
....@@ -162,9 +156,13 @@
162156 };
163157 };
164158
159
+&mdio {
160
+ phy1: ethernet-phy@1 {
161
+ reg = <1>;
162
+ };
163
+};
164
+
165165 &mmc0 {
166
- pinctrl-names = "default";
167
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina31s>;
168166 vmmc-supply = <&reg_dcdc1>;
169167 bus-width = <4>;
170168 cd-gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
....@@ -175,19 +173,6 @@
175173 status = "okay";
176174 };
177175
178
-&pio {
179
- led_pin_sina31s: led_pin@0 {
180
- pins = "PH13";
181
- function = "gpio_out";
182
- };
183
-
184
- mmc0_cd_pin_sina31s: mmc0_cd_pin@0 {
185
- pins = "PA4";
186
- function = "gpio_in";
187
- bias-pull-up;
188
- };
189
-};
190
-
191176 &reg_dldo1 {
192177 regulator-min-microvolt = <3300000>;
193178 regulator-max-microvolt = <3300000>;
....@@ -196,7 +181,7 @@
196181
197182 &spdif {
198183 pinctrl-names = "default";
199
- pinctrl-0 = <&spdif_pins_a>;
184
+ pinctrl-0 = <&spdif_tx_pin>;
200185 status = "okay";
201186 };
202187