Lines Matching +full:spi0 +full:- +full:pins
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/clock/rk3368-cru.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/power/rk3368-power.h>
12 #include <dt-bindings/soc/rockchip,boot-mode.h>
13 #include <dt-bindings/thermal/thermal.h>
17 interrupt-parent = <&gic>;
18 #address-cells = <2>;
19 #size-cells = <2>;
34 spi0 = &spi0;
40 #address-cells = <0x2>;
41 #size-cells = <0x0>;
43 cpu-map {
77 compatible = "arm,cortex-a53";
79 enable-method = "psci";
80 #cooling-cells = <2>; /* min followed by max */
85 compatible = "arm,cortex-a53";
87 enable-method = "psci";
88 #cooling-cells = <2>; /* min followed by max */
93 compatible = "arm,cortex-a53";
95 enable-method = "psci";
96 #cooling-cells = <2>; /* min followed by max */
101 compatible = "arm,cortex-a53";
103 enable-method = "psci";
104 #cooling-cells = <2>; /* min followed by max */
109 compatible = "arm,cortex-a53";
111 enable-method = "psci";
112 #cooling-cells = <2>; /* min followed by max */
117 compatible = "arm,cortex-a53";
119 enable-method = "psci";
120 #cooling-cells = <2>; /* min followed by max */
125 compatible = "arm,cortex-a53";
127 enable-method = "psci";
128 #cooling-cells = <2>; /* min followed by max */
133 compatible = "arm,cortex-a53";
135 enable-method = "psci";
136 #cooling-cells = <2>; /* min followed by max */
140 arm-pmu {
141 compatible = "arm,armv8-pmuv3";
150 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
156 compatible = "arm,psci-0.2";
161 compatible = "arm,armv8-timer";
173 compatible = "fixed-clock";
174 clock-frequency = <24000000>;
175 clock-output-names = "xin24m";
176 #clock-cells = <0>;
180 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
182 max-frequency = <150000000>;
185 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
186 fifo-depth = <0x100>;
189 reset-names = "reset";
194 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
196 max-frequency = <150000000>;
199 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
200 fifo-depth = <0x100>;
203 reset-names = "reset";
208 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
210 max-frequency = <150000000>;
213 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
214 fifo-depth = <0x100>;
217 reset-names = "reset";
225 #io-channel-cells = <1>;
227 clock-names = "saradc", "apb_pclk";
229 reset-names = "saradc-apb";
233 spi0: spi@ff110000 { label
234 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
237 clock-names = "spiclk", "apb_pclk";
239 pinctrl-names = "default";
240 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
241 #address-cells = <1>;
242 #size-cells = <0>;
247 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
250 clock-names = "spiclk", "apb_pclk";
252 pinctrl-names = "default";
253 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
254 #address-cells = <1>;
255 #size-cells = <0>;
260 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
263 clock-names = "spiclk", "apb_pclk";
265 pinctrl-names = "default";
266 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
267 #address-cells = <1>;
268 #size-cells = <0>;
273 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
276 #address-cells = <1>;
277 #size-cells = <0>;
278 clock-names = "i2c";
280 pinctrl-names = "default";
281 pinctrl-0 = <&i2c2_xfer>;
286 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
289 #address-cells = <1>;
290 #size-cells = <0>;
291 clock-names = "i2c";
293 pinctrl-names = "default";
294 pinctrl-0 = <&i2c3_xfer>;
299 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
302 #address-cells = <1>;
303 #size-cells = <0>;
304 clock-names = "i2c";
306 pinctrl-names = "default";
307 pinctrl-0 = <&i2c4_xfer>;
312 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
315 #address-cells = <1>;
316 #size-cells = <0>;
317 clock-names = "i2c";
319 pinctrl-names = "default";
320 pinctrl-0 = <&i2c5_xfer>;
325 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
327 clock-frequency = <24000000>;
329 clock-names = "baudclk", "apb_pclk";
331 reg-shift = <2>;
332 reg-io-width = <4>;
337 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
339 clock-frequency = <24000000>;
341 clock-names = "baudclk", "apb_pclk";
343 reg-shift = <2>;
344 reg-io-width = <4>;
349 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
351 clock-frequency = <24000000>;
353 clock-names = "baudclk", "apb_pclk";
355 reg-shift = <2>;
356 reg-io-width = <4>;
361 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
363 clock-frequency = <24000000>;
365 clock-names = "baudclk", "apb_pclk";
367 reg-shift = <2>;
368 reg-io-width = <4>;
372 dmac_peri: dma-controller@ff250000 {
377 #dma-cells = <1>;
378 arm,pl330-broken-no-flushp;
379 arm,pl330-periph-burst;
381 clock-names = "apb_pclk";
384 thermal-zones {
385 cpu_thermal: cpu-thermal {
386 polling-delay-passive = <100>; /* milliseconds */
387 polling-delay = <5000>; /* milliseconds */
389 thermal-sensors = <&tsadc 0>;
409 cooling-maps {
412 cooling-device =
420 cooling-device =
429 gpu_thermal: gpu-thermal {
430 polling-delay-passive = <100>; /* milliseconds */
431 polling-delay = <5000>; /* milliseconds */
433 thermal-sensors = <&tsadc 1>;
448 cooling-maps {
451 cooling-device =
462 compatible = "rockchip,rk3368-tsadc";
466 clock-names = "tsadc", "apb_pclk";
468 reset-names = "tsadc-apb";
469 pinctrl-names = "init", "default", "sleep";
470 pinctrl-0 = <&otp_pin>;
471 pinctrl-1 = <&otp_out>;
472 pinctrl-2 = <&otp_pin>;
473 #thermal-sensor-cells = <1>;
474 rockchip,hw-tshut-temp = <95000>;
479 compatible = "rockchip,rk3368-gmac";
482 interrupt-names = "macirq";
488 clock-names = "stmmaceth",
496 compatible = "generic-ehci";
504 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
509 clock-names = "otg";
511 g-np-tx-fifo-size = <16>;
512 g-rx-fifo-size = <275>;
513 g-tx-fifo-size = <256 128 128 64 64 32>;
517 dmac_bus: dma-controller@ff600000 {
522 #dma-cells = <1>;
523 arm,pl330-broken-no-flushp;
524 arm,pl330-periph-burst;
526 clock-names = "apb_pclk";
530 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
533 clock-names = "i2c";
535 pinctrl-names = "default";
536 pinctrl-0 = <&i2c0_xfer>;
537 #address-cells = <1>;
538 #size-cells = <0>;
543 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
546 #address-cells = <1>;
547 #size-cells = <0>;
548 clock-names = "i2c";
550 pinctrl-names = "default";
551 pinctrl-0 = <&i2c1_xfer>;
556 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
558 #pwm-cells = <3>;
559 pinctrl-names = "default";
560 pinctrl-0 = <&pwm0_pin>;
566 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
568 #pwm-cells = <3>;
569 pinctrl-names = "default";
570 pinctrl-0 = <&pwm1_pin>;
576 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
578 #pwm-cells = <3>;
584 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
586 #pwm-cells = <3>;
587 pinctrl-names = "default";
588 pinctrl-0 = <&pwm3_pin>;
594 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
597 clock-names = "baudclk", "apb_pclk";
599 pinctrl-names = "default";
600 pinctrl-0 = <&uart2_xfer>;
601 reg-shift = <2>;
602 reg-io-width = <4>;
607 compatible = "rockchip,rk3368-mailbox";
614 clock-names = "pclk_mailbox";
615 #mbox-cells = <1>;
619 pmu: power-management@ff730000 {
620 compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd";
623 power: power-controller {
624 compatible = "rockchip,rk3368-power-controller";
625 #power-domain-cells = <1>;
626 #address-cells = <1>;
627 #size-cells = <0>;
652 power-domain@RK3368_PD_VIO {
693 #power-domain-cells = <0>;
701 power-domain@RK3368_PD_VIDEO {
710 #power-domain-cells = <0>;
717 power-domain@RK3368_PD_GPU_1 {
723 #power-domain-cells = <0>;
729 compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
732 pmu_io_domains: io-domains {
733 compatible = "rockchip,rk3368-pmu-io-voltage-domain";
737 reboot-mode {
738 compatible = "syscon-reboot-mode";
740 mode-normal = <BOOT_NORMAL>;
741 mode-recovery = <BOOT_RECOVERY>;
742 mode-bootloader = <BOOT_FASTBOOT>;
743 mode-loader = <BOOT_BL_DOWNLOAD>;
747 cru: clock-controller@ff760000 {
748 compatible = "rockchip,rk3368-cru";
751 clock-names = "xin24m";
753 #clock-cells = <1>;
754 #reset-cells = <1>;
758 compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd";
761 io_domains: io-domains {
762 compatible = "rockchip,rk3368-io-voltage-domain";
768 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
776 compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
780 clock-names = "pclk", "timer";
784 compatible = "rockchip,rk3368-spdif";
788 clock-names = "mclk", "hclk";
790 dma-names = "tx";
791 pinctrl-names = "default";
792 pinctrl-0 = <&spdif_tx>;
796 i2s_2ch: i2s-2ch@ff890000 {
797 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
800 clock-names = "i2s_clk", "i2s_hclk";
803 dma-names = "tx", "rx";
807 i2s_8ch: i2s-8ch@ff898000 {
808 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
811 clock-names = "i2s_clk", "i2s_hclk";
814 dma-names = "tx", "rx";
815 pinctrl-names = "default";
816 pinctrl-0 = <&i2s_8ch_bus>;
825 clock-names = "aclk", "iface";
826 power-domains = <&power RK3368_PD_VIO>;
827 #iommu-cells = <0>;
837 clock-names = "aclk", "iface";
838 #iommu-cells = <0>;
839 power-domains = <&power RK3368_PD_VIO>;
840 rockchip,disable-mmu-reset;
849 clock-names = "aclk", "iface";
850 power-domains = <&power RK3368_PD_VIO>;
851 #iommu-cells = <0>;
861 clock-names = "aclk", "iface";
862 #iommu-cells = <0>;
872 clock-names = "aclk", "iface";
873 #iommu-cells = <0>;
878 compatible = "rockchip,rk3368-qos", "syscon";
883 compatible = "rockchip,rk3368-qos", "syscon";
888 compatible = "rockchip,rk3368-qos", "syscon";
893 compatible = "rockchip,rk3368-qos", "syscon";
898 compatible = "rockchip,rk3368-qos", "syscon";
903 compatible = "rockchip,rk3368-qos", "syscon";
908 compatible = "rockchip,rk3368-qos", "syscon";
913 compatible = "rockchip,rk3368-qos", "syscon";
918 compatible = "rockchip,rk3368-qos", "syscon";
923 compatible = "rockchip,rk3368-qos", "syscon";
928 compatible = "rockchip,rk3368-qos", "syscon";
933 compatible = "rockchip,rk3368-qos", "syscon";
938 compatible = "rockchip,rk3368-qos", "syscon";
943 compatible = "rockchip,rk3368-efuse";
945 #address-cells = <1>;
946 #size-cells = <1>;
948 clock-names = "pclk_efuse";
950 cpu_leakage: cpu-leakage@17 {
953 temp_adjust: temp-adjust@1f {
958 gic: interrupt-controller@ffb71000 {
959 compatible = "arm,gic-400";
960 interrupt-controller;
961 #interrupt-cells = <3>;
962 #address-cells = <0>;
973 compatible = "rockchip,rk3368-pinctrl";
976 #address-cells = <0x2>;
977 #size-cells = <0x2>;
981 compatible = "rockchip,gpio-bank";
986 gpio-controller;
987 #gpio-cells = <0x2>;
989 interrupt-controller;
990 #interrupt-cells = <0x2>;
994 compatible = "rockchip,gpio-bank";
999 gpio-controller;
1000 #gpio-cells = <0x2>;
1002 interrupt-controller;
1003 #interrupt-cells = <0x2>;
1007 compatible = "rockchip,gpio-bank";
1012 gpio-controller;
1013 #gpio-cells = <0x2>;
1015 interrupt-controller;
1016 #interrupt-cells = <0x2>;
1020 compatible = "rockchip,gpio-bank";
1025 gpio-controller;
1026 #gpio-cells = <0x2>;
1028 interrupt-controller;
1029 #interrupt-cells = <0x2>;
1032 pcfg_pull_up: pcfg-pull-up {
1033 bias-pull-up;
1036 pcfg_pull_down: pcfg-pull-down {
1037 bias-pull-down;
1040 pcfg_pull_none: pcfg-pull-none {
1041 bias-disable;
1044 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1045 bias-disable;
1046 drive-strength = <12>;
1050 emmc_clk: emmc-clk {
1051 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>;
1054 emmc_cmd: emmc-cmd {
1055 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up>;
1058 emmc_pwr: emmc-pwr {
1059 rockchip,pins = <1 RK_PD3 2 &pcfg_pull_up>;
1062 emmc_bus1: emmc-bus1 {
1063 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>;
1066 emmc_bus4: emmc-bus4 {
1067 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1073 emmc_bus8: emmc-bus8 {
1074 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1086 rgmii_pins: rgmii-pins {
1087 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
1104 rmii_pins: rmii-pins {
1105 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
1119 i2c0_xfer: i2c0-xfer {
1120 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
1126 i2c1_xfer: i2c1-xfer {
1127 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>,
1133 i2c2_xfer: i2c2-xfer {
1134 rockchip,pins = <0 RK_PB1 2 &pcfg_pull_none>,
1140 i2c3_xfer: i2c3-xfer {
1141 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>,
1147 i2c4_xfer: i2c4-xfer {
1148 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_none>,
1154 i2c5_xfer: i2c5-xfer {
1155 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_none>,
1161 i2s_8ch_bus: i2s-8ch-bus {
1162 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>,
1175 pwm0_pin: pwm0-pin {
1176 rockchip,pins = <3 RK_PB0 2 &pcfg_pull_none>;
1181 pwm1_pin: pwm1-pin {
1182 rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
1187 pwm3_pin: pwm3-pin {
1188 rockchip,pins = <3 RK_PD5 3 &pcfg_pull_none>;
1193 sdio0_bus1: sdio0-bus1 {
1194 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>;
1197 sdio0_bus4: sdio0-bus4 {
1198 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>,
1204 sdio0_cmd: sdio0-cmd {
1205 rockchip,pins = <3 RK_PA0 1 &pcfg_pull_up>;
1208 sdio0_clk: sdio0-clk {
1209 rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none>;
1212 sdio0_cd: sdio0-cd {
1213 rockchip,pins = <3 RK_PA2 1 &pcfg_pull_up>;
1216 sdio0_wp: sdio0-wp {
1217 rockchip,pins = <3 RK_PA3 1 &pcfg_pull_up>;
1220 sdio0_pwr: sdio0-pwr {
1221 rockchip,pins = <3 RK_PA4 1 &pcfg_pull_up>;
1224 sdio0_bkpwr: sdio0-bkpwr {
1225 rockchip,pins = <3 RK_PA5 1 &pcfg_pull_up>;
1228 sdio0_int: sdio0-int {
1229 rockchip,pins = <3 RK_PA6 1 &pcfg_pull_up>;
1234 sdmmc_clk: sdmmc-clk {
1235 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>;
1238 sdmmc_cmd: sdmmc-cmd {
1239 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1242 sdmmc_cd: sdmmc-cd {
1243 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1246 sdmmc_bus1: sdmmc-bus1 {
1247 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>;
1250 sdmmc_bus4: sdmmc-bus4 {
1251 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>,
1259 spdif_tx: spdif-tx {
1260 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1264 spi0 {
1265 spi0_clk: spi0-clk {
1266 rockchip,pins = <1 RK_PD5 2 &pcfg_pull_up>;
1268 spi0_cs0: spi0-cs0 {
1269 rockchip,pins = <1 RK_PD0 3 &pcfg_pull_up>;
1271 spi0_cs1: spi0-cs1 {
1272 rockchip,pins = <1 RK_PD1 3 &pcfg_pull_up>;
1274 spi0_tx: spi0-tx {
1275 rockchip,pins = <1 RK_PC7 3 &pcfg_pull_up>;
1277 spi0_rx: spi0-rx {
1278 rockchip,pins = <1 RK_PC6 3 &pcfg_pull_up>;
1283 spi1_clk: spi1-clk {
1284 rockchip,pins = <1 RK_PB6 2 &pcfg_pull_up>;
1286 spi1_cs0: spi1-cs0 {
1287 rockchip,pins = <1 RK_PB7 2 &pcfg_pull_up>;
1289 spi1_cs1: spi1-cs1 {
1290 rockchip,pins = <3 RK_PD4 2 &pcfg_pull_up>;
1292 spi1_rx: spi1-rx {
1293 rockchip,pins = <1 RK_PC0 2 &pcfg_pull_up>;
1295 spi1_tx: spi1-tx {
1296 rockchip,pins = <1 RK_PC1 2 &pcfg_pull_up>;
1301 spi2_clk: spi2-clk {
1302 rockchip,pins = <0 RK_PB4 2 &pcfg_pull_up>;
1304 spi2_cs0: spi2-cs0 {
1305 rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>;
1307 spi2_rx: spi2-rx {
1308 rockchip,pins = <0 RK_PB2 2 &pcfg_pull_up>;
1310 spi2_tx: spi2-tx {
1311 rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>;
1316 otp_pin: otp-pin {
1317 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
1320 otp_out: otp-out {
1321 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1326 uart0_xfer: uart0-xfer {
1327 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up>,
1331 uart0_cts: uart0-cts {
1332 rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>;
1335 uart0_rts: uart0-rts {
1336 rockchip,pins = <2 RK_PD3 1 &pcfg_pull_none>;
1341 uart1_xfer: uart1-xfer {
1342 rockchip,pins = <0 RK_PC4 3 &pcfg_pull_up>,
1346 uart1_cts: uart1-cts {
1347 rockchip,pins = <0 RK_PC6 3 &pcfg_pull_none>;
1350 uart1_rts: uart1-rts {
1351 rockchip,pins = <0 RK_PC7 3 &pcfg_pull_none>;
1356 uart2_xfer: uart2-xfer {
1357 rockchip,pins = <2 RK_PA6 2 &pcfg_pull_up>,
1364 uart3_xfer: uart3-xfer {
1365 rockchip,pins = <3 RK_PD5 2 &pcfg_pull_up>,
1369 uart3_cts: uart3-cts {
1370 rockchip,pins = <3 RK_PC0 2 &pcfg_pull_none>;
1373 uart3_rts: uart3-rts {
1374 rockchip,pins = <3 RK_PC1 2 &pcfg_pull_none>;
1379 uart4_xfer: uart4-xfer {
1380 rockchip,pins = <0 RK_PD3 3 &pcfg_pull_up>,
1384 uart4_cts: uart4-cts {
1385 rockchip,pins = <0 RK_PD0 3 &pcfg_pull_none>;
1388 uart4_rts: uart4-rts {
1389 rockchip,pins = <0 RK_PD1 3 &pcfg_pull_none>;