hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
....@@ -27,7 +27,7 @@
2727 };
2828
2929 es8316_sound: es8316-sound {
30
- status = "okay";
30
+ status = "disabled";
3131 compatible = "rockchip,multicodecs-card";
3232 rockchip,card-name = "rockchip-es8316";
3333 rockchip,format = "i2s";
....@@ -235,7 +235,7 @@
235235 BT,reset_gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //BT_DISABLE_GPIO0_B2_u_1V8
236236 //BT,wake_gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;//HOST_WAKE_BT_H
237237 //BT,wake_host_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;//BT_WAKE_HOST_H
238
- status = "okay";
238
+ status = "disabled";
239239 };
240240
241241 wireless_wlan: wireless-wlan {
....@@ -245,7 +245,7 @@
245245 // pinctrl-0 = <&wifi_host_wake_irq>;
246246 // WIFI,host_wake_irq = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>; //GPIO2_B5_u_1V8_WF-BT_WAKEUP_IN
247247 // WIFI,poweren_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
248
- status = "okay";
248
+ status = "disabled";
249249 };
250250
251251 ndj_io_init {
....@@ -253,45 +253,13 @@
253253 pinctrl-names = "default";
254254 pinctrl-0 = <&ndj_io_gpio>;
255255
256
- vcc_12v {
257
- gpio_num = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
258
- gpio_function = <0>;
259
- };//VCC12_IO_EN_GPIO0_D3_u_3V3
260
-
261
- vcc_3v {
262
- gpio_num = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>;
263
- gpio_function = <0>;
264
- };//VCC3_IO_EN_GPIO4_A1_d_3V3
256
+
265257
266258 hub_5V_reset {
267259 gpio_num = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
268260 gpio_function = <3>;
269261 };//HUB_RESET_GPIO4_B6_d_3V3
270262
271
- 4g_power {
272
- gpio_num = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
273
- gpio_function = <0>;
274
- };//4G_PWREN_GPIO3_C7_u_3V3
275
-
276
- 5g_power {
277
- gpio_num =<&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
278
- gpio_function = <0>;
279
- };
280
-
281
- wake_wifi_bt {
282
- gpio_num = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
283
- gpio_function = <0>;
284
- };//GPIO2_B5_u_1V8_WF-BT_WAKEUP_IN
285
-
286
- air_mode_4g {
287
- gpio_num = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
288
- gpio_function = <0>;
289
- }; //GPIO2_B4_u_1V8_4G_AIR_MODE_IN
290
-
291
- reset_4g {
292
- gpio_num = <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>;
293
- gpio_function = <3>;
294
- }; //GPIO2_C3_d_1V8_4G_RESET_N_IN
295263
296264
297265 };
....@@ -439,7 +407,7 @@
439407 };
440408
441409 &dsi0_in_vp3 {
442
- status = "okay";
410
+ status = "disabled";
443411 };
444412
445413 /*
....@@ -472,6 +440,31 @@
472440 //pinctrl-0 = <&lcd_rst_gpio>;
473441 };
474442
443
+&gmac0 {
444
+ /* Use rgmii-rxid mode to disable rx delay inside Soc */
445
+ phy-mode = "rgmii-rxid";
446
+ clock_in_out = "output";
447
+
448
+ snps,reset-gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
449
+ snps,reset-active-low;
450
+ /* Reset time is 20ms, 100ms for rtl8211f */
451
+ snps,reset-delays-us = <0 20000 100000>;
452
+
453
+ pinctrl-names = "default";
454
+ pinctrl-0 = <&gmac0_miim
455
+ &gmac0_tx_bus2
456
+ &gmac0_rx_bus2
457
+ &gmac0_rgmii_clk
458
+ &gmac0_rgmii_bus
459
+ &eth0_pins
460
+ &gmac0_clkinout>;
461
+ tx_delay = <0x44>;
462
+ /* rx_delay = <0x4f>; */
463
+
464
+ phy-handle = <&rgmii_phy0>;
465
+ status = "okay";
466
+};
467
+
475468 &gmac1 {
476469 /* Use rgmii-rxid mode to disable rx delay inside Soc */
477470 phy-mode = "rgmii-rxid";
....@@ -492,7 +485,7 @@
492485 tx_delay = <0x43>;
493486 /* rx_delay = <0x3f>; */
494487
495
- phy-handle = <&rgmii_phy>;
488
+ phy-handle = <&rgmii_phy1>;
496489 status = "okay";
497490 };
498491
....@@ -524,7 +517,7 @@
524517
525518 /* Should work with at least 128MB cma reserved above. */
526519 &hdmirx_ctrler {
527
- status = "okay";
520
+ status = "disabled";
528521
529522 #sound-dai-cells = <1>;
530523 /* Effective level used to trigger HPD: 0-low, 1-high */
....@@ -824,12 +817,18 @@
824817 };
825818
826819 &mdio1 {
827
- rgmii_phy: phy@1 {
820
+ rgmii_phy1: phy@1 {
828821 compatible = "ethernet-phy-ieee802.3-c22";
829822 reg = <0x1>;
830823 };
831824 };
832825
826
+&mdio0 {
827
+ rgmii_phy0: phy@1 {
828
+ compatible = "ethernet-phy-ieee802.3-c22";
829
+ reg = <0x1>;
830
+ };
831
+};
833832
834833
835834 &mipi_dcphy1 {
....@@ -838,7 +837,7 @@
838837
839838 &pcie2x1l2 {
840839 phys = <&combphy0_ps PHY_TYPE_PCIE>;
841
- reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;//PCIE20x1_2_RSTn_GPIO3_D0_3V3
840
+ reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;//PCIE20x1_2_RSTn_GPIO3_D0_3V3
842841 vpcie3v3-supply = <&vcc3v3_pcie30>;
843842 status = "okay";
844843 };//MINIPCIE
....@@ -847,7 +846,7 @@
847846 phys = <&combphy2_psu PHY_TYPE_PCIE>;
848847 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;//PCIEX1_1_PERSTn_M1_L
849848 vpcie3v3-supply = <&vcc3v3_pcie30>;
850
- status = "disabled";
849
+ status = "okay";
851850 };//M.2 WIFI6
852851
853852 &pcie2x1l0 {
....@@ -976,20 +975,7 @@
976975 ndj_io_init{
977976 ndj_io_gpio: ndj_io_gpio_col{
978977 rockchip,pins =
979
- <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
980
- <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>,
981
- <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,
982
- <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
983
- <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
984
- <2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,
985
- <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //vcc_5v
986
- <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_MISO_M2_1V8 41
987
- <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_MISO_M2_1V8 32
988
- <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_MOSI_M2_3V3 42
989
- <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_MOSI_M2_1V8 33
990
- <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_CLK_M2_1V8 43
991
- <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_CLK_M2_1V8 34
992
- <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_CS0_M2_1V8 44
978
+
993979 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; //SPI4_CS0_M2_1V8 35
994980 };
995981 };
....@@ -1049,7 +1035,7 @@
10491035 pinctrl-names = "default";
10501036 pinctrl-0 = <&sdiom0_pins>;
10511037 sd-uhs-sdr104;
1052
- status = "okay";
1038
+ status = "disabled";
10531039 };
10541040
10551041 &sdmmc {
....@@ -1109,7 +1095,7 @@
11091095 #endif
11101096
11111097 &uart1 {
1112
- status = "okay";
1098
+ status = "disabled";
11131099 // dma-names = "tx", "rx"; //ʹÓÃdma´«Êäģʽ
11141100 pinctrl-names = "default";
11151101 pinctrl-0 = <&uart1m0_xfer>;
....@@ -1123,7 +1109,7 @@
11231109
11241110
11251111 &uart4 {
1126
- status = "okay";
1112
+ status = "disabled";
11271113 pinctrl-names = "default";
11281114 pinctrl-0 = <&uart4m0_xfer>;
11291115 };
....@@ -1141,7 +1127,7 @@
11411127 };
11421128
11431129 &uart7 {
1144
- status = "okay";
1130
+ status = "disabled";
11451131 pinctrl-names = "default";
11461132 pinctrl-0 = <&uart7m1_xfer>;
11471133 };
....@@ -1154,7 +1140,7 @@
11541140
11551141
11561142 &uart9 {
1157
- status = "okay";
1143
+ status = "disabled";
11581144 pinctrl-names = "default";
11591145 pinctrl-0 = <&uart9m0_xfer &uart9m0_ctsn>;
11601146 };