Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 2 | |
| 3 | #include <dt-bindings/gpio/gpio.h> |
| 4 | #include <dt-bindings/interrupt-controller/irq.h> |
| 5 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 6 | #include <dt-bindings/pinctrl/rockchip.h> |
| 7 | #include <dt-bindings/clock/rk3288-cru.h> |
Johan Jonker | 250dd56 | 2022-04-15 23:21:37 +0200 | [diff] [blame] | 8 | #include <dt-bindings/power/rk3288-power.h> |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 9 | #include <dt-bindings/thermal/thermal.h> |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 10 | #include <dt-bindings/video/rk3288.h> |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 11 | #include "skeleton.dtsi" |
| 12 | |
| 13 | / { |
| 14 | compatible = "rockchip,rk3288"; |
| 15 | |
| 16 | interrupt-parent = <&gic>; |
| 17 | aliases { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 18 | ethernet0 = &gmac; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 19 | i2c0 = &i2c0; |
| 20 | i2c1 = &i2c1; |
| 21 | i2c2 = &i2c2; |
| 22 | i2c3 = &i2c3; |
| 23 | i2c4 = &i2c4; |
| 24 | i2c5 = &i2c5; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 25 | mshc0 = &emmc; |
| 26 | mshc1 = &sdmmc; |
| 27 | mshc2 = &sdio0; |
| 28 | mshc3 = &sdio1; |
| 29 | serial0 = &uart0; |
| 30 | serial1 = &uart1; |
| 31 | serial2 = &uart2; |
| 32 | serial3 = &uart3; |
| 33 | serial4 = &uart4; |
| 34 | spi0 = &spi0; |
| 35 | spi1 = &spi1; |
| 36 | spi2 = &spi2; |
| 37 | }; |
| 38 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 39 | arm-pmu { |
| 40 | compatible = "arm,cortex-a12-pmu"; |
| 41 | interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>, |
| 42 | <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>, |
| 43 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 44 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 45 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 46 | }; |
| 47 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 48 | cpus { |
| 49 | #address-cells = <1>; |
| 50 | #size-cells = <0>; |
| 51 | enable-method = "rockchip,rk3066-smp"; |
| 52 | rockchip,pmu = <&pmu>; |
| 53 | |
| 54 | cpu0: cpu@500 { |
| 55 | device_type = "cpu"; |
| 56 | compatible = "arm,cortex-a12"; |
| 57 | reg = <0x500>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 58 | resets = <&cru SRST_CORE0>; |
| 59 | operating-points-v2 = <&cpu_opp_table>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 60 | #cooling-cells = <2>; /* min followed by max */ |
| 61 | clock-latency = <40000>; |
| 62 | clocks = <&cru ARMCLK>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 63 | dynamic-power-coefficient = <370>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 64 | }; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 65 | cpu1: cpu@501 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 66 | device_type = "cpu"; |
| 67 | compatible = "arm,cortex-a12"; |
| 68 | reg = <0x501>; |
| 69 | resets = <&cru SRST_CORE1>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 70 | operating-points-v2 = <&cpu_opp_table>; |
| 71 | #cooling-cells = <2>; /* min followed by max */ |
| 72 | clock-latency = <40000>; |
| 73 | clocks = <&cru ARMCLK>; |
| 74 | dynamic-power-coefficient = <370>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 75 | }; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 76 | cpu2: cpu@502 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 77 | device_type = "cpu"; |
| 78 | compatible = "arm,cortex-a12"; |
| 79 | reg = <0x502>; |
| 80 | resets = <&cru SRST_CORE2>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 81 | operating-points-v2 = <&cpu_opp_table>; |
| 82 | #cooling-cells = <2>; /* min followed by max */ |
| 83 | clock-latency = <40000>; |
| 84 | clocks = <&cru ARMCLK>; |
| 85 | dynamic-power-coefficient = <370>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 86 | }; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 87 | cpu3: cpu@503 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 88 | device_type = "cpu"; |
| 89 | compatible = "arm,cortex-a12"; |
| 90 | reg = <0x503>; |
| 91 | resets = <&cru SRST_CORE3>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 92 | operating-points-v2 = <&cpu_opp_table>; |
| 93 | #cooling-cells = <2>; /* min followed by max */ |
| 94 | clock-latency = <40000>; |
| 95 | clocks = <&cru ARMCLK>; |
| 96 | dynamic-power-coefficient = <370>; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | cpu_opp_table: opp-table-0 { |
| 101 | compatible = "operating-points-v2"; |
| 102 | opp-shared; |
| 103 | |
| 104 | opp-126000000 { |
| 105 | opp-hz = /bits/ 64 <126000000>; |
| 106 | opp-microvolt = <900000>; |
| 107 | }; |
| 108 | opp-216000000 { |
| 109 | opp-hz = /bits/ 64 <216000000>; |
| 110 | opp-microvolt = <900000>; |
| 111 | }; |
| 112 | opp-312000000 { |
| 113 | opp-hz = /bits/ 64 <312000000>; |
| 114 | opp-microvolt = <900000>; |
| 115 | }; |
| 116 | opp-408000000 { |
| 117 | opp-hz = /bits/ 64 <408000000>; |
| 118 | opp-microvolt = <900000>; |
| 119 | }; |
| 120 | opp-600000000 { |
| 121 | opp-hz = /bits/ 64 <600000000>; |
| 122 | opp-microvolt = <900000>; |
| 123 | }; |
| 124 | opp-696000000 { |
| 125 | opp-hz = /bits/ 64 <696000000>; |
| 126 | opp-microvolt = <950000>; |
| 127 | }; |
| 128 | opp-816000000 { |
| 129 | opp-hz = /bits/ 64 <816000000>; |
| 130 | opp-microvolt = <1000000>; |
| 131 | }; |
| 132 | opp-1008000000 { |
| 133 | opp-hz = /bits/ 64 <1008000000>; |
| 134 | opp-microvolt = <1050000>; |
| 135 | }; |
| 136 | opp-1200000000 { |
| 137 | opp-hz = /bits/ 64 <1200000000>; |
| 138 | opp-microvolt = <1100000>; |
| 139 | }; |
| 140 | opp-1416000000 { |
| 141 | opp-hz = /bits/ 64 <1416000000>; |
| 142 | opp-microvolt = <1200000>; |
| 143 | }; |
| 144 | opp-1512000000 { |
| 145 | opp-hz = /bits/ 64 <1512000000>; |
| 146 | opp-microvolt = <1300000>; |
| 147 | }; |
| 148 | opp-1608000000 { |
| 149 | opp-hz = /bits/ 64 <1608000000>; |
| 150 | opp-microvolt = <1350000>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 151 | }; |
| 152 | }; |
| 153 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 154 | reserved-memory { |
| 155 | #address-cells = <1>; |
| 156 | #size-cells = <1>; |
| 157 | ranges; |
| 158 | |
| 159 | /* |
| 160 | * The rk3288 cannot use the memory area above 0xfe000000 |
| 161 | * for dma operations for some reason. While there is |
| 162 | * probably a better solution available somewhere, we |
| 163 | * haven't found it yet and while devices with 2GB of ram |
| 164 | * are not affected, this issue prevents 4GB from booting. |
| 165 | * So to make these devices at least bootable, block |
| 166 | * this area for the time being until the real solution |
| 167 | * is found. |
| 168 | */ |
| 169 | dma-unusable@fe000000 { |
| 170 | reg = <0xfe000000 0x1000000>; |
| 171 | }; |
| 172 | }; |
| 173 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 174 | xin24m: oscillator { |
| 175 | compatible = "fixed-clock"; |
| 176 | clock-frequency = <24000000>; |
| 177 | clock-output-names = "xin24m"; |
| 178 | #clock-cells = <0>; |
| 179 | }; |
| 180 | |
| 181 | timer { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 182 | compatible = "arm,armv7-timer"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 183 | arm,cpu-registers-not-fw-configured; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 184 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 185 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 186 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 187 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 188 | clock-frequency = <24000000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 189 | arm,no-tick-in-suspend; |
| 190 | }; |
| 191 | |
| 192 | timer: timer@ff810000 { |
| 193 | compatible = "rockchip,rk3288-timer"; |
| 194 | reg = <0x0 0xff810000 0x0 0x20>; |
| 195 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
| 196 | clocks = <&cru PCLK_TIMER>, <&xin24m>; |
| 197 | clock-names = "pclk", "timer"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 198 | }; |
| 199 | |
| 200 | display-subsystem { |
| 201 | compatible = "rockchip,display-subsystem"; |
| 202 | ports = <&vopl_out>, <&vopb_out>; |
| 203 | }; |
| 204 | |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 205 | sdmmc: mmc@ff0c0000 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 206 | compatible = "rockchip,rk3288-dw-mshc"; |
Kever Yang | d094732 | 2017-06-14 16:31:44 +0800 | [diff] [blame] | 207 | max-frequency = <150000000>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 208 | clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, |
| 209 | <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 210 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 211 | fifo-depth = <0x100>; |
| 212 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 213 | reg = <0xff0c0000 0x4000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 214 | resets = <&cru SRST_MMC0>; |
| 215 | reset-names = "reset"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 216 | status = "disabled"; |
| 217 | }; |
| 218 | |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 219 | sdio0: mmc@ff0d0000 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 220 | compatible = "rockchip,rk3288-dw-mshc"; |
Kever Yang | d094732 | 2017-06-14 16:31:44 +0800 | [diff] [blame] | 221 | max-frequency = <150000000>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 222 | clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>, |
| 223 | <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>; |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 224 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 225 | fifo-depth = <0x100>; |
| 226 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
| 227 | reg = <0xff0d0000 0x4000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 228 | resets = <&cru SRST_SDIO0>; |
| 229 | reset-names = "reset"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 230 | status = "disabled"; |
| 231 | }; |
| 232 | |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 233 | sdio1: mmc@ff0e0000 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 234 | compatible = "rockchip,rk3288-dw-mshc"; |
Kever Yang | d094732 | 2017-06-14 16:31:44 +0800 | [diff] [blame] | 235 | max-frequency = <150000000>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 236 | clocks = <&cru HCLK_SDIO1>, <&cru SCLK_SDIO1>, |
| 237 | <&cru SCLK_SDIO1_DRV>, <&cru SCLK_SDIO1_SAMPLE>; |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 238 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 239 | fifo-depth = <0x100>; |
| 240 | interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; |
| 241 | reg = <0xff0e0000 0x4000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 242 | resets = <&cru SRST_SDIO1>; |
| 243 | reset-names = "reset"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 244 | status = "disabled"; |
| 245 | }; |
| 246 | |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 247 | emmc: mmc@ff0f0000 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 248 | compatible = "rockchip,rk3288-dw-mshc"; |
Kever Yang | d094732 | 2017-06-14 16:31:44 +0800 | [diff] [blame] | 249 | max-frequency = <150000000>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 250 | clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, |
| 251 | <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; |
Johan Jonker | 05b9493 | 2022-05-02 11:42:22 +0200 | [diff] [blame] | 252 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 253 | fifo-depth = <0x100>; |
| 254 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
| 255 | reg = <0xff0f0000 0x4000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 256 | resets = <&cru SRST_EMMC>; |
| 257 | reset-names = "reset"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 258 | status = "disabled"; |
| 259 | }; |
| 260 | |
| 261 | saradc: saradc@ff100000 { |
| 262 | compatible = "rockchip,saradc"; |
| 263 | reg = <0xff100000 0x100>; |
| 264 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; |
| 265 | #io-channel-cells = <1>; |
| 266 | clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; |
| 267 | clock-names = "saradc", "apb_pclk"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 268 | resets = <&cru SRST_SARADC>; |
| 269 | reset-names = "saradc-apb"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 270 | status = "disabled"; |
| 271 | }; |
| 272 | |
| 273 | spi0: spi@ff110000 { |
| 274 | compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi"; |
| 275 | clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; |
| 276 | clock-names = "spiclk", "apb_pclk"; |
| 277 | dmas = <&dmac_peri 11>, <&dmac_peri 12>; |
| 278 | dma-names = "tx", "rx"; |
| 279 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; |
| 280 | pinctrl-names = "default"; |
| 281 | pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>; |
| 282 | reg = <0xff110000 0x1000>; |
| 283 | #address-cells = <1>; |
| 284 | #size-cells = <0>; |
| 285 | status = "disabled"; |
| 286 | }; |
| 287 | |
| 288 | spi1: spi@ff120000 { |
| 289 | compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi"; |
| 290 | clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>; |
| 291 | clock-names = "spiclk", "apb_pclk"; |
| 292 | dmas = <&dmac_peri 13>, <&dmac_peri 14>; |
| 293 | dma-names = "tx", "rx"; |
| 294 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
| 295 | pinctrl-names = "default"; |
| 296 | pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>; |
| 297 | reg = <0xff120000 0x1000>; |
| 298 | #address-cells = <1>; |
| 299 | #size-cells = <0>; |
| 300 | status = "disabled"; |
| 301 | }; |
| 302 | |
| 303 | spi2: spi@ff130000 { |
| 304 | compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi"; |
| 305 | clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>; |
| 306 | clock-names = "spiclk", "apb_pclk"; |
| 307 | dmas = <&dmac_peri 15>, <&dmac_peri 16>; |
| 308 | dma-names = "tx", "rx"; |
| 309 | interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; |
| 310 | pinctrl-names = "default"; |
| 311 | pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>; |
| 312 | reg = <0xff130000 0x1000>; |
| 313 | #address-cells = <1>; |
| 314 | #size-cells = <0>; |
| 315 | status = "disabled"; |
| 316 | }; |
| 317 | |
| 318 | i2c1: i2c@ff140000 { |
| 319 | compatible = "rockchip,rk3288-i2c"; |
| 320 | reg = <0xff140000 0x1000>; |
| 321 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 322 | #address-cells = <1>; |
| 323 | #size-cells = <0>; |
| 324 | clock-names = "i2c"; |
| 325 | clocks = <&cru PCLK_I2C1>; |
| 326 | pinctrl-names = "default"; |
| 327 | pinctrl-0 = <&i2c1_xfer>; |
| 328 | status = "disabled"; |
| 329 | }; |
| 330 | |
| 331 | i2c3: i2c@ff150000 { |
| 332 | compatible = "rockchip,rk3288-i2c"; |
| 333 | reg = <0xff150000 0x1000>; |
| 334 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
| 335 | #address-cells = <1>; |
| 336 | #size-cells = <0>; |
| 337 | clock-names = "i2c"; |
| 338 | clocks = <&cru PCLK_I2C3>; |
| 339 | pinctrl-names = "default"; |
| 340 | pinctrl-0 = <&i2c3_xfer>; |
| 341 | status = "disabled"; |
| 342 | }; |
| 343 | |
| 344 | i2c4: i2c@ff160000 { |
| 345 | compatible = "rockchip,rk3288-i2c"; |
| 346 | reg = <0xff160000 0x1000>; |
| 347 | interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; |
| 348 | #address-cells = <1>; |
| 349 | #size-cells = <0>; |
| 350 | clock-names = "i2c"; |
| 351 | clocks = <&cru PCLK_I2C4>; |
| 352 | pinctrl-names = "default"; |
| 353 | pinctrl-0 = <&i2c4_xfer>; |
| 354 | status = "disabled"; |
| 355 | }; |
| 356 | |
| 357 | i2c5: i2c@ff170000 { |
| 358 | compatible = "rockchip,rk3288-i2c"; |
| 359 | reg = <0xff170000 0x1000>; |
| 360 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
| 361 | #address-cells = <1>; |
| 362 | #size-cells = <0>; |
| 363 | clock-names = "i2c"; |
| 364 | clocks = <&cru PCLK_I2C5>; |
| 365 | pinctrl-names = "default"; |
| 366 | pinctrl-0 = <&i2c5_xfer>; |
| 367 | status = "disabled"; |
| 368 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 369 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 370 | uart0: serial@ff180000 { |
| 371 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 372 | reg = <0xff180000 0x100>; |
| 373 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
| 374 | reg-shift = <2>; |
| 375 | reg-io-width = <4>; |
| 376 | clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; |
| 377 | clock-names = "baudclk", "apb_pclk"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 378 | dmas = <&dmac_peri 1>, <&dmac_peri 2>; |
| 379 | dma-names = "tx", "rx"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 380 | pinctrl-names = "default"; |
| 381 | pinctrl-0 = <&uart0_xfer>; |
| 382 | status = "disabled"; |
| 383 | }; |
| 384 | |
| 385 | uart1: serial@ff190000 { |
| 386 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 387 | reg = <0xff190000 0x100>; |
| 388 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
| 389 | reg-shift = <2>; |
| 390 | reg-io-width = <4>; |
| 391 | clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; |
| 392 | clock-names = "baudclk", "apb_pclk"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 393 | dmas = <&dmac_peri 3>, <&dmac_peri 4>; |
| 394 | dma-names = "tx", "rx"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 395 | pinctrl-names = "default"; |
| 396 | pinctrl-0 = <&uart1_xfer>; |
| 397 | status = "disabled"; |
| 398 | }; |
| 399 | |
| 400 | uart2: serial@ff690000 { |
| 401 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 402 | reg = <0xff690000 0x100>; |
| 403 | interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; |
| 404 | reg-shift = <2>; |
| 405 | reg-io-width = <4>; |
| 406 | clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; |
| 407 | clock-names = "baudclk", "apb_pclk"; |
| 408 | pinctrl-names = "default"; |
| 409 | pinctrl-0 = <&uart2_xfer>; |
| 410 | status = "disabled"; |
| 411 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 412 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 413 | uart3: serial@ff1b0000 { |
| 414 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 415 | reg = <0xff1b0000 0x100>; |
| 416 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; |
| 417 | reg-shift = <2>; |
| 418 | reg-io-width = <4>; |
| 419 | clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; |
| 420 | clock-names = "baudclk", "apb_pclk"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 421 | dmas = <&dmac_peri 7>, <&dmac_peri 8>; |
| 422 | dma-names = "tx", "rx"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 423 | pinctrl-names = "default"; |
| 424 | pinctrl-0 = <&uart3_xfer>; |
| 425 | status = "disabled"; |
| 426 | }; |
| 427 | |
| 428 | uart4: serial@ff1c0000 { |
| 429 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 430 | reg = <0xff1c0000 0x100>; |
| 431 | interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; |
| 432 | reg-shift = <2>; |
| 433 | reg-io-width = <4>; |
| 434 | clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>; |
| 435 | clock-names = "baudclk", "apb_pclk"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 436 | dmas = <&dmac_peri 9>, <&dmac_peri 10>; |
| 437 | dma-names = "tx", "rx"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 438 | pinctrl-names = "default"; |
| 439 | pinctrl-0 = <&uart4_xfer>; |
| 440 | status = "disabled"; |
| 441 | }; |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 442 | |
| 443 | dmac_peri: dma-controller@ff250000 { |
| 444 | compatible = "arm,pl330", "arm,primecell"; |
| 445 | reg = <0xff250000 0x4000>; |
| 446 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>, |
| 447 | <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 448 | #dma-cells = <1>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 449 | arm,pl330-broken-no-flushp; |
| 450 | arm,pl330-periph-burst; |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 451 | clocks = <&cru ACLK_DMAC2>; |
| 452 | clock-names = "apb_pclk"; |
| 453 | }; |
| 454 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 455 | thermal: thermal-zones { |
Johan Jonker | f816c74 | 2022-09-28 16:24:06 +0200 | [diff] [blame] | 456 | reserve_thermal: reserve-thermal { |
| 457 | polling-delay-passive = <1000>; /* milliseconds */ |
| 458 | polling-delay = <5000>; /* milliseconds */ |
| 459 | |
| 460 | thermal-sensors = <&tsadc 0>; |
| 461 | }; |
| 462 | |
| 463 | cpu_thermal: cpu-thermal { |
| 464 | polling-delay-passive = <100>; /* milliseconds */ |
| 465 | polling-delay = <5000>; /* milliseconds */ |
| 466 | |
| 467 | thermal-sensors = <&tsadc 1>; |
| 468 | |
| 469 | trips { |
| 470 | cpu_alert0: cpu_alert0 { |
| 471 | temperature = <70000>; /* millicelsius */ |
| 472 | hysteresis = <2000>; /* millicelsius */ |
| 473 | type = "passive"; |
| 474 | }; |
| 475 | cpu_alert1: cpu_alert1 { |
| 476 | temperature = <75000>; /* millicelsius */ |
| 477 | hysteresis = <2000>; /* millicelsius */ |
| 478 | type = "passive"; |
| 479 | }; |
| 480 | cpu_crit: cpu_crit { |
| 481 | temperature = <90000>; /* millicelsius */ |
| 482 | hysteresis = <2000>; /* millicelsius */ |
| 483 | type = "critical"; |
| 484 | }; |
| 485 | }; |
| 486 | |
| 487 | cooling-maps { |
| 488 | map0 { |
| 489 | trip = <&cpu_alert0>; |
| 490 | cooling-device = |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 491 | <&cpu0 THERMAL_NO_LIMIT 6>, |
| 492 | <&cpu1 THERMAL_NO_LIMIT 6>, |
| 493 | <&cpu2 THERMAL_NO_LIMIT 6>, |
| 494 | <&cpu3 THERMAL_NO_LIMIT 6>; |
Johan Jonker | f816c74 | 2022-09-28 16:24:06 +0200 | [diff] [blame] | 495 | }; |
| 496 | map1 { |
| 497 | trip = <&cpu_alert1>; |
| 498 | cooling-device = |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 499 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 500 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 501 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 502 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
Johan Jonker | f816c74 | 2022-09-28 16:24:06 +0200 | [diff] [blame] | 503 | }; |
| 504 | }; |
| 505 | }; |
| 506 | |
| 507 | gpu_thermal: gpu-thermal { |
| 508 | polling-delay-passive = <100>; /* milliseconds */ |
| 509 | polling-delay = <5000>; /* milliseconds */ |
| 510 | |
| 511 | thermal-sensors = <&tsadc 2>; |
| 512 | |
| 513 | trips { |
| 514 | gpu_alert0: gpu_alert0 { |
| 515 | temperature = <70000>; /* millicelsius */ |
| 516 | hysteresis = <2000>; /* millicelsius */ |
| 517 | type = "passive"; |
| 518 | }; |
| 519 | gpu_crit: gpu_crit { |
| 520 | temperature = <90000>; /* millicelsius */ |
| 521 | hysteresis = <2000>; /* millicelsius */ |
| 522 | type = "critical"; |
| 523 | }; |
| 524 | }; |
| 525 | |
| 526 | cooling-maps { |
| 527 | map0 { |
| 528 | trip = <&gpu_alert0>; |
| 529 | cooling-device = |
| 530 | <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 531 | }; |
| 532 | }; |
| 533 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 534 | }; |
| 535 | |
| 536 | tsadc: tsadc@ff280000 { |
| 537 | compatible = "rockchip,rk3288-tsadc"; |
| 538 | reg = <0xff280000 0x100>; |
| 539 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
| 540 | clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; |
| 541 | clock-names = "tsadc", "apb_pclk"; |
| 542 | resets = <&cru SRST_TSADC>; |
| 543 | reset-names = "tsadc-apb"; |
| 544 | pinctrl-names = "otp_out"; |
| 545 | pinctrl-0 = <&otp_out>; |
| 546 | #thermal-sensor-cells = <1>; |
| 547 | hw-shut-temp = <125000>; |
| 548 | status = "disabled"; |
| 549 | }; |
| 550 | |
| 551 | gmac: ethernet@ff290000 { |
| 552 | compatible = "rockchip,rk3288-gmac"; |
| 553 | reg = <0xff290000 0x10000>; |
| 554 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; |
| 555 | interrupt-names = "macirq"; |
| 556 | rockchip,grf = <&grf>; |
| 557 | clocks = <&cru SCLK_MAC>, |
| 558 | <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>, |
| 559 | <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>, |
| 560 | <&cru ACLK_GMAC>, <&cru PCLK_GMAC>; |
| 561 | clock-names = "stmmaceth", |
| 562 | "mac_clk_rx", "mac_clk_tx", |
| 563 | "clk_mac_ref", "clk_mac_refout", |
| 564 | "aclk_mac", "pclk_mac"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 565 | resets = <&cru SRST_MAC>; |
| 566 | reset-names = "stmmaceth"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 567 | }; |
| 568 | |
| 569 | usb_host0_ehci: usb@ff500000 { |
| 570 | compatible = "generic-ehci"; |
| 571 | reg = <0xff500000 0x100>; |
| 572 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 573 | clocks = <&cru HCLK_USBHOST0>; |
| 574 | clock-names = "usbhost"; |
| 575 | phys = <&usbphy1>; |
| 576 | phy-names = "usb"; |
| 577 | status = "disabled"; |
| 578 | }; |
| 579 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 580 | /* NOTE: doesn't work on RK3288, but was fixed on RK3288W */ |
Jagan Teki | 00f5779 | 2020-07-21 20:54:37 +0530 | [diff] [blame] | 581 | usb_host0_ohci: usb@ff520000 { |
| 582 | compatible = "generic-ohci"; |
| 583 | reg = <0x0 0xff520000 0x0 0x100>; |
| 584 | interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
| 585 | clocks = <&cru HCLK_USBHOST0>; |
| 586 | phys = <&usbphy1>; |
| 587 | phy-names = "usb"; |
| 588 | status = "disabled"; |
| 589 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 590 | |
| 591 | usb_host1: usb@ff540000 { |
| 592 | compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb", |
| 593 | "snps,dwc2"; |
| 594 | reg = <0xff540000 0x40000>; |
| 595 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
| 596 | clocks = <&cru HCLK_USBHOST1>; |
| 597 | clock-names = "otg"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 598 | dr_mode = "host"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 599 | phys = <&usbphy2>; |
| 600 | phy-names = "usb2-phy"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 601 | snps,reset-phy-on-wake; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 602 | status = "disabled"; |
| 603 | }; |
| 604 | |
| 605 | usb_otg: usb@ff580000 { |
| 606 | compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb", |
| 607 | "snps,dwc2"; |
| 608 | reg = <0xff580000 0x40000>; |
| 609 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
| 610 | clocks = <&cru HCLK_OTG0>; |
| 611 | clock-names = "otg"; |
Xu Ziyuan | a11a53f | 2016-07-15 00:26:59 +0800 | [diff] [blame] | 612 | dr_mode = "otg"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 613 | g-np-tx-fifo-size = <16>; |
| 614 | g-rx-fifo-size = <275>; |
| 615 | g-tx-fifo-size = <256 128 128 64 64 32>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 616 | phys = <&usbphy0>; |
| 617 | phy-names = "usb2-phy"; |
| 618 | status = "disabled"; |
| 619 | }; |
| 620 | |
| 621 | usb_hsic: usb@ff5c0000 { |
| 622 | compatible = "generic-ehci"; |
| 623 | reg = <0xff5c0000 0x100>; |
| 624 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 625 | clocks = <&cru HCLK_HSIC>; |
| 626 | clock-names = "usbhost"; |
| 627 | status = "disabled"; |
| 628 | }; |
| 629 | |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 630 | dmac_bus_ns: dma-controller@ff600000 { |
| 631 | compatible = "arm,pl330", "arm,primecell"; |
| 632 | reg = <0xff600000 0x4000>; |
| 633 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, |
| 634 | <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 635 | #dma-cells = <1>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 636 | arm,pl330-broken-no-flushp; |
| 637 | arm,pl330-periph-burst; |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 638 | clocks = <&cru ACLK_DMAC1>; |
| 639 | clock-names = "apb_pclk"; |
| 640 | status = "disabled"; |
| 641 | }; |
| 642 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 643 | i2c0: i2c@ff650000 { |
| 644 | compatible = "rockchip,rk3288-i2c"; |
| 645 | reg = <0xff650000 0x1000>; |
| 646 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
| 647 | #address-cells = <1>; |
| 648 | #size-cells = <0>; |
| 649 | clock-names = "i2c"; |
| 650 | clocks = <&cru PCLK_I2C0>; |
| 651 | pinctrl-names = "default"; |
| 652 | pinctrl-0 = <&i2c0_xfer>; |
| 653 | status = "disabled"; |
| 654 | }; |
| 655 | |
| 656 | i2c2: i2c@ff660000 { |
| 657 | compatible = "rockchip,rk3288-i2c"; |
| 658 | reg = <0xff660000 0x1000>; |
| 659 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 660 | #address-cells = <1>; |
| 661 | #size-cells = <0>; |
| 662 | clock-names = "i2c"; |
| 663 | clocks = <&cru PCLK_I2C2>; |
| 664 | pinctrl-names = "default"; |
| 665 | pinctrl-0 = <&i2c2_xfer>; |
| 666 | status = "disabled"; |
| 667 | }; |
| 668 | |
| 669 | pwm0: pwm@ff680000 { |
| 670 | compatible = "rockchip,rk3288-pwm"; |
| 671 | reg = <0xff680000 0x10>; |
| 672 | #pwm-cells = <3>; |
| 673 | pinctrl-names = "default"; |
| 674 | pinctrl-0 = <&pwm0_pin>; |
| 675 | clocks = <&cru PCLK_PWM>; |
| 676 | clock-names = "pwm"; |
| 677 | rockchip,grf = <&grf>; |
| 678 | status = "disabled"; |
| 679 | }; |
| 680 | |
| 681 | pwm1: pwm@ff680010 { |
| 682 | compatible = "rockchip,rk3288-pwm"; |
| 683 | reg = <0xff680010 0x10>; |
| 684 | #pwm-cells = <3>; |
| 685 | pinctrl-names = "default"; |
| 686 | pinctrl-0 = <&pwm1_pin>; |
| 687 | clocks = <&cru PCLK_PWM>; |
| 688 | clock-names = "pwm"; |
| 689 | rockchip,grf = <&grf>; |
| 690 | status = "disabled"; |
| 691 | }; |
| 692 | |
| 693 | pwm2: pwm@ff680020 { |
| 694 | compatible = "rockchip,rk3288-pwm"; |
| 695 | reg = <0xff680020 0x10>; |
| 696 | #pwm-cells = <3>; |
| 697 | pinctrl-names = "default"; |
| 698 | pinctrl-0 = <&pwm2_pin>; |
| 699 | clocks = <&cru PCLK_PWM>; |
| 700 | clock-names = "pwm"; |
| 701 | rockchip,grf = <&grf>; |
| 702 | status = "disabled"; |
| 703 | }; |
| 704 | |
| 705 | pwm3: pwm@ff680030 { |
| 706 | compatible = "rockchip,rk3288-pwm"; |
| 707 | reg = <0xff680030 0x10>; |
| 708 | #pwm-cells = <2>; |
| 709 | pinctrl-names = "default"; |
| 710 | pinctrl-0 = <&pwm3_pin>; |
| 711 | clocks = <&cru PCLK_PWM>; |
| 712 | clock-names = "pwm"; |
| 713 | rockchip,grf = <&grf>; |
| 714 | status = "disabled"; |
| 715 | }; |
| 716 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 717 | bus_intmem: sram@ff700000 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 718 | compatible = "mmio-sram"; |
| 719 | reg = <0xff700000 0x18000>; |
| 720 | #address-cells = <1>; |
| 721 | #size-cells = <1>; |
| 722 | ranges = <0 0xff700000 0x18000>; |
| 723 | smp-sram@0 { |
| 724 | compatible = "rockchip,rk3066-smp-sram"; |
| 725 | reg = <0x00 0x10>; |
| 726 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 727 | }; |
| 728 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 729 | pmu_sram: sram@ff720000 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 730 | compatible = "rockchip,rk3288-pmu-sram", "mmio-sram"; |
| 731 | reg = <0xff720000 0x1000>; |
| 732 | }; |
| 733 | |
| 734 | pmu: power-management@ff730000 { |
| 735 | compatible = "rockchip,rk3288-pmu", "syscon"; |
| 736 | reg = <0xff730000 0x100>; |
| 737 | }; |
| 738 | |
| 739 | sgrf: syscon@ff740000 { |
| 740 | compatible = "rockchip,rk3288-sgrf", "syscon"; |
| 741 | reg = <0xff740000 0x1000>; |
| 742 | }; |
| 743 | |
| 744 | cru: clock-controller@ff760000 { |
| 745 | compatible = "rockchip,rk3288-cru"; |
| 746 | reg = <0xff760000 0x1000>; |
| 747 | rockchip,grf = <&grf>; |
| 748 | #clock-cells = <1>; |
| 749 | #reset-cells = <1>; |
David Wu | 452bb03 | 2018-01-13 14:06:16 +0800 | [diff] [blame] | 750 | assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>, |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 751 | <&cru PLL_NPLL>, <&cru ACLK_CPU>, |
| 752 | <&cru HCLK_CPU>, <&cru PCLK_CPU>, |
| 753 | <&cru ACLK_PERI>, <&cru HCLK_PERI>, |
| 754 | <&cru PCLK_PERI>; |
David Wu | 452bb03 | 2018-01-13 14:06:16 +0800 | [diff] [blame] | 755 | assigned-clock-rates = <594000000>, <400000000>, |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 756 | <500000000>, <300000000>, |
| 757 | <150000000>, <75000000>, |
| 758 | <300000000>, <150000000>, |
| 759 | <75000000>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 760 | }; |
| 761 | |
| 762 | grf: syscon@ff770000 { |
| 763 | compatible = "rockchip,rk3288-grf", "syscon"; |
| 764 | reg = <0xff770000 0x1000>; |
Johan Jonker | a5b4bdb | 2023-03-15 19:31:57 +0100 | [diff] [blame^] | 765 | |
| 766 | io_domains: io-domains { |
| 767 | compatible = "rockchip,rk3288-io-voltage-domain"; |
| 768 | status = "disabled"; |
| 769 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 770 | }; |
| 771 | |
| 772 | wdt: watchdog@ff800000 { |
| 773 | compatible = "rockchip,rk3288-wdt", "snps,dw-wdt"; |
| 774 | reg = <0xff800000 0x100>; |
| 775 | clocks = <&cru PCLK_WDT>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 776 | interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 777 | status = "disabled"; |
| 778 | }; |
| 779 | |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 780 | spdif: sound@ff88b0000 { |
| 781 | compatible = "rockchip,rk3288-spdif", "rockchip,rk3066-spdif"; |
| 782 | reg = <0xff8b0000 0x10000>; |
| 783 | #sound-dai-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 784 | clocks = <&cru SCLK_SPDIF8CH>, <&cru HCLK_SPDIF8CH>; |
| 785 | clock-names = "mclk", "hclk"; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 786 | dmas = <&dmac_bus_s 3>; |
| 787 | dma-names = "tx"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 788 | interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 789 | pinctrl-names = "default"; |
| 790 | pinctrl-0 = <&spdif_tx>; |
| 791 | rockchip,grf = <&grf>; |
| 792 | status = "disabled"; |
| 793 | }; |
| 794 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 795 | i2s: i2s@ff890000 { |
| 796 | compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s"; |
| 797 | reg = <0xff890000 0x10000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 798 | #sound-dai-cells = <0>; |
| 799 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; |
| 800 | clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0>; |
| 801 | clock-names = "i2s_clk", "i2s_hclk"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 802 | dmas = <&dmac_bus_s 0>, <&dmac_bus_s 1>; |
| 803 | dma-names = "tx", "rx"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 804 | pinctrl-names = "default"; |
| 805 | pinctrl-0 = <&i2s0_bus>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 806 | rockchip,playback-channels = <8>; |
| 807 | rockchip,capture-channels = <2>; |
| 808 | status = "disabled"; |
| 809 | }; |
| 810 | |
| 811 | crypto: crypto@ff8a0000 { |
| 812 | compatible = "rockchip,rk3288-crypto"; |
| 813 | reg = <0xff8a0000 0x4000>; |
| 814 | interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; |
| 815 | clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>, |
| 816 | <&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>; |
| 817 | clock-names = "aclk", "hclk", "sclk", "apb_pclk"; |
| 818 | resets = <&cru SRST_CRYPTO>; |
| 819 | reset-names = "crypto-rst"; |
| 820 | }; |
| 821 | |
| 822 | iep_mmu: iommu@ff900800 { |
| 823 | compatible = "rockchip,iommu"; |
| 824 | reg = <0xff900800 0x40>; |
| 825 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 826 | clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>; |
| 827 | clock-names = "aclk", "iface"; |
| 828 | #iommu-cells = <0>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 829 | status = "disabled"; |
| 830 | }; |
| 831 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 832 | isp_mmu: iommu@ff914000 { |
| 833 | compatible = "rockchip,iommu"; |
| 834 | reg = <0xff914000 0x100>, <0xff915000 0x100>; |
| 835 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
| 836 | clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>; |
| 837 | clock-names = "aclk", "iface"; |
| 838 | #iommu-cells = <0>; |
| 839 | rockchip,disable-mmu-reset; |
| 840 | status = "disabled"; |
| 841 | }; |
| 842 | |
| 843 | rga: rga@ff920000 { |
| 844 | compatible = "rockchip,rk3288-rga"; |
| 845 | reg = <0xff920000 0x180>; |
| 846 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; |
| 847 | clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>; |
| 848 | clock-names = "aclk", "hclk", "sclk"; |
| 849 | power-domains = <&power RK3288_PD_VIO>; |
| 850 | resets = <&cru SRST_RGA_CORE>, <&cru SRST_RGA_AXI>, <&cru SRST_RGA_AHB>; |
| 851 | reset-names = "core", "axi", "ahb"; |
| 852 | }; |
| 853 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 854 | vopb: vop@ff930000 { |
| 855 | compatible = "rockchip,rk3288-vop"; |
| 856 | reg = <0xff930000 0x19c>; |
| 857 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; |
| 858 | clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; |
| 859 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 860 | power-domains = <&power RK3288_PD_VIO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 861 | resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>; |
| 862 | reset-names = "axi", "ahb", "dclk"; |
| 863 | iommus = <&vopb_mmu>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 864 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 865 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 866 | vopb_out: port { |
| 867 | #address-cells = <1>; |
| 868 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 869 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 870 | vopb_out_edp: endpoint@0 { |
| 871 | reg = <0>; |
| 872 | remote-endpoint = <&edp_in_vopb>; |
| 873 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 874 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 875 | vopb_out_hdmi: endpoint@1 { |
| 876 | reg = <1>; |
| 877 | remote-endpoint = <&hdmi_in_vopb>; |
| 878 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 879 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 880 | vopb_out_lvds: endpoint@2 { |
| 881 | reg = <2>; |
| 882 | remote-endpoint = <&lvds_in_vopb>; |
| 883 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 884 | |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 885 | vopb_out_mipi: endpoint@3 { |
| 886 | reg = <3>; |
| 887 | remote-endpoint = <&mipi_in_vopb>; |
| 888 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 889 | }; |
| 890 | }; |
| 891 | |
| 892 | vopb_mmu: iommu@ff930300 { |
| 893 | compatible = "rockchip,iommu"; |
| 894 | reg = <0xff930300 0x100>; |
| 895 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 896 | clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; |
| 897 | clock-names = "aclk", "iface"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 898 | power-domains = <&power RK3288_PD_VIO>; |
| 899 | #iommu-cells = <0>; |
| 900 | status = "disabled"; |
| 901 | }; |
| 902 | |
| 903 | vopl: vop@ff940000 { |
| 904 | compatible = "rockchip,rk3288-vop"; |
| 905 | reg = <0xff940000 0x19c>; |
| 906 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
| 907 | clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; |
| 908 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 909 | power-domains = <&power RK3288_PD_VIO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 910 | resets = <&cru SRST_LCDC1_AXI>, <&cru SRST_LCDC1_AHB>, <&cru SRST_LCDC1_DCLK>; |
| 911 | reset-names = "axi", "ahb", "dclk"; |
| 912 | iommus = <&vopl_mmu>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 913 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 914 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 915 | vopl_out: port { |
| 916 | #address-cells = <1>; |
| 917 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 918 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 919 | vopl_out_edp: endpoint@0 { |
| 920 | reg = <0>; |
| 921 | remote-endpoint = <&edp_in_vopl>; |
| 922 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 923 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 924 | vopl_out_hdmi: endpoint@1 { |
| 925 | reg = <1>; |
| 926 | remote-endpoint = <&hdmi_in_vopl>; |
| 927 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 928 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 929 | vopl_out_lvds: endpoint@2 { |
| 930 | reg = <2>; |
| 931 | remote-endpoint = <&lvds_in_vopl>; |
| 932 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 933 | |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 934 | vopl_out_mipi: endpoint@3 { |
| 935 | reg = <3>; |
| 936 | remote-endpoint = <&mipi_in_vopl>; |
| 937 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 938 | }; |
| 939 | }; |
| 940 | |
| 941 | vopl_mmu: iommu@ff940300 { |
| 942 | compatible = "rockchip,iommu"; |
| 943 | reg = <0xff940300 0x100>; |
| 944 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 945 | clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; |
| 946 | clock-names = "aclk", "iface"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 947 | power-domains = <&power RK3288_PD_VIO>; |
| 948 | #iommu-cells = <0>; |
| 949 | status = "disabled"; |
| 950 | }; |
| 951 | |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 952 | mipi_dsi: mipi@ff960000 { |
| 953 | compatible = "rockchip,rk3288_mipi_dsi"; |
| 954 | reg = <0xff960000 0x4000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 955 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 956 | clocks = <&cru PCLK_MIPI_DSI0>; |
| 957 | clock-names = "pclk_mipi"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 958 | power-domains = <&power RK3288_PD_VIO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 959 | rockchip,grf = <&grf>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 960 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 961 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 962 | ports { |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 963 | mipi_in: port { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 964 | #address-cells = <1>; |
| 965 | #size-cells = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 966 | mipi_in_vopb: endpoint@0 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 967 | reg = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 968 | remote-endpoint = <&vopb_out_mipi>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 969 | }; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 970 | mipi_in_vopl: endpoint@1 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 971 | reg = <1>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 972 | remote-endpoint = <&vopl_out_mipi>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 973 | }; |
| 974 | }; |
| 975 | }; |
| 976 | }; |
| 977 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 978 | lvds: lvds@ff96c000 { |
| 979 | compatible = "rockchip,rk3288-lvds"; |
| 980 | reg = <0xff96c000 0x4000>; |
| 981 | clocks = <&cru PCLK_LVDS_PHY>; |
| 982 | clock-names = "pclk_lvds"; |
| 983 | pinctrl-names = "default"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 984 | pinctrl-0 = <&lcdc_ctl>; |
| 985 | power-domains = <&power RK3288_PD_VIO>; |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 986 | rockchip,grf = <&grf>; |
| 987 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 988 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 989 | ports { |
| 990 | #address-cells = <1>; |
| 991 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 992 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 993 | lvds_in: port@0 { |
| 994 | reg = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 995 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 996 | #address-cells = <1>; |
| 997 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 998 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 999 | lvds_in_vopb: endpoint@0 { |
| 1000 | reg = <0>; |
| 1001 | remote-endpoint = <&vopb_out_lvds>; |
| 1002 | }; |
| 1003 | lvds_in_vopl: endpoint@1 { |
| 1004 | reg = <1>; |
| 1005 | remote-endpoint = <&vopl_out_lvds>; |
| 1006 | }; |
| 1007 | }; |
| 1008 | }; |
| 1009 | }; |
| 1010 | |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1011 | edp: dp@ff970000 { |
| 1012 | compatible = "rockchip,rk3288-edp"; |
| 1013 | reg = <0xff970000 0x4000>; |
| 1014 | interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; |
| 1015 | clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1016 | clock-names = "clk_edp", "clk_edp_24m", "pclk_edp"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1017 | resets = <&cru SRST_EDP>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1018 | reset-names = "edp"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1019 | rockchip,grf = <&grf>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1020 | power-domains = <&power RK3288_PD_VIO>; |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1021 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1022 | |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1023 | ports { |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1024 | edp_in: port { |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1025 | #address-cells = <1>; |
| 1026 | #size-cells = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1027 | edp_in_vopb: endpoint@0 { |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1028 | reg = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1029 | remote-endpoint = <&vopb_out_edp>; |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1030 | }; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1031 | edp_in_vopl: endpoint@1 { |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1032 | reg = <1>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1033 | remote-endpoint = <&vopl_out_edp>; |
| 1034 | }; |
| 1035 | }; |
| 1036 | }; |
| 1037 | }; |
| 1038 | |
| 1039 | hdmi: hdmi@ff980000 { |
| 1040 | compatible = "rockchip,rk3288-dw-hdmi"; |
| 1041 | reg = <0xff980000 0x20000>; |
| 1042 | reg-io-width = <4>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1043 | #sound-dai-cells = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1044 | rockchip,grf = <&grf>; |
| 1045 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
| 1046 | clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>; |
| 1047 | clock-names = "iahb", "isfr"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1048 | power-domains = <&power RK3288_PD_VIO>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1049 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1050 | |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1051 | ports { |
| 1052 | hdmi_in: port { |
| 1053 | #address-cells = <1>; |
| 1054 | #size-cells = <0>; |
| 1055 | hdmi_in_vopb: endpoint@0 { |
| 1056 | reg = <0>; |
| 1057 | remote-endpoint = <&vopb_out_hdmi>; |
| 1058 | }; |
| 1059 | hdmi_in_vopl: endpoint@1 { |
| 1060 | reg = <1>; |
| 1061 | remote-endpoint = <&vopl_out_hdmi>; |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1062 | }; |
| 1063 | }; |
| 1064 | }; |
| 1065 | }; |
| 1066 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1067 | vpu: video-codec@ff9a0000 { |
| 1068 | compatible = "rockchip,rk3288-vpu"; |
| 1069 | reg = <0xff9a0000 0x800>; |
| 1070 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1071 | <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1072 | interrupt-names = "vepu", "vdpu"; |
| 1073 | clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1074 | clock-names = "aclk", "hclk"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1075 | iommus = <&vpu_mmu>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1076 | power-domains = <&power RK3288_PD_VIDEO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1077 | }; |
| 1078 | |
| 1079 | vpu_mmu: iommu@ff9a0800 { |
| 1080 | compatible = "rockchip,iommu"; |
| 1081 | reg = <0xff9a0800 0x100>; |
| 1082 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1083 | clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; |
| 1084 | clock-names = "aclk", "iface"; |
| 1085 | #iommu-cells = <0>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1086 | power-domains = <&power RK3288_PD_VIDEO>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1087 | }; |
| 1088 | |
| 1089 | hevc_mmu: iommu@ff9c0440 { |
| 1090 | compatible = "rockchip,iommu"; |
| 1091 | reg = <0xff9c0440 0x40>, <0xff9c0480 0x40>; |
| 1092 | interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; |
| 1093 | clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>; |
| 1094 | clock-names = "aclk", "iface"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1095 | #iommu-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1096 | status = "disabled"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1097 | }; |
| 1098 | |
| 1099 | gpu: gpu@ffa30000 { |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1100 | compatible = "rockchip,rk3288-mali", "arm,mali-t760"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1101 | reg = <0xffa30000 0x10000>; |
| 1102 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, |
| 1103 | <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, |
| 1104 | <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1105 | interrupt-names = "job", "mmu", "gpu"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1106 | clocks = <&cru ACLK_GPU>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1107 | operating-points-v2 = <&gpu_opp_table>; |
Johan Jonker | f816c74 | 2022-09-28 16:24:06 +0200 | [diff] [blame] | 1108 | #cooling-cells = <2>; /* min followed by max */ |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1109 | power-domains = <&power RK3288_PD_GPU>; |
| 1110 | status = "disabled"; |
| 1111 | }; |
| 1112 | |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1113 | gpu_opp_table: opp-table-1 { |
| 1114 | compatible = "operating-points-v2"; |
| 1115 | |
| 1116 | opp-100000000 { |
| 1117 | opp-hz = /bits/ 64 <100000000>; |
| 1118 | opp-microvolt = <950000>; |
| 1119 | }; |
| 1120 | opp-200000000 { |
| 1121 | opp-hz = /bits/ 64 <200000000>; |
| 1122 | opp-microvolt = <950000>; |
| 1123 | }; |
| 1124 | opp-300000000 { |
| 1125 | opp-hz = /bits/ 64 <300000000>; |
| 1126 | opp-microvolt = <1000000>; |
| 1127 | }; |
| 1128 | opp-400000000 { |
| 1129 | opp-hz = /bits/ 64 <400000000>; |
| 1130 | opp-microvolt = <1100000>; |
| 1131 | }; |
| 1132 | opp-600000000 { |
| 1133 | opp-hz = /bits/ 64 <600000000>; |
| 1134 | opp-microvolt = <1250000>; |
| 1135 | }; |
| 1136 | }; |
| 1137 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1138 | qos_gpu_r: qos@ffaa0000 { |
| 1139 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1140 | reg = <0xffaa0000 0x20>; |
| 1141 | }; |
| 1142 | |
| 1143 | qos_gpu_w: qos@ffaa0080 { |
| 1144 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1145 | reg = <0xffaa0080 0x20>; |
| 1146 | }; |
| 1147 | |
| 1148 | qos_vio1_vop: qos@ffad0000 { |
| 1149 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1150 | reg = <0xffad0000 0x20>; |
| 1151 | }; |
| 1152 | |
| 1153 | qos_vio1_isp_w0: qos@ffad0100 { |
| 1154 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1155 | reg = <0xffad0100 0x20>; |
| 1156 | }; |
| 1157 | |
| 1158 | qos_vio1_isp_w1: qos@ffad0180 { |
| 1159 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1160 | reg = <0x0 0xffad0180 0x0 0x20>; |
| 1161 | }; |
| 1162 | |
| 1163 | qos_vio0_vop: qos@ffad0400 { |
| 1164 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1165 | reg = <0x0 0xffad0400 0x0 0x20>; |
| 1166 | }; |
| 1167 | |
| 1168 | qos_vio0_vip: qos@ffad0480 { |
| 1169 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1170 | reg = <0xffad0480 0x20>; |
| 1171 | }; |
| 1172 | |
| 1173 | qos_vio0_iep: qos@ffad0500 { |
| 1174 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1175 | reg = <0xffad0500 0x20>; |
| 1176 | }; |
| 1177 | |
| 1178 | qos_vio2_rga_r: qos@ffad0800 { |
| 1179 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1180 | reg = <0xffad0800 0x20>; |
| 1181 | }; |
| 1182 | |
| 1183 | qos_vio2_rga_w: qos@ffad0880 { |
| 1184 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1185 | reg = <0xffad0880 0x20>; |
| 1186 | }; |
| 1187 | |
| 1188 | qos_vio1_isp_r: qos@ffad0900 { |
| 1189 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1190 | reg = <0xffad0900 0x20>; |
| 1191 | }; |
| 1192 | |
| 1193 | qos_video: qos@ffae0000 { |
| 1194 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1195 | reg = <0xffae0000 0x20>; |
| 1196 | }; |
| 1197 | |
| 1198 | qos_hevc_r: qos@ffaf0000 { |
| 1199 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1200 | reg = <0xffaf0000 0x20>; |
| 1201 | }; |
| 1202 | |
| 1203 | qos_hevc_w: qos@ffaf0080 { |
| 1204 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1205 | reg = <0xffaf0080 0x20>; |
| 1206 | }; |
| 1207 | |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 1208 | dmac_bus_s: dma-controller@ffb20000 { |
| 1209 | compatible = "arm,pl330", "arm,primecell"; |
| 1210 | reg = <0xffb20000 0x4000>; |
| 1211 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, |
| 1212 | <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 1213 | #dma-cells = <1>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1214 | arm,pl330-broken-no-flushp; |
| 1215 | arm,pl330-periph-burst; |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 1216 | clocks = <&cru ACLK_DMAC1>; |
| 1217 | clock-names = "apb_pclk"; |
| 1218 | }; |
| 1219 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1220 | efuse: efuse@ffb40000 { |
| 1221 | compatible = "rockchip,rk3288-efuse"; |
| 1222 | reg = <0xffb40000 0x10000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1223 | #address-cells = <1>; |
| 1224 | #size-cells = <1>; |
| 1225 | clocks = <&cru PCLK_EFUSE256>; |
| 1226 | clock-names = "pclk_efuse"; |
| 1227 | |
| 1228 | cpu_id: cpu-id@7 { |
| 1229 | reg = <0x07 0x10>; |
| 1230 | }; |
| 1231 | cpu_leakage: cpu_leakage@17 { |
| 1232 | reg = <0x17 0x1>; |
| 1233 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1234 | }; |
| 1235 | |
| 1236 | gic: interrupt-controller@ffc01000 { |
| 1237 | compatible = "arm,gic-400"; |
| 1238 | interrupt-controller; |
| 1239 | #interrupt-cells = <3>; |
| 1240 | #address-cells = <0>; |
| 1241 | |
| 1242 | reg = <0xffc01000 0x1000>, |
| 1243 | <0xffc02000 0x1000>, |
| 1244 | <0xffc04000 0x2000>, |
| 1245 | <0xffc06000 0x2000>; |
| 1246 | interrupts = <GIC_PPI 9 0xf04>; |
| 1247 | }; |
| 1248 | |
| 1249 | cpuidle: cpuidle { |
| 1250 | compatible = "rockchip,rk3288-cpuidle"; |
| 1251 | }; |
| 1252 | |
| 1253 | usbphy: phy { |
| 1254 | compatible = "rockchip,rk3288-usb-phy"; |
| 1255 | rockchip,grf = <&grf>; |
| 1256 | #address-cells = <1>; |
| 1257 | #size-cells = <0>; |
| 1258 | status = "disabled"; |
| 1259 | |
| 1260 | usbphy0: usb-phy0 { |
| 1261 | #phy-cells = <0>; |
| 1262 | reg = <0x320>; |
| 1263 | clocks = <&cru SCLK_OTGPHY0>; |
| 1264 | clock-names = "phyclk"; |
| 1265 | }; |
| 1266 | |
| 1267 | usbphy1: usb-phy1 { |
| 1268 | #phy-cells = <0>; |
| 1269 | reg = <0x334>; |
| 1270 | clocks = <&cru SCLK_OTGPHY1>; |
| 1271 | clock-names = "phyclk"; |
| 1272 | }; |
| 1273 | |
| 1274 | usbphy2: usb-phy2 { |
| 1275 | #phy-cells = <0>; |
| 1276 | reg = <0x348>; |
| 1277 | clocks = <&cru SCLK_OTGPHY2>; |
| 1278 | clock-names = "phyclk"; |
| 1279 | }; |
| 1280 | }; |
| 1281 | |
| 1282 | pinctrl: pinctrl { |
| 1283 | compatible = "rockchip,rk3288-pinctrl"; |
| 1284 | rockchip,grf = <&grf>; |
| 1285 | rockchip,pmu = <&pmu>; |
| 1286 | #address-cells = <1>; |
| 1287 | #size-cells = <1>; |
| 1288 | ranges; |
| 1289 | |
| 1290 | gpio0: gpio0@ff750000 { |
| 1291 | compatible = "rockchip,gpio-bank"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1292 | reg = <0xff750000 0x100>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1293 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; |
| 1294 | clocks = <&cru PCLK_GPIO0>; |
| 1295 | |
| 1296 | gpio-controller; |
| 1297 | #gpio-cells = <2>; |
| 1298 | |
| 1299 | interrupt-controller; |
| 1300 | #interrupt-cells = <2>; |
| 1301 | }; |
| 1302 | |
| 1303 | gpio1: gpio1@ff780000 { |
| 1304 | compatible = "rockchip,gpio-bank"; |
| 1305 | reg = <0xff780000 0x100>; |
| 1306 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
| 1307 | clocks = <&cru PCLK_GPIO1>; |
| 1308 | |
| 1309 | gpio-controller; |
| 1310 | #gpio-cells = <2>; |
| 1311 | |
| 1312 | interrupt-controller; |
| 1313 | #interrupt-cells = <2>; |
| 1314 | }; |
| 1315 | |
| 1316 | gpio2: gpio2@ff790000 { |
| 1317 | compatible = "rockchip,gpio-bank"; |
| 1318 | reg = <0xff790000 0x100>; |
| 1319 | interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; |
| 1320 | clocks = <&cru PCLK_GPIO2>; |
| 1321 | |
| 1322 | gpio-controller; |
| 1323 | #gpio-cells = <2>; |
| 1324 | |
| 1325 | interrupt-controller; |
| 1326 | #interrupt-cells = <2>; |
| 1327 | }; |
| 1328 | |
| 1329 | gpio3: gpio3@ff7a0000 { |
| 1330 | compatible = "rockchip,gpio-bank"; |
| 1331 | reg = <0xff7a0000 0x100>; |
| 1332 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
| 1333 | clocks = <&cru PCLK_GPIO3>; |
| 1334 | |
| 1335 | gpio-controller; |
| 1336 | #gpio-cells = <2>; |
| 1337 | |
| 1338 | interrupt-controller; |
| 1339 | #interrupt-cells = <2>; |
| 1340 | }; |
| 1341 | |
| 1342 | gpio4: gpio4@ff7b0000 { |
| 1343 | compatible = "rockchip,gpio-bank"; |
| 1344 | reg = <0xff7b0000 0x100>; |
| 1345 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
| 1346 | clocks = <&cru PCLK_GPIO4>; |
| 1347 | |
| 1348 | gpio-controller; |
| 1349 | #gpio-cells = <2>; |
| 1350 | |
| 1351 | interrupt-controller; |
| 1352 | #interrupt-cells = <2>; |
| 1353 | }; |
| 1354 | |
| 1355 | gpio5: gpio5@ff7c0000 { |
| 1356 | compatible = "rockchip,gpio-bank"; |
| 1357 | reg = <0xff7c0000 0x100>; |
| 1358 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 1359 | clocks = <&cru PCLK_GPIO5>; |
| 1360 | |
| 1361 | gpio-controller; |
| 1362 | #gpio-cells = <2>; |
| 1363 | |
| 1364 | interrupt-controller; |
| 1365 | #interrupt-cells = <2>; |
| 1366 | }; |
| 1367 | |
| 1368 | gpio6: gpio6@ff7d0000 { |
| 1369 | compatible = "rockchip,gpio-bank"; |
| 1370 | reg = <0xff7d0000 0x100>; |
| 1371 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 1372 | clocks = <&cru PCLK_GPIO6>; |
| 1373 | |
| 1374 | gpio-controller; |
| 1375 | #gpio-cells = <2>; |
| 1376 | |
| 1377 | interrupt-controller; |
| 1378 | #interrupt-cells = <2>; |
| 1379 | }; |
| 1380 | |
| 1381 | gpio7: gpio7@ff7e0000 { |
| 1382 | compatible = "rockchip,gpio-bank"; |
| 1383 | reg = <0xff7e0000 0x100>; |
| 1384 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
| 1385 | clocks = <&cru PCLK_GPIO7>; |
| 1386 | |
| 1387 | gpio-controller; |
| 1388 | #gpio-cells = <2>; |
| 1389 | |
| 1390 | interrupt-controller; |
| 1391 | #interrupt-cells = <2>; |
| 1392 | }; |
| 1393 | |
| 1394 | gpio8: gpio8@ff7f0000 { |
| 1395 | compatible = "rockchip,gpio-bank"; |
| 1396 | reg = <0xff7f0000 0x100>; |
| 1397 | interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
| 1398 | clocks = <&cru PCLK_GPIO8>; |
| 1399 | |
| 1400 | gpio-controller; |
| 1401 | #gpio-cells = <2>; |
| 1402 | |
| 1403 | interrupt-controller; |
| 1404 | #interrupt-cells = <2>; |
| 1405 | }; |
| 1406 | |
Suniel Mahesh | 6d308e7 | 2020-07-21 20:54:36 +0530 | [diff] [blame] | 1407 | hdmi { |
| 1408 | hdmi_cec_c0: hdmi-cec-c0 { |
| 1409 | rockchip,pins = <7 RK_PC0 2 &pcfg_pull_none>; |
| 1410 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1411 | |
| 1412 | hdmi_cec_c7: hdmi-cec-c7 { |
| 1413 | rockchip,pins = <7 RK_PC7 4 &pcfg_pull_none>; |
| 1414 | }; |
| 1415 | |
| 1416 | hdmi_ddc: hdmi-ddc { |
| 1417 | rockchip,pins = <7 RK_PC3 2 &pcfg_pull_none>, |
| 1418 | <7 RK_PC4 2 &pcfg_pull_none>; |
| 1419 | }; |
| 1420 | |
| 1421 | hdmi_ddc_unwedge: hdmi-ddc-unwedge { |
| 1422 | rockchip,pins = <7 RK_PC3 RK_FUNC_GPIO &pcfg_output_low>, |
| 1423 | <7 RK_PC4 2 &pcfg_pull_none>; |
| 1424 | }; |
Suniel Mahesh | 6d308e7 | 2020-07-21 20:54:36 +0530 | [diff] [blame] | 1425 | }; |
| 1426 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1427 | pcfg_output_low: pcfg-output-low { |
| 1428 | output-low; |
| 1429 | }; |
| 1430 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1431 | pcfg_pull_up: pcfg-pull-up { |
| 1432 | bias-pull-up; |
| 1433 | }; |
| 1434 | |
| 1435 | pcfg_pull_down: pcfg-pull-down { |
| 1436 | bias-pull-down; |
| 1437 | }; |
| 1438 | |
| 1439 | pcfg_pull_none: pcfg-pull-none { |
| 1440 | bias-disable; |
| 1441 | }; |
| 1442 | |
| 1443 | pcfg_pull_none_12ma: pcfg-pull-none-12ma { |
| 1444 | bias-disable; |
| 1445 | drive-strength = <12>; |
| 1446 | }; |
| 1447 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1448 | suspend { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1449 | global_pwroff: global-pwroff { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1450 | rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1451 | }; |
| 1452 | |
| 1453 | ddrio_pwroff: ddrio-pwroff { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1454 | rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1455 | }; |
| 1456 | |
| 1457 | ddr0_retention: ddr0-retention { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1458 | rockchip,pins = <0 RK_PA2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1459 | }; |
| 1460 | |
| 1461 | ddr1_retention: ddr1-retention { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1462 | rockchip,pins = <0 RK_PA3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1463 | }; |
| 1464 | }; |
| 1465 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1466 | edp { |
| 1467 | edp_hpd: edp-hpd { |
| 1468 | rockchip,pins = <7 RK_PB3 2 &pcfg_pull_down>; |
| 1469 | }; |
| 1470 | }; |
| 1471 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1472 | i2c0 { |
| 1473 | i2c0_xfer: i2c0-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1474 | rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>, |
| 1475 | <0 RK_PC0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1476 | }; |
| 1477 | }; |
| 1478 | |
| 1479 | i2c1 { |
| 1480 | i2c1_xfer: i2c1-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1481 | rockchip,pins = <8 RK_PA4 1 &pcfg_pull_none>, |
| 1482 | <8 RK_PA5 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1483 | }; |
| 1484 | }; |
| 1485 | |
| 1486 | i2c2 { |
| 1487 | i2c2_xfer: i2c2-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1488 | rockchip,pins = <6 RK_PB1 1 &pcfg_pull_none>, |
| 1489 | <6 RK_PB2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1490 | }; |
| 1491 | }; |
| 1492 | |
| 1493 | i2c3 { |
| 1494 | i2c3_xfer: i2c3-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1495 | rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>, |
| 1496 | <2 RK_PC1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1497 | }; |
| 1498 | }; |
| 1499 | |
| 1500 | i2c4 { |
| 1501 | i2c4_xfer: i2c4-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1502 | rockchip,pins = <7 RK_PC1 1 &pcfg_pull_none>, |
| 1503 | <7 RK_PC2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1504 | }; |
| 1505 | }; |
| 1506 | |
| 1507 | i2c5 { |
| 1508 | i2c5_xfer: i2c5-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1509 | rockchip,pins = <7 RK_PC3 1 &pcfg_pull_none>, |
| 1510 | <7 RK_PC4 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1511 | }; |
| 1512 | }; |
| 1513 | |
| 1514 | i2s0 { |
| 1515 | i2s0_bus: i2s0-bus { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1516 | rockchip,pins = <6 RK_PA0 1 &pcfg_pull_none>, |
| 1517 | <6 RK_PA1 1 &pcfg_pull_none>, |
| 1518 | <6 RK_PA2 1 &pcfg_pull_none>, |
| 1519 | <6 RK_PA3 1 &pcfg_pull_none>, |
| 1520 | <6 RK_PA4 1 &pcfg_pull_none>, |
| 1521 | <6 RK_PB0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1522 | }; |
| 1523 | }; |
| 1524 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1525 | lcdc { |
| 1526 | lcdc_ctl: lcdc-ctl { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1527 | rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>, |
| 1528 | <1 RK_PD1 1 &pcfg_pull_none>, |
| 1529 | <1 RK_PD2 1 &pcfg_pull_none>, |
| 1530 | <1 RK_PD3 1 &pcfg_pull_none>; |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 1531 | }; |
| 1532 | }; |
| 1533 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1534 | sdmmc { |
| 1535 | sdmmc_clk: sdmmc-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1536 | rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1537 | }; |
| 1538 | |
| 1539 | sdmmc_cmd: sdmmc-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1540 | rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1541 | }; |
| 1542 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1543 | sdmmc_cd: sdmmc-cd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1544 | rockchip,pins = <6 RK_PC6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1545 | }; |
| 1546 | |
| 1547 | sdmmc_bus1: sdmmc-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1548 | rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1549 | }; |
| 1550 | |
| 1551 | sdmmc_bus4: sdmmc-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1552 | rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up>, |
| 1553 | <6 RK_PC1 1 &pcfg_pull_up>, |
| 1554 | <6 RK_PC2 1 &pcfg_pull_up>, |
| 1555 | <6 RK_PC3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1556 | }; |
| 1557 | }; |
| 1558 | |
| 1559 | sdio0 { |
| 1560 | sdio0_bus1: sdio0-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1561 | rockchip,pins = <4 RK_PC4 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1562 | }; |
| 1563 | |
| 1564 | sdio0_bus4: sdio0-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1565 | rockchip,pins = <4 RK_PC4 1 &pcfg_pull_up>, |
| 1566 | <4 RK_PC5 1 &pcfg_pull_up>, |
| 1567 | <4 RK_PC6 1 &pcfg_pull_up>, |
| 1568 | <4 RK_PC7 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1569 | }; |
| 1570 | |
| 1571 | sdio0_cmd: sdio0-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1572 | rockchip,pins = <4 RK_PD0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1573 | }; |
| 1574 | |
| 1575 | sdio0_clk: sdio0-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1576 | rockchip,pins = <4 RK_PD1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1577 | }; |
| 1578 | |
| 1579 | sdio0_cd: sdio0-cd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1580 | rockchip,pins = <4 RK_PD2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1581 | }; |
| 1582 | |
| 1583 | sdio0_wp: sdio0-wp { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1584 | rockchip,pins = <4 RK_PD3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1585 | }; |
| 1586 | |
| 1587 | sdio0_pwr: sdio0-pwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1588 | rockchip,pins = <4 RK_PD4 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1589 | }; |
| 1590 | |
| 1591 | sdio0_bkpwr: sdio0-bkpwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1592 | rockchip,pins = <4 RK_PD5 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1593 | }; |
| 1594 | |
| 1595 | sdio0_int: sdio0-int { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1596 | rockchip,pins = <4 RK_PD6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1597 | }; |
| 1598 | }; |
| 1599 | |
| 1600 | sdio1 { |
| 1601 | sdio1_bus1: sdio1-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1602 | rockchip,pins = <3 RK_PD0 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1603 | }; |
| 1604 | |
| 1605 | sdio1_bus4: sdio1-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1606 | rockchip,pins = <3 RK_PD0 4 &pcfg_pull_up>, |
| 1607 | <3 RK_PD1 4 &pcfg_pull_up>, |
| 1608 | <3 RK_PD2 4 &pcfg_pull_up>, |
| 1609 | <3 RK_PD3 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1610 | }; |
| 1611 | |
| 1612 | sdio1_cd: sdio1-cd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1613 | rockchip,pins = <3 RK_PD4 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1614 | }; |
| 1615 | |
| 1616 | sdio1_wp: sdio1-wp { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1617 | rockchip,pins = <3 RK_PD5 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1618 | }; |
| 1619 | |
| 1620 | sdio1_bkpwr: sdio1-bkpwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1621 | rockchip,pins = <3 RK_PD6 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1622 | }; |
| 1623 | |
| 1624 | sdio1_int: sdio1-int { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1625 | rockchip,pins = <3 RK_PD7 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1626 | }; |
| 1627 | |
| 1628 | sdio1_cmd: sdio1-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1629 | rockchip,pins = <4 RK_PA6 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1630 | }; |
| 1631 | |
| 1632 | sdio1_clk: sdio1-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1633 | rockchip,pins = <4 RK_PA7 4 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1634 | }; |
| 1635 | |
| 1636 | sdio1_pwr: sdio1-pwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1637 | rockchip,pins = <4 RK_PB1 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1638 | }; |
| 1639 | }; |
| 1640 | |
| 1641 | emmc { |
| 1642 | emmc_clk: emmc-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1643 | rockchip,pins = <3 RK_PC2 2 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1644 | }; |
| 1645 | |
| 1646 | emmc_cmd: emmc-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1647 | rockchip,pins = <3 RK_PC0 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1648 | }; |
| 1649 | |
| 1650 | emmc_pwr: emmc-pwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1651 | rockchip,pins = <3 RK_PB1 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1652 | }; |
| 1653 | |
| 1654 | emmc_bus1: emmc-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1655 | rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1656 | }; |
| 1657 | |
| 1658 | emmc_bus4: emmc-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1659 | rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>, |
| 1660 | <3 RK_PA1 2 &pcfg_pull_up>, |
| 1661 | <3 RK_PA2 2 &pcfg_pull_up>, |
| 1662 | <3 RK_PA3 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1663 | }; |
| 1664 | |
| 1665 | emmc_bus8: emmc-bus8 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1666 | rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>, |
| 1667 | <3 RK_PA1 2 &pcfg_pull_up>, |
| 1668 | <3 RK_PA2 2 &pcfg_pull_up>, |
| 1669 | <3 RK_PA3 2 &pcfg_pull_up>, |
| 1670 | <3 RK_PA4 2 &pcfg_pull_up>, |
| 1671 | <3 RK_PA5 2 &pcfg_pull_up>, |
| 1672 | <3 RK_PA6 2 &pcfg_pull_up>, |
| 1673 | <3 RK_PA7 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1674 | }; |
| 1675 | }; |
| 1676 | |
| 1677 | spi0 { |
| 1678 | spi0_clk: spi0-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1679 | rockchip,pins = <5 RK_PB4 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1680 | }; |
| 1681 | spi0_cs0: spi0-cs0 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1682 | rockchip,pins = <5 RK_PB5 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1683 | }; |
| 1684 | spi0_tx: spi0-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1685 | rockchip,pins = <5 RK_PB6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1686 | }; |
| 1687 | spi0_rx: spi0-rx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1688 | rockchip,pins = <5 RK_PB7 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1689 | }; |
| 1690 | spi0_cs1: spi0-cs1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1691 | rockchip,pins = <5 RK_PC0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1692 | }; |
| 1693 | }; |
| 1694 | spi1 { |
| 1695 | spi1_clk: spi1-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1696 | rockchip,pins = <7 RK_PB4 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1697 | }; |
| 1698 | spi1_cs0: spi1-cs0 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1699 | rockchip,pins = <7 RK_PB5 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1700 | }; |
| 1701 | spi1_rx: spi1-rx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1702 | rockchip,pins = <7 RK_PB6 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1703 | }; |
| 1704 | spi1_tx: spi1-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1705 | rockchip,pins = <7 RK_PB7 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1706 | }; |
| 1707 | }; |
| 1708 | |
| 1709 | spi2 { |
| 1710 | spi2_cs1: spi2-cs1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1711 | rockchip,pins = <8 RK_PA3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1712 | }; |
| 1713 | spi2_clk: spi2-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1714 | rockchip,pins = <8 RK_PA6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1715 | }; |
| 1716 | spi2_cs0: spi2-cs0 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1717 | rockchip,pins = <8 RK_PA7 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1718 | }; |
| 1719 | spi2_rx: spi2-rx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1720 | rockchip,pins = <8 RK_PB0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1721 | }; |
| 1722 | spi2_tx: spi2-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1723 | rockchip,pins = <8 RK_PB1 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1724 | }; |
| 1725 | }; |
| 1726 | |
| 1727 | uart0 { |
| 1728 | uart0_xfer: uart0-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1729 | rockchip,pins = <4 RK_PC0 1 &pcfg_pull_up>, |
| 1730 | <4 RK_PC1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1731 | }; |
| 1732 | |
| 1733 | uart0_cts: uart0-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1734 | rockchip,pins = <4 RK_PC2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1735 | }; |
| 1736 | |
| 1737 | uart0_rts: uart0-rts { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1738 | rockchip,pins = <4 RK_PC3 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1739 | }; |
| 1740 | }; |
| 1741 | |
| 1742 | uart1 { |
| 1743 | uart1_xfer: uart1-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1744 | rockchip,pins = <5 RK_PB0 1 &pcfg_pull_up>, |
| 1745 | <5 RK_PB1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1746 | }; |
| 1747 | |
| 1748 | uart1_cts: uart1-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1749 | rockchip,pins = <5 RK_PB2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1750 | }; |
| 1751 | |
| 1752 | uart1_rts: uart1-rts { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1753 | rockchip,pins = <5 RK_PB3 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1754 | }; |
| 1755 | }; |
| 1756 | |
| 1757 | uart2 { |
| 1758 | uart2_xfer: uart2-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1759 | rockchip,pins = <7 RK_PC6 1 &pcfg_pull_up>, |
| 1760 | <7 RK_PC7 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1761 | }; |
| 1762 | /* no rts / cts for uart2 */ |
| 1763 | }; |
| 1764 | |
| 1765 | uart3 { |
| 1766 | uart3_xfer: uart3-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1767 | rockchip,pins = <7 RK_PA7 1 &pcfg_pull_up>, |
| 1768 | <7 RK_PB0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1769 | }; |
| 1770 | |
| 1771 | uart3_cts: uart3-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1772 | rockchip,pins = <7 RK_PB1 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1773 | }; |
| 1774 | |
| 1775 | uart3_rts: uart3-rts { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1776 | rockchip,pins = <7 RK_PB2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1777 | }; |
| 1778 | }; |
| 1779 | |
| 1780 | uart4 { |
| 1781 | uart4_xfer: uart4-xfer { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1782 | rockchip,pins = <5 RK_PB7 3 &pcfg_pull_up>, |
| 1783 | <5 RK_PB6 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1784 | }; |
| 1785 | |
| 1786 | uart4_cts: uart4-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1787 | rockchip,pins = <5 RK_PB4 3 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1788 | }; |
| 1789 | |
| 1790 | uart4_rts: uart4-rts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1791 | rockchip,pins = <5 RK_PB5 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1792 | }; |
| 1793 | }; |
| 1794 | |
| 1795 | tsadc { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame] | 1796 | otp_pin: otp-pin { |
| 1797 | rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 1798 | }; |
| 1799 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1800 | otp_out: otp-out { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1801 | rockchip,pins = <0 RK_PB2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1802 | }; |
| 1803 | }; |
| 1804 | |
| 1805 | pwm0 { |
| 1806 | pwm0_pin: pwm0-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1807 | rockchip,pins = <7 RK_PA0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1808 | }; |
| 1809 | }; |
| 1810 | |
| 1811 | pwm1 { |
| 1812 | pwm1_pin: pwm1-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1813 | rockchip,pins = <7 RK_PA1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1814 | }; |
| 1815 | }; |
| 1816 | |
| 1817 | pwm2 { |
| 1818 | pwm2_pin: pwm2-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1819 | rockchip,pins = <7 RK_PC6 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1820 | }; |
| 1821 | }; |
| 1822 | |
| 1823 | pwm3 { |
| 1824 | pwm3_pin: pwm3-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1825 | rockchip,pins = <7 RK_PC7 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1826 | }; |
| 1827 | }; |
| 1828 | |
| 1829 | gmac { |
| 1830 | rgmii_pins: rgmii-pins { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1831 | rockchip,pins = <3 RK_PD6 3 &pcfg_pull_none>, |
| 1832 | <3 RK_PD7 3 &pcfg_pull_none>, |
| 1833 | <3 RK_PD2 3 &pcfg_pull_none>, |
| 1834 | <3 RK_PD3 3 &pcfg_pull_none>, |
| 1835 | <3 RK_PD4 3 &pcfg_pull_none_12ma>, |
| 1836 | <3 RK_PD5 3 &pcfg_pull_none_12ma>, |
| 1837 | <3 RK_PD0 3 &pcfg_pull_none_12ma>, |
| 1838 | <3 RK_PD1 3 &pcfg_pull_none_12ma>, |
| 1839 | <4 RK_PA0 3 &pcfg_pull_none>, |
| 1840 | <4 RK_PA5 3 &pcfg_pull_none>, |
| 1841 | <4 RK_PA6 3 &pcfg_pull_none>, |
| 1842 | <4 RK_PB1 3 &pcfg_pull_none_12ma>, |
| 1843 | <4 RK_PA4 3 &pcfg_pull_none_12ma>, |
| 1844 | <4 RK_PA1 3 &pcfg_pull_none>, |
| 1845 | <4 RK_PA3 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1846 | }; |
| 1847 | |
| 1848 | rmii_pins: rmii-pins { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1849 | rockchip,pins = <3 RK_PD6 3 &pcfg_pull_none>, |
| 1850 | <3 RK_PD7 3 &pcfg_pull_none>, |
| 1851 | <3 RK_PD4 3 &pcfg_pull_none>, |
| 1852 | <3 RK_PD5 3 &pcfg_pull_none>, |
| 1853 | <4 RK_PA0 3 &pcfg_pull_none>, |
| 1854 | <4 RK_PA5 3 &pcfg_pull_none>, |
| 1855 | <4 RK_PA4 3 &pcfg_pull_none>, |
| 1856 | <4 RK_PA1 3 &pcfg_pull_none>, |
| 1857 | <4 RK_PA2 3 &pcfg_pull_none>, |
| 1858 | <4 RK_PA3 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1859 | }; |
| 1860 | }; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 1861 | |
| 1862 | spdif { |
| 1863 | spdif_tx: spdif-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1864 | rockchip,pins = <6 RK_PB3 1 &pcfg_pull_none>; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 1865 | }; |
| 1866 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1867 | }; |
| 1868 | |
| 1869 | power: power-controller { |
| 1870 | compatible = "rockchip,rk3288-power-controller"; |
| 1871 | #power-domain-cells = <1>; |
| 1872 | rockchip,pmu = <&pmu>; |
| 1873 | #address-cells = <1>; |
| 1874 | #size-cells = <0>; |
| 1875 | |
| 1876 | pd_gpu { |
| 1877 | reg = <RK3288_PD_GPU>; |
| 1878 | clocks = <&cru ACLK_GPU>; |
| 1879 | }; |
| 1880 | |
| 1881 | pd_hevc { |
| 1882 | reg = <RK3288_PD_HEVC>; |
| 1883 | clocks = <&cru ACLK_HEVC>, |
| 1884 | <&cru SCLK_HEVC_CABAC>, |
| 1885 | <&cru SCLK_HEVC_CORE>, |
| 1886 | <&cru HCLK_HEVC>; |
| 1887 | }; |
| 1888 | |
| 1889 | pd_vio { |
| 1890 | reg = <RK3288_PD_VIO>; |
| 1891 | clocks = <&cru ACLK_IEP>, |
| 1892 | <&cru ACLK_ISP>, |
| 1893 | <&cru ACLK_RGA>, |
| 1894 | <&cru ACLK_VIP>, |
| 1895 | <&cru ACLK_VOP0>, |
| 1896 | <&cru ACLK_VOP1>, |
| 1897 | <&cru DCLK_VOP0>, |
| 1898 | <&cru DCLK_VOP1>, |
| 1899 | <&cru HCLK_IEP>, |
| 1900 | <&cru HCLK_ISP>, |
| 1901 | <&cru HCLK_RGA>, |
| 1902 | <&cru HCLK_VIP>, |
| 1903 | <&cru HCLK_VOP0>, |
| 1904 | <&cru HCLK_VOP1>, |
| 1905 | <&cru PCLK_EDP_CTRL>, |
| 1906 | <&cru PCLK_HDMI_CTRL>, |
| 1907 | <&cru PCLK_LVDS_PHY>, |
| 1908 | <&cru PCLK_MIPI_CSI>, |
| 1909 | <&cru PCLK_MIPI_DSI0>, |
| 1910 | <&cru PCLK_MIPI_DSI1>, |
| 1911 | <&cru SCLK_EDP_24M>, |
| 1912 | <&cru SCLK_EDP>, |
| 1913 | <&cru SCLK_HDMI_CEC>, |
| 1914 | <&cru SCLK_HDMI_HDCP>, |
| 1915 | <&cru SCLK_ISP_JPE>, |
| 1916 | <&cru SCLK_ISP>, |
| 1917 | <&cru SCLK_RGA>; |
| 1918 | }; |
| 1919 | |
| 1920 | pd_video { |
| 1921 | reg = <RK3288_PD_VIDEO>; |
| 1922 | clocks = <&cru ACLK_VCODEC>, |
| 1923 | <&cru HCLK_VCODEC>; |
| 1924 | }; |
| 1925 | }; |
| 1926 | }; |