1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 2 3 #include <dt-bindings/gpio/gpio.h> 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/interrupt-controller/irq 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/arm 5 #include <dt-bindings/interrupt-controller/arm-gic.h> 6 #include <dt-bindings/clock/rv1108-cru.h> 6 #include <dt-bindings/clock/rv1108-cru.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/thermal/thermal.h> 8 #include <dt-bindings/thermal/thermal.h> 9 / { 9 / { 10 #address-cells = <1>; 10 #address-cells = <1>; 11 #size-cells = <1>; 11 #size-cells = <1>; 12 12 13 compatible = "rockchip,rv1108"; 13 compatible = "rockchip,rv1108"; 14 14 15 interrupt-parent = <&gic>; 15 interrupt-parent = <&gic>; 16 16 17 aliases { 17 aliases { 18 i2c0 = &i2c0; 18 i2c0 = &i2c0; 19 i2c1 = &i2c1; 19 i2c1 = &i2c1; 20 i2c2 = &i2c2; 20 i2c2 = &i2c2; 21 i2c3 = &i2c3; 21 i2c3 = &i2c3; 22 serial0 = &uart0; 22 serial0 = &uart0; 23 serial1 = &uart1; 23 serial1 = &uart1; 24 serial2 = &uart2; 24 serial2 = &uart2; 25 }; 25 }; 26 26 27 cpus { 27 cpus { 28 #address-cells = <1>; 28 #address-cells = <1>; 29 #size-cells = <0>; 29 #size-cells = <0>; 30 30 31 cpu0: cpu@f00 { 31 cpu0: cpu@f00 { 32 device_type = "cpu"; 32 device_type = "cpu"; 33 compatible = "arm,cort 33 compatible = "arm,cortex-a7"; 34 reg = <0xf00>; 34 reg = <0xf00>; 35 clock-latency = <40000 35 clock-latency = <40000>; 36 clocks = <&cru ARMCLK> 36 clocks = <&cru ARMCLK>; 37 #cooling-cells = <2>; 37 #cooling-cells = <2>; /* min followed by max */ 38 dynamic-power-coeffici 38 dynamic-power-coefficient = <75>; 39 operating-points-v2 = 39 operating-points-v2 = <&cpu_opp_table>; 40 }; 40 }; 41 }; 41 }; 42 42 43 cpu_opp_table: opp-table-0 { 43 cpu_opp_table: opp-table-0 { 44 compatible = "operating-points 44 compatible = "operating-points-v2"; 45 45 46 opp-408000000 { 46 opp-408000000 { 47 opp-hz = /bits/ 64 <40 47 opp-hz = /bits/ 64 <408000000>; 48 opp-microvolt = <97500 48 opp-microvolt = <975000>; 49 clock-latency-ns = <40 49 clock-latency-ns = <40000>; 50 }; 50 }; 51 opp-600000000 { 51 opp-600000000 { 52 opp-hz = /bits/ 64 <60 52 opp-hz = /bits/ 64 <600000000>; 53 opp-microvolt = <97500 53 opp-microvolt = <975000>; 54 clock-latency-ns = <40 54 clock-latency-ns = <40000>; 55 }; 55 }; 56 opp-816000000 { 56 opp-816000000 { 57 opp-hz = /bits/ 64 <81 57 opp-hz = /bits/ 64 <816000000>; 58 opp-microvolt = <10250 58 opp-microvolt = <1025000>; 59 clock-latency-ns = <40 59 clock-latency-ns = <40000>; 60 }; 60 }; 61 opp-1008000000 { 61 opp-1008000000 { 62 opp-hz = /bits/ 64 <10 62 opp-hz = /bits/ 64 <1008000000>; 63 opp-microvolt = <11500 63 opp-microvolt = <1150000>; 64 clock-latency-ns = <40 64 clock-latency-ns = <40000>; 65 }; 65 }; 66 }; 66 }; 67 67 68 arm-pmu { 68 arm-pmu { 69 compatible = "arm,cortex-a7-pm 69 compatible = "arm,cortex-a7-pmu"; 70 interrupts = <GIC_SPI 76 IRQ_T 70 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; 71 }; 71 }; 72 72 73 timer { 73 timer { 74 compatible = "arm,armv7-timer" 74 compatible = "arm,armv7-timer"; 75 interrupts = <GIC_PPI 13 (GIC_ 75 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>, 76 <GIC_PPI 14 (GIC_ 76 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; 77 arm,cpu-registers-not-fw-confi 77 arm,cpu-registers-not-fw-configured; 78 clock-frequency = <24000000>; 78 clock-frequency = <24000000>; 79 }; 79 }; 80 80 81 xin24m: oscillator { 81 xin24m: oscillator { 82 compatible = "fixed-clock"; 82 compatible = "fixed-clock"; 83 clock-frequency = <24000000>; 83 clock-frequency = <24000000>; 84 clock-output-names = "xin24m"; 84 clock-output-names = "xin24m"; 85 #clock-cells = <0>; 85 #clock-cells = <0>; 86 }; 86 }; 87 87 88 bus_intmem: sram@10080000 { 88 bus_intmem: sram@10080000 { 89 compatible = "mmio-sram"; 89 compatible = "mmio-sram"; 90 reg = <0x10080000 0x2000>; 90 reg = <0x10080000 0x2000>; 91 #address-cells = <1>; 91 #address-cells = <1>; 92 #size-cells = <1>; 92 #size-cells = <1>; 93 ranges = <0 0x10080000 0x2000> 93 ranges = <0 0x10080000 0x2000>; 94 }; 94 }; 95 95 96 uart2: serial@10210000 { 96 uart2: serial@10210000 { 97 compatible = "rockchip,rv1108- 97 compatible = "rockchip,rv1108-uart", "snps,dw-apb-uart"; 98 reg = <0x10210000 0x100>; 98 reg = <0x10210000 0x100>; 99 interrupts = <GIC_SPI 46 IRQ_T 99 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; 100 reg-shift = <2>; 100 reg-shift = <2>; 101 reg-io-width = <4>; 101 reg-io-width = <4>; 102 clock-frequency = <24000000>; 102 clock-frequency = <24000000>; 103 clocks = <&cru SCLK_UART2>, <& 103 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 104 clock-names = "baudclk", "apb_ 104 clock-names = "baudclk", "apb_pclk"; 105 dmas = <&pdma 6>, <&pdma 7>; 105 dmas = <&pdma 6>, <&pdma 7>; 106 pinctrl-names = "default"; 106 pinctrl-names = "default"; 107 pinctrl-0 = <&uart2m0_xfer>; 107 pinctrl-0 = <&uart2m0_xfer>; 108 status = "disabled"; 108 status = "disabled"; 109 }; 109 }; 110 110 111 uart1: serial@10220000 { 111 uart1: serial@10220000 { 112 compatible = "rockchip,rv1108- 112 compatible = "rockchip,rv1108-uart", "snps,dw-apb-uart"; 113 reg = <0x10220000 0x100>; 113 reg = <0x10220000 0x100>; 114 interrupts = <GIC_SPI 45 IRQ_T 114 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 115 reg-shift = <2>; 115 reg-shift = <2>; 116 reg-io-width = <4>; 116 reg-io-width = <4>; 117 clock-frequency = <24000000>; 117 clock-frequency = <24000000>; 118 clocks = <&cru SCLK_UART1>, <& 118 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 119 clock-names = "baudclk", "apb_ 119 clock-names = "baudclk", "apb_pclk"; 120 dmas = <&pdma 4>, <&pdma 5>; 120 dmas = <&pdma 4>, <&pdma 5>; 121 pinctrl-names = "default"; 121 pinctrl-names = "default"; 122 pinctrl-0 = <&uart1_xfer>; 122 pinctrl-0 = <&uart1_xfer>; 123 status = "disabled"; 123 status = "disabled"; 124 }; 124 }; 125 125 126 uart0: serial@10230000 { 126 uart0: serial@10230000 { 127 compatible = "rockchip,rv1108- 127 compatible = "rockchip,rv1108-uart", "snps,dw-apb-uart"; 128 reg = <0x10230000 0x100>; 128 reg = <0x10230000 0x100>; 129 interrupts = <GIC_SPI 44 IRQ_T 129 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 130 reg-shift = <2>; 130 reg-shift = <2>; 131 reg-io-width = <4>; 131 reg-io-width = <4>; 132 clock-frequency = <24000000>; 132 clock-frequency = <24000000>; 133 clocks = <&cru SCLK_UART0>, <& 133 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 134 clock-names = "baudclk", "apb_ 134 clock-names = "baudclk", "apb_pclk"; 135 dmas = <&pdma 2>, <&pdma 3>; 135 dmas = <&pdma 2>, <&pdma 3>; 136 pinctrl-names = "default"; 136 pinctrl-names = "default"; 137 pinctrl-0 = <&uart0_xfer &uart 137 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 138 status = "disabled"; 138 status = "disabled"; 139 }; 139 }; 140 140 141 i2c1: i2c@10240000 { 141 i2c1: i2c@10240000 { 142 compatible = "rockchip,rv1108- 142 compatible = "rockchip,rv1108-i2c"; 143 reg = <0x10240000 0x1000>; 143 reg = <0x10240000 0x1000>; 144 interrupts = <GIC_SPI 31 IRQ_T 144 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 145 #address-cells = <1>; 145 #address-cells = <1>; 146 #size-cells = <0>; 146 #size-cells = <0>; 147 clocks = <&cru SCLK_I2C1>, <&c 147 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>; 148 clock-names = "i2c", "pclk"; 148 clock-names = "i2c", "pclk"; 149 pinctrl-names = "default"; 149 pinctrl-names = "default"; 150 pinctrl-0 = <&i2c1_xfer>; 150 pinctrl-0 = <&i2c1_xfer>; 151 rockchip,grf = <&grf>; 151 rockchip,grf = <&grf>; 152 status = "disabled"; 152 status = "disabled"; 153 }; 153 }; 154 154 155 i2c2: i2c@10250000 { 155 i2c2: i2c@10250000 { 156 compatible = "rockchip,rv1108- 156 compatible = "rockchip,rv1108-i2c"; 157 reg = <0x10250000 0x1000>; 157 reg = <0x10250000 0x1000>; 158 interrupts = <GIC_SPI 32 IRQ_T 158 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 159 #address-cells = <1>; 159 #address-cells = <1>; 160 #size-cells = <0>; 160 #size-cells = <0>; 161 clocks = <&cru SCLK_I2C2>, <&c 161 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>; 162 clock-names = "i2c", "pclk"; 162 clock-names = "i2c", "pclk"; 163 pinctrl-names = "default"; 163 pinctrl-names = "default"; 164 pinctrl-0 = <&i2c2m1_xfer>; 164 pinctrl-0 = <&i2c2m1_xfer>; 165 rockchip,grf = <&grf>; 165 rockchip,grf = <&grf>; 166 status = "disabled"; 166 status = "disabled"; 167 }; 167 }; 168 168 169 i2c3: i2c@10260000 { 169 i2c3: i2c@10260000 { 170 compatible = "rockchip,rv1108- 170 compatible = "rockchip,rv1108-i2c"; 171 reg = <0x10260000 0x1000>; 171 reg = <0x10260000 0x1000>; 172 interrupts = <GIC_SPI 33 IRQ_T 172 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; 173 #address-cells = <1>; 173 #address-cells = <1>; 174 #size-cells = <0>; 174 #size-cells = <0>; 175 clocks = <&cru SCLK_I2C3>, <&c 175 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>; 176 clock-names = "i2c", "pclk"; 176 clock-names = "i2c", "pclk"; 177 pinctrl-names = "default"; 177 pinctrl-names = "default"; 178 pinctrl-0 = <&i2c3_xfer>; 178 pinctrl-0 = <&i2c3_xfer>; 179 rockchip,grf = <&grf>; 179 rockchip,grf = <&grf>; 180 status = "disabled"; 180 status = "disabled"; 181 }; 181 }; 182 182 183 spi: spi@10270000 { 183 spi: spi@10270000 { 184 compatible = "rockchip,rv1108- 184 compatible = "rockchip,rv1108-spi"; 185 reg = <0x10270000 0x1000>; 185 reg = <0x10270000 0x1000>; 186 interrupts = <GIC_SPI 37 IRQ_T 186 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 187 clocks = <&cru SCLK_SPI>, <&cr 187 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>; 188 clock-names = "spiclk", "apb_p 188 clock-names = "spiclk", "apb_pclk"; 189 dmas = <&pdma 8>, <&pdma 9>; 189 dmas = <&pdma 8>, <&pdma 9>; 190 dma-names = "tx", "rx"; 190 dma-names = "tx", "rx"; 191 #address-cells = <1>; 191 #address-cells = <1>; 192 #size-cells = <0>; 192 #size-cells = <0>; 193 status = "disabled"; 193 status = "disabled"; 194 }; 194 }; 195 195 196 pwm4: pwm@10280000 { 196 pwm4: pwm@10280000 { 197 compatible = "rockchip,rv1108- 197 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 198 reg = <0x10280000 0x10>; 198 reg = <0x10280000 0x10>; 199 clocks = <&cru SCLK_PWM>, <&cr 199 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 200 clock-names = "pwm", "pclk"; 200 clock-names = "pwm", "pclk"; 201 pinctrl-names = "default"; 201 pinctrl-names = "default"; 202 pinctrl-0 = <&pwm4_pin>; 202 pinctrl-0 = <&pwm4_pin>; 203 #pwm-cells = <3>; 203 #pwm-cells = <3>; 204 status = "disabled"; 204 status = "disabled"; 205 }; 205 }; 206 206 207 pwm5: pwm@10280010 { 207 pwm5: pwm@10280010 { 208 compatible = "rockchip,rv1108- 208 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 209 reg = <0x10280010 0x10>; 209 reg = <0x10280010 0x10>; 210 clocks = <&cru SCLK_PWM>, <&cr 210 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 211 clock-names = "pwm", "pclk"; 211 clock-names = "pwm", "pclk"; 212 pinctrl-names = "default"; 212 pinctrl-names = "default"; 213 pinctrl-0 = <&pwm5_pin>; 213 pinctrl-0 = <&pwm5_pin>; 214 #pwm-cells = <3>; 214 #pwm-cells = <3>; 215 status = "disabled"; 215 status = "disabled"; 216 }; 216 }; 217 217 218 pwm6: pwm@10280020 { 218 pwm6: pwm@10280020 { 219 compatible = "rockchip,rv1108- 219 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 220 reg = <0x10280020 0x10>; 220 reg = <0x10280020 0x10>; 221 clocks = <&cru SCLK_PWM>, <&cr 221 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 222 clock-names = "pwm", "pclk"; 222 clock-names = "pwm", "pclk"; 223 pinctrl-names = "default"; 223 pinctrl-names = "default"; 224 pinctrl-0 = <&pwm6_pin>; 224 pinctrl-0 = <&pwm6_pin>; 225 #pwm-cells = <3>; 225 #pwm-cells = <3>; 226 status = "disabled"; 226 status = "disabled"; 227 }; 227 }; 228 228 229 pwm7: pwm@10280030 { 229 pwm7: pwm@10280030 { 230 compatible = "rockchip,rv1108- 230 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 231 reg = <0x10280030 0x10>; 231 reg = <0x10280030 0x10>; 232 clocks = <&cru SCLK_PWM>, <&cr 232 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 233 clock-names = "pwm", "pclk"; 233 clock-names = "pwm", "pclk"; 234 pinctrl-names = "default"; 234 pinctrl-names = "default"; 235 pinctrl-0 = <&pwm7_pin>; 235 pinctrl-0 = <&pwm7_pin>; 236 #pwm-cells = <3>; 236 #pwm-cells = <3>; 237 status = "disabled"; 237 status = "disabled"; 238 }; 238 }; 239 239 240 pdma: dma-controller@102a0000 { 240 pdma: dma-controller@102a0000 { 241 compatible = "arm,pl330", "arm 241 compatible = "arm,pl330", "arm,primecell"; 242 reg = <0x102a0000 0x4000>; 242 reg = <0x102a0000 0x4000>; 243 interrupts = <GIC_SPI 0 IRQ_TY 243 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 244 #dma-cells = <1>; 244 #dma-cells = <1>; 245 arm,pl330-broken-no-flushp; 245 arm,pl330-broken-no-flushp; 246 arm,pl330-periph-burst; 246 arm,pl330-periph-burst; 247 clocks = <&cru ACLK_DMAC>; 247 clocks = <&cru ACLK_DMAC>; 248 clock-names = "apb_pclk"; 248 clock-names = "apb_pclk"; 249 }; 249 }; 250 250 251 grf: syscon@10300000 { 251 grf: syscon@10300000 { 252 compatible = "rockchip,rv1108- 252 compatible = "rockchip,rv1108-grf", "syscon", "simple-mfd"; 253 reg = <0x10300000 0x1000>; 253 reg = <0x10300000 0x1000>; 254 #address-cells = <1>; 254 #address-cells = <1>; 255 #size-cells = <1>; 255 #size-cells = <1>; 256 256 257 io_domains: io-domains { 257 io_domains: io-domains { 258 compatible = "rockchip 258 compatible = "rockchip,rv1108-io-voltage-domain"; 259 status = "disabled"; 259 status = "disabled"; 260 }; 260 }; 261 261 262 u2phy: usb2phy@100 { 262 u2phy: usb2phy@100 { 263 compatible = "rockchip 263 compatible = "rockchip,rv1108-usb2phy"; 264 reg = <0x100 0x0c>; 264 reg = <0x100 0x0c>; 265 clocks = <&cru SCLK_US 265 clocks = <&cru SCLK_USBPHY>; 266 clock-names = "phyclk" 266 clock-names = "phyclk"; 267 #clock-cells = <0>; 267 #clock-cells = <0>; 268 clock-output-names = " 268 clock-output-names = "usbphy"; 269 rockchip,usbgrf = <&us 269 rockchip,usbgrf = <&usbgrf>; 270 status = "disabled"; 270 status = "disabled"; 271 271 272 u2phy_otg: otg-port { 272 u2phy_otg: otg-port { 273 interrupts = < 273 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 274 interrupt-name 274 interrupt-names = "otg-mux"; 275 #phy-cells = < 275 #phy-cells = <0>; 276 status = "disa 276 status = "disabled"; 277 }; 277 }; 278 278 279 u2phy_host: host-port 279 u2phy_host: host-port { 280 interrupts = < 280 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; 281 interrupt-name 281 interrupt-names = "linestate"; 282 #phy-cells = < 282 #phy-cells = <0>; 283 status = "disa 283 status = "disabled"; 284 }; 284 }; 285 }; 285 }; 286 }; 286 }; 287 287 288 timer: timer@10350000 { 288 timer: timer@10350000 { 289 compatible = "rockchip,rv1108- 289 compatible = "rockchip,rv1108-timer", "rockchip,rk3288-timer"; 290 reg = <0x10350000 0x20>; 290 reg = <0x10350000 0x20>; 291 interrupts = <GIC_SPI 35 IRQ_T 291 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; 292 clocks = <&cru PCLK_TIMER>, <& 292 clocks = <&cru PCLK_TIMER>, <&xin24m>; 293 clock-names = "pclk", "timer"; 293 clock-names = "pclk", "timer"; 294 }; 294 }; 295 295 296 watchdog: watchdog@10360000 { 296 watchdog: watchdog@10360000 { 297 compatible = "rockchip,rv1108- 297 compatible = "rockchip,rv1108-wdt", "snps,dw-wdt"; 298 reg = <0x10360000 0x100>; 298 reg = <0x10360000 0x100>; 299 interrupts = <GIC_SPI 34 IRQ_T 299 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; 300 clocks = <&cru PCLK_WDT>; 300 clocks = <&cru PCLK_WDT>; 301 status = "disabled"; 301 status = "disabled"; 302 }; 302 }; 303 303 304 thermal-zones { 304 thermal-zones { 305 soc_thermal: soc-thermal { 305 soc_thermal: soc-thermal { 306 polling-delay-passive 306 polling-delay-passive = <20>; 307 polling-delay = <1000> 307 polling-delay = <1000>; 308 sustainable-power = <5 308 sustainable-power = <50>; 309 thermal-sensors = <&ts 309 thermal-sensors = <&tsadc 0>; 310 310 311 trips { 311 trips { 312 threshold: tri 312 threshold: trip-point0 { 313 temper 313 temperature = <70000>; 314 hyster 314 hysteresis = <2000>; 315 type = 315 type = "passive"; 316 }; 316 }; 317 target: trip-p 317 target: trip-point1 { 318 temper 318 temperature = <85000>; 319 hyster 319 hysteresis = <2000>; 320 type = 320 type = "passive"; 321 }; 321 }; 322 soc_crit: soc- 322 soc_crit: soc-crit { 323 temper 323 temperature = <95000>; 324 hyster 324 hysteresis = <2000>; 325 type = 325 type = "critical"; 326 }; 326 }; 327 }; 327 }; 328 328 329 cooling-maps { 329 cooling-maps { 330 map0 { 330 map0 { 331 trip = 331 trip = <&target>; 332 coolin 332 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 333 contri 333 contribution = <4096>; 334 }; 334 }; 335 }; 335 }; 336 }; 336 }; 337 }; 337 }; 338 338 339 tsadc: tsadc@10370000 { 339 tsadc: tsadc@10370000 { 340 compatible = "rockchip,rv1108- 340 compatible = "rockchip,rv1108-tsadc"; 341 reg = <0x10370000 0x100>; 341 reg = <0x10370000 0x100>; 342 interrupts = <GIC_SPI 47 IRQ_T 342 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>; 343 assigned-clocks = <&cru SCLK_T 343 assigned-clocks = <&cru SCLK_TSADC>; 344 assigned-clock-rates = <750000 344 assigned-clock-rates = <750000>; 345 clocks = <&cru SCLK_TSADC>, <& 345 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; 346 clock-names = "tsadc", "apb_pc 346 clock-names = "tsadc", "apb_pclk"; 347 pinctrl-names = "init", "defau 347 pinctrl-names = "init", "default", "sleep"; 348 pinctrl-0 = <&otp_pin>; 348 pinctrl-0 = <&otp_pin>; 349 pinctrl-1 = <&otp_out>; 349 pinctrl-1 = <&otp_out>; 350 pinctrl-2 = <&otp_pin>; 350 pinctrl-2 = <&otp_pin>; 351 resets = <&cru SRST_TSADC>; 351 resets = <&cru SRST_TSADC>; 352 reset-names = "tsadc-apb"; 352 reset-names = "tsadc-apb"; 353 rockchip,hw-tshut-temp = <1200 353 rockchip,hw-tshut-temp = <120000>; 354 #thermal-sensor-cells = <1>; 354 #thermal-sensor-cells = <1>; 355 status = "disabled"; 355 status = "disabled"; 356 }; 356 }; 357 357 358 adc: adc@1038c000 { 358 adc: adc@1038c000 { 359 compatible = "rockchip,rv1108- 359 compatible = "rockchip,rv1108-saradc", "rockchip,rk3399-saradc"; 360 reg = <0x1038c000 0x100>; 360 reg = <0x1038c000 0x100>; 361 interrupts = <GIC_SPI 4 IRQ_TY 361 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 362 #io-channel-cells = <1>; 362 #io-channel-cells = <1>; 363 clocks = <&cru SCLK_SARADC>, < 363 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 364 clock-names = "saradc", "apb_p 364 clock-names = "saradc", "apb_pclk"; 365 status = "disabled"; 365 status = "disabled"; 366 }; 366 }; 367 367 368 i2c0: i2c@20000000 { 368 i2c0: i2c@20000000 { 369 compatible = "rockchip,rv1108- 369 compatible = "rockchip,rv1108-i2c"; 370 reg = <0x20000000 0x1000>; 370 reg = <0x20000000 0x1000>; 371 interrupts = <GIC_SPI 30 IRQ_T 371 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; 372 #address-cells = <1>; 372 #address-cells = <1>; 373 #size-cells = <0>; 373 #size-cells = <0>; 374 clocks = <&cru SCLK_I2C0_PMU>, 374 clocks = <&cru SCLK_I2C0_PMU>, <&cru PCLK_I2C0_PMU>; 375 clock-names = "i2c", "pclk"; 375 clock-names = "i2c", "pclk"; 376 pinctrl-names = "default"; 376 pinctrl-names = "default"; 377 pinctrl-0 = <&i2c0_xfer>; 377 pinctrl-0 = <&i2c0_xfer>; 378 rockchip,grf = <&grf>; 378 rockchip,grf = <&grf>; 379 status = "disabled"; 379 status = "disabled"; 380 }; 380 }; 381 381 382 pwm0: pwm@20040000 { 382 pwm0: pwm@20040000 { 383 compatible = "rockchip,rv1108- 383 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 384 reg = <0x20040000 0x10>; 384 reg = <0x20040000 0x10>; 385 clocks = <&cru SCLK_PWM0_PMU>, 385 clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; 386 clock-names = "pwm", "pclk"; 386 clock-names = "pwm", "pclk"; 387 pinctrl-names = "default"; 387 pinctrl-names = "default"; 388 pinctrl-0 = <&pwm0_pin>; 388 pinctrl-0 = <&pwm0_pin>; 389 #pwm-cells = <3>; 389 #pwm-cells = <3>; 390 status = "disabled"; 390 status = "disabled"; 391 }; 391 }; 392 392 393 pwm1: pwm@20040010 { 393 pwm1: pwm@20040010 { 394 compatible = "rockchip,rv1108- 394 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 395 reg = <0x20040010 0x10>; 395 reg = <0x20040010 0x10>; 396 clocks = <&cru SCLK_PWM0_PMU>, 396 clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; 397 clock-names = "pwm", "pclk"; 397 clock-names = "pwm", "pclk"; 398 pinctrl-names = "default"; 398 pinctrl-names = "default"; 399 pinctrl-0 = <&pwm1_pin>; 399 pinctrl-0 = <&pwm1_pin>; 400 #pwm-cells = <3>; 400 #pwm-cells = <3>; 401 status = "disabled"; 401 status = "disabled"; 402 }; 402 }; 403 403 404 pwm2: pwm@20040020 { 404 pwm2: pwm@20040020 { 405 compatible = "rockchip,rv1108- 405 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 406 reg = <0x20040020 0x10>; 406 reg = <0x20040020 0x10>; 407 clocks = <&cru SCLK_PWM0_PMU>, 407 clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; 408 clock-names = "pwm", "pclk"; 408 clock-names = "pwm", "pclk"; 409 pinctrl-names = "default"; 409 pinctrl-names = "default"; 410 pinctrl-0 = <&pwm2_pin>; 410 pinctrl-0 = <&pwm2_pin>; 411 #pwm-cells = <3>; 411 #pwm-cells = <3>; 412 status = "disabled"; 412 status = "disabled"; 413 }; 413 }; 414 414 415 pwm3: pwm@20040030 { 415 pwm3: pwm@20040030 { 416 compatible = "rockchip,rv1108- 416 compatible = "rockchip,rv1108-pwm", "rockchip,rk3288-pwm"; 417 reg = <0x20040030 0x10>; 417 reg = <0x20040030 0x10>; 418 clocks = <&cru SCLK_PWM0_PMU>, 418 clocks = <&cru SCLK_PWM0_PMU>, <&cru PCLK_PWM0_PMU>; 419 clock-names = "pwm", "pclk"; 419 clock-names = "pwm", "pclk"; 420 pinctrl-names = "default"; 420 pinctrl-names = "default"; 421 pinctrl-0 = <&pwm3_pin>; 421 pinctrl-0 = <&pwm3_pin>; 422 #pwm-cells = <3>; 422 #pwm-cells = <3>; 423 status = "disabled"; 423 status = "disabled"; 424 }; 424 }; 425 425 426 pmugrf: syscon@20060000 { 426 pmugrf: syscon@20060000 { 427 compatible = "rockchip,rv1108- 427 compatible = "rockchip,rv1108-pmugrf", "syscon", "simple-mfd"; 428 reg = <0x20060000 0x1000>; 428 reg = <0x20060000 0x1000>; 429 429 430 pmu_io_domains: io-domains { 430 pmu_io_domains: io-domains { 431 compatible = "rockchip 431 compatible = "rockchip,rv1108-pmu-io-voltage-domain"; 432 status = "disabled"; 432 status = "disabled"; 433 }; 433 }; 434 }; 434 }; 435 435 436 usbgrf: syscon@202a0000 { 436 usbgrf: syscon@202a0000 { 437 compatible = "rockchip,rv1108- 437 compatible = "rockchip,rv1108-usbgrf", "syscon"; 438 reg = <0x202a0000 0x1000>; 438 reg = <0x202a0000 0x1000>; 439 }; 439 }; 440 440 441 cru: clock-controller@20200000 { 441 cru: clock-controller@20200000 { 442 compatible = "rockchip,rv1108- 442 compatible = "rockchip,rv1108-cru"; 443 reg = <0x20200000 0x1000>; 443 reg = <0x20200000 0x1000>; 444 clocks = <&xin24m>; 444 clocks = <&xin24m>; 445 clock-names = "xin24m"; 445 clock-names = "xin24m"; 446 rockchip,grf = <&grf>; 446 rockchip,grf = <&grf>; 447 #clock-cells = <1>; 447 #clock-cells = <1>; 448 #reset-cells = <1>; 448 #reset-cells = <1>; 449 }; 449 }; 450 450 451 nfc: nand-controller@30100000 { 451 nfc: nand-controller@30100000 { 452 compatible = "rockchip,rv1108- 452 compatible = "rockchip,rv1108-nfc"; 453 reg = <0x30100000 0x1000>; 453 reg = <0x30100000 0x1000>; 454 interrupts = <GIC_SPI 14 IRQ_T 454 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 455 clocks = <&cru HCLK_NANDC>, <& 455 clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>; 456 clock-names = "ahb", "nfc"; 456 clock-names = "ahb", "nfc"; 457 assigned-clocks = <&cru SCLK_N 457 assigned-clocks = <&cru SCLK_NANDC>; 458 assigned-clock-rates = <150000 458 assigned-clock-rates = <150000000>; 459 status = "disabled"; 459 status = "disabled"; 460 }; 460 }; 461 461 462 emmc: mmc@30110000 { 462 emmc: mmc@30110000 { 463 compatible = "rockchip,rv1108- 463 compatible = "rockchip,rv1108-dw-mshc", "rockchip,rk3288-dw-mshc"; 464 reg = <0x30110000 0x4000>; 464 reg = <0x30110000 0x4000>; 465 interrupts = <GIC_SPI 13 IRQ_T 465 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 466 clocks = <&cru HCLK_EMMC>, <&c 466 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, 467 <&cru SCLK_EMMC_DRV>, 467 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; 468 clock-names = "biu", "ciu", "c 468 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 469 fifo-depth = <0x100>; 469 fifo-depth = <0x100>; 470 max-frequency = <150000000>; 470 max-frequency = <150000000>; 471 status = "disabled"; 471 status = "disabled"; 472 }; 472 }; 473 473 474 sdio: mmc@30120000 { 474 sdio: mmc@30120000 { 475 compatible = "rockchip,rv1108- 475 compatible = "rockchip,rv1108-dw-mshc", "rockchip,rk3288-dw-mshc"; 476 reg = <0x30120000 0x4000>; 476 reg = <0x30120000 0x4000>; 477 interrupts = <GIC_SPI 12 IRQ_T 477 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 478 clocks = <&cru HCLK_SDIO>, <&c 478 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, 479 <&cru SCLK_SDIO_DRV>, 479 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; 480 clock-names = "biu", "ciu", "c 480 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 481 fifo-depth = <0x100>; 481 fifo-depth = <0x100>; 482 max-frequency = <150000000>; 482 max-frequency = <150000000>; 483 status = "disabled"; 483 status = "disabled"; 484 }; 484 }; 485 485 486 sdmmc: mmc@30130000 { 486 sdmmc: mmc@30130000 { 487 compatible = "rockchip,rv1108- 487 compatible = "rockchip,rv1108-dw-mshc", "rockchip,rk3288-dw-mshc"; 488 reg = <0x30130000 0x4000>; 488 reg = <0x30130000 0x4000>; 489 interrupts = <GIC_SPI 11 IRQ_T 489 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 490 clocks = <&cru HCLK_SDMMC>, <& 490 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, 491 <&cru SCLK_SDMMC_DRV> 491 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; 492 clock-names = "biu", "ciu", "c 492 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 493 fifo-depth = <0x100>; 493 fifo-depth = <0x100>; 494 max-frequency = <100000000>; 494 max-frequency = <100000000>; 495 pinctrl-names = "default"; 495 pinctrl-names = "default"; 496 pinctrl-0 = <&sdmmc_clk &sdmmc 496 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 497 status = "disabled"; 497 status = "disabled"; 498 }; 498 }; 499 499 500 usb_host_ehci: usb@30140000 { 500 usb_host_ehci: usb@30140000 { 501 compatible = "generic-ehci"; 501 compatible = "generic-ehci"; 502 reg = <0x30140000 0x20000>; 502 reg = <0x30140000 0x20000>; 503 interrupts = <GIC_SPI 15 IRQ_T 503 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 504 clocks = <&cru HCLK_HOST0>, <& 504 clocks = <&cru HCLK_HOST0>, <&u2phy>; 505 phys = <&u2phy_host>; 505 phys = <&u2phy_host>; 506 phy-names = "usb"; 506 phy-names = "usb"; 507 status = "disabled"; 507 status = "disabled"; 508 }; 508 }; 509 509 510 usb_host_ohci: usb@30160000 { 510 usb_host_ohci: usb@30160000 { 511 compatible = "generic-ohci"; 511 compatible = "generic-ohci"; 512 reg = <0x30160000 0x20000>; 512 reg = <0x30160000 0x20000>; 513 interrupts = <GIC_SPI 16 IRQ_T 513 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 514 clocks = <&cru HCLK_HOST0>, <& 514 clocks = <&cru HCLK_HOST0>, <&u2phy>; 515 phys = <&u2phy_host>; 515 phys = <&u2phy_host>; 516 phy-names = "usb"; 516 phy-names = "usb"; 517 status = "disabled"; 517 status = "disabled"; 518 }; 518 }; 519 519 520 usb_otg: usb@30180000 { 520 usb_otg: usb@30180000 { 521 compatible = "rockchip,rv1108- 521 compatible = "rockchip,rv1108-usb", "rockchip,rk3066-usb", 522 "snps,dwc2"; 522 "snps,dwc2"; 523 reg = <0x30180000 0x40000>; 523 reg = <0x30180000 0x40000>; 524 interrupts = <GIC_SPI 18 IRQ_T 524 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; 525 clocks = <&cru HCLK_OTG>; 525 clocks = <&cru HCLK_OTG>; 526 clock-names = "otg"; 526 clock-names = "otg"; 527 dr_mode = "otg"; 527 dr_mode = "otg"; 528 g-np-tx-fifo-size = <16>; 528 g-np-tx-fifo-size = <16>; 529 g-rx-fifo-size = <280>; 529 g-rx-fifo-size = <280>; 530 g-tx-fifo-size = <256 128 128 530 g-tx-fifo-size = <256 128 128 64 32 16>; 531 phys = <&u2phy_otg>; 531 phys = <&u2phy_otg>; 532 phy-names = "usb2-phy"; 532 phy-names = "usb2-phy"; 533 status = "disabled"; 533 status = "disabled"; 534 }; 534 }; 535 535 536 sfc: spi@301c0000 { 536 sfc: spi@301c0000 { 537 compatible = "rockchip,sfc"; 537 compatible = "rockchip,sfc"; 538 reg = <0x301c0000 0x4000>; 538 reg = <0x301c0000 0x4000>; 539 interrupts = <GIC_SPI 56 IRQ_T 539 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; 540 clocks = <&cru SCLK_SFC>, <&cr 540 clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; 541 clock-names = "clk_sfc", "hclk 541 clock-names = "clk_sfc", "hclk_sfc"; 542 pinctrl-0 = <&sfc_clk &sfc_cs0 542 pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus4>; 543 pinctrl-names = "default"; 543 pinctrl-names = "default"; 544 status = "disabled"; 544 status = "disabled"; 545 }; 545 }; 546 546 547 gmac: ethernet@30200000 { 547 gmac: ethernet@30200000 { 548 compatible = "rockchip,rv1108- 548 compatible = "rockchip,rv1108-gmac"; 549 reg = <0x30200000 0x10000>; 549 reg = <0x30200000 0x10000>; 550 interrupts = <GIC_SPI 19 IRQ_T 550 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, 551 <GIC_SPI 20 IRQ_T 551 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; 552 interrupt-names = "macirq", "e 552 interrupt-names = "macirq", "eth_wake_irq"; 553 clocks = <&cru SCLK_MAC>, 553 clocks = <&cru SCLK_MAC>, 554 <&cru SCLK_MAC_RX>, <& 554 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_RX>, 555 <&cru SCLK_MAC_REF>, < 555 <&cru SCLK_MAC_REF>, <&cru SCLK_MAC_REFOUT>, 556 <&cru ACLK_GMAC>, <&cr 556 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>; 557 clock-names = "stmmaceth", 557 clock-names = "stmmaceth", 558 "mac_clk_rx", "mac_clk 558 "mac_clk_rx", "mac_clk_tx", 559 "clk_mac_ref", "clk_ma 559 "clk_mac_ref", "clk_mac_refout", 560 "aclk_mac", "pclk_mac" 560 "aclk_mac", "pclk_mac"; 561 /* rv1108 only supports an rmi 561 /* rv1108 only supports an rmii interface */ 562 phy-mode = "rmii"; 562 phy-mode = "rmii"; 563 pinctrl-names = "default"; 563 pinctrl-names = "default"; 564 pinctrl-0 = <&rmii_pins>; 564 pinctrl-0 = <&rmii_pins>; 565 rockchip,grf = <&grf>; 565 rockchip,grf = <&grf>; 566 status = "disabled"; 566 status = "disabled"; 567 }; 567 }; 568 568 569 gic: interrupt-controller@32010000 { 569 gic: interrupt-controller@32010000 { 570 compatible = "arm,gic-400"; 570 compatible = "arm,gic-400"; 571 interrupt-controller; 571 interrupt-controller; 572 #interrupt-cells = <3>; 572 #interrupt-cells = <3>; 573 #address-cells = <0>; 573 #address-cells = <0>; 574 574 575 reg = <0x32011000 0x1000>, 575 reg = <0x32011000 0x1000>, 576 <0x32012000 0x2000>, 576 <0x32012000 0x2000>, 577 <0x32014000 0x2000>, 577 <0x32014000 0x2000>, 578 <0x32016000 0x2000>; 578 <0x32016000 0x2000>; 579 interrupts = <GIC_PPI 9 (GIC_C 579 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; 580 }; 580 }; 581 581 582 pinctrl: pinctrl { 582 pinctrl: pinctrl { 583 compatible = "rockchip,rv1108- 583 compatible = "rockchip,rv1108-pinctrl"; 584 rockchip,grf = <&grf>; 584 rockchip,grf = <&grf>; 585 rockchip,pmu = <&pmugrf>; 585 rockchip,pmu = <&pmugrf>; 586 #address-cells = <1>; 586 #address-cells = <1>; 587 #size-cells = <1>; 587 #size-cells = <1>; 588 ranges; 588 ranges; 589 589 590 gpio0: gpio@20030000 { 590 gpio0: gpio@20030000 { 591 compatible = "rockchip 591 compatible = "rockchip,gpio-bank"; 592 reg = <0x20030000 0x10 592 reg = <0x20030000 0x100>; 593 interrupts = <GIC_SPI 593 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 594 clocks = <&cru PCLK_GP 594 clocks = <&cru PCLK_GPIO0_PMU>; 595 595 596 gpio-controller; 596 gpio-controller; 597 #gpio-cells = <2>; 597 #gpio-cells = <2>; 598 598 599 interrupt-controller; 599 interrupt-controller; 600 #interrupt-cells = <2> 600 #interrupt-cells = <2>; 601 }; 601 }; 602 602 603 gpio1: gpio@10310000 { 603 gpio1: gpio@10310000 { 604 compatible = "rockchip 604 compatible = "rockchip,gpio-bank"; 605 reg = <0x10310000 0x10 605 reg = <0x10310000 0x100>; 606 interrupts = <GIC_SPI 606 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 607 clocks = <&cru PCLK_GP 607 clocks = <&cru PCLK_GPIO1>; 608 608 609 gpio-controller; 609 gpio-controller; 610 #gpio-cells = <2>; 610 #gpio-cells = <2>; 611 611 612 interrupt-controller; 612 interrupt-controller; 613 #interrupt-cells = <2> 613 #interrupt-cells = <2>; 614 }; 614 }; 615 615 616 gpio2: gpio@10320000 { 616 gpio2: gpio@10320000 { 617 compatible = "rockchip 617 compatible = "rockchip,gpio-bank"; 618 reg = <0x10320000 0x10 618 reg = <0x10320000 0x100>; 619 interrupts = <GIC_SPI 619 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; 620 clocks = <&cru PCLK_GP 620 clocks = <&cru PCLK_GPIO2>; 621 621 622 gpio-controller; 622 gpio-controller; 623 #gpio-cells = <2>; 623 #gpio-cells = <2>; 624 624 625 interrupt-controller; 625 interrupt-controller; 626 #interrupt-cells = <2> 626 #interrupt-cells = <2>; 627 }; 627 }; 628 628 629 gpio3: gpio@10330000 { 629 gpio3: gpio@10330000 { 630 compatible = "rockchip 630 compatible = "rockchip,gpio-bank"; 631 reg = <0x10330000 0x10 631 reg = <0x10330000 0x100>; 632 interrupts = <GIC_SPI 632 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 633 clocks = <&cru PCLK_GP 633 clocks = <&cru PCLK_GPIO3>; 634 634 635 gpio-controller; 635 gpio-controller; 636 #gpio-cells = <2>; 636 #gpio-cells = <2>; 637 637 638 interrupt-controller; 638 interrupt-controller; 639 #interrupt-cells = <2> 639 #interrupt-cells = <2>; 640 }; 640 }; 641 641 642 pcfg_pull_up: pcfg-pull-up { 642 pcfg_pull_up: pcfg-pull-up { 643 bias-pull-up; 643 bias-pull-up; 644 }; 644 }; 645 645 646 pcfg_pull_down: pcfg-pull-down 646 pcfg_pull_down: pcfg-pull-down { 647 bias-pull-down; 647 bias-pull-down; 648 }; 648 }; 649 649 650 pcfg_pull_none: pcfg-pull-none 650 pcfg_pull_none: pcfg-pull-none { 651 bias-disable; 651 bias-disable; 652 }; 652 }; 653 653 654 pcfg_pull_none_drv_8ma: pcfg-p 654 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma { 655 drive-strength = <8>; 655 drive-strength = <8>; 656 }; 656 }; 657 657 658 pcfg_pull_none_drv_12ma: pcfg- 658 pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma { 659 drive-strength = <12>; 659 drive-strength = <12>; 660 }; 660 }; 661 661 662 pcfg_pull_none_smt: pcfg-pull- 662 pcfg_pull_none_smt: pcfg-pull-none-smt { 663 bias-disable; 663 bias-disable; 664 input-schmitt-enable; 664 input-schmitt-enable; 665 }; 665 }; 666 666 667 pcfg_pull_up_drv_8ma: pcfg-pul 667 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma { 668 bias-pull-up; 668 bias-pull-up; 669 drive-strength = <8>; 669 drive-strength = <8>; 670 }; 670 }; 671 671 672 pcfg_pull_none_drv_4ma: pcfg-p 672 pcfg_pull_none_drv_4ma: pcfg-pull-none-drv-4ma { 673 drive-strength = <4>; 673 drive-strength = <4>; 674 }; 674 }; 675 675 676 pcfg_pull_up_drv_4ma: pcfg-pul 676 pcfg_pull_up_drv_4ma: pcfg-pull-up-drv-4ma { 677 bias-pull-up; 677 bias-pull-up; 678 drive-strength = <4>; 678 drive-strength = <4>; 679 }; 679 }; 680 680 681 pcfg_output_high: pcfg-output- 681 pcfg_output_high: pcfg-output-high { 682 output-high; 682 output-high; 683 }; 683 }; 684 684 685 pcfg_output_low: pcfg-output-l 685 pcfg_output_low: pcfg-output-low { 686 output-low; 686 output-low; 687 }; 687 }; 688 688 689 pcfg_input_high: pcfg-input-hi 689 pcfg_input_high: pcfg-input-high { 690 bias-pull-up; 690 bias-pull-up; 691 input-enable; 691 input-enable; 692 }; 692 }; 693 693 694 emmc { 694 emmc { 695 emmc_bus8: emmc-bus8 { 695 emmc_bus8: emmc-bus8 { 696 rockchip,pins 696 rockchip,pins = <2 RK_PA0 2 &pcfg_pull_up_drv_8ma>, 697 697 <2 RK_PA1 2 &pcfg_pull_up_drv_8ma>, 698 698 <2 RK_PA2 2 &pcfg_pull_up_drv_8ma>, 699 699 <2 RK_PA3 2 &pcfg_pull_up_drv_8ma>, 700 700 <2 RK_PA4 2 &pcfg_pull_up_drv_8ma>, 701 701 <2 RK_PA5 2 &pcfg_pull_up_drv_8ma>, 702 702 <2 RK_PA6 2 &pcfg_pull_up_drv_8ma>, 703 703 <2 RK_PA7 2 &pcfg_pull_up_drv_8ma>; 704 }; 704 }; 705 705 706 emmc_clk: emmc-clk { 706 emmc_clk: emmc-clk { 707 rockchip,pins 707 rockchip,pins = <2 RK_PB6 1 &pcfg_pull_none_drv_8ma>; 708 }; 708 }; 709 709 710 emmc_cmd: emmc-cmd { 710 emmc_cmd: emmc-cmd { 711 rockchip,pins 711 rockchip,pins = <2 RK_PB4 2 &pcfg_pull_up_drv_8ma>; 712 }; 712 }; 713 }; 713 }; 714 714 715 sfc { 715 sfc { 716 sfc_bus4: sfc-bus4 { 716 sfc_bus4: sfc-bus4 { 717 rockchip,pins 717 rockchip,pins = 718 <2 RK_ 718 <2 RK_PA0 3 &pcfg_pull_none>, 719 <2 RK_ 719 <2 RK_PA1 3 &pcfg_pull_none>, 720 <2 RK_ 720 <2 RK_PA2 3 &pcfg_pull_none>, 721 <2 RK_ 721 <2 RK_PA3 3 &pcfg_pull_none>; 722 }; 722 }; 723 723 724 sfc_bus2: sfc-bus2 { 724 sfc_bus2: sfc-bus2 { 725 rockchip,pins 725 rockchip,pins = 726 <2 RK_ 726 <2 RK_PA0 3 &pcfg_pull_none>, 727 <2 RK_ 727 <2 RK_PA1 3 &pcfg_pull_none>; 728 }; 728 }; 729 729 730 sfc_cs0: sfc-cs0 { 730 sfc_cs0: sfc-cs0 { 731 rockchip,pins 731 rockchip,pins = 732 <2 RK_ 732 <2 RK_PB4 3 &pcfg_pull_none>; 733 }; 733 }; 734 734 735 sfc_clk: sfc-clk { 735 sfc_clk: sfc-clk { 736 rockchip,pins 736 rockchip,pins = 737 <2 RK_ 737 <2 RK_PB7 2 &pcfg_pull_none>; 738 }; 738 }; 739 }; 739 }; 740 740 741 gmac { 741 gmac { 742 rmii_pins: rmii-pins { 742 rmii_pins: rmii-pins { 743 rockchip,pins 743 rockchip,pins = <1 RK_PC5 2 &pcfg_pull_none>, 744 744 <1 RK_PC3 2 &pcfg_pull_none>, 745 745 <1 RK_PC4 2 &pcfg_pull_none>, 746 746 <1 RK_PB2 3 &pcfg_pull_none_drv_12ma>, 747 747 <1 RK_PB3 3 &pcfg_pull_none_drv_12ma>, 748 748 <1 RK_PB4 3 &pcfg_pull_none_drv_12ma>, 749 749 <1 RK_PB5 3 &pcfg_pull_none>, 750 750 <1 RK_PB6 3 &pcfg_pull_none>, 751 751 <1 RK_PB7 3 &pcfg_pull_none>, 752 752 <1 RK_PC2 3 &pcfg_pull_none>; 753 }; 753 }; 754 }; 754 }; 755 755 756 i2c0 { 756 i2c0 { 757 i2c0_xfer: i2c0-xfer { 757 i2c0_xfer: i2c0-xfer { 758 rockchip,pins 758 rockchip,pins = <0 RK_PB1 1 &pcfg_pull_none_smt>, 759 759 <0 RK_PB2 1 &pcfg_pull_none_smt>; 760 }; 760 }; 761 }; 761 }; 762 762 763 i2c1 { 763 i2c1 { 764 i2c1_xfer: i2c1-xfer { 764 i2c1_xfer: i2c1-xfer { 765 rockchip,pins 765 rockchip,pins = <2 RK_PD3 1 &pcfg_pull_up>, 766 766 <2 RK_PD4 1 &pcfg_pull_up>; 767 }; 767 }; 768 }; 768 }; 769 769 770 i2c2m1 { 770 i2c2m1 { 771 i2c2m1_xfer: i2c2m1-xf 771 i2c2m1_xfer: i2c2m1-xfer { 772 rockchip,pins 772 rockchip,pins = <0 RK_PC2 2 &pcfg_pull_none>, 773 773 <0 RK_PC6 3 &pcfg_pull_none>; 774 }; 774 }; 775 775 776 i2c2m1_pins: i2c2m1-pi 776 i2c2m1_pins: i2c2m1-pins { 777 rockchip,pins 777 rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>, 778 778 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 779 }; 779 }; 780 }; 780 }; 781 781 782 i2c2m05v { 782 i2c2m05v { 783 i2c2m05v_xfer: i2c2m05 783 i2c2m05v_xfer: i2c2m05v-xfer { 784 rockchip,pins 784 rockchip,pins = <1 RK_PD5 2 &pcfg_pull_none>, 785 785 <1 RK_PD4 2 &pcfg_pull_none>; 786 }; 786 }; 787 787 788 i2c2m05v_pins: i2c2m05 788 i2c2m05v_pins: i2c2m05v-pins { 789 rockchip,pins 789 rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, 790 790 <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 791 }; 791 }; 792 }; 792 }; 793 793 794 i2c3 { 794 i2c3 { 795 i2c3_xfer: i2c3-xfer { 795 i2c3_xfer: i2c3-xfer { 796 rockchip,pins 796 rockchip,pins = <0 RK_PB6 1 &pcfg_pull_none>, 797 797 <0 RK_PC4 2 &pcfg_pull_none>; 798 }; 798 }; 799 }; 799 }; 800 800 801 pwm0 { 801 pwm0 { 802 pwm0_pin: pwm0-pin { 802 pwm0_pin: pwm0-pin { 803 rockchip,pins 803 rockchip,pins = <0 RK_PC5 1 &pcfg_pull_none>; 804 }; 804 }; 805 }; 805 }; 806 806 807 pwm1 { 807 pwm1 { 808 pwm1_pin: pwm1-pin { 808 pwm1_pin: pwm1-pin { 809 rockchip,pins 809 rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none>; 810 }; 810 }; 811 }; 811 }; 812 812 813 pwm2 { 813 pwm2 { 814 pwm2_pin: pwm2-pin { 814 pwm2_pin: pwm2-pin { 815 rockchip,pins 815 rockchip,pins = <0 RK_PC6 1 &pcfg_pull_none>; 816 }; 816 }; 817 }; 817 }; 818 818 819 pwm3 { 819 pwm3 { 820 pwm3_pin: pwm3-pin { 820 pwm3_pin: pwm3-pin { 821 rockchip,pins 821 rockchip,pins = <0 RK_PC0 1 &pcfg_pull_none>; 822 }; 822 }; 823 }; 823 }; 824 824 825 pwm4 { 825 pwm4 { 826 pwm4_pin: pwm4-pin { 826 pwm4_pin: pwm4-pin { 827 rockchip,pins 827 rockchip,pins = <1 RK_PC1 3 &pcfg_pull_none>; 828 }; 828 }; 829 }; 829 }; 830 830 831 pwm5 { 831 pwm5 { 832 pwm5_pin: pwm5-pin { 832 pwm5_pin: pwm5-pin { 833 rockchip,pins 833 rockchip,pins = <1 RK_PA7 2 &pcfg_pull_none>; 834 }; 834 }; 835 }; 835 }; 836 836 837 pwm6 { 837 pwm6 { 838 pwm6_pin: pwm6-pin { 838 pwm6_pin: pwm6-pin { 839 rockchip,pins 839 rockchip,pins = <1 RK_PB0 2 &pcfg_pull_none>; 840 }; 840 }; 841 }; 841 }; 842 842 843 pwm7 { 843 pwm7 { 844 pwm7_pin: pwm7-pin { 844 pwm7_pin: pwm7-pin { 845 rockchip,pins 845 rockchip,pins = <1 RK_PB1 2 &pcfg_pull_none>; 846 }; 846 }; 847 }; 847 }; 848 848 849 sdmmc { 849 sdmmc { 850 sdmmc_clk: sdmmc-clk { 850 sdmmc_clk: sdmmc-clk { 851 rockchip,pins 851 rockchip,pins = <3 RK_PC4 1 &pcfg_pull_none_drv_4ma>; 852 }; 852 }; 853 853 854 sdmmc_cmd: sdmmc-cmd { 854 sdmmc_cmd: sdmmc-cmd { 855 rockchip,pins 855 rockchip,pins = <3 RK_PC5 1 &pcfg_pull_up_drv_4ma>; 856 }; 856 }; 857 857 858 sdmmc_cd: sdmmc-cd { 858 sdmmc_cd: sdmmc-cd { 859 rockchip,pins 859 rockchip,pins = <0 RK_PA1 1 &pcfg_pull_up_drv_4ma>; 860 }; 860 }; 861 861 862 sdmmc_bus1: sdmmc-bus1 862 sdmmc_bus1: sdmmc-bus1 { 863 rockchip,pins 863 rockchip,pins = <3 RK_PC3 1 &pcfg_pull_up_drv_4ma>; 864 }; 864 }; 865 865 866 sdmmc_bus4: sdmmc-bus4 866 sdmmc_bus4: sdmmc-bus4 { 867 rockchip,pins 867 rockchip,pins = <3 RK_PC3 1 &pcfg_pull_up_drv_4ma>, 868 868 <3 RK_PC2 1 &pcfg_pull_up_drv_4ma>, 869 869 <3 RK_PC1 1 &pcfg_pull_up_drv_4ma>, 870 870 <3 RK_PC0 1 &pcfg_pull_up_drv_4ma>; 871 }; 871 }; 872 }; 872 }; 873 873 874 spim0 { 874 spim0 { 875 spim0_clk: spim0-clk { 875 spim0_clk: spim0-clk { 876 rockchip,pins 876 rockchip,pins = <1 RK_PD0 2 &pcfg_pull_up>; 877 }; 877 }; 878 878 879 spim0_cs0: spim0-cs0 { 879 spim0_cs0: spim0-cs0 { 880 rockchip,pins 880 rockchip,pins = <1 RK_PD1 2 &pcfg_pull_up>; 881 }; 881 }; 882 882 883 spim0_tx: spim0-tx { 883 spim0_tx: spim0-tx { 884 rockchip,pins 884 rockchip,pins = <1 RK_PD3 2 &pcfg_pull_up>; 885 }; 885 }; 886 886 887 spim0_rx: spim0-rx { 887 spim0_rx: spim0-rx { 888 rockchip,pins 888 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up>; 889 }; 889 }; 890 }; 890 }; 891 891 892 spim1 { 892 spim1 { 893 spim1_clk: spim1-clk { 893 spim1_clk: spim1-clk { 894 rockchip,pins 894 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_up>; 895 }; 895 }; 896 896 897 spim1_cs0: spim1-cs0 { 897 spim1_cs0: spim1-cs0 { 898 rockchip,pins 898 rockchip,pins = <0 RK_PA4 1 &pcfg_pull_up>; 899 }; 899 }; 900 900 901 spim1_rx: spim1-rx { 901 spim1_rx: spim1-rx { 902 rockchip,pins 902 rockchip,pins = <0 RK_PB0 1 &pcfg_pull_up>; 903 }; 903 }; 904 904 905 spim1_tx: spim1-tx { 905 spim1_tx: spim1-tx { 906 rockchip,pins 906 rockchip,pins = <0 RK_PA7 1 &pcfg_pull_up>; 907 }; 907 }; 908 }; 908 }; 909 909 910 tsadc { 910 tsadc { 911 otp_out: otp-out { 911 otp_out: otp-out { 912 rockchip,pins 912 rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>; 913 }; 913 }; 914 914 915 otp_pin: otp-pin { 915 otp_pin: otp-pin { 916 rockchip,pins 916 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 917 }; 917 }; 918 }; 918 }; 919 919 920 uart0 { 920 uart0 { 921 uart0_xfer: uart0-xfer 921 uart0_xfer: uart0-xfer { 922 rockchip,pins 922 rockchip,pins = <3 RK_PA6 1 &pcfg_pull_up>, 923 923 <3 RK_PA5 1 &pcfg_pull_none>; 924 }; 924 }; 925 925 926 uart0_cts: uart0-cts { 926 uart0_cts: uart0-cts { 927 rockchip,pins 927 rockchip,pins = <3 RK_PA4 1 &pcfg_pull_none>; 928 }; 928 }; 929 929 930 uart0_rts: uart0-rts { 930 uart0_rts: uart0-rts { 931 rockchip,pins 931 rockchip,pins = <3 RK_PA3 1 &pcfg_pull_none>; 932 }; 932 }; 933 933 934 uart0_rts_pin: uart0-r 934 uart0_rts_pin: uart0-rts-pin { 935 rockchip,pins 935 rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 936 }; 936 }; 937 }; 937 }; 938 938 939 uart1 { 939 uart1 { 940 uart1_xfer: uart1-xfer 940 uart1_xfer: uart1-xfer { 941 rockchip,pins 941 rockchip,pins = <1 RK_PD3 1 &pcfg_pull_up>, 942 942 <1 RK_PD2 1 &pcfg_pull_none>; 943 }; 943 }; 944 944 945 uart1_cts: uart1-cts { 945 uart1_cts: uart1-cts { 946 rockchip,pins 946 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>; 947 }; 947 }; 948 948 949 uart1_rts: uart1-rts { 949 uart1_rts: uart1-rts { 950 rockchip,pins 950 rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>; 951 }; 951 }; 952 }; 952 }; 953 953 954 uart2m0 { 954 uart2m0 { 955 uart2m0_xfer: uart2m0- 955 uart2m0_xfer: uart2m0-xfer { 956 rockchip,pins 956 rockchip,pins = <2 RK_PD2 1 &pcfg_pull_up>, 957 957 <2 RK_PD1 1 &pcfg_pull_none>; 958 }; 958 }; 959 }; 959 }; 960 960 961 uart2m1 { 961 uart2m1 { 962 uart2m1_xfer: uart2m1- 962 uart2m1_xfer: uart2m1-xfer { 963 rockchip,pins 963 rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up>, 964 964 <3 RK_PC2 2 &pcfg_pull_none>; 965 }; 965 }; 966 }; 966 }; 967 967 968 uart2_5v { 968 uart2_5v { 969 uart2_5v_cts: uart2_5v 969 uart2_5v_cts: uart2_5v-cts { 970 rockchip,pins 970 rockchip,pins = <1 RK_PD4 1 &pcfg_pull_none>; 971 }; 971 }; 972 972 973 uart2_5v_rts: uart2_5v 973 uart2_5v_rts: uart2_5v-rts { 974 rockchip,pins 974 rockchip,pins = <1 RK_PD5 1 &pcfg_pull_none>; 975 }; 975 }; 976 }; 976 }; 977 }; 977 }; 978 }; 978 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.