hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/arm64/boot/dts/sprd/whale2.dtsi
....@@ -75,7 +75,9 @@
7575 "sprd,sc9836-uart";
7676 reg = <0x0 0x100>;
7777 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
78
- clocks = <&ext_26m>;
78
+ clock-names = "enable", "uart", "source";
79
+ clocks = <&apapb_gate CLK_UART0_EB>,
80
+ <&ap_clk CLK_UART0>, <&ext_26m>;
7981 status = "disabled";
8082 };
8183
....@@ -84,7 +86,9 @@
8486 "sprd,sc9836-uart";
8587 reg = <0x100000 0x100>;
8688 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
87
- clocks = <&ext_26m>;
89
+ clock-names = "enable", "uart", "source";
90
+ clocks = <&apapb_gate CLK_UART1_EB>,
91
+ <&ap_clk CLK_UART1>, <&ext_26m>;
8892 status = "disabled";
8993 };
9094
....@@ -93,7 +97,9 @@
9397 "sprd,sc9836-uart";
9498 reg = <0x200000 0x100>;
9599 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
96
- clocks = <&ext_26m>;
100
+ clock-names = "enable", "uart", "source";
101
+ clocks = <&apapb_gate CLK_UART2_EB>,
102
+ <&ap_clk CLK_UART2>, <&ext_26m>;
97103 status = "disabled";
98104 };
99105
....@@ -102,7 +108,9 @@
102108 "sprd,sc9836-uart";
103109 reg = <0x300000 0x100>;
104110 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
105
- clocks = <&ext_26m>;
111
+ clock-names = "enable", "uart", "source";
112
+ clocks = <&apapb_gate CLK_UART3_EB>,
113
+ <&ap_clk CLK_UART3>, <&ext_26m>;
106114 status = "disabled";
107115 };
108116 };
....@@ -121,6 +129,34 @@
121129 #dma-channels = <32>;
122130 clock-names = "enable";
123131 clocks = <&apahb_gate CLK_DMA_EB>;
132
+ };
133
+
134
+ sdio3: sdio@50430000 {
135
+ compatible = "sprd,sdhci-r11";
136
+ reg = <0 0x50430000 0 0x1000>;
137
+ interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
138
+
139
+ clock-names = "sdio", "enable", "2x_enable";
140
+ clocks = <&aon_prediv CLK_EMMC_2X>,
141
+ <&apahb_gate CLK_EMMC_EB>,
142
+ <&aon_gate CLK_EMMC_2X_EN>;
143
+ assigned-clocks = <&aon_prediv CLK_EMMC_2X>;
144
+ assigned-clock-parents = <&clk_l0_409m6>;
145
+
146
+ sprd,phy-delay-mmc-hs400 = <0x44 0x7f 0x2e 0x2e>;
147
+ sprd,phy-delay-mmc-hs200 = <0x0 0x8c 0x8c 0x8c>;
148
+ sprd,phy-delay-mmc-ddr52 = <0x3f 0x75 0x14 0x14>;
149
+ sprd,phy-delay-mmc-hs400es = <0x3f 0x3f 0x2e 0x2e>;
150
+ vmmc-supply = <&vddemmccore>;
151
+ bus-width = <8>;
152
+ non-removable;
153
+ no-sdio;
154
+ no-sd;
155
+ cap-mmc-hw-reset;
156
+ mmc-hs400-enhanced-strobe;
157
+ mmc-hs400-1_8v;
158
+ mmc-hs200-1_8v;
159
+ mmc-ddr-1_8v;
124160 };
125161 };
126162
....@@ -264,4 +300,11 @@
264300 clock-frequency = <100000000>;
265301 clock-output-names = "ext-rco-100m";
266302 };
303
+
304
+ clk_l0_409m6: clk_l0_409m6 {
305
+ compatible = "fixed-clock";
306
+ #clock-cells = <0>;
307
+ clock-frequency = <409600000>;
308
+ clock-output-names = "ext-409m6";
309
+ };
267310 };