Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 2 | /* |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 3 | * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <dt-bindings/clock/rk3328-cru.h> |
| 7 | #include <dt-bindings/gpio/gpio.h> |
| 8 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 9 | #include <dt-bindings/interrupt-controller/irq.h> |
| 10 | #include <dt-bindings/pinctrl/rockchip.h> |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 11 | #include <dt-bindings/power/rk3328-power.h> |
| 12 | #include <dt-bindings/soc/rockchip,boot-mode.h> |
| 13 | #include <dt-bindings/thermal/thermal.h> |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | compatible = "rockchip,rk3328"; |
| 17 | |
| 18 | interrupt-parent = <&gic>; |
| 19 | #address-cells = <2>; |
| 20 | #size-cells = <2>; |
| 21 | |
| 22 | aliases { |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 23 | gpio0 = &gpio0; |
| 24 | gpio1 = &gpio1; |
| 25 | gpio2 = &gpio2; |
| 26 | gpio3 = &gpio3; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 27 | serial0 = &uart0; |
| 28 | serial1 = &uart1; |
| 29 | serial2 = &uart2; |
| 30 | i2c0 = &i2c0; |
| 31 | i2c1 = &i2c1; |
| 32 | i2c2 = &i2c2; |
| 33 | i2c3 = &i2c3; |
| 34 | }; |
| 35 | |
| 36 | cpus { |
| 37 | #address-cells = <2>; |
| 38 | #size-cells = <0>; |
| 39 | |
| 40 | cpu0: cpu@0 { |
| 41 | device_type = "cpu"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 42 | compatible = "arm,cortex-a53"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 43 | reg = <0x0 0x0>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 44 | clocks = <&cru ARMCLK>; |
| 45 | #cooling-cells = <2>; |
| 46 | cpu-idle-states = <&CPU_SLEEP>; |
| 47 | dynamic-power-coefficient = <120>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 48 | enable-method = "psci"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 49 | next-level-cache = <&l2>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 50 | operating-points-v2 = <&cpu0_opp_table>; |
| 51 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 52 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 53 | cpu1: cpu@1 { |
| 54 | device_type = "cpu"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 55 | compatible = "arm,cortex-a53"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 56 | reg = <0x0 0x1>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 57 | clocks = <&cru ARMCLK>; |
| 58 | #cooling-cells = <2>; |
| 59 | cpu-idle-states = <&CPU_SLEEP>; |
| 60 | dynamic-power-coefficient = <120>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 61 | enable-method = "psci"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 62 | next-level-cache = <&l2>; |
| 63 | operating-points-v2 = <&cpu0_opp_table>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 64 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 65 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 66 | cpu2: cpu@2 { |
| 67 | device_type = "cpu"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 68 | compatible = "arm,cortex-a53"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 69 | reg = <0x0 0x2>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 70 | clocks = <&cru ARMCLK>; |
| 71 | #cooling-cells = <2>; |
| 72 | cpu-idle-states = <&CPU_SLEEP>; |
| 73 | dynamic-power-coefficient = <120>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 74 | enable-method = "psci"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 75 | next-level-cache = <&l2>; |
| 76 | operating-points-v2 = <&cpu0_opp_table>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 77 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 78 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 79 | cpu3: cpu@3 { |
| 80 | device_type = "cpu"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 81 | compatible = "arm,cortex-a53"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 82 | reg = <0x0 0x3>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 83 | clocks = <&cru ARMCLK>; |
| 84 | #cooling-cells = <2>; |
| 85 | cpu-idle-states = <&CPU_SLEEP>; |
| 86 | dynamic-power-coefficient = <120>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 87 | enable-method = "psci"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 88 | next-level-cache = <&l2>; |
| 89 | operating-points-v2 = <&cpu0_opp_table>; |
| 90 | }; |
| 91 | |
| 92 | idle-states { |
| 93 | entry-method = "psci"; |
| 94 | |
| 95 | CPU_SLEEP: cpu-sleep { |
| 96 | compatible = "arm,idle-state"; |
| 97 | local-timer-stop; |
| 98 | arm,psci-suspend-param = <0x0010000>; |
| 99 | entry-latency-us = <120>; |
| 100 | exit-latency-us = <250>; |
| 101 | min-residency-us = <900>; |
| 102 | }; |
| 103 | }; |
| 104 | |
| 105 | l2: l2-cache0 { |
| 106 | compatible = "cache"; |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 107 | cache-level = <2>; |
| 108 | cache-unified; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 109 | }; |
| 110 | }; |
| 111 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 112 | cpu0_opp_table: opp-table-0 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 113 | compatible = "operating-points-v2"; |
| 114 | opp-shared; |
| 115 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 116 | opp-408000000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 117 | opp-hz = /bits/ 64 <408000000>; |
| 118 | opp-microvolt = <950000>; |
| 119 | clock-latency-ns = <40000>; |
| 120 | opp-suspend; |
| 121 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 122 | opp-600000000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 123 | opp-hz = /bits/ 64 <600000000>; |
| 124 | opp-microvolt = <950000>; |
| 125 | clock-latency-ns = <40000>; |
| 126 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 127 | opp-816000000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 128 | opp-hz = /bits/ 64 <816000000>; |
| 129 | opp-microvolt = <1000000>; |
| 130 | clock-latency-ns = <40000>; |
| 131 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 132 | opp-1008000000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 133 | opp-hz = /bits/ 64 <1008000000>; |
| 134 | opp-microvolt = <1100000>; |
| 135 | clock-latency-ns = <40000>; |
| 136 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 137 | opp-1200000000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 138 | opp-hz = /bits/ 64 <1200000000>; |
| 139 | opp-microvolt = <1225000>; |
| 140 | clock-latency-ns = <40000>; |
| 141 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 142 | opp-1296000000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 143 | opp-hz = /bits/ 64 <1296000000>; |
| 144 | opp-microvolt = <1300000>; |
| 145 | clock-latency-ns = <40000>; |
| 146 | }; |
| 147 | }; |
| 148 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 149 | analog_sound: analog-sound { |
| 150 | compatible = "simple-audio-card"; |
| 151 | simple-audio-card,format = "i2s"; |
| 152 | simple-audio-card,mclk-fs = <256>; |
| 153 | simple-audio-card,name = "Analog"; |
| 154 | status = "disabled"; |
| 155 | |
| 156 | simple-audio-card,cpu { |
| 157 | sound-dai = <&i2s1>; |
| 158 | }; |
| 159 | |
| 160 | simple-audio-card,codec { |
| 161 | sound-dai = <&codec>; |
| 162 | }; |
| 163 | }; |
| 164 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 165 | arm-pmu { |
| 166 | compatible = "arm,cortex-a53-pmu"; |
| 167 | interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, |
| 168 | <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>, |
| 169 | <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, |
| 170 | <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
| 171 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 172 | }; |
| 173 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 174 | display_subsystem: display-subsystem { |
| 175 | compatible = "rockchip,display-subsystem"; |
| 176 | ports = <&vop_out>; |
| 177 | }; |
| 178 | |
| 179 | hdmi_sound: hdmi-sound { |
| 180 | compatible = "simple-audio-card"; |
| 181 | simple-audio-card,format = "i2s"; |
| 182 | simple-audio-card,mclk-fs = <128>; |
| 183 | simple-audio-card,name = "HDMI"; |
| 184 | status = "disabled"; |
| 185 | |
| 186 | simple-audio-card,cpu { |
| 187 | sound-dai = <&i2s0>; |
| 188 | }; |
| 189 | |
| 190 | simple-audio-card,codec { |
| 191 | sound-dai = <&hdmi>; |
| 192 | }; |
| 193 | }; |
| 194 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 195 | psci { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 196 | compatible = "arm,psci-1.0", "arm,psci-0.2"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 197 | method = "smc"; |
| 198 | }; |
| 199 | |
| 200 | timer { |
| 201 | compatible = "arm,armv8-timer"; |
| 202 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 203 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 204 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 205 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 206 | }; |
| 207 | |
| 208 | xin24m: xin24m { |
| 209 | compatible = "fixed-clock"; |
| 210 | #clock-cells = <0>; |
| 211 | clock-frequency = <24000000>; |
| 212 | clock-output-names = "xin24m"; |
| 213 | }; |
| 214 | |
| 215 | i2s0: i2s@ff000000 { |
| 216 | compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s"; |
| 217 | reg = <0x0 0xff000000 0x0 0x1000>; |
| 218 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 219 | clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>; |
| 220 | clock-names = "i2s_clk", "i2s_hclk"; |
| 221 | dmas = <&dmac 11>, <&dmac 12>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 222 | dma-names = "tx", "rx"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 223 | #sound-dai-cells = <0>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 224 | status = "disabled"; |
| 225 | }; |
| 226 | |
| 227 | i2s1: i2s@ff010000 { |
| 228 | compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s"; |
| 229 | reg = <0x0 0xff010000 0x0 0x1000>; |
| 230 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; |
| 231 | clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>; |
| 232 | clock-names = "i2s_clk", "i2s_hclk"; |
| 233 | dmas = <&dmac 14>, <&dmac 15>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 234 | dma-names = "tx", "rx"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 235 | #sound-dai-cells = <0>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 236 | status = "disabled"; |
| 237 | }; |
| 238 | |
| 239 | i2s2: i2s@ff020000 { |
| 240 | compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s"; |
| 241 | reg = <0x0 0xff020000 0x0 0x1000>; |
| 242 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 243 | clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>; |
| 244 | clock-names = "i2s_clk", "i2s_hclk"; |
| 245 | dmas = <&dmac 0>, <&dmac 1>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 246 | dma-names = "tx", "rx"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 247 | #sound-dai-cells = <0>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 248 | status = "disabled"; |
| 249 | }; |
| 250 | |
| 251 | spdif: spdif@ff030000 { |
| 252 | compatible = "rockchip,rk3328-spdif"; |
| 253 | reg = <0x0 0xff030000 0x0 0x1000>; |
| 254 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
| 255 | clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>; |
| 256 | clock-names = "mclk", "hclk"; |
| 257 | dmas = <&dmac 10>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 258 | dma-names = "tx"; |
| 259 | pinctrl-names = "default"; |
| 260 | pinctrl-0 = <&spdifm2_tx>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 261 | #sound-dai-cells = <0>; |
| 262 | status = "disabled"; |
| 263 | }; |
| 264 | |
| 265 | pdm: pdm@ff040000 { |
| 266 | compatible = "rockchip,pdm"; |
| 267 | reg = <0x0 0xff040000 0x0 0x1000>; |
| 268 | clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>; |
| 269 | clock-names = "pdm_clk", "pdm_hclk"; |
| 270 | dmas = <&dmac 16>; |
| 271 | dma-names = "rx"; |
| 272 | pinctrl-names = "default", "sleep"; |
| 273 | pinctrl-0 = <&pdmm0_clk |
| 274 | &pdmm0_sdi0 |
| 275 | &pdmm0_sdi1 |
| 276 | &pdmm0_sdi2 |
| 277 | &pdmm0_sdi3>; |
| 278 | pinctrl-1 = <&pdmm0_clk_sleep |
| 279 | &pdmm0_sdi0_sleep |
| 280 | &pdmm0_sdi1_sleep |
| 281 | &pdmm0_sdi2_sleep |
| 282 | &pdmm0_sdi3_sleep>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 283 | status = "disabled"; |
| 284 | }; |
| 285 | |
| 286 | grf: syscon@ff100000 { |
| 287 | compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd"; |
| 288 | reg = <0x0 0xff100000 0x0 0x1000>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 289 | |
| 290 | io_domains: io-domains { |
| 291 | compatible = "rockchip,rk3328-io-voltage-domain"; |
| 292 | status = "disabled"; |
| 293 | }; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 294 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 295 | grf_gpio: gpio { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 296 | compatible = "rockchip,rk3328-grf-gpio"; |
| 297 | gpio-controller; |
| 298 | #gpio-cells = <2>; |
| 299 | }; |
| 300 | |
| 301 | power: power-controller { |
| 302 | compatible = "rockchip,rk3328-power-controller"; |
| 303 | #power-domain-cells = <1>; |
| 304 | #address-cells = <1>; |
| 305 | #size-cells = <0>; |
| 306 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 307 | power-domain@RK3328_PD_HEVC { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 308 | reg = <RK3328_PD_HEVC>; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 309 | #power-domain-cells = <0>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 310 | }; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 311 | power-domain@RK3328_PD_VIDEO { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 312 | reg = <RK3328_PD_VIDEO>; |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 313 | clocks = <&cru ACLK_RKVDEC>, |
| 314 | <&cru HCLK_RKVDEC>, |
| 315 | <&cru SCLK_VDEC_CABAC>, |
| 316 | <&cru SCLK_VDEC_CORE>; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 317 | #power-domain-cells = <0>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 318 | }; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 319 | power-domain@RK3328_PD_VPU { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 320 | reg = <RK3328_PD_VPU>; |
| 321 | clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 322 | #power-domain-cells = <0>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 323 | }; |
| 324 | }; |
| 325 | |
| 326 | reboot-mode { |
| 327 | compatible = "syscon-reboot-mode"; |
| 328 | offset = <0x5c8>; |
| 329 | mode-normal = <BOOT_NORMAL>; |
| 330 | mode-recovery = <BOOT_RECOVERY>; |
| 331 | mode-bootloader = <BOOT_FASTBOOT>; |
| 332 | mode-loader = <BOOT_BL_DOWNLOAD>; |
| 333 | }; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 334 | }; |
| 335 | |
| 336 | uart0: serial@ff110000 { |
| 337 | compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart"; |
| 338 | reg = <0x0 0xff110000 0x0 0x100>; |
| 339 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
| 340 | clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; |
| 341 | clock-names = "baudclk", "apb_pclk"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 342 | dmas = <&dmac 2>, <&dmac 3>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 343 | dma-names = "tx", "rx"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 344 | pinctrl-names = "default"; |
| 345 | pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 346 | reg-io-width = <4>; |
| 347 | reg-shift = <2>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 348 | status = "disabled"; |
| 349 | }; |
| 350 | |
| 351 | uart1: serial@ff120000 { |
| 352 | compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart"; |
| 353 | reg = <0x0 0xff120000 0x0 0x100>; |
| 354 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
| 355 | clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 356 | clock-names = "baudclk", "apb_pclk"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 357 | dmas = <&dmac 4>, <&dmac 5>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 358 | dma-names = "tx", "rx"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 359 | pinctrl-names = "default"; |
| 360 | pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 361 | reg-io-width = <4>; |
| 362 | reg-shift = <2>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 363 | status = "disabled"; |
| 364 | }; |
| 365 | |
| 366 | uart2: serial@ff130000 { |
| 367 | compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart"; |
| 368 | reg = <0x0 0xff130000 0x0 0x100>; |
| 369 | interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; |
| 370 | clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; |
| 371 | clock-names = "baudclk", "apb_pclk"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 372 | dmas = <&dmac 6>, <&dmac 7>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 373 | dma-names = "tx", "rx"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 374 | pinctrl-names = "default"; |
| 375 | pinctrl-0 = <&uart2m1_xfer>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 376 | reg-io-width = <4>; |
| 377 | reg-shift = <2>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 378 | status = "disabled"; |
| 379 | }; |
| 380 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 381 | i2c0: i2c@ff150000 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 382 | compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 383 | reg = <0x0 0xff150000 0x0 0x1000>; |
| 384 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; |
| 385 | #address-cells = <1>; |
| 386 | #size-cells = <0>; |
| 387 | clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>; |
| 388 | clock-names = "i2c", "pclk"; |
| 389 | pinctrl-names = "default"; |
| 390 | pinctrl-0 = <&i2c0_xfer>; |
| 391 | status = "disabled"; |
| 392 | }; |
| 393 | |
| 394 | i2c1: i2c@ff160000 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 395 | compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 396 | reg = <0x0 0xff160000 0x0 0x1000>; |
| 397 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
| 398 | #address-cells = <1>; |
| 399 | #size-cells = <0>; |
| 400 | clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>; |
| 401 | clock-names = "i2c", "pclk"; |
| 402 | pinctrl-names = "default"; |
| 403 | pinctrl-0 = <&i2c1_xfer>; |
| 404 | status = "disabled"; |
| 405 | }; |
| 406 | |
| 407 | i2c2: i2c@ff170000 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 408 | compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 409 | reg = <0x0 0xff170000 0x0 0x1000>; |
| 410 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
| 411 | #address-cells = <1>; |
| 412 | #size-cells = <0>; |
| 413 | clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>; |
| 414 | clock-names = "i2c", "pclk"; |
| 415 | pinctrl-names = "default"; |
| 416 | pinctrl-0 = <&i2c2_xfer>; |
| 417 | status = "disabled"; |
| 418 | }; |
| 419 | |
| 420 | i2c3: i2c@ff180000 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 421 | compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 422 | reg = <0x0 0xff180000 0x0 0x1000>; |
| 423 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 424 | #address-cells = <1>; |
| 425 | #size-cells = <0>; |
| 426 | clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>; |
| 427 | clock-names = "i2c", "pclk"; |
| 428 | pinctrl-names = "default"; |
| 429 | pinctrl-0 = <&i2c3_xfer>; |
| 430 | status = "disabled"; |
| 431 | }; |
| 432 | |
| 433 | spi0: spi@ff190000 { |
| 434 | compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi"; |
| 435 | reg = <0x0 0xff190000 0x0 0x1000>; |
| 436 | interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; |
| 437 | #address-cells = <1>; |
| 438 | #size-cells = <0>; |
| 439 | clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>; |
| 440 | clock-names = "spiclk", "apb_pclk"; |
| 441 | dmas = <&dmac 8>, <&dmac 9>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 442 | dma-names = "tx", "rx"; |
| 443 | pinctrl-names = "default"; |
| 444 | pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>; |
| 445 | status = "disabled"; |
| 446 | }; |
| 447 | |
| 448 | wdt: watchdog@ff1a0000 { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 449 | compatible = "rockchip,rk3328-wdt", "snps,dw-wdt"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 450 | reg = <0x0 0xff1a0000 0x0 0x100>; |
| 451 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 452 | clocks = <&cru PCLK_WDT>; |
| 453 | }; |
| 454 | |
| 455 | pwm0: pwm@ff1b0000 { |
| 456 | compatible = "rockchip,rk3328-pwm"; |
| 457 | reg = <0x0 0xff1b0000 0x0 0x10>; |
| 458 | clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; |
| 459 | clock-names = "pwm", "pclk"; |
| 460 | pinctrl-names = "default"; |
| 461 | pinctrl-0 = <&pwm0_pin>; |
| 462 | #pwm-cells = <3>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 463 | status = "disabled"; |
| 464 | }; |
| 465 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 466 | pwm1: pwm@ff1b0010 { |
| 467 | compatible = "rockchip,rk3328-pwm"; |
| 468 | reg = <0x0 0xff1b0010 0x0 0x10>; |
| 469 | clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; |
| 470 | clock-names = "pwm", "pclk"; |
| 471 | pinctrl-names = "default"; |
| 472 | pinctrl-0 = <&pwm1_pin>; |
| 473 | #pwm-cells = <3>; |
| 474 | status = "disabled"; |
| 475 | }; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 476 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 477 | pwm2: pwm@ff1b0020 { |
| 478 | compatible = "rockchip,rk3328-pwm"; |
| 479 | reg = <0x0 0xff1b0020 0x0 0x10>; |
| 480 | clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; |
| 481 | clock-names = "pwm", "pclk"; |
| 482 | pinctrl-names = "default"; |
| 483 | pinctrl-0 = <&pwm2_pin>; |
| 484 | #pwm-cells = <3>; |
| 485 | status = "disabled"; |
| 486 | }; |
| 487 | |
| 488 | pwm3: pwm@ff1b0030 { |
| 489 | compatible = "rockchip,rk3328-pwm"; |
| 490 | reg = <0x0 0xff1b0030 0x0 0x10>; |
| 491 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
| 492 | clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; |
| 493 | clock-names = "pwm", "pclk"; |
| 494 | pinctrl-names = "default"; |
| 495 | pinctrl-0 = <&pwmir_pin>; |
| 496 | #pwm-cells = <3>; |
| 497 | status = "disabled"; |
| 498 | }; |
| 499 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 500 | dmac: dma-controller@ff1f0000 { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 501 | compatible = "arm,pl330", "arm,primecell"; |
| 502 | reg = <0x0 0xff1f0000 0x0 0x4000>; |
| 503 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, |
| 504 | <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 505 | arm,pl330-periph-burst; |
| 506 | clocks = <&cru ACLK_DMAC>; |
| 507 | clock-names = "apb_pclk"; |
| 508 | #dma-cells = <1>; |
| 509 | }; |
| 510 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 511 | thermal-zones { |
| 512 | soc_thermal: soc-thermal { |
| 513 | polling-delay-passive = <20>; |
| 514 | polling-delay = <1000>; |
| 515 | sustainable-power = <1000>; |
| 516 | |
| 517 | thermal-sensors = <&tsadc 0>; |
| 518 | |
| 519 | trips { |
| 520 | threshold: trip-point0 { |
| 521 | temperature = <70000>; |
| 522 | hysteresis = <2000>; |
| 523 | type = "passive"; |
| 524 | }; |
| 525 | target: trip-point1 { |
| 526 | temperature = <85000>; |
| 527 | hysteresis = <2000>; |
| 528 | type = "passive"; |
| 529 | }; |
| 530 | soc_crit: soc-crit { |
| 531 | temperature = <95000>; |
| 532 | hysteresis = <2000>; |
| 533 | type = "critical"; |
| 534 | }; |
| 535 | }; |
| 536 | |
| 537 | cooling-maps { |
| 538 | map0 { |
| 539 | trip = <&target>; |
| 540 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 541 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 542 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 543 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 544 | contribution = <4096>; |
| 545 | }; |
| 546 | }; |
| 547 | }; |
| 548 | |
| 549 | }; |
| 550 | |
| 551 | tsadc: tsadc@ff250000 { |
| 552 | compatible = "rockchip,rk3328-tsadc"; |
| 553 | reg = <0x0 0xff250000 0x0 0x100>; |
| 554 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; |
| 555 | assigned-clocks = <&cru SCLK_TSADC>; |
| 556 | assigned-clock-rates = <50000>; |
| 557 | clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; |
| 558 | clock-names = "tsadc", "apb_pclk"; |
| 559 | pinctrl-names = "init", "default", "sleep"; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 560 | pinctrl-0 = <&otp_pin>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 561 | pinctrl-1 = <&otp_out>; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 562 | pinctrl-2 = <&otp_pin>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 563 | resets = <&cru SRST_TSADC>; |
| 564 | reset-names = "tsadc-apb"; |
| 565 | rockchip,grf = <&grf>; |
| 566 | rockchip,hw-tshut-temp = <100000>; |
| 567 | #thermal-sensor-cells = <1>; |
| 568 | status = "disabled"; |
| 569 | }; |
| 570 | |
| 571 | efuse: efuse@ff260000 { |
| 572 | compatible = "rockchip,rk3328-efuse"; |
| 573 | reg = <0x0 0xff260000 0x0 0x50>; |
| 574 | #address-cells = <1>; |
| 575 | #size-cells = <1>; |
| 576 | clocks = <&cru SCLK_EFUSE>; |
| 577 | clock-names = "pclk_efuse"; |
| 578 | rockchip,efuse-size = <0x20>; |
| 579 | |
| 580 | /* Data cells */ |
| 581 | efuse_id: id@7 { |
| 582 | reg = <0x07 0x10>; |
| 583 | }; |
| 584 | cpu_leakage: cpu-leakage@17 { |
| 585 | reg = <0x17 0x1>; |
| 586 | }; |
| 587 | logic_leakage: logic-leakage@19 { |
| 588 | reg = <0x19 0x1>; |
| 589 | }; |
| 590 | efuse_cpu_version: cpu-version@1a { |
| 591 | reg = <0x1a 0x1>; |
| 592 | bits = <3 3>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 593 | }; |
| 594 | }; |
| 595 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 596 | saradc: adc@ff280000 { |
| 597 | compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 598 | reg = <0x0 0xff280000 0x0 0x100>; |
| 599 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; |
| 600 | #io-channel-cells = <1>; |
| 601 | clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; |
| 602 | clock-names = "saradc", "apb_pclk"; |
| 603 | resets = <&cru SRST_SARADC_P>; |
| 604 | reset-names = "saradc-apb"; |
| 605 | status = "disabled"; |
| 606 | }; |
| 607 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 608 | gpu: gpu@ff300000 { |
| 609 | compatible = "rockchip,rk3328-mali", "arm,mali-450"; |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 610 | reg = <0x0 0xff300000 0x0 0x30000>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 611 | interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>, |
| 612 | <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, |
| 613 | <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>, |
| 614 | <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, |
| 615 | <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, |
| 616 | <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, |
| 617 | <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; |
| 618 | interrupt-names = "gp", |
| 619 | "gpmmu", |
| 620 | "pp", |
| 621 | "pp0", |
| 622 | "ppmmu0", |
| 623 | "pp1", |
| 624 | "ppmmu1"; |
| 625 | clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; |
| 626 | clock-names = "bus", "core"; |
| 627 | resets = <&cru SRST_GPU_A>; |
| 628 | }; |
| 629 | |
| 630 | h265e_mmu: iommu@ff330200 { |
| 631 | compatible = "rockchip,iommu"; |
| 632 | reg = <0x0 0xff330200 0 0x100>; |
| 633 | interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 634 | clocks = <&cru ACLK_H265>, <&cru PCLK_H265>; |
| 635 | clock-names = "aclk", "iface"; |
| 636 | #iommu-cells = <0>; |
| 637 | status = "disabled"; |
| 638 | }; |
| 639 | |
| 640 | vepu_mmu: iommu@ff340800 { |
| 641 | compatible = "rockchip,iommu"; |
| 642 | reg = <0x0 0xff340800 0x0 0x40>; |
| 643 | interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 644 | clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; |
| 645 | clock-names = "aclk", "iface"; |
| 646 | #iommu-cells = <0>; |
| 647 | status = "disabled"; |
| 648 | }; |
| 649 | |
| 650 | vpu: video-codec@ff350000 { |
| 651 | compatible = "rockchip,rk3328-vpu"; |
| 652 | reg = <0x0 0xff350000 0x0 0x800>; |
| 653 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 654 | interrupt-names = "vdpu"; |
| 655 | clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; |
| 656 | clock-names = "aclk", "hclk"; |
| 657 | iommus = <&vpu_mmu>; |
| 658 | power-domains = <&power RK3328_PD_VPU>; |
| 659 | }; |
| 660 | |
| 661 | vpu_mmu: iommu@ff350800 { |
| 662 | compatible = "rockchip,iommu"; |
| 663 | reg = <0x0 0xff350800 0x0 0x40>; |
| 664 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 665 | clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; |
| 666 | clock-names = "aclk", "iface"; |
| 667 | #iommu-cells = <0>; |
| 668 | power-domains = <&power RK3328_PD_VPU>; |
| 669 | }; |
| 670 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 671 | vdec: video-codec@ff360000 { |
| 672 | compatible = "rockchip,rk3328-vdec", "rockchip,rk3399-vdec"; |
| 673 | reg = <0x0 0xff360000 0x0 0x480>; |
| 674 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 675 | clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>, |
| 676 | <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>; |
| 677 | clock-names = "axi", "ahb", "cabac", "core"; |
| 678 | assigned-clocks = <&cru ACLK_RKVDEC>, <&cru SCLK_VDEC_CABAC>, |
| 679 | <&cru SCLK_VDEC_CORE>; |
| 680 | assigned-clock-rates = <400000000>, <400000000>, <300000000>; |
| 681 | iommus = <&vdec_mmu>; |
| 682 | power-domains = <&power RK3328_PD_VIDEO>; |
| 683 | }; |
| 684 | |
| 685 | vdec_mmu: iommu@ff360480 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 686 | compatible = "rockchip,iommu"; |
| 687 | reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>; |
| 688 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 689 | clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>; |
| 690 | clock-names = "aclk", "iface"; |
| 691 | #iommu-cells = <0>; |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 692 | power-domains = <&power RK3328_PD_VIDEO>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 693 | }; |
| 694 | |
| 695 | vop: vop@ff370000 { |
| 696 | compatible = "rockchip,rk3328-vop"; |
| 697 | reg = <0x0 0xff370000 0x0 0x3efc>; |
| 698 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 699 | clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>; |
| 700 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
| 701 | resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>; |
| 702 | reset-names = "axi", "ahb", "dclk"; |
| 703 | iommus = <&vop_mmu>; |
| 704 | status = "disabled"; |
| 705 | |
| 706 | vop_out: port { |
| 707 | #address-cells = <1>; |
| 708 | #size-cells = <0>; |
| 709 | |
| 710 | vop_out_hdmi: endpoint@0 { |
| 711 | reg = <0>; |
| 712 | remote-endpoint = <&hdmi_in_vop>; |
| 713 | }; |
| 714 | }; |
| 715 | }; |
| 716 | |
| 717 | vop_mmu: iommu@ff373f00 { |
| 718 | compatible = "rockchip,iommu"; |
| 719 | reg = <0x0 0xff373f00 0x0 0x100>; |
| 720 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 721 | clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; |
| 722 | clock-names = "aclk", "iface"; |
| 723 | #iommu-cells = <0>; |
| 724 | status = "disabled"; |
| 725 | }; |
| 726 | |
| 727 | hdmi: hdmi@ff3c0000 { |
| 728 | compatible = "rockchip,rk3328-dw-hdmi"; |
| 729 | reg = <0x0 0xff3c0000 0x0 0x20000>; |
| 730 | reg-io-width = <4>; |
| 731 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>, |
| 732 | <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
| 733 | clocks = <&cru PCLK_HDMI>, |
| 734 | <&cru SCLK_HDMI_SFC>, |
| 735 | <&cru SCLK_RTC32K>; |
| 736 | clock-names = "iahb", |
| 737 | "isfr", |
| 738 | "cec"; |
| 739 | phys = <&hdmiphy>; |
| 740 | phy-names = "hdmi"; |
| 741 | pinctrl-names = "default"; |
| 742 | pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>; |
| 743 | rockchip,grf = <&grf>; |
| 744 | #sound-dai-cells = <0>; |
| 745 | status = "disabled"; |
| 746 | |
| 747 | ports { |
| 748 | hdmi_in: port { |
| 749 | hdmi_in_vop: endpoint { |
| 750 | remote-endpoint = <&vop_out_hdmi>; |
| 751 | }; |
| 752 | }; |
| 753 | }; |
| 754 | }; |
| 755 | |
| 756 | codec: codec@ff410000 { |
| 757 | compatible = "rockchip,rk3328-codec"; |
| 758 | reg = <0x0 0xff410000 0x0 0x1000>; |
| 759 | clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>; |
| 760 | clock-names = "pclk", "mclk"; |
| 761 | rockchip,grf = <&grf>; |
| 762 | #sound-dai-cells = <0>; |
| 763 | status = "disabled"; |
| 764 | }; |
| 765 | |
| 766 | hdmiphy: phy@ff430000 { |
| 767 | compatible = "rockchip,rk3328-hdmi-phy"; |
| 768 | reg = <0x0 0xff430000 0x0 0x10000>; |
| 769 | interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; |
| 770 | clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>; |
| 771 | clock-names = "sysclk", "refoclk", "refpclk"; |
| 772 | clock-output-names = "hdmi_phy"; |
| 773 | #clock-cells = <0>; |
| 774 | nvmem-cells = <&efuse_cpu_version>; |
| 775 | nvmem-cell-names = "cpu-version"; |
| 776 | #phy-cells = <0>; |
| 777 | status = "disabled"; |
| 778 | }; |
| 779 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 780 | cru: clock-controller@ff440000 { |
| 781 | compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon"; |
| 782 | reg = <0x0 0xff440000 0x0 0x1000>; |
| 783 | rockchip,grf = <&grf>; |
| 784 | #clock-cells = <1>; |
| 785 | #reset-cells = <1>; |
| 786 | assigned-clocks = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 787 | /* |
| 788 | * CPLL should run at 1200, but that is to high for |
| 789 | * the initial dividers of most of its children. |
| 790 | * We need set cpll child clk div first, |
| 791 | * and then set the cpll frequency. |
| 792 | */ |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 793 | <&cru DCLK_LCDC>, <&cru SCLK_PDM>, |
| 794 | <&cru SCLK_RTC32K>, <&cru SCLK_UART0>, |
| 795 | <&cru SCLK_UART1>, <&cru SCLK_UART2>, |
| 796 | <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>, |
| 797 | <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>, |
| 798 | <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>, |
| 799 | <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>, |
| 800 | <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>, |
| 801 | <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>, |
| 802 | <&cru SCLK_SDIO>, <&cru SCLK_TSP>, |
| 803 | <&cru SCLK_WIFI>, <&cru ARMCLK>, |
| 804 | <&cru PLL_GPLL>, <&cru PLL_CPLL>, |
| 805 | <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>, |
| 806 | <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>, |
| 807 | <&cru HCLK_PERI>, <&cru PCLK_PERI>, |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 808 | <&cru SCLK_RTC32K>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 809 | assigned-clock-parents = |
| 810 | <&cru HDMIPHY>, <&cru PLL_APLL>, |
| 811 | <&cru PLL_GPLL>, <&xin24m>, |
| 812 | <&xin24m>, <&xin24m>; |
| 813 | assigned-clock-rates = |
| 814 | <0>, <61440000>, |
| 815 | <0>, <24000000>, |
| 816 | <24000000>, <24000000>, |
| 817 | <15000000>, <15000000>, |
| 818 | <100000000>, <100000000>, |
| 819 | <100000000>, <100000000>, |
| 820 | <50000000>, <100000000>, |
| 821 | <100000000>, <100000000>, |
| 822 | <50000000>, <50000000>, |
| 823 | <50000000>, <50000000>, |
| 824 | <24000000>, <600000000>, |
| 825 | <491520000>, <1200000000>, |
| 826 | <150000000>, <75000000>, |
| 827 | <75000000>, <150000000>, |
| 828 | <75000000>, <75000000>, |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 829 | <32768>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 830 | }; |
| 831 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 832 | usb2phy_grf: syscon@ff450000 { |
| 833 | compatible = "rockchip,rk3328-usb2phy-grf", "syscon", |
| 834 | "simple-mfd"; |
| 835 | reg = <0x0 0xff450000 0x0 0x10000>; |
| 836 | #address-cells = <1>; |
| 837 | #size-cells = <1>; |
| 838 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 839 | u2phy: usb2phy@100 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 840 | compatible = "rockchip,rk3328-usb2phy"; |
| 841 | reg = <0x100 0x10>; |
| 842 | clocks = <&xin24m>; |
| 843 | clock-names = "phyclk"; |
| 844 | clock-output-names = "usb480m_phy"; |
| 845 | #clock-cells = <0>; |
| 846 | assigned-clocks = <&cru USB480M>; |
| 847 | assigned-clock-parents = <&u2phy>; |
| 848 | status = "disabled"; |
| 849 | |
| 850 | u2phy_otg: otg-port { |
| 851 | #phy-cells = <0>; |
| 852 | interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, |
| 853 | <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, |
| 854 | <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 855 | interrupt-names = "otg-bvalid", "otg-id", |
| 856 | "linestate"; |
| 857 | status = "disabled"; |
| 858 | }; |
| 859 | |
| 860 | u2phy_host: host-port { |
| 861 | #phy-cells = <0>; |
| 862 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 863 | interrupt-names = "linestate"; |
| 864 | status = "disabled"; |
| 865 | }; |
| 866 | }; |
| 867 | }; |
| 868 | |
| 869 | sdmmc: mmc@ff500000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 870 | compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; |
| 871 | reg = <0x0 0xff500000 0x0 0x4000>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 872 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 873 | clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, |
| 874 | <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; |
| 875 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
| 876 | fifo-depth = <0x100>; |
| 877 | max-frequency = <150000000>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 878 | status = "disabled"; |
| 879 | }; |
| 880 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 881 | sdio: mmc@ff510000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 882 | compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; |
| 883 | reg = <0x0 0xff510000 0x0 0x4000>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 884 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 885 | clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, |
| 886 | <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 887 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 888 | fifo-depth = <0x100>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 889 | max-frequency = <150000000>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 890 | status = "disabled"; |
| 891 | }; |
| 892 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 893 | emmc: mmc@ff520000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 894 | compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; |
| 895 | reg = <0x0 0xff520000 0x0 0x4000>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 896 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 897 | clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, |
| 898 | <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; |
| 899 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
| 900 | fifo-depth = <0x100>; |
| 901 | max-frequency = <150000000>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 902 | status = "disabled"; |
| 903 | }; |
| 904 | |
David Wu | 832762c | 2018-01-13 14:03:56 +0800 | [diff] [blame] | 905 | gmac2io: ethernet@ff540000 { |
| 906 | compatible = "rockchip,rk3328-gmac"; |
| 907 | reg = <0x0 0xff540000 0x0 0x10000>; |
David Wu | 832762c | 2018-01-13 14:03:56 +0800 | [diff] [blame] | 908 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 909 | interrupt-names = "macirq"; |
| 910 | clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>, |
| 911 | <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>, |
| 912 | <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>, |
| 913 | <&cru PCLK_MAC2IO>; |
| 914 | clock-names = "stmmaceth", "mac_clk_rx", |
| 915 | "mac_clk_tx", "clk_mac_ref", |
| 916 | "clk_mac_refout", "aclk_mac", |
| 917 | "pclk_mac"; |
| 918 | resets = <&cru SRST_GMAC2IO_A>; |
| 919 | reset-names = "stmmaceth"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 920 | rockchip,grf = <&grf>; |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 921 | tx-fifo-depth = <2048>; |
| 922 | rx-fifo-depth = <4096>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 923 | snps,txpbl = <0x4>; |
David Wu | 832762c | 2018-01-13 14:03:56 +0800 | [diff] [blame] | 924 | status = "disabled"; |
| 925 | }; |
| 926 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 927 | gmac2phy: ethernet@ff550000 { |
| 928 | compatible = "rockchip,rk3328-gmac"; |
| 929 | reg = <0x0 0xff550000 0x0 0x10000>; |
| 930 | rockchip,grf = <&grf>; |
| 931 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; |
| 932 | interrupt-names = "macirq"; |
| 933 | clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>, |
| 934 | <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>, |
| 935 | <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>, |
| 936 | <&cru SCLK_MAC2PHY_OUT>; |
| 937 | clock-names = "stmmaceth", "mac_clk_rx", |
| 938 | "mac_clk_tx", "clk_mac_ref", |
| 939 | "aclk_mac", "pclk_mac", |
| 940 | "clk_macphy"; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 941 | resets = <&cru SRST_GMAC2PHY_A>; |
| 942 | reset-names = "stmmaceth"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 943 | phy-mode = "rmii"; |
| 944 | phy-handle = <&phy>; |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 945 | tx-fifo-depth = <2048>; |
| 946 | rx-fifo-depth = <4096>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 947 | snps,txpbl = <0x4>; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 948 | clock_in_out = "output"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 949 | status = "disabled"; |
| 950 | |
| 951 | mdio { |
| 952 | compatible = "snps,dwmac-mdio"; |
| 953 | #address-cells = <1>; |
| 954 | #size-cells = <0>; |
| 955 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 956 | phy: ethernet-phy@0 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 957 | compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22"; |
| 958 | reg = <0>; |
| 959 | clocks = <&cru SCLK_MAC2PHY_OUT>; |
| 960 | resets = <&cru SRST_MACPHY>; |
| 961 | pinctrl-names = "default"; |
| 962 | pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>; |
| 963 | phy-is-integrated; |
| 964 | }; |
| 965 | }; |
| 966 | }; |
| 967 | |
Meng Dongyang | ef82a0d | 2017-05-17 18:21:46 +0800 | [diff] [blame] | 968 | usb_host0_ehci: usb@ff5c0000 { |
| 969 | compatible = "generic-ehci"; |
| 970 | reg = <0x0 0xff5c0000 0x0 0x10000>; |
| 971 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 972 | clocks = <&cru HCLK_HOST0>, <&u2phy>; |
| 973 | phys = <&u2phy_host>; |
| 974 | phy-names = "usb"; |
Meng Dongyang | ef82a0d | 2017-05-17 18:21:46 +0800 | [diff] [blame] | 975 | status = "disabled"; |
| 976 | }; |
| 977 | |
| 978 | usb_host0_ohci: usb@ff5d0000 { |
| 979 | compatible = "generic-ohci"; |
| 980 | reg = <0x0 0xff5d0000 0x0 0x10000>; |
| 981 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 982 | clocks = <&cru HCLK_HOST0>, <&u2phy>; |
| 983 | phys = <&u2phy_host>; |
| 984 | phy-names = "usb"; |
Meng Dongyang | ef82a0d | 2017-05-17 18:21:46 +0800 | [diff] [blame] | 985 | status = "disabled"; |
| 986 | }; |
| 987 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 988 | usbdrd3: usb@ff600000 { |
| 989 | compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; |
| 990 | reg = <0x0 0xff600000 0x0 0x100000>; |
| 991 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; |
| 992 | clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>, |
| 993 | <&cru ACLK_USB3OTG>; |
| 994 | clock-names = "ref_clk", "suspend_clk", |
| 995 | "bus_clk"; |
| 996 | dr_mode = "otg"; |
| 997 | phy_type = "utmi_wide"; |
| 998 | snps,dis-del-phy-power-chg-quirk; |
| 999 | snps,dis_enblslpm_quirk; |
| 1000 | snps,dis-tx-ipgap-linecheck-quirk; |
| 1001 | snps,dis-u2-freeclk-exists-quirk; |
| 1002 | snps,dis_u2_susphy_quirk; |
| 1003 | snps,dis_u3_susphy_quirk; |
| 1004 | status = "disabled"; |
| 1005 | }; |
| 1006 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1007 | /* |
Michal Simek | 1be82af | 2023-05-17 09:17:16 +0200 | [diff] [blame] | 1008 | * U-Boot Specific Change |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1009 | * |
| 1010 | * The OTG controller must come after the USB host pair for it |
| 1011 | * to work. This is likely due to lack of support for the USB |
| 1012 | * PHYs. This must be manually changed after each device tree |
| 1013 | * sync. There is no clean way to handle this in -u-boot.dtsi |
| 1014 | * files. |
| 1015 | */ |
Meng Dongyang | 863456a | 2017-06-28 19:22:45 +0800 | [diff] [blame] | 1016 | usb20_otg: usb@ff580000 { |
| 1017 | compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb", |
| 1018 | "snps,dwc2"; |
| 1019 | reg = <0x0 0xff580000 0x0 0x40000>; |
| 1020 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1021 | clocks = <&cru HCLK_OTG>; |
| 1022 | clock-names = "otg"; |
Meng Dongyang | 863456a | 2017-06-28 19:22:45 +0800 | [diff] [blame] | 1023 | dr_mode = "otg"; |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1024 | g-np-tx-fifo-size = <16>; |
| 1025 | g-rx-fifo-size = <280>; |
| 1026 | g-tx-fifo-size = <256 128 128 64 32 16>; |
| 1027 | phys = <&u2phy_otg>; |
| 1028 | phy-names = "usb2-phy"; |
Meng Dongyang | 863456a | 2017-06-28 19:22:45 +0800 | [diff] [blame] | 1029 | status = "disabled"; |
| 1030 | }; |
| 1031 | |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1032 | gic: interrupt-controller@ff811000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1033 | compatible = "arm,gic-400"; |
| 1034 | #interrupt-cells = <3>; |
| 1035 | #address-cells = <0>; |
| 1036 | interrupt-controller; |
| 1037 | reg = <0x0 0xff811000 0 0x1000>, |
| 1038 | <0x0 0xff812000 0 0x2000>, |
| 1039 | <0x0 0xff814000 0 0x2000>, |
| 1040 | <0x0 0xff816000 0 0x2000>; |
| 1041 | interrupts = <GIC_PPI 9 |
| 1042 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 1043 | }; |
| 1044 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 1045 | crypto: crypto@ff060000 { |
| 1046 | compatible = "rockchip,rk3328-crypto"; |
| 1047 | reg = <0x0 0xff060000 0x0 0x4000>; |
| 1048 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| 1049 | clocks = <&cru HCLK_CRYPTO_MST>, <&cru HCLK_CRYPTO_SLV>, |
| 1050 | <&cru SCLK_CRYPTO>; |
| 1051 | clock-names = "hclk_master", "hclk_slave", "sclk"; |
| 1052 | resets = <&cru SRST_CRYPTO>; |
| 1053 | reset-names = "crypto-rst"; |
| 1054 | }; |
| 1055 | |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1056 | pinctrl: pinctrl { |
| 1057 | compatible = "rockchip,rk3328-pinctrl"; |
| 1058 | rockchip,grf = <&grf>; |
| 1059 | #address-cells = <2>; |
| 1060 | #size-cells = <2>; |
| 1061 | ranges; |
| 1062 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 1063 | gpio0: gpio@ff210000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1064 | compatible = "rockchip,gpio-bank"; |
| 1065 | reg = <0x0 0xff210000 0x0 0x100>; |
| 1066 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; |
| 1067 | clocks = <&cru PCLK_GPIO0>; |
| 1068 | |
| 1069 | gpio-controller; |
| 1070 | #gpio-cells = <2>; |
| 1071 | |
| 1072 | interrupt-controller; |
| 1073 | #interrupt-cells = <2>; |
| 1074 | }; |
| 1075 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 1076 | gpio1: gpio@ff220000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1077 | compatible = "rockchip,gpio-bank"; |
| 1078 | reg = <0x0 0xff220000 0x0 0x100>; |
| 1079 | interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; |
| 1080 | clocks = <&cru PCLK_GPIO1>; |
| 1081 | |
| 1082 | gpio-controller; |
| 1083 | #gpio-cells = <2>; |
| 1084 | |
| 1085 | interrupt-controller; |
| 1086 | #interrupt-cells = <2>; |
| 1087 | }; |
| 1088 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 1089 | gpio2: gpio@ff230000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1090 | compatible = "rockchip,gpio-bank"; |
| 1091 | reg = <0x0 0xff230000 0x0 0x100>; |
| 1092 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; |
| 1093 | clocks = <&cru PCLK_GPIO2>; |
| 1094 | |
| 1095 | gpio-controller; |
| 1096 | #gpio-cells = <2>; |
| 1097 | |
| 1098 | interrupt-controller; |
| 1099 | #interrupt-cells = <2>; |
| 1100 | }; |
| 1101 | |
Jonas Karlman | 9b67e60 | 2024-02-17 00:22:37 +0000 | [diff] [blame] | 1102 | gpio3: gpio@ff240000 { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1103 | compatible = "rockchip,gpio-bank"; |
| 1104 | reg = <0x0 0xff240000 0x0 0x100>; |
| 1105 | interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
| 1106 | clocks = <&cru PCLK_GPIO3>; |
| 1107 | |
| 1108 | gpio-controller; |
| 1109 | #gpio-cells = <2>; |
| 1110 | |
| 1111 | interrupt-controller; |
| 1112 | #interrupt-cells = <2>; |
| 1113 | }; |
| 1114 | |
| 1115 | pcfg_pull_up: pcfg-pull-up { |
| 1116 | bias-pull-up; |
| 1117 | }; |
| 1118 | |
| 1119 | pcfg_pull_down: pcfg-pull-down { |
| 1120 | bias-pull-down; |
| 1121 | }; |
| 1122 | |
| 1123 | pcfg_pull_none: pcfg-pull-none { |
| 1124 | bias-disable; |
| 1125 | }; |
| 1126 | |
| 1127 | pcfg_pull_none_2ma: pcfg-pull-none-2ma { |
| 1128 | bias-disable; |
| 1129 | drive-strength = <2>; |
| 1130 | }; |
| 1131 | |
| 1132 | pcfg_pull_up_2ma: pcfg-pull-up-2ma { |
| 1133 | bias-pull-up; |
| 1134 | drive-strength = <2>; |
| 1135 | }; |
| 1136 | |
| 1137 | pcfg_pull_up_4ma: pcfg-pull-up-4ma { |
| 1138 | bias-pull-up; |
| 1139 | drive-strength = <4>; |
| 1140 | }; |
| 1141 | |
| 1142 | pcfg_pull_none_4ma: pcfg-pull-none-4ma { |
| 1143 | bias-disable; |
| 1144 | drive-strength = <4>; |
| 1145 | }; |
| 1146 | |
| 1147 | pcfg_pull_down_4ma: pcfg-pull-down-4ma { |
| 1148 | bias-pull-down; |
| 1149 | drive-strength = <4>; |
| 1150 | }; |
| 1151 | |
| 1152 | pcfg_pull_none_8ma: pcfg-pull-none-8ma { |
| 1153 | bias-disable; |
| 1154 | drive-strength = <8>; |
| 1155 | }; |
| 1156 | |
| 1157 | pcfg_pull_up_8ma: pcfg-pull-up-8ma { |
| 1158 | bias-pull-up; |
| 1159 | drive-strength = <8>; |
| 1160 | }; |
| 1161 | |
| 1162 | pcfg_pull_none_12ma: pcfg-pull-none-12ma { |
| 1163 | bias-disable; |
| 1164 | drive-strength = <12>; |
| 1165 | }; |
| 1166 | |
| 1167 | pcfg_pull_up_12ma: pcfg-pull-up-12ma { |
| 1168 | bias-pull-up; |
| 1169 | drive-strength = <12>; |
| 1170 | }; |
| 1171 | |
| 1172 | pcfg_output_high: pcfg-output-high { |
| 1173 | output-high; |
| 1174 | }; |
| 1175 | |
| 1176 | pcfg_output_low: pcfg-output-low { |
| 1177 | output-low; |
| 1178 | }; |
| 1179 | |
| 1180 | pcfg_input_high: pcfg-input-high { |
| 1181 | bias-pull-up; |
| 1182 | input-enable; |
| 1183 | }; |
| 1184 | |
| 1185 | pcfg_input: pcfg-input { |
| 1186 | input-enable; |
| 1187 | }; |
| 1188 | |
| 1189 | i2c0 { |
| 1190 | i2c0_xfer: i2c0-xfer { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1191 | rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>, |
| 1192 | <2 RK_PD1 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1193 | }; |
| 1194 | }; |
| 1195 | |
| 1196 | i2c1 { |
| 1197 | i2c1_xfer: i2c1-xfer { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1198 | rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>, |
| 1199 | <2 RK_PA5 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1200 | }; |
| 1201 | }; |
| 1202 | |
| 1203 | i2c2 { |
| 1204 | i2c2_xfer: i2c2-xfer { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1205 | rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>, |
| 1206 | <2 RK_PB6 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1207 | }; |
| 1208 | }; |
| 1209 | |
| 1210 | i2c3 { |
| 1211 | i2c3_xfer: i2c3-xfer { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1212 | rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>, |
| 1213 | <0 RK_PA6 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1214 | }; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1215 | i2c3_pins: i2c3-pins { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1216 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1217 | <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>, |
| 1218 | <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1219 | }; |
| 1220 | }; |
| 1221 | |
| 1222 | hdmi_i2c { |
| 1223 | hdmii2c_xfer: hdmii2c-xfer { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1224 | rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>, |
| 1225 | <0 RK_PA6 1 &pcfg_pull_none>; |
| 1226 | }; |
| 1227 | }; |
| 1228 | |
| 1229 | pdm-0 { |
| 1230 | pdmm0_clk: pdmm0-clk { |
| 1231 | rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>; |
| 1232 | }; |
| 1233 | |
| 1234 | pdmm0_fsync: pdmm0-fsync { |
| 1235 | rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>; |
| 1236 | }; |
| 1237 | |
| 1238 | pdmm0_sdi0: pdmm0-sdi0 { |
| 1239 | rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>; |
| 1240 | }; |
| 1241 | |
| 1242 | pdmm0_sdi1: pdmm0-sdi1 { |
| 1243 | rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>; |
| 1244 | }; |
| 1245 | |
| 1246 | pdmm0_sdi2: pdmm0-sdi2 { |
| 1247 | rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>; |
| 1248 | }; |
| 1249 | |
| 1250 | pdmm0_sdi3: pdmm0-sdi3 { |
| 1251 | rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>; |
| 1252 | }; |
| 1253 | |
| 1254 | pdmm0_clk_sleep: pdmm0-clk-sleep { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1255 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1256 | <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>; |
| 1257 | }; |
| 1258 | |
| 1259 | pdmm0_sdi0_sleep: pdmm0-sdi0-sleep { |
| 1260 | rockchip,pins = |
| 1261 | <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>; |
| 1262 | }; |
| 1263 | |
| 1264 | pdmm0_sdi1_sleep: pdmm0-sdi1-sleep { |
| 1265 | rockchip,pins = |
| 1266 | <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>; |
| 1267 | }; |
| 1268 | |
| 1269 | pdmm0_sdi2_sleep: pdmm0-sdi2-sleep { |
| 1270 | rockchip,pins = |
| 1271 | <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>; |
| 1272 | }; |
| 1273 | |
| 1274 | pdmm0_sdi3_sleep: pdmm0-sdi3-sleep { |
| 1275 | rockchip,pins = |
| 1276 | <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>; |
| 1277 | }; |
| 1278 | |
| 1279 | pdmm0_fsync_sleep: pdmm0-fsync-sleep { |
| 1280 | rockchip,pins = |
| 1281 | <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>; |
| 1282 | }; |
| 1283 | }; |
| 1284 | |
| 1285 | tsadc { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1286 | otp_pin: otp-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1287 | rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 1288 | }; |
| 1289 | |
| 1290 | otp_out: otp-out { |
| 1291 | rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1292 | }; |
| 1293 | }; |
| 1294 | |
| 1295 | uart0 { |
| 1296 | uart0_xfer: uart0-xfer { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1297 | rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>, |
| 1298 | <1 RK_PB0 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1299 | }; |
| 1300 | |
| 1301 | uart0_cts: uart0-cts { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1302 | rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1303 | }; |
| 1304 | |
| 1305 | uart0_rts: uart0-rts { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1306 | rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1307 | }; |
| 1308 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1309 | uart0_rts_pin: uart0-rts-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1310 | rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1311 | }; |
| 1312 | }; |
| 1313 | |
| 1314 | uart1 { |
| 1315 | uart1_xfer: uart1-xfer { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1316 | rockchip,pins = <3 RK_PA4 4 &pcfg_pull_none>, |
| 1317 | <3 RK_PA6 4 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1318 | }; |
| 1319 | |
| 1320 | uart1_cts: uart1-cts { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1321 | rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1322 | }; |
| 1323 | |
| 1324 | uart1_rts: uart1-rts { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1325 | rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1326 | }; |
| 1327 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1328 | uart1_rts_pin: uart1-rts-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1329 | rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1330 | }; |
| 1331 | }; |
| 1332 | |
| 1333 | uart2-0 { |
| 1334 | uart2m0_xfer: uart2m0-xfer { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1335 | rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>, |
| 1336 | <1 RK_PA1 2 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1337 | }; |
| 1338 | }; |
| 1339 | |
| 1340 | uart2-1 { |
| 1341 | uart2m1_xfer: uart2m1-xfer { |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1342 | rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>, |
| 1343 | <2 RK_PA1 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1344 | }; |
| 1345 | }; |
| 1346 | |
| 1347 | spi0-0 { |
| 1348 | spi0m0_clk: spi0m0-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1349 | rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1350 | }; |
| 1351 | |
| 1352 | spi0m0_cs0: spi0m0-cs0 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1353 | rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1354 | }; |
| 1355 | |
| 1356 | spi0m0_tx: spi0m0-tx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1357 | rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1358 | }; |
| 1359 | |
| 1360 | spi0m0_rx: spi0m0-rx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1361 | rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1362 | }; |
| 1363 | |
| 1364 | spi0m0_cs1: spi0m0-cs1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1365 | rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1366 | }; |
| 1367 | }; |
| 1368 | |
| 1369 | spi0-1 { |
| 1370 | spi0m1_clk: spi0m1-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1371 | rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1372 | }; |
| 1373 | |
| 1374 | spi0m1_cs0: spi0m1-cs0 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1375 | rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1376 | }; |
| 1377 | |
| 1378 | spi0m1_tx: spi0m1-tx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1379 | rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1380 | }; |
| 1381 | |
| 1382 | spi0m1_rx: spi0m1-rx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1383 | rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1384 | }; |
| 1385 | |
| 1386 | spi0m1_cs1: spi0m1-cs1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1387 | rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1388 | }; |
| 1389 | }; |
| 1390 | |
| 1391 | spi0-2 { |
| 1392 | spi0m2_clk: spi0m2-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1393 | rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1394 | }; |
| 1395 | |
| 1396 | spi0m2_cs0: spi0m2-cs0 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1397 | rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1398 | }; |
| 1399 | |
| 1400 | spi0m2_tx: spi0m2-tx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1401 | rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1402 | }; |
| 1403 | |
| 1404 | spi0m2_rx: spi0m2-rx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1405 | rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1406 | }; |
| 1407 | }; |
| 1408 | |
| 1409 | i2s1 { |
| 1410 | i2s1_mclk: i2s1-mclk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1411 | rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1412 | }; |
| 1413 | |
| 1414 | i2s1_sclk: i2s1-sclk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1415 | rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1416 | }; |
| 1417 | |
| 1418 | i2s1_lrckrx: i2s1-lrckrx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1419 | rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1420 | }; |
| 1421 | |
| 1422 | i2s1_lrcktx: i2s1-lrcktx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1423 | rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1424 | }; |
| 1425 | |
| 1426 | i2s1_sdi: i2s1-sdi { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1427 | rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1428 | }; |
| 1429 | |
| 1430 | i2s1_sdo: i2s1-sdo { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1431 | rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1432 | }; |
| 1433 | |
| 1434 | i2s1_sdio1: i2s1-sdio1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1435 | rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1436 | }; |
| 1437 | |
| 1438 | i2s1_sdio2: i2s1-sdio2 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1439 | rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1440 | }; |
| 1441 | |
| 1442 | i2s1_sdio3: i2s1-sdio3 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1443 | rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1444 | }; |
| 1445 | |
| 1446 | i2s1_sleep: i2s1-sleep { |
| 1447 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1448 | <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>, |
| 1449 | <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>, |
| 1450 | <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>, |
| 1451 | <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>, |
| 1452 | <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>, |
| 1453 | <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>, |
| 1454 | <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>, |
| 1455 | <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>, |
| 1456 | <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1457 | }; |
| 1458 | }; |
| 1459 | |
| 1460 | i2s2-0 { |
| 1461 | i2s2m0_mclk: i2s2m0-mclk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1462 | rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1463 | }; |
| 1464 | |
| 1465 | i2s2m0_sclk: i2s2m0-sclk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1466 | rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1467 | }; |
| 1468 | |
| 1469 | i2s2m0_lrckrx: i2s2m0-lrckrx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1470 | rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1471 | }; |
| 1472 | |
| 1473 | i2s2m0_lrcktx: i2s2m0-lrcktx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1474 | rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1475 | }; |
| 1476 | |
| 1477 | i2s2m0_sdi: i2s2m0-sdi { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1478 | rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1479 | }; |
| 1480 | |
| 1481 | i2s2m0_sdo: i2s2m0-sdo { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1482 | rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1483 | }; |
| 1484 | |
| 1485 | i2s2m0_sleep: i2s2m0-sleep { |
| 1486 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1487 | <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>, |
| 1488 | <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>, |
| 1489 | <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>, |
| 1490 | <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>, |
| 1491 | <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>, |
| 1492 | <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1493 | }; |
| 1494 | }; |
| 1495 | |
| 1496 | i2s2-1 { |
| 1497 | i2s2m1_mclk: i2s2m1-mclk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1498 | rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1499 | }; |
| 1500 | |
| 1501 | i2s2m1_sclk: i2s2m1-sclk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1502 | rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1503 | }; |
| 1504 | |
| 1505 | i2s2m1_lrckrx: i2sm1-lrckrx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1506 | rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1507 | }; |
| 1508 | |
| 1509 | i2s2m1_lrcktx: i2s2m1-lrcktx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1510 | rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1511 | }; |
| 1512 | |
| 1513 | i2s2m1_sdi: i2s2m1-sdi { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1514 | rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1515 | }; |
| 1516 | |
| 1517 | i2s2m1_sdo: i2s2m1-sdo { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1518 | rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1519 | }; |
| 1520 | |
| 1521 | i2s2m1_sleep: i2s2m1-sleep { |
| 1522 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1523 | <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>, |
| 1524 | <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>, |
| 1525 | <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>, |
| 1526 | <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>, |
| 1527 | <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1528 | }; |
| 1529 | }; |
| 1530 | |
| 1531 | spdif-0 { |
| 1532 | spdifm0_tx: spdifm0-tx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1533 | rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1534 | }; |
| 1535 | }; |
| 1536 | |
| 1537 | spdif-1 { |
| 1538 | spdifm1_tx: spdifm1-tx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1539 | rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1540 | }; |
| 1541 | }; |
| 1542 | |
| 1543 | spdif-2 { |
| 1544 | spdifm2_tx: spdifm2-tx { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1545 | rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1546 | }; |
| 1547 | }; |
| 1548 | |
| 1549 | sdmmc0-0 { |
| 1550 | sdmmc0m0_pwren: sdmmc0m0-pwren { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1551 | rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1552 | }; |
| 1553 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1554 | sdmmc0m0_pin: sdmmc0m0-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1555 | rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1556 | }; |
| 1557 | }; |
| 1558 | |
| 1559 | sdmmc0-1 { |
| 1560 | sdmmc0m1_pwren: sdmmc0m1-pwren { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1561 | rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1562 | }; |
| 1563 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1564 | sdmmc0m1_pin: sdmmc0m1-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1565 | rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1566 | }; |
| 1567 | }; |
| 1568 | |
| 1569 | sdmmc0 { |
| 1570 | sdmmc0_clk: sdmmc0-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1571 | rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1572 | }; |
| 1573 | |
| 1574 | sdmmc0_cmd: sdmmc0-cmd { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1575 | rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1576 | }; |
| 1577 | |
| 1578 | sdmmc0_dectn: sdmmc0-dectn { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1579 | rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1580 | }; |
| 1581 | |
| 1582 | sdmmc0_wrprt: sdmmc0-wrprt { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1583 | rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1584 | }; |
| 1585 | |
| 1586 | sdmmc0_bus1: sdmmc0-bus1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1587 | rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1588 | }; |
| 1589 | |
| 1590 | sdmmc0_bus4: sdmmc0-bus4 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1591 | rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>, |
| 1592 | <1 RK_PA1 1 &pcfg_pull_up_8ma>, |
| 1593 | <1 RK_PA2 1 &pcfg_pull_up_8ma>, |
| 1594 | <1 RK_PA3 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1595 | }; |
| 1596 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1597 | sdmmc0_pins: sdmmc0-pins { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1598 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1599 | <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1600 | <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1601 | <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1602 | <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1603 | <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1604 | <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1605 | <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1606 | <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1607 | }; |
| 1608 | }; |
| 1609 | |
| 1610 | sdmmc0ext { |
| 1611 | sdmmc0ext_clk: sdmmc0ext-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1612 | rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1613 | }; |
| 1614 | |
| 1615 | sdmmc0ext_cmd: sdmmc0ext-cmd { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1616 | rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1617 | }; |
| 1618 | |
| 1619 | sdmmc0ext_wrprt: sdmmc0ext-wrprt { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1620 | rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1621 | }; |
| 1622 | |
| 1623 | sdmmc0ext_dectn: sdmmc0ext-dectn { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1624 | rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1625 | }; |
| 1626 | |
| 1627 | sdmmc0ext_bus1: sdmmc0ext-bus1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1628 | rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1629 | }; |
| 1630 | |
| 1631 | sdmmc0ext_bus4: sdmmc0ext-bus4 { |
| 1632 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1633 | <3 RK_PA4 3 &pcfg_pull_up_4ma>, |
| 1634 | <3 RK_PA5 3 &pcfg_pull_up_4ma>, |
| 1635 | <3 RK_PA6 3 &pcfg_pull_up_4ma>, |
| 1636 | <3 RK_PA7 3 &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1637 | }; |
| 1638 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1639 | sdmmc0ext_pins: sdmmc0ext-pins { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1640 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1641 | <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1642 | <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1643 | <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1644 | <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1645 | <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1646 | <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1647 | <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1648 | <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1649 | }; |
| 1650 | }; |
| 1651 | |
| 1652 | sdmmc1 { |
| 1653 | sdmmc1_clk: sdmmc1-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1654 | rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1655 | }; |
| 1656 | |
| 1657 | sdmmc1_cmd: sdmmc1-cmd { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1658 | rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1659 | }; |
| 1660 | |
| 1661 | sdmmc1_pwren: sdmmc1-pwren { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1662 | rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1663 | }; |
| 1664 | |
| 1665 | sdmmc1_wrprt: sdmmc1-wrprt { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1666 | rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1667 | }; |
| 1668 | |
| 1669 | sdmmc1_dectn: sdmmc1-dectn { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1670 | rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1671 | }; |
| 1672 | |
| 1673 | sdmmc1_bus1: sdmmc1-bus1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1674 | rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1675 | }; |
| 1676 | |
| 1677 | sdmmc1_bus4: sdmmc1-bus4 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1678 | rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>, |
| 1679 | <1 RK_PB7 1 &pcfg_pull_up_8ma>, |
| 1680 | <1 RK_PC0 1 &pcfg_pull_up_8ma>, |
| 1681 | <1 RK_PC1 1 &pcfg_pull_up_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1682 | }; |
| 1683 | |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1684 | sdmmc1_pins: sdmmc1-pins { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1685 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1686 | <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1687 | <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1688 | <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1689 | <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1690 | <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1691 | <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1692 | <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1693 | <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>, |
| 1694 | <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1695 | }; |
| 1696 | }; |
| 1697 | |
| 1698 | emmc { |
| 1699 | emmc_clk: emmc-clk { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1700 | rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1701 | }; |
| 1702 | |
| 1703 | emmc_cmd: emmc-cmd { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1704 | rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1705 | }; |
| 1706 | |
| 1707 | emmc_pwren: emmc-pwren { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1708 | rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1709 | }; |
| 1710 | |
| 1711 | emmc_rstnout: emmc-rstnout { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1712 | rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1713 | }; |
| 1714 | |
| 1715 | emmc_bus1: emmc-bus1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1716 | rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1717 | }; |
| 1718 | |
| 1719 | emmc_bus4: emmc-bus4 { |
| 1720 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1721 | <0 RK_PA7 2 &pcfg_pull_up_12ma>, |
| 1722 | <2 RK_PD4 2 &pcfg_pull_up_12ma>, |
| 1723 | <2 RK_PD5 2 &pcfg_pull_up_12ma>, |
| 1724 | <2 RK_PD6 2 &pcfg_pull_up_12ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1725 | }; |
| 1726 | |
| 1727 | emmc_bus8: emmc-bus8 { |
| 1728 | rockchip,pins = |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1729 | <0 RK_PA7 2 &pcfg_pull_up_12ma>, |
| 1730 | <2 RK_PD4 2 &pcfg_pull_up_12ma>, |
| 1731 | <2 RK_PD5 2 &pcfg_pull_up_12ma>, |
| 1732 | <2 RK_PD6 2 &pcfg_pull_up_12ma>, |
| 1733 | <2 RK_PD7 2 &pcfg_pull_up_12ma>, |
| 1734 | <3 RK_PC0 2 &pcfg_pull_up_12ma>, |
| 1735 | <3 RK_PC1 2 &pcfg_pull_up_12ma>, |
| 1736 | <3 RK_PC2 2 &pcfg_pull_up_12ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1737 | }; |
| 1738 | }; |
| 1739 | |
| 1740 | pwm0 { |
| 1741 | pwm0_pin: pwm0-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1742 | rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1743 | }; |
| 1744 | }; |
| 1745 | |
| 1746 | pwm1 { |
| 1747 | pwm1_pin: pwm1-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1748 | rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1749 | }; |
| 1750 | }; |
| 1751 | |
| 1752 | pwm2 { |
| 1753 | pwm2_pin: pwm2-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1754 | rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1755 | }; |
| 1756 | }; |
| 1757 | |
| 1758 | pwmir { |
| 1759 | pwmir_pin: pwmir-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1760 | rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1761 | }; |
| 1762 | }; |
| 1763 | |
| 1764 | gmac-1 { |
| 1765 | rgmiim1_pins: rgmiim1-pins { |
| 1766 | rockchip,pins = |
| 1767 | /* mac_txclk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1768 | <1 RK_PB4 2 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1769 | /* mac_rxclk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1770 | <1 RK_PB5 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1771 | /* mac_mdio */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1772 | <1 RK_PC3 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1773 | /* mac_txen */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1774 | <1 RK_PD1 2 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1775 | /* mac_clk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1776 | <1 RK_PC5 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1777 | /* mac_rxdv */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1778 | <1 RK_PC6 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1779 | /* mac_mdc */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1780 | <1 RK_PC7 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1781 | /* mac_rxd1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1782 | <1 RK_PB2 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1783 | /* mac_rxd0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1784 | <1 RK_PB3 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1785 | /* mac_txd1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1786 | <1 RK_PB0 2 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1787 | /* mac_txd0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1788 | <1 RK_PB1 2 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1789 | /* mac_rxd3 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1790 | <1 RK_PB6 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1791 | /* mac_rxd2 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1792 | <1 RK_PB7 2 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1793 | /* mac_txd3 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1794 | <1 RK_PC0 2 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1795 | /* mac_txd2 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1796 | <1 RK_PC1 2 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1797 | |
| 1798 | /* mac_txclk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1799 | <0 RK_PB0 1 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1800 | /* mac_txen */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1801 | <0 RK_PB4 1 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1802 | /* mac_clk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1803 | <0 RK_PD0 1 &pcfg_pull_none_4ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1804 | /* mac_txd1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1805 | <0 RK_PC0 1 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1806 | /* mac_txd0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1807 | <0 RK_PC1 1 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1808 | /* mac_txd3 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1809 | <0 RK_PC7 1 &pcfg_pull_none_8ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1810 | /* mac_txd2 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1811 | <0 RK_PC6 1 &pcfg_pull_none_8ma>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1812 | }; |
| 1813 | |
| 1814 | rmiim1_pins: rmiim1-pins { |
| 1815 | rockchip,pins = |
| 1816 | /* mac_mdio */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1817 | <1 RK_PC3 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1818 | /* mac_txen */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1819 | <1 RK_PD1 2 &pcfg_pull_none_12ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1820 | /* mac_clk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1821 | <1 RK_PC5 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1822 | /* mac_rxer */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1823 | <1 RK_PD0 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1824 | /* mac_rxdv */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1825 | <1 RK_PC6 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1826 | /* mac_mdc */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1827 | <1 RK_PC7 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1828 | /* mac_rxd1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1829 | <1 RK_PB2 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1830 | /* mac_rxd0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1831 | <1 RK_PB3 2 &pcfg_pull_none_2ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1832 | /* mac_txd1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1833 | <1 RK_PB0 2 &pcfg_pull_none_12ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1834 | /* mac_txd0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1835 | <1 RK_PB1 2 &pcfg_pull_none_12ma>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1836 | |
| 1837 | /* mac_mdio */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1838 | <0 RK_PB3 1 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1839 | /* mac_txen */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1840 | <0 RK_PB4 1 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1841 | /* mac_clk */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1842 | <0 RK_PD0 1 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1843 | /* mac_mdc */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1844 | <0 RK_PC3 1 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1845 | /* mac_txd1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1846 | <0 RK_PC0 1 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1847 | /* mac_txd0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1848 | <0 RK_PC1 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1849 | }; |
| 1850 | }; |
| 1851 | |
| 1852 | gmac2phy { |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1853 | fephyled_speed10: fephyled-speed10 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1854 | rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1855 | }; |
| 1856 | |
| 1857 | fephyled_duplex: fephyled-duplex { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1858 | rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1859 | }; |
| 1860 | |
| 1861 | fephyled_rxm1: fephyled-rxm1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1862 | rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1863 | }; |
| 1864 | |
| 1865 | fephyled_txm1: fephyled-txm1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1866 | rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1867 | }; |
| 1868 | |
| 1869 | fephyled_linkm1: fephyled-linkm1 { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1870 | rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1871 | }; |
| 1872 | }; |
| 1873 | |
| 1874 | tsadc_pin { |
| 1875 | tsadc_int: tsadc-int { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1876 | rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1877 | }; |
Peter Robinson | 27e1b5e | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 1878 | tsadc_pin: tsadc-pin { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1879 | rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1880 | }; |
| 1881 | }; |
| 1882 | |
| 1883 | hdmi_pin { |
| 1884 | hdmi_cec: hdmi-cec { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1885 | rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1886 | }; |
| 1887 | |
| 1888 | hdmi_hpd: hdmi-hpd { |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1889 | rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1890 | }; |
| 1891 | }; |
| 1892 | |
| 1893 | cif-0 { |
| 1894 | dvp_d2d9_m0:dvp-d2d9-m0 { |
| 1895 | rockchip,pins = |
| 1896 | /* cif_d0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1897 | <3 RK_PA4 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1898 | /* cif_d1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1899 | <3 RK_PA5 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1900 | /* cif_d2 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1901 | <3 RK_PA6 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1902 | /* cif_d3 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1903 | <3 RK_PA7 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1904 | /* cif_d4 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1905 | <3 RK_PB0 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1906 | /* cif_d5m0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1907 | <3 RK_PB1 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1908 | /* cif_d6m0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1909 | <3 RK_PB2 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1910 | /* cif_d7m0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1911 | <3 RK_PB3 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1912 | /* cif_href */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1913 | <3 RK_PA1 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1914 | /* cif_vsync */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1915 | <3 RK_PA0 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1916 | /* cif_clkoutm0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1917 | <3 RK_PA3 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1918 | /* cif_clkin */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1919 | <3 RK_PA2 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1920 | }; |
| 1921 | }; |
| 1922 | |
| 1923 | cif-1 { |
| 1924 | dvp_d2d9_m1:dvp-d2d9-m1 { |
| 1925 | rockchip,pins = |
| 1926 | /* cif_d0 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1927 | <3 RK_PA4 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1928 | /* cif_d1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1929 | <3 RK_PA5 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1930 | /* cif_d2 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1931 | <3 RK_PA6 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1932 | /* cif_d3 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1933 | <3 RK_PA7 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1934 | /* cif_d4 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1935 | <3 RK_PB0 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1936 | /* cif_d5m1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1937 | <2 RK_PC0 4 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1938 | /* cif_d6m1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1939 | <2 RK_PC1 4 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1940 | /* cif_d7m1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1941 | <2 RK_PC2 4 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1942 | /* cif_href */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1943 | <3 RK_PA1 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1944 | /* cif_vsync */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1945 | <3 RK_PA0 2 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1946 | /* cif_clkoutm1 */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1947 | <2 RK_PB7 4 &pcfg_pull_none>, |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1948 | /* cif_clkin */ |
Chen-Yu Tsai | 50cbff7 | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 1949 | <3 RK_PA2 2 &pcfg_pull_none>; |
Kever Yang | e94ffee | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 1950 | }; |
| 1951 | }; |
| 1952 | }; |
| 1953 | }; |