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>; |
| 765 | }; |
| 766 | |
| 767 | wdt: watchdog@ff800000 { |
| 768 | compatible = "rockchip,rk3288-wdt", "snps,dw-wdt"; |
| 769 | reg = <0xff800000 0x100>; |
| 770 | clocks = <&cru PCLK_WDT>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 771 | interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 772 | status = "disabled"; |
| 773 | }; |
| 774 | |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 775 | spdif: sound@ff88b0000 { |
| 776 | compatible = "rockchip,rk3288-spdif", "rockchip,rk3066-spdif"; |
| 777 | reg = <0xff8b0000 0x10000>; |
| 778 | #sound-dai-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 779 | clocks = <&cru SCLK_SPDIF8CH>, <&cru HCLK_SPDIF8CH>; |
| 780 | clock-names = "mclk", "hclk"; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 781 | dmas = <&dmac_bus_s 3>; |
| 782 | dma-names = "tx"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 783 | interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 784 | pinctrl-names = "default"; |
| 785 | pinctrl-0 = <&spdif_tx>; |
| 786 | rockchip,grf = <&grf>; |
| 787 | status = "disabled"; |
| 788 | }; |
| 789 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 790 | i2s: i2s@ff890000 { |
| 791 | compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s"; |
| 792 | reg = <0xff890000 0x10000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 793 | #sound-dai-cells = <0>; |
| 794 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; |
| 795 | clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0>; |
| 796 | clock-names = "i2s_clk", "i2s_hclk"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 797 | dmas = <&dmac_bus_s 0>, <&dmac_bus_s 1>; |
| 798 | dma-names = "tx", "rx"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 799 | pinctrl-names = "default"; |
| 800 | pinctrl-0 = <&i2s0_bus>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 801 | rockchip,playback-channels = <8>; |
| 802 | rockchip,capture-channels = <2>; |
| 803 | status = "disabled"; |
| 804 | }; |
| 805 | |
| 806 | crypto: crypto@ff8a0000 { |
| 807 | compatible = "rockchip,rk3288-crypto"; |
| 808 | reg = <0xff8a0000 0x4000>; |
| 809 | interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; |
| 810 | clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>, |
| 811 | <&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>; |
| 812 | clock-names = "aclk", "hclk", "sclk", "apb_pclk"; |
| 813 | resets = <&cru SRST_CRYPTO>; |
| 814 | reset-names = "crypto-rst"; |
| 815 | }; |
| 816 | |
| 817 | iep_mmu: iommu@ff900800 { |
| 818 | compatible = "rockchip,iommu"; |
| 819 | reg = <0xff900800 0x40>; |
| 820 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 821 | clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>; |
| 822 | clock-names = "aclk", "iface"; |
| 823 | #iommu-cells = <0>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 824 | status = "disabled"; |
| 825 | }; |
| 826 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 827 | isp_mmu: iommu@ff914000 { |
| 828 | compatible = "rockchip,iommu"; |
| 829 | reg = <0xff914000 0x100>, <0xff915000 0x100>; |
| 830 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
| 831 | clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>; |
| 832 | clock-names = "aclk", "iface"; |
| 833 | #iommu-cells = <0>; |
| 834 | rockchip,disable-mmu-reset; |
| 835 | status = "disabled"; |
| 836 | }; |
| 837 | |
| 838 | rga: rga@ff920000 { |
| 839 | compatible = "rockchip,rk3288-rga"; |
| 840 | reg = <0xff920000 0x180>; |
| 841 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; |
| 842 | clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>; |
| 843 | clock-names = "aclk", "hclk", "sclk"; |
| 844 | power-domains = <&power RK3288_PD_VIO>; |
| 845 | resets = <&cru SRST_RGA_CORE>, <&cru SRST_RGA_AXI>, <&cru SRST_RGA_AHB>; |
| 846 | reset-names = "core", "axi", "ahb"; |
| 847 | }; |
| 848 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 849 | vopb: vop@ff930000 { |
| 850 | compatible = "rockchip,rk3288-vop"; |
| 851 | reg = <0xff930000 0x19c>; |
| 852 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; |
| 853 | clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; |
| 854 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 855 | power-domains = <&power RK3288_PD_VIO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 856 | resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>; |
| 857 | reset-names = "axi", "ahb", "dclk"; |
| 858 | iommus = <&vopb_mmu>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 859 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 860 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 861 | vopb_out: port { |
| 862 | #address-cells = <1>; |
| 863 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 864 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 865 | vopb_out_edp: endpoint@0 { |
| 866 | reg = <0>; |
| 867 | remote-endpoint = <&edp_in_vopb>; |
| 868 | }; |
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_hdmi: endpoint@1 { |
| 871 | reg = <1>; |
| 872 | remote-endpoint = <&hdmi_in_vopb>; |
| 873 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 874 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 875 | vopb_out_lvds: endpoint@2 { |
| 876 | reg = <2>; |
| 877 | remote-endpoint = <&lvds_in_vopb>; |
| 878 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 879 | |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 880 | vopb_out_mipi: endpoint@3 { |
| 881 | reg = <3>; |
| 882 | remote-endpoint = <&mipi_in_vopb>; |
| 883 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 884 | }; |
| 885 | }; |
| 886 | |
| 887 | vopb_mmu: iommu@ff930300 { |
| 888 | compatible = "rockchip,iommu"; |
| 889 | reg = <0xff930300 0x100>; |
| 890 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 891 | clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; |
| 892 | clock-names = "aclk", "iface"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 893 | power-domains = <&power RK3288_PD_VIO>; |
| 894 | #iommu-cells = <0>; |
| 895 | status = "disabled"; |
| 896 | }; |
| 897 | |
| 898 | vopl: vop@ff940000 { |
| 899 | compatible = "rockchip,rk3288-vop"; |
| 900 | reg = <0xff940000 0x19c>; |
| 901 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
| 902 | clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; |
| 903 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 904 | power-domains = <&power RK3288_PD_VIO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 905 | resets = <&cru SRST_LCDC1_AXI>, <&cru SRST_LCDC1_AHB>, <&cru SRST_LCDC1_DCLK>; |
| 906 | reset-names = "axi", "ahb", "dclk"; |
| 907 | iommus = <&vopl_mmu>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 908 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 909 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 910 | vopl_out: port { |
| 911 | #address-cells = <1>; |
| 912 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 913 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 914 | vopl_out_edp: endpoint@0 { |
| 915 | reg = <0>; |
| 916 | remote-endpoint = <&edp_in_vopl>; |
| 917 | }; |
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_hdmi: endpoint@1 { |
| 920 | reg = <1>; |
| 921 | remote-endpoint = <&hdmi_in_vopl>; |
| 922 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 923 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 924 | vopl_out_lvds: endpoint@2 { |
| 925 | reg = <2>; |
| 926 | remote-endpoint = <&lvds_in_vopl>; |
| 927 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 928 | |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 929 | vopl_out_mipi: endpoint@3 { |
| 930 | reg = <3>; |
| 931 | remote-endpoint = <&mipi_in_vopl>; |
| 932 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 933 | }; |
| 934 | }; |
| 935 | |
| 936 | vopl_mmu: iommu@ff940300 { |
| 937 | compatible = "rockchip,iommu"; |
| 938 | reg = <0xff940300 0x100>; |
| 939 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 940 | clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; |
| 941 | clock-names = "aclk", "iface"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 942 | power-domains = <&power RK3288_PD_VIO>; |
| 943 | #iommu-cells = <0>; |
| 944 | status = "disabled"; |
| 945 | }; |
| 946 | |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 947 | mipi_dsi: mipi@ff960000 { |
| 948 | compatible = "rockchip,rk3288_mipi_dsi"; |
| 949 | reg = <0xff960000 0x4000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 950 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 951 | clocks = <&cru PCLK_MIPI_DSI0>; |
| 952 | clock-names = "pclk_mipi"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 953 | power-domains = <&power RK3288_PD_VIO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 954 | rockchip,grf = <&grf>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 955 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 956 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 957 | ports { |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 958 | mipi_in: port { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 959 | #address-cells = <1>; |
| 960 | #size-cells = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 961 | mipi_in_vopb: endpoint@0 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 962 | reg = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 963 | remote-endpoint = <&vopb_out_mipi>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 964 | }; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 965 | mipi_in_vopl: endpoint@1 { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 966 | reg = <1>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 967 | remote-endpoint = <&vopl_out_mipi>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 968 | }; |
| 969 | }; |
| 970 | }; |
| 971 | }; |
| 972 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 973 | lvds: lvds@ff96c000 { |
| 974 | compatible = "rockchip,rk3288-lvds"; |
| 975 | reg = <0xff96c000 0x4000>; |
| 976 | clocks = <&cru PCLK_LVDS_PHY>; |
| 977 | clock-names = "pclk_lvds"; |
| 978 | pinctrl-names = "default"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 979 | pinctrl-0 = <&lcdc_ctl>; |
| 980 | power-domains = <&power RK3288_PD_VIO>; |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 981 | rockchip,grf = <&grf>; |
| 982 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 983 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 984 | ports { |
| 985 | #address-cells = <1>; |
| 986 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 987 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 988 | lvds_in: port@0 { |
| 989 | reg = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 990 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 991 | #address-cells = <1>; |
| 992 | #size-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 993 | |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 994 | lvds_in_vopb: endpoint@0 { |
| 995 | reg = <0>; |
| 996 | remote-endpoint = <&vopb_out_lvds>; |
| 997 | }; |
| 998 | lvds_in_vopl: endpoint@1 { |
| 999 | reg = <1>; |
| 1000 | remote-endpoint = <&vopl_out_lvds>; |
| 1001 | }; |
| 1002 | }; |
| 1003 | }; |
| 1004 | }; |
| 1005 | |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1006 | edp: dp@ff970000 { |
| 1007 | compatible = "rockchip,rk3288-edp"; |
| 1008 | reg = <0xff970000 0x4000>; |
| 1009 | interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; |
| 1010 | clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1011 | clock-names = "clk_edp", "clk_edp_24m", "pclk_edp"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1012 | resets = <&cru SRST_EDP>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1013 | reset-names = "edp"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1014 | rockchip,grf = <&grf>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1015 | power-domains = <&power RK3288_PD_VIO>; |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1016 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1017 | |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1018 | ports { |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1019 | edp_in: port { |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1020 | #address-cells = <1>; |
| 1021 | #size-cells = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1022 | edp_in_vopb: endpoint@0 { |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1023 | reg = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1024 | remote-endpoint = <&vopb_out_edp>; |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1025 | }; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1026 | edp_in_vopl: endpoint@1 { |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1027 | reg = <1>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1028 | remote-endpoint = <&vopl_out_edp>; |
| 1029 | }; |
| 1030 | }; |
| 1031 | }; |
| 1032 | }; |
| 1033 | |
| 1034 | hdmi: hdmi@ff980000 { |
| 1035 | compatible = "rockchip,rk3288-dw-hdmi"; |
| 1036 | reg = <0xff980000 0x20000>; |
| 1037 | reg-io-width = <4>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1038 | #sound-dai-cells = <0>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1039 | rockchip,grf = <&grf>; |
| 1040 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
| 1041 | clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>; |
| 1042 | clock-names = "iahb", "isfr"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1043 | power-domains = <&power RK3288_PD_VIO>; |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1044 | status = "disabled"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1045 | |
Johan Jonker | 63f0ffb | 2022-05-02 12:19:34 +0200 | [diff] [blame] | 1046 | ports { |
| 1047 | hdmi_in: port { |
| 1048 | #address-cells = <1>; |
| 1049 | #size-cells = <0>; |
| 1050 | hdmi_in_vopb: endpoint@0 { |
| 1051 | reg = <0>; |
| 1052 | remote-endpoint = <&vopb_out_hdmi>; |
| 1053 | }; |
| 1054 | hdmi_in_vopl: endpoint@1 { |
| 1055 | reg = <1>; |
| 1056 | remote-endpoint = <&vopl_out_hdmi>; |
Eric Gao | 590c4ac | 2017-05-02 18:32:45 +0800 | [diff] [blame] | 1057 | }; |
| 1058 | }; |
| 1059 | }; |
| 1060 | }; |
| 1061 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1062 | vpu: video-codec@ff9a0000 { |
| 1063 | compatible = "rockchip,rk3288-vpu"; |
| 1064 | reg = <0xff9a0000 0x800>; |
| 1065 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1066 | <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1067 | interrupt-names = "vepu", "vdpu"; |
| 1068 | clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1069 | clock-names = "aclk", "hclk"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1070 | iommus = <&vpu_mmu>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1071 | power-domains = <&power RK3288_PD_VIDEO>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1072 | }; |
| 1073 | |
| 1074 | vpu_mmu: iommu@ff9a0800 { |
| 1075 | compatible = "rockchip,iommu"; |
| 1076 | reg = <0xff9a0800 0x100>; |
| 1077 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1078 | clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; |
| 1079 | clock-names = "aclk", "iface"; |
| 1080 | #iommu-cells = <0>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1081 | power-domains = <&power RK3288_PD_VIDEO>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1082 | }; |
| 1083 | |
| 1084 | hevc_mmu: iommu@ff9c0440 { |
| 1085 | compatible = "rockchip,iommu"; |
| 1086 | reg = <0xff9c0440 0x40>, <0xff9c0480 0x40>; |
| 1087 | interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; |
| 1088 | clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>; |
| 1089 | clock-names = "aclk", "iface"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1090 | #iommu-cells = <0>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1091 | status = "disabled"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1092 | }; |
| 1093 | |
| 1094 | gpu: gpu@ffa30000 { |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1095 | compatible = "rockchip,rk3288-mali", "arm,mali-t760"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1096 | reg = <0xffa30000 0x10000>; |
| 1097 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, |
| 1098 | <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, |
| 1099 | <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1100 | interrupt-names = "job", "mmu", "gpu"; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1101 | clocks = <&cru ACLK_GPU>; |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1102 | operating-points-v2 = <&gpu_opp_table>; |
Johan Jonker | f816c74 | 2022-09-28 16:24:06 +0200 | [diff] [blame] | 1103 | #cooling-cells = <2>; /* min followed by max */ |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1104 | power-domains = <&power RK3288_PD_GPU>; |
| 1105 | status = "disabled"; |
| 1106 | }; |
| 1107 | |
Johan Jonker | e116f95 | 2022-09-28 16:24:14 +0200 | [diff] [blame] | 1108 | gpu_opp_table: opp-table-1 { |
| 1109 | compatible = "operating-points-v2"; |
| 1110 | |
| 1111 | opp-100000000 { |
| 1112 | opp-hz = /bits/ 64 <100000000>; |
| 1113 | opp-microvolt = <950000>; |
| 1114 | }; |
| 1115 | opp-200000000 { |
| 1116 | opp-hz = /bits/ 64 <200000000>; |
| 1117 | opp-microvolt = <950000>; |
| 1118 | }; |
| 1119 | opp-300000000 { |
| 1120 | opp-hz = /bits/ 64 <300000000>; |
| 1121 | opp-microvolt = <1000000>; |
| 1122 | }; |
| 1123 | opp-400000000 { |
| 1124 | opp-hz = /bits/ 64 <400000000>; |
| 1125 | opp-microvolt = <1100000>; |
| 1126 | }; |
| 1127 | opp-600000000 { |
| 1128 | opp-hz = /bits/ 64 <600000000>; |
| 1129 | opp-microvolt = <1250000>; |
| 1130 | }; |
| 1131 | }; |
| 1132 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1133 | qos_gpu_r: qos@ffaa0000 { |
| 1134 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1135 | reg = <0xffaa0000 0x20>; |
| 1136 | }; |
| 1137 | |
| 1138 | qos_gpu_w: qos@ffaa0080 { |
| 1139 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1140 | reg = <0xffaa0080 0x20>; |
| 1141 | }; |
| 1142 | |
| 1143 | qos_vio1_vop: qos@ffad0000 { |
| 1144 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1145 | reg = <0xffad0000 0x20>; |
| 1146 | }; |
| 1147 | |
| 1148 | qos_vio1_isp_w0: qos@ffad0100 { |
| 1149 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1150 | reg = <0xffad0100 0x20>; |
| 1151 | }; |
| 1152 | |
| 1153 | qos_vio1_isp_w1: qos@ffad0180 { |
| 1154 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1155 | reg = <0x0 0xffad0180 0x0 0x20>; |
| 1156 | }; |
| 1157 | |
| 1158 | qos_vio0_vop: qos@ffad0400 { |
| 1159 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1160 | reg = <0x0 0xffad0400 0x0 0x20>; |
| 1161 | }; |
| 1162 | |
| 1163 | qos_vio0_vip: qos@ffad0480 { |
| 1164 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1165 | reg = <0xffad0480 0x20>; |
| 1166 | }; |
| 1167 | |
| 1168 | qos_vio0_iep: qos@ffad0500 { |
| 1169 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1170 | reg = <0xffad0500 0x20>; |
| 1171 | }; |
| 1172 | |
| 1173 | qos_vio2_rga_r: qos@ffad0800 { |
| 1174 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1175 | reg = <0xffad0800 0x20>; |
| 1176 | }; |
| 1177 | |
| 1178 | qos_vio2_rga_w: qos@ffad0880 { |
| 1179 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1180 | reg = <0xffad0880 0x20>; |
| 1181 | }; |
| 1182 | |
| 1183 | qos_vio1_isp_r: qos@ffad0900 { |
| 1184 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1185 | reg = <0xffad0900 0x20>; |
| 1186 | }; |
| 1187 | |
| 1188 | qos_video: qos@ffae0000 { |
| 1189 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1190 | reg = <0xffae0000 0x20>; |
| 1191 | }; |
| 1192 | |
| 1193 | qos_hevc_r: qos@ffaf0000 { |
| 1194 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1195 | reg = <0xffaf0000 0x20>; |
| 1196 | }; |
| 1197 | |
| 1198 | qos_hevc_w: qos@ffaf0080 { |
| 1199 | compatible = "rockchip,rk3288-qos", "syscon"; |
| 1200 | reg = <0xffaf0080 0x20>; |
| 1201 | }; |
| 1202 | |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 1203 | dmac_bus_s: dma-controller@ffb20000 { |
| 1204 | compatible = "arm,pl330", "arm,primecell"; |
| 1205 | reg = <0xffb20000 0x4000>; |
| 1206 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, |
| 1207 | <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 1208 | #dma-cells = <1>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1209 | arm,pl330-broken-no-flushp; |
| 1210 | arm,pl330-periph-burst; |
Johan Jonker | 75d78eb | 2022-05-02 13:22:55 +0200 | [diff] [blame] | 1211 | clocks = <&cru ACLK_DMAC1>; |
| 1212 | clock-names = "apb_pclk"; |
| 1213 | }; |
| 1214 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1215 | efuse: efuse@ffb40000 { |
| 1216 | compatible = "rockchip,rk3288-efuse"; |
| 1217 | reg = <0xffb40000 0x10000>; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1218 | #address-cells = <1>; |
| 1219 | #size-cells = <1>; |
| 1220 | clocks = <&cru PCLK_EFUSE256>; |
| 1221 | clock-names = "pclk_efuse"; |
| 1222 | |
| 1223 | cpu_id: cpu-id@7 { |
| 1224 | reg = <0x07 0x10>; |
| 1225 | }; |
| 1226 | cpu_leakage: cpu_leakage@17 { |
| 1227 | reg = <0x17 0x1>; |
| 1228 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1229 | }; |
| 1230 | |
| 1231 | gic: interrupt-controller@ffc01000 { |
| 1232 | compatible = "arm,gic-400"; |
| 1233 | interrupt-controller; |
| 1234 | #interrupt-cells = <3>; |
| 1235 | #address-cells = <0>; |
| 1236 | |
| 1237 | reg = <0xffc01000 0x1000>, |
| 1238 | <0xffc02000 0x1000>, |
| 1239 | <0xffc04000 0x2000>, |
| 1240 | <0xffc06000 0x2000>; |
| 1241 | interrupts = <GIC_PPI 9 0xf04>; |
| 1242 | }; |
| 1243 | |
| 1244 | cpuidle: cpuidle { |
| 1245 | compatible = "rockchip,rk3288-cpuidle"; |
| 1246 | }; |
| 1247 | |
| 1248 | usbphy: phy { |
| 1249 | compatible = "rockchip,rk3288-usb-phy"; |
| 1250 | rockchip,grf = <&grf>; |
| 1251 | #address-cells = <1>; |
| 1252 | #size-cells = <0>; |
| 1253 | status = "disabled"; |
| 1254 | |
| 1255 | usbphy0: usb-phy0 { |
| 1256 | #phy-cells = <0>; |
| 1257 | reg = <0x320>; |
| 1258 | clocks = <&cru SCLK_OTGPHY0>; |
| 1259 | clock-names = "phyclk"; |
| 1260 | }; |
| 1261 | |
| 1262 | usbphy1: usb-phy1 { |
| 1263 | #phy-cells = <0>; |
| 1264 | reg = <0x334>; |
| 1265 | clocks = <&cru SCLK_OTGPHY1>; |
| 1266 | clock-names = "phyclk"; |
| 1267 | }; |
| 1268 | |
| 1269 | usbphy2: usb-phy2 { |
| 1270 | #phy-cells = <0>; |
| 1271 | reg = <0x348>; |
| 1272 | clocks = <&cru SCLK_OTGPHY2>; |
| 1273 | clock-names = "phyclk"; |
| 1274 | }; |
| 1275 | }; |
| 1276 | |
| 1277 | pinctrl: pinctrl { |
| 1278 | compatible = "rockchip,rk3288-pinctrl"; |
| 1279 | rockchip,grf = <&grf>; |
| 1280 | rockchip,pmu = <&pmu>; |
| 1281 | #address-cells = <1>; |
| 1282 | #size-cells = <1>; |
| 1283 | ranges; |
| 1284 | |
| 1285 | gpio0: gpio0@ff750000 { |
| 1286 | compatible = "rockchip,gpio-bank"; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1287 | reg = <0xff750000 0x100>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1288 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; |
| 1289 | clocks = <&cru PCLK_GPIO0>; |
| 1290 | |
| 1291 | gpio-controller; |
| 1292 | #gpio-cells = <2>; |
| 1293 | |
| 1294 | interrupt-controller; |
| 1295 | #interrupt-cells = <2>; |
| 1296 | }; |
| 1297 | |
| 1298 | gpio1: gpio1@ff780000 { |
| 1299 | compatible = "rockchip,gpio-bank"; |
| 1300 | reg = <0xff780000 0x100>; |
| 1301 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
| 1302 | clocks = <&cru PCLK_GPIO1>; |
| 1303 | |
| 1304 | gpio-controller; |
| 1305 | #gpio-cells = <2>; |
| 1306 | |
| 1307 | interrupt-controller; |
| 1308 | #interrupt-cells = <2>; |
| 1309 | }; |
| 1310 | |
| 1311 | gpio2: gpio2@ff790000 { |
| 1312 | compatible = "rockchip,gpio-bank"; |
| 1313 | reg = <0xff790000 0x100>; |
| 1314 | interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; |
| 1315 | clocks = <&cru PCLK_GPIO2>; |
| 1316 | |
| 1317 | gpio-controller; |
| 1318 | #gpio-cells = <2>; |
| 1319 | |
| 1320 | interrupt-controller; |
| 1321 | #interrupt-cells = <2>; |
| 1322 | }; |
| 1323 | |
| 1324 | gpio3: gpio3@ff7a0000 { |
| 1325 | compatible = "rockchip,gpio-bank"; |
| 1326 | reg = <0xff7a0000 0x100>; |
| 1327 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
| 1328 | clocks = <&cru PCLK_GPIO3>; |
| 1329 | |
| 1330 | gpio-controller; |
| 1331 | #gpio-cells = <2>; |
| 1332 | |
| 1333 | interrupt-controller; |
| 1334 | #interrupt-cells = <2>; |
| 1335 | }; |
| 1336 | |
| 1337 | gpio4: gpio4@ff7b0000 { |
| 1338 | compatible = "rockchip,gpio-bank"; |
| 1339 | reg = <0xff7b0000 0x100>; |
| 1340 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
| 1341 | clocks = <&cru PCLK_GPIO4>; |
| 1342 | |
| 1343 | gpio-controller; |
| 1344 | #gpio-cells = <2>; |
| 1345 | |
| 1346 | interrupt-controller; |
| 1347 | #interrupt-cells = <2>; |
| 1348 | }; |
| 1349 | |
| 1350 | gpio5: gpio5@ff7c0000 { |
| 1351 | compatible = "rockchip,gpio-bank"; |
| 1352 | reg = <0xff7c0000 0x100>; |
| 1353 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 1354 | clocks = <&cru PCLK_GPIO5>; |
| 1355 | |
| 1356 | gpio-controller; |
| 1357 | #gpio-cells = <2>; |
| 1358 | |
| 1359 | interrupt-controller; |
| 1360 | #interrupt-cells = <2>; |
| 1361 | }; |
| 1362 | |
| 1363 | gpio6: gpio6@ff7d0000 { |
| 1364 | compatible = "rockchip,gpio-bank"; |
| 1365 | reg = <0xff7d0000 0x100>; |
| 1366 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 1367 | clocks = <&cru PCLK_GPIO6>; |
| 1368 | |
| 1369 | gpio-controller; |
| 1370 | #gpio-cells = <2>; |
| 1371 | |
| 1372 | interrupt-controller; |
| 1373 | #interrupt-cells = <2>; |
| 1374 | }; |
| 1375 | |
| 1376 | gpio7: gpio7@ff7e0000 { |
| 1377 | compatible = "rockchip,gpio-bank"; |
| 1378 | reg = <0xff7e0000 0x100>; |
| 1379 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
| 1380 | clocks = <&cru PCLK_GPIO7>; |
| 1381 | |
| 1382 | gpio-controller; |
| 1383 | #gpio-cells = <2>; |
| 1384 | |
| 1385 | interrupt-controller; |
| 1386 | #interrupt-cells = <2>; |
| 1387 | }; |
| 1388 | |
| 1389 | gpio8: gpio8@ff7f0000 { |
| 1390 | compatible = "rockchip,gpio-bank"; |
| 1391 | reg = <0xff7f0000 0x100>; |
| 1392 | interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
| 1393 | clocks = <&cru PCLK_GPIO8>; |
| 1394 | |
| 1395 | gpio-controller; |
| 1396 | #gpio-cells = <2>; |
| 1397 | |
| 1398 | interrupt-controller; |
| 1399 | #interrupt-cells = <2>; |
| 1400 | }; |
| 1401 | |
Suniel Mahesh | 6d308e7 | 2020-07-21 20:54:36 +0530 | [diff] [blame] | 1402 | hdmi { |
| 1403 | hdmi_cec_c0: hdmi-cec-c0 { |
| 1404 | rockchip,pins = <7 RK_PC0 2 &pcfg_pull_none>; |
| 1405 | }; |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1406 | |
| 1407 | hdmi_cec_c7: hdmi-cec-c7 { |
| 1408 | rockchip,pins = <7 RK_PC7 4 &pcfg_pull_none>; |
| 1409 | }; |
| 1410 | |
| 1411 | hdmi_ddc: hdmi-ddc { |
| 1412 | rockchip,pins = <7 RK_PC3 2 &pcfg_pull_none>, |
| 1413 | <7 RK_PC4 2 &pcfg_pull_none>; |
| 1414 | }; |
| 1415 | |
| 1416 | hdmi_ddc_unwedge: hdmi-ddc-unwedge { |
| 1417 | rockchip,pins = <7 RK_PC3 RK_FUNC_GPIO &pcfg_output_low>, |
| 1418 | <7 RK_PC4 2 &pcfg_pull_none>; |
| 1419 | }; |
Suniel Mahesh | 6d308e7 | 2020-07-21 20:54:36 +0530 | [diff] [blame] | 1420 | }; |
| 1421 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1422 | pcfg_output_low: pcfg-output-low { |
| 1423 | output-low; |
| 1424 | }; |
| 1425 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1426 | pcfg_pull_up: pcfg-pull-up { |
| 1427 | bias-pull-up; |
| 1428 | }; |
| 1429 | |
| 1430 | pcfg_pull_down: pcfg-pull-down { |
| 1431 | bias-pull-down; |
| 1432 | }; |
| 1433 | |
| 1434 | pcfg_pull_none: pcfg-pull-none { |
| 1435 | bias-disable; |
| 1436 | }; |
| 1437 | |
| 1438 | pcfg_pull_none_12ma: pcfg-pull-none-12ma { |
| 1439 | bias-disable; |
| 1440 | drive-strength = <12>; |
| 1441 | }; |
| 1442 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1443 | suspend { |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1444 | global_pwroff: global-pwroff { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1445 | rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1446 | }; |
| 1447 | |
| 1448 | ddrio_pwroff: ddrio-pwroff { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1449 | rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1450 | }; |
| 1451 | |
| 1452 | ddr0_retention: ddr0-retention { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1453 | rockchip,pins = <0 RK_PA2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1454 | }; |
| 1455 | |
| 1456 | ddr1_retention: ddr1-retention { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1457 | rockchip,pins = <0 RK_PA3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1458 | }; |
| 1459 | }; |
| 1460 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1461 | edp { |
| 1462 | edp_hpd: edp-hpd { |
| 1463 | rockchip,pins = <7 RK_PB3 2 &pcfg_pull_down>; |
| 1464 | }; |
| 1465 | }; |
| 1466 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1467 | i2c0 { |
| 1468 | i2c0_xfer: i2c0-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1469 | rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>, |
| 1470 | <0 RK_PC0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1471 | }; |
| 1472 | }; |
| 1473 | |
| 1474 | i2c1 { |
| 1475 | i2c1_xfer: i2c1-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1476 | rockchip,pins = <8 RK_PA4 1 &pcfg_pull_none>, |
| 1477 | <8 RK_PA5 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1478 | }; |
| 1479 | }; |
| 1480 | |
| 1481 | i2c2 { |
| 1482 | i2c2_xfer: i2c2-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1483 | rockchip,pins = <6 RK_PB1 1 &pcfg_pull_none>, |
| 1484 | <6 RK_PB2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1485 | }; |
| 1486 | }; |
| 1487 | |
| 1488 | i2c3 { |
| 1489 | i2c3_xfer: i2c3-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1490 | rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>, |
| 1491 | <2 RK_PC1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1492 | }; |
| 1493 | }; |
| 1494 | |
| 1495 | i2c4 { |
| 1496 | i2c4_xfer: i2c4-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1497 | rockchip,pins = <7 RK_PC1 1 &pcfg_pull_none>, |
| 1498 | <7 RK_PC2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1499 | }; |
| 1500 | }; |
| 1501 | |
| 1502 | i2c5 { |
| 1503 | i2c5_xfer: i2c5-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1504 | rockchip,pins = <7 RK_PC3 1 &pcfg_pull_none>, |
| 1505 | <7 RK_PC4 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1506 | }; |
| 1507 | }; |
| 1508 | |
| 1509 | i2s0 { |
| 1510 | i2s0_bus: i2s0-bus { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1511 | rockchip,pins = <6 RK_PA0 1 &pcfg_pull_none>, |
| 1512 | <6 RK_PA1 1 &pcfg_pull_none>, |
| 1513 | <6 RK_PA2 1 &pcfg_pull_none>, |
| 1514 | <6 RK_PA3 1 &pcfg_pull_none>, |
| 1515 | <6 RK_PA4 1 &pcfg_pull_none>, |
| 1516 | <6 RK_PB0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1517 | }; |
| 1518 | }; |
| 1519 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1520 | lcdc { |
| 1521 | lcdc_ctl: lcdc-ctl { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1522 | rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>, |
| 1523 | <1 RK_PD1 1 &pcfg_pull_none>, |
| 1524 | <1 RK_PD2 1 &pcfg_pull_none>, |
| 1525 | <1 RK_PD3 1 &pcfg_pull_none>; |
Jacob Chen | 17fd344 | 2016-03-14 11:20:17 +0800 | [diff] [blame] | 1526 | }; |
| 1527 | }; |
| 1528 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1529 | sdmmc { |
| 1530 | sdmmc_clk: sdmmc-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1531 | rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1532 | }; |
| 1533 | |
| 1534 | sdmmc_cmd: sdmmc-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1535 | rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1536 | }; |
| 1537 | |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1538 | sdmmc_cd: sdmmc-cd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1539 | rockchip,pins = <6 RK_PC6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1540 | }; |
| 1541 | |
| 1542 | sdmmc_bus1: sdmmc-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1543 | rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1544 | }; |
| 1545 | |
| 1546 | sdmmc_bus4: sdmmc-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1547 | rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up>, |
| 1548 | <6 RK_PC1 1 &pcfg_pull_up>, |
| 1549 | <6 RK_PC2 1 &pcfg_pull_up>, |
| 1550 | <6 RK_PC3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1551 | }; |
| 1552 | }; |
| 1553 | |
| 1554 | sdio0 { |
| 1555 | sdio0_bus1: sdio0-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1556 | rockchip,pins = <4 RK_PC4 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1557 | }; |
| 1558 | |
| 1559 | sdio0_bus4: sdio0-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1560 | rockchip,pins = <4 RK_PC4 1 &pcfg_pull_up>, |
| 1561 | <4 RK_PC5 1 &pcfg_pull_up>, |
| 1562 | <4 RK_PC6 1 &pcfg_pull_up>, |
| 1563 | <4 RK_PC7 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1564 | }; |
| 1565 | |
| 1566 | sdio0_cmd: sdio0-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1567 | rockchip,pins = <4 RK_PD0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1568 | }; |
| 1569 | |
| 1570 | sdio0_clk: sdio0-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1571 | rockchip,pins = <4 RK_PD1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1572 | }; |
| 1573 | |
| 1574 | sdio0_cd: sdio0-cd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1575 | rockchip,pins = <4 RK_PD2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1576 | }; |
| 1577 | |
| 1578 | sdio0_wp: sdio0-wp { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1579 | rockchip,pins = <4 RK_PD3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1580 | }; |
| 1581 | |
| 1582 | sdio0_pwr: sdio0-pwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1583 | rockchip,pins = <4 RK_PD4 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1584 | }; |
| 1585 | |
| 1586 | sdio0_bkpwr: sdio0-bkpwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1587 | rockchip,pins = <4 RK_PD5 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1588 | }; |
| 1589 | |
| 1590 | sdio0_int: sdio0-int { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1591 | rockchip,pins = <4 RK_PD6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1592 | }; |
| 1593 | }; |
| 1594 | |
| 1595 | sdio1 { |
| 1596 | sdio1_bus1: sdio1-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1597 | rockchip,pins = <3 RK_PD0 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1598 | }; |
| 1599 | |
| 1600 | sdio1_bus4: sdio1-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1601 | rockchip,pins = <3 RK_PD0 4 &pcfg_pull_up>, |
| 1602 | <3 RK_PD1 4 &pcfg_pull_up>, |
| 1603 | <3 RK_PD2 4 &pcfg_pull_up>, |
| 1604 | <3 RK_PD3 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1605 | }; |
| 1606 | |
| 1607 | sdio1_cd: sdio1-cd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1608 | rockchip,pins = <3 RK_PD4 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1609 | }; |
| 1610 | |
| 1611 | sdio1_wp: sdio1-wp { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1612 | rockchip,pins = <3 RK_PD5 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1613 | }; |
| 1614 | |
| 1615 | sdio1_bkpwr: sdio1-bkpwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1616 | rockchip,pins = <3 RK_PD6 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1617 | }; |
| 1618 | |
| 1619 | sdio1_int: sdio1-int { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1620 | rockchip,pins = <3 RK_PD7 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1621 | }; |
| 1622 | |
| 1623 | sdio1_cmd: sdio1-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1624 | rockchip,pins = <4 RK_PA6 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1625 | }; |
| 1626 | |
| 1627 | sdio1_clk: sdio1-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1628 | rockchip,pins = <4 RK_PA7 4 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1629 | }; |
| 1630 | |
| 1631 | sdio1_pwr: sdio1-pwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1632 | rockchip,pins = <4 RK_PB1 4 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1633 | }; |
| 1634 | }; |
| 1635 | |
| 1636 | emmc { |
| 1637 | emmc_clk: emmc-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1638 | rockchip,pins = <3 RK_PC2 2 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1639 | }; |
| 1640 | |
| 1641 | emmc_cmd: emmc-cmd { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1642 | rockchip,pins = <3 RK_PC0 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1643 | }; |
| 1644 | |
| 1645 | emmc_pwr: emmc-pwr { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1646 | rockchip,pins = <3 RK_PB1 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1647 | }; |
| 1648 | |
| 1649 | emmc_bus1: emmc-bus1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1650 | rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1651 | }; |
| 1652 | |
| 1653 | emmc_bus4: emmc-bus4 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1654 | rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>, |
| 1655 | <3 RK_PA1 2 &pcfg_pull_up>, |
| 1656 | <3 RK_PA2 2 &pcfg_pull_up>, |
| 1657 | <3 RK_PA3 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1658 | }; |
| 1659 | |
| 1660 | emmc_bus8: emmc-bus8 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1661 | rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>, |
| 1662 | <3 RK_PA1 2 &pcfg_pull_up>, |
| 1663 | <3 RK_PA2 2 &pcfg_pull_up>, |
| 1664 | <3 RK_PA3 2 &pcfg_pull_up>, |
| 1665 | <3 RK_PA4 2 &pcfg_pull_up>, |
| 1666 | <3 RK_PA5 2 &pcfg_pull_up>, |
| 1667 | <3 RK_PA6 2 &pcfg_pull_up>, |
| 1668 | <3 RK_PA7 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1669 | }; |
| 1670 | }; |
| 1671 | |
| 1672 | spi0 { |
| 1673 | spi0_clk: spi0-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1674 | rockchip,pins = <5 RK_PB4 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1675 | }; |
| 1676 | spi0_cs0: spi0-cs0 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1677 | rockchip,pins = <5 RK_PB5 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1678 | }; |
| 1679 | spi0_tx: spi0-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1680 | rockchip,pins = <5 RK_PB6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1681 | }; |
| 1682 | spi0_rx: spi0-rx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1683 | rockchip,pins = <5 RK_PB7 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1684 | }; |
| 1685 | spi0_cs1: spi0-cs1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1686 | rockchip,pins = <5 RK_PC0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1687 | }; |
| 1688 | }; |
| 1689 | spi1 { |
| 1690 | spi1_clk: spi1-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1691 | rockchip,pins = <7 RK_PB4 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1692 | }; |
| 1693 | spi1_cs0: spi1-cs0 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1694 | rockchip,pins = <7 RK_PB5 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1695 | }; |
| 1696 | spi1_rx: spi1-rx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1697 | rockchip,pins = <7 RK_PB6 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1698 | }; |
| 1699 | spi1_tx: spi1-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1700 | rockchip,pins = <7 RK_PB7 2 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1701 | }; |
| 1702 | }; |
| 1703 | |
| 1704 | spi2 { |
| 1705 | spi2_cs1: spi2-cs1 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1706 | rockchip,pins = <8 RK_PA3 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1707 | }; |
| 1708 | spi2_clk: spi2-clk { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1709 | rockchip,pins = <8 RK_PA6 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1710 | }; |
| 1711 | spi2_cs0: spi2-cs0 { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1712 | rockchip,pins = <8 RK_PA7 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1713 | }; |
| 1714 | spi2_rx: spi2-rx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1715 | rockchip,pins = <8 RK_PB0 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1716 | }; |
| 1717 | spi2_tx: spi2-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1718 | rockchip,pins = <8 RK_PB1 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1719 | }; |
| 1720 | }; |
| 1721 | |
| 1722 | uart0 { |
| 1723 | uart0_xfer: uart0-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1724 | rockchip,pins = <4 RK_PC0 1 &pcfg_pull_up>, |
| 1725 | <4 RK_PC1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1726 | }; |
| 1727 | |
| 1728 | uart0_cts: uart0-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1729 | rockchip,pins = <4 RK_PC2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1730 | }; |
| 1731 | |
| 1732 | uart0_rts: uart0-rts { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1733 | rockchip,pins = <4 RK_PC3 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1734 | }; |
| 1735 | }; |
| 1736 | |
| 1737 | uart1 { |
| 1738 | uart1_xfer: uart1-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1739 | rockchip,pins = <5 RK_PB0 1 &pcfg_pull_up>, |
| 1740 | <5 RK_PB1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1741 | }; |
| 1742 | |
| 1743 | uart1_cts: uart1-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1744 | rockchip,pins = <5 RK_PB2 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1745 | }; |
| 1746 | |
| 1747 | uart1_rts: uart1-rts { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1748 | rockchip,pins = <5 RK_PB3 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1749 | }; |
| 1750 | }; |
| 1751 | |
| 1752 | uart2 { |
| 1753 | uart2_xfer: uart2-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1754 | rockchip,pins = <7 RK_PC6 1 &pcfg_pull_up>, |
| 1755 | <7 RK_PC7 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1756 | }; |
| 1757 | /* no rts / cts for uart2 */ |
| 1758 | }; |
| 1759 | |
| 1760 | uart3 { |
| 1761 | uart3_xfer: uart3-xfer { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1762 | rockchip,pins = <7 RK_PA7 1 &pcfg_pull_up>, |
| 1763 | <7 RK_PB0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1764 | }; |
| 1765 | |
| 1766 | uart3_cts: uart3-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1767 | rockchip,pins = <7 RK_PB1 1 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1768 | }; |
| 1769 | |
| 1770 | uart3_rts: uart3-rts { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1771 | rockchip,pins = <7 RK_PB2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1772 | }; |
| 1773 | }; |
| 1774 | |
| 1775 | uart4 { |
| 1776 | uart4_xfer: uart4-xfer { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1777 | rockchip,pins = <5 RK_PB7 3 &pcfg_pull_up>, |
| 1778 | <5 RK_PB6 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1779 | }; |
| 1780 | |
| 1781 | uart4_cts: uart4-cts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1782 | rockchip,pins = <5 RK_PB4 3 &pcfg_pull_up>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1783 | }; |
| 1784 | |
| 1785 | uart4_rts: uart4-rts { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1786 | rockchip,pins = <5 RK_PB5 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1787 | }; |
| 1788 | }; |
| 1789 | |
| 1790 | tsadc { |
Johan Jonker | bcfdbf8 | 2022-09-28 16:24:28 +0200 | [diff] [blame^] | 1791 | otp_pin: otp-pin { |
| 1792 | rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 1793 | }; |
| 1794 | |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1795 | otp_out: otp-out { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1796 | rockchip,pins = <0 RK_PB2 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1797 | }; |
| 1798 | }; |
| 1799 | |
| 1800 | pwm0 { |
| 1801 | pwm0_pin: pwm0-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1802 | rockchip,pins = <7 RK_PA0 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1803 | }; |
| 1804 | }; |
| 1805 | |
| 1806 | pwm1 { |
| 1807 | pwm1_pin: pwm1-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1808 | rockchip,pins = <7 RK_PA1 1 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1809 | }; |
| 1810 | }; |
| 1811 | |
| 1812 | pwm2 { |
| 1813 | pwm2_pin: pwm2-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1814 | rockchip,pins = <7 RK_PC6 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1815 | }; |
| 1816 | }; |
| 1817 | |
| 1818 | pwm3 { |
| 1819 | pwm3_pin: pwm3-pin { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1820 | rockchip,pins = <7 RK_PC7 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1821 | }; |
| 1822 | }; |
| 1823 | |
| 1824 | gmac { |
| 1825 | rgmii_pins: rgmii-pins { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1826 | rockchip,pins = <3 RK_PD6 3 &pcfg_pull_none>, |
| 1827 | <3 RK_PD7 3 &pcfg_pull_none>, |
| 1828 | <3 RK_PD2 3 &pcfg_pull_none>, |
| 1829 | <3 RK_PD3 3 &pcfg_pull_none>, |
| 1830 | <3 RK_PD4 3 &pcfg_pull_none_12ma>, |
| 1831 | <3 RK_PD5 3 &pcfg_pull_none_12ma>, |
| 1832 | <3 RK_PD0 3 &pcfg_pull_none_12ma>, |
| 1833 | <3 RK_PD1 3 &pcfg_pull_none_12ma>, |
| 1834 | <4 RK_PA0 3 &pcfg_pull_none>, |
| 1835 | <4 RK_PA5 3 &pcfg_pull_none>, |
| 1836 | <4 RK_PA6 3 &pcfg_pull_none>, |
| 1837 | <4 RK_PB1 3 &pcfg_pull_none_12ma>, |
| 1838 | <4 RK_PA4 3 &pcfg_pull_none_12ma>, |
| 1839 | <4 RK_PA1 3 &pcfg_pull_none>, |
| 1840 | <4 RK_PA3 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1841 | }; |
| 1842 | |
| 1843 | rmii_pins: rmii-pins { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1844 | rockchip,pins = <3 RK_PD6 3 &pcfg_pull_none>, |
| 1845 | <3 RK_PD7 3 &pcfg_pull_none>, |
| 1846 | <3 RK_PD4 3 &pcfg_pull_none>, |
| 1847 | <3 RK_PD5 3 &pcfg_pull_none>, |
| 1848 | <4 RK_PA0 3 &pcfg_pull_none>, |
| 1849 | <4 RK_PA5 3 &pcfg_pull_none>, |
| 1850 | <4 RK_PA4 3 &pcfg_pull_none>, |
| 1851 | <4 RK_PA1 3 &pcfg_pull_none>, |
| 1852 | <4 RK_PA2 3 &pcfg_pull_none>, |
| 1853 | <4 RK_PA3 3 &pcfg_pull_none>; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1854 | }; |
| 1855 | }; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 1856 | |
| 1857 | spdif { |
| 1858 | spdif_tx: spdif-tx { |
Johan Jonker | 642daa7 | 2022-05-02 10:58:27 +0200 | [diff] [blame] | 1859 | rockchip,pins = <6 RK_PB3 1 &pcfg_pull_none>; |
Simon Glass | 1501980 | 2016-01-21 19:45:21 -0700 | [diff] [blame] | 1860 | }; |
| 1861 | }; |
Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1862 | }; |
| 1863 | |
| 1864 | power: power-controller { |
| 1865 | compatible = "rockchip,rk3288-power-controller"; |
| 1866 | #power-domain-cells = <1>; |
| 1867 | rockchip,pmu = <&pmu>; |
| 1868 | #address-cells = <1>; |
| 1869 | #size-cells = <0>; |
| 1870 | |
| 1871 | pd_gpu { |
| 1872 | reg = <RK3288_PD_GPU>; |
| 1873 | clocks = <&cru ACLK_GPU>; |
| 1874 | }; |
| 1875 | |
| 1876 | pd_hevc { |
| 1877 | reg = <RK3288_PD_HEVC>; |
| 1878 | clocks = <&cru ACLK_HEVC>, |
| 1879 | <&cru SCLK_HEVC_CABAC>, |
| 1880 | <&cru SCLK_HEVC_CORE>, |
| 1881 | <&cru HCLK_HEVC>; |
| 1882 | }; |
| 1883 | |
| 1884 | pd_vio { |
| 1885 | reg = <RK3288_PD_VIO>; |
| 1886 | clocks = <&cru ACLK_IEP>, |
| 1887 | <&cru ACLK_ISP>, |
| 1888 | <&cru ACLK_RGA>, |
| 1889 | <&cru ACLK_VIP>, |
| 1890 | <&cru ACLK_VOP0>, |
| 1891 | <&cru ACLK_VOP1>, |
| 1892 | <&cru DCLK_VOP0>, |
| 1893 | <&cru DCLK_VOP1>, |
| 1894 | <&cru HCLK_IEP>, |
| 1895 | <&cru HCLK_ISP>, |
| 1896 | <&cru HCLK_RGA>, |
| 1897 | <&cru HCLK_VIP>, |
| 1898 | <&cru HCLK_VOP0>, |
| 1899 | <&cru HCLK_VOP1>, |
| 1900 | <&cru PCLK_EDP_CTRL>, |
| 1901 | <&cru PCLK_HDMI_CTRL>, |
| 1902 | <&cru PCLK_LVDS_PHY>, |
| 1903 | <&cru PCLK_MIPI_CSI>, |
| 1904 | <&cru PCLK_MIPI_DSI0>, |
| 1905 | <&cru PCLK_MIPI_DSI1>, |
| 1906 | <&cru SCLK_EDP_24M>, |
| 1907 | <&cru SCLK_EDP>, |
| 1908 | <&cru SCLK_HDMI_CEC>, |
| 1909 | <&cru SCLK_HDMI_HDCP>, |
| 1910 | <&cru SCLK_ISP_JPE>, |
| 1911 | <&cru SCLK_ISP>, |
| 1912 | <&cru SCLK_RGA>; |
| 1913 | }; |
| 1914 | |
| 1915 | pd_video { |
| 1916 | reg = <RK3288_PD_VIDEO>; |
| 1917 | clocks = <&cru ACLK_VCODEC>, |
| 1918 | <&cru HCLK_VCODEC>; |
| 1919 | }; |
| 1920 | }; |
| 1921 | }; |