forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/imx6q-bx50v3.dtsi
....@@ -102,9 +102,14 @@
102102 #address-cells = <1>;
103103 #size-cells = <0>;
104104
105
- switch@0 {
105
+ switch: switch@0 {
106106 compatible = "marvell,mv88e6085"; /* 88e6240*/
107107 reg = <0>;
108
+
109
+ interrupt-parent = <&gpio2>;
110
+ interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
111
+ interrupt-controller;
112
+ #interrupt-cells = <2>;
108113
109114 switch_ports: ports {
110115 #address-cells = <1>;
....@@ -117,22 +122,32 @@
117122
118123 switchphy0: switchphy@0 {
119124 reg = <0>;
125
+ interrupt-parent = <&switch>;
126
+ interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
120127 };
121128
122129 switchphy1: switchphy@1 {
123130 reg = <1>;
131
+ interrupt-parent = <&switch>;
132
+ interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
124133 };
125134
126135 switchphy2: switchphy@2 {
127136 reg = <2>;
137
+ interrupt-parent = <&switch>;
138
+ interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
128139 };
129140
130141 switchphy3: switchphy@3 {
131142 reg = <3>;
143
+ interrupt-parent = <&switch>;
144
+ interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
132145 };
133146
134147 switchphy4: switchphy@4 {
135148 reg = <4>;
149
+ interrupt-parent = <&switch>;
150
+ interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
136151 };
137152 };
138153 };
....@@ -140,12 +155,12 @@
140155 };
141156
142157 &ecspi5 {
143
- cs-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
158
+ cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
144159 pinctrl-names = "default";
145160 pinctrl-0 = <&pinctrl_ecspi5>;
146161 status = "okay";
147162
148
- m25_eeprom: m25p80@0 {
163
+ m25_eeprom: flash@0 {
149164 compatible = "atmel,at25";
150165 spi-max-frequency = <10000000>;
151166 size = <0x8000>;
....@@ -233,56 +248,42 @@
233248 interrupt-parent = <&gpio2>;
234249 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
235250
236
- P10 {
237
- gpio-hog;
238
- gpios = <8 0>;
239
- output-low;
240
- line-name = "PCA9539-P10";
241
- };
242
-
243
- P11 {
244
- gpio-hog;
245
- gpios = <9 0>;
246
- output-low;
247
- line-name = "PCA9539-P11";
248
- };
249
-
250
- P12 {
251
+ P12-hog {
251252 gpio-hog;
252253 gpios = <10 0>;
253254 output-low;
254255 line-name = "PCA9539-P12";
255256 };
256257
257
- P13 {
258
+ P13-hog {
258259 gpio-hog;
259260 gpios = <11 0>;
260261 output-low;
261262 line-name = "PCA9539-P13";
262263 };
263264
264
- P14 {
265
+ P14-hog {
265266 gpio-hog;
266267 gpios = <12 0>;
267268 output-low;
268269 line-name = "PCA9539-P14";
269270 };
270271
271
- P15 {
272
+ P15-hog {
272273 gpio-hog;
273274 gpios = <13 0>;
274275 output-low;
275276 line-name = "PCA9539-P15";
276277 };
277278
278
- P16 {
279
+ P16-hog {
279280 gpio-hog;
280281 gpios = <14 0>;
281282 output-low;
282283 line-name = "PCA9539-P16";
283284 };
284285
285
- P17 {
286
+ P17-hog {
286287 gpio-hog;
287288 gpios = <15 0>;
288289 output-low;