1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2015 Heiko Stuebner <heiko@snt 3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 #include "rk3368.dtsi" 7 #include "rk3368.dtsi" 8 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/input/input.h> 9 9 10 / { 10 / { 11 model = "Rockchip R88"; 11 model = "Rockchip R88"; 12 compatible = "rockchip,r88", "rockchip 12 compatible = "rockchip,r88", "rockchip,rk3368"; 13 13 14 aliases { 14 aliases { 15 ethernet0 = &gmac; << 16 mmc0 = &sdio0; 15 mmc0 = &sdio0; 17 mmc1 = &emmc; 16 mmc1 = &emmc; 18 }; 17 }; 19 18 20 chosen { 19 chosen { 21 stdout-path = "serial2:115200n 20 stdout-path = "serial2:115200n8"; 22 }; 21 }; 23 22 24 memory@0 { !! 23 memory { 25 device_type = "memory"; 24 device_type = "memory"; 26 reg = <0x0 0x0 0x0 0x40000000> 25 reg = <0x0 0x0 0x0 0x40000000>; 27 }; 26 }; 28 27 29 emmc_pwrseq: emmc-pwrseq { 28 emmc_pwrseq: emmc-pwrseq { 30 compatible = "mmc-pwrseq-emmc" 29 compatible = "mmc-pwrseq-emmc"; 31 pinctrl-0 = <&emmc_reset>; 30 pinctrl-0 = <&emmc_reset>; 32 pinctrl-names = "default"; 31 pinctrl-names = "default"; 33 reset-gpios = <&gpio2 RK_PA3 G 32 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>; 34 }; 33 }; 35 34 36 keys: gpio-keys { 35 keys: gpio-keys { 37 compatible = "gpio-keys"; 36 compatible = "gpio-keys"; 38 pinctrl-names = "default"; 37 pinctrl-names = "default"; 39 pinctrl-0 = <&pwr_key>; 38 pinctrl-0 = <&pwr_key>; 40 39 41 key-power { !! 40 power { 42 wakeup-source; 41 wakeup-source; 43 gpios = <&gpio0 RK_PA2 42 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; 44 label = "GPIO Power"; 43 label = "GPIO Power"; 45 linux,code = <KEY_POWE 44 linux,code = <KEY_POWER>; 46 }; 45 }; 47 }; 46 }; 48 47 49 leds: gpio-leds { 48 leds: gpio-leds { 50 compatible = "gpio-leds"; 49 compatible = "gpio-leds"; 51 50 52 work_led: led-0 { 51 work_led: led-0 { 53 gpios = <&gpio3 RK_PD5 52 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; 54 label = "r88:green:led 53 label = "r88:green:led"; 55 pinctrl-names = "defau 54 pinctrl-names = "default"; 56 pinctrl-0 = <&led_ctl> 55 pinctrl-0 = <&led_ctl>; 57 }; 56 }; 58 }; 57 }; 59 58 60 ir: ir-receiver { 59 ir: ir-receiver { 61 compatible = "gpio-ir-receiver 60 compatible = "gpio-ir-receiver"; 62 gpios = <&gpio3 RK_PD6 GPIO_AC 61 gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_LOW>; 63 pinctrl-names = "default"; 62 pinctrl-names = "default"; 64 pinctrl-0 = <&ir_int>; 63 pinctrl-0 = <&ir_int>; 65 }; 64 }; 66 65 67 sdio_pwrseq: sdio-pwrseq { 66 sdio_pwrseq: sdio-pwrseq { 68 compatible = "mmc-pwrseq-simpl 67 compatible = "mmc-pwrseq-simple"; 69 clocks = <&hym8563>; 68 clocks = <&hym8563>; 70 clock-names = "ext_clock"; 69 clock-names = "ext_clock"; 71 pinctrl-names = "default"; 70 pinctrl-names = "default"; 72 pinctrl-0 = <&bt_rst>, <&wifi_ 71 pinctrl-0 = <&bt_rst>, <&wifi_reg_on>; 73 72 74 reset-gpios = 73 reset-gpios = 75 /* BT_RST_N */ 74 /* BT_RST_N */ 76 <&gpio3 RK_PA5 GPIO_AC 75 <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>, 77 76 78 /* WL_REG_ON */ 77 /* WL_REG_ON */ 79 <&gpio3 RK_PA4 GPIO_AC 78 <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>; 80 }; 79 }; 81 80 82 vcc_18: vcc18-regulator { 81 vcc_18: vcc18-regulator { 83 compatible = "regulator-fixed" 82 compatible = "regulator-fixed"; 84 regulator-name = "vcc_18"; 83 regulator-name = "vcc_18"; 85 regulator-min-microvolt = <180 84 regulator-min-microvolt = <1800000>; 86 regulator-max-microvolt = <180 85 regulator-max-microvolt = <1800000>; 87 regulator-always-on; 86 regulator-always-on; 88 regulator-boot-on; 87 regulator-boot-on; 89 vin-supply = <&vcc_sys>; 88 vin-supply = <&vcc_sys>; 90 }; 89 }; 91 90 92 /* supplies both host and otg */ 91 /* supplies both host and otg */ 93 vcc_host: vcc-host-regulator { 92 vcc_host: vcc-host-regulator { 94 compatible = "regulator-fixed" 93 compatible = "regulator-fixed"; 95 enable-active-high; 94 enable-active-high; 96 gpio = <&gpio0 RK_PA4 GPIO_ACT 95 gpio = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 97 pinctrl-names = "default"; 96 pinctrl-names = "default"; 98 pinctrl-0 = <&host_vbus_drv>; 97 pinctrl-0 = <&host_vbus_drv>; 99 regulator-name = "vcc_host"; 98 regulator-name = "vcc_host"; 100 regulator-always-on; 99 regulator-always-on; 101 regulator-boot-on; 100 regulator-boot-on; 102 vin-supply = <&vcc_sys>; 101 vin-supply = <&vcc_sys>; 103 }; 102 }; 104 103 105 vcc_io: vcc-io-regulator { 104 vcc_io: vcc-io-regulator { 106 compatible = "regulator-fixed" 105 compatible = "regulator-fixed"; 107 regulator-name = "vcc_io"; 106 regulator-name = "vcc_io"; 108 regulator-min-microvolt = <330 107 regulator-min-microvolt = <3300000>; 109 regulator-max-microvolt = <330 108 regulator-max-microvolt = <3300000>; 110 regulator-always-on; 109 regulator-always-on; 111 regulator-boot-on; 110 regulator-boot-on; 112 vin-supply = <&vcc_sys>; 111 vin-supply = <&vcc_sys>; 113 }; 112 }; 114 113 115 vcc_lan: vcc-lan-regulator { 114 vcc_lan: vcc-lan-regulator { 116 compatible = "regulator-fixed" 115 compatible = "regulator-fixed"; 117 regulator-name = "vcc_lan"; 116 regulator-name = "vcc_lan"; 118 regulator-min-microvolt = <330 117 regulator-min-microvolt = <3300000>; 119 regulator-max-microvolt = <330 118 regulator-max-microvolt = <3300000>; 120 regulator-always-on; 119 regulator-always-on; 121 regulator-boot-on; 120 regulator-boot-on; 122 vin-supply = <&vcc_io>; 121 vin-supply = <&vcc_io>; 123 }; 122 }; 124 123 125 vcc_sys: vcc-sys-regulator { 124 vcc_sys: vcc-sys-regulator { 126 compatible = "regulator-fixed" 125 compatible = "regulator-fixed"; 127 regulator-name = "vcc_sys"; 126 regulator-name = "vcc_sys"; 128 regulator-min-microvolt = <500 127 regulator-min-microvolt = <5000000>; 129 regulator-max-microvolt = <500 128 regulator-max-microvolt = <5000000>; 130 regulator-always-on; 129 regulator-always-on; 131 regulator-boot-on; 130 regulator-boot-on; 132 }; 131 }; 133 132 134 vccio_wl: vccio-wl-regulator { 133 vccio_wl: vccio-wl-regulator { 135 compatible = "regulator-fixed" 134 compatible = "regulator-fixed"; 136 regulator-name = "vccio_wl"; 135 regulator-name = "vccio_wl"; 137 regulator-min-microvolt = <330 136 regulator-min-microvolt = <3300000>; 138 regulator-max-microvolt = <330 137 regulator-max-microvolt = <3300000>; 139 regulator-always-on; 138 regulator-always-on; 140 regulator-boot-on; 139 regulator-boot-on; 141 vin-supply = <&vcc_io>; 140 vin-supply = <&vcc_io>; 142 }; 141 }; 143 142 144 vdd_10: vdd-10-regulator { 143 vdd_10: vdd-10-regulator { 145 compatible = "regulator-fixed" 144 compatible = "regulator-fixed"; 146 regulator-name = "vdd_10"; 145 regulator-name = "vdd_10"; 147 regulator-min-microvolt = <100 146 regulator-min-microvolt = <1000000>; 148 regulator-max-microvolt = <100 147 regulator-max-microvolt = <1000000>; 149 regulator-always-on; 148 regulator-always-on; 150 regulator-boot-on; 149 regulator-boot-on; 151 vin-supply = <&vcc_sys>; 150 vin-supply = <&vcc_sys>; 152 }; 151 }; 153 }; 152 }; 154 153 155 &emmc { 154 &emmc { 156 bus-width = <8>; 155 bus-width = <8>; 157 cap-mmc-highspeed; 156 cap-mmc-highspeed; 158 mmc-pwrseq = <&emmc_pwrseq>; 157 mmc-pwrseq = <&emmc_pwrseq>; 159 non-removable; 158 non-removable; 160 pinctrl-names = "default"; 159 pinctrl-names = "default"; 161 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc 160 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 162 status = "okay"; 161 status = "okay"; 163 }; 162 }; 164 163 165 &gmac { 164 &gmac { 166 phy-supply = <&vcc_lan>; 165 phy-supply = <&vcc_lan>; 167 phy-mode = "rmii"; 166 phy-mode = "rmii"; 168 clock_in_out = "output"; 167 clock_in_out = "output"; 169 snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ 168 snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>; 170 snps,reset-active-low; 169 snps,reset-active-low; 171 snps,reset-delays-us = <0 10000 100000 170 snps,reset-delays-us = <0 10000 1000000>; 172 pinctrl-names = "default"; 171 pinctrl-names = "default"; 173 pinctrl-0 = <&rmii_pins>; 172 pinctrl-0 = <&rmii_pins>; 174 tx_delay = <0x30>; 173 tx_delay = <0x30>; 175 rx_delay = <0x10>; 174 rx_delay = <0x10>; 176 status = "okay"; 175 status = "okay"; 177 }; 176 }; 178 177 179 &i2c0 { 178 &i2c0 { 180 status = "okay"; 179 status = "okay"; 181 180 182 vdd_cpu: syr827@40 { 181 vdd_cpu: syr827@40 { 183 compatible = "silergy,syr827"; 182 compatible = "silergy,syr827"; 184 reg = <0x40>; 183 reg = <0x40>; 185 fcs,suspend-voltage-selector = 184 fcs,suspend-voltage-selector = <1>; 186 regulator-name = "vdd_cpu"; 185 regulator-name = "vdd_cpu"; 187 regulator-enable-ramp-delay = 186 regulator-enable-ramp-delay = <300>; 188 regulator-min-microvolt = <712 187 regulator-min-microvolt = <712500>; 189 regulator-max-microvolt = <150 188 regulator-max-microvolt = <1500000>; 190 regulator-ramp-delay = <8000>; 189 regulator-ramp-delay = <8000>; 191 regulator-always-on; 190 regulator-always-on; 192 regulator-boot-on; 191 regulator-boot-on; 193 vin-supply = <&vcc_sys>; 192 vin-supply = <&vcc_sys>; 194 }; 193 }; 195 194 196 hym8563: rtc@51 { !! 195 hym8563: hym8563@51 { 197 compatible = "haoyu,hym8563"; 196 compatible = "haoyu,hym8563"; 198 reg = <0x51>; 197 reg = <0x51>; 199 #clock-cells = <0>; 198 #clock-cells = <0>; >> 199 clock-frequency = <32768>; 200 clock-output-names = "xin32k"; 200 clock-output-names = "xin32k"; 201 /* rtc_int is not connected */ 201 /* rtc_int is not connected */ 202 }; 202 }; 203 }; 203 }; 204 204 205 &io_domains { 205 &io_domains { 206 status = "okay"; 206 status = "okay"; 207 207 208 audio-supply = <&vcc_io>; 208 audio-supply = <&vcc_io>; 209 gpio30-supply = <&vcc_io>; 209 gpio30-supply = <&vcc_io>; 210 gpio1830-supply = <&vcc_io>; 210 gpio1830-supply = <&vcc_io>; 211 wifi-supply = <&vccio_wl>; 211 wifi-supply = <&vccio_wl>; 212 }; 212 }; 213 213 214 &sdio0 { 214 &sdio0 { 215 assigned-clocks = <&cru SCLK_SDIO0>; 215 assigned-clocks = <&cru SCLK_SDIO0>; 216 assigned-clock-parents = <&cru PLL_CPL 216 assigned-clock-parents = <&cru PLL_CPLL>; 217 bus-width = <4>; 217 bus-width = <4>; 218 cap-sd-highspeed; 218 cap-sd-highspeed; 219 cap-sdio-irq; 219 cap-sdio-irq; 220 keep-power-in-suspend; 220 keep-power-in-suspend; 221 mmc-pwrseq = <&sdio_pwrseq>; 221 mmc-pwrseq = <&sdio_pwrseq>; 222 non-removable; 222 non-removable; 223 pinctrl-names = "default"; 223 pinctrl-names = "default"; 224 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sd 224 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>; 225 vmmc-supply = <&vcc_io>; 225 vmmc-supply = <&vcc_io>; 226 vqmmc-supply = <&vccio_wl>; 226 vqmmc-supply = <&vccio_wl>; 227 status = "okay"; 227 status = "okay"; 228 }; 228 }; 229 229 230 &pinctrl { 230 &pinctrl { 231 pcfg_pull_none_drv_8ma: pcfg-pull-none 231 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma { 232 bias-disable; 232 bias-disable; 233 drive-strength = <8>; 233 drive-strength = <8>; 234 }; 234 }; 235 235 236 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv 236 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma { 237 bias-pull-up; 237 bias-pull-up; 238 drive-strength = <8>; 238 drive-strength = <8>; 239 }; 239 }; 240 240 241 emmc { 241 emmc { 242 emmc_bus8: emmc-bus8 { 242 emmc_bus8: emmc-bus8 { 243 rockchip,pins = <1 RK_ 243 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up_drv_8ma>, 244 <1 RK_ 244 <1 RK_PC3 2 &pcfg_pull_up_drv_8ma>, 245 <1 RK_ 245 <1 RK_PC4 2 &pcfg_pull_up_drv_8ma>, 246 <1 RK_ 246 <1 RK_PC5 2 &pcfg_pull_up_drv_8ma>, 247 <1 RK_ 247 <1 RK_PC6 2 &pcfg_pull_up_drv_8ma>, 248 <1 RK_ 248 <1 RK_PC7 2 &pcfg_pull_up_drv_8ma>, 249 <1 RK_ 249 <1 RK_PD0 2 &pcfg_pull_up_drv_8ma>, 250 <1 RK_ 250 <1 RK_PD1 2 &pcfg_pull_up_drv_8ma>; 251 }; 251 }; 252 252 253 emmc-clk { 253 emmc-clk { 254 rockchip,pins = <2 RK_ 254 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none_drv_8ma>; 255 }; 255 }; 256 256 257 emmc-cmd { 257 emmc-cmd { 258 rockchip,pins = <1 RK_ 258 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up_drv_8ma>; 259 }; 259 }; 260 260 261 emmc_reset: emmc-reset { 261 emmc_reset: emmc-reset { 262 rockchip,pins = <2 RK_ 262 rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 263 }; 263 }; 264 }; 264 }; 265 265 266 ir { 266 ir { 267 ir_int: ir-int { 267 ir_int: ir-int { 268 rockchip,pins = <3 RK_ 268 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>; 269 }; 269 }; 270 }; 270 }; 271 271 272 keys { 272 keys { 273 pwr_key: pwr-key { 273 pwr_key: pwr-key { 274 rockchip,pins = <0 RK_ 274 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 275 }; 275 }; 276 }; 276 }; 277 277 278 leds { 278 leds { 279 stby_pwren: stby-pwren { 279 stby_pwren: stby-pwren { 280 rockchip,pins = <0 RK_ 280 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 281 }; 281 }; 282 282 283 led_ctl: led-ctl { 283 led_ctl: led-ctl { 284 rockchip,pins = <3 RK_ 284 rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; 285 }; 285 }; 286 }; 286 }; 287 287 288 sdio { 288 sdio { 289 wifi_reg_on: wifi-reg-on { 289 wifi_reg_on: wifi-reg-on { 290 rockchip,pins = <3 RK_ 290 rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 291 }; 291 }; 292 292 293 bt_rst: bt-rst { 293 bt_rst: bt-rst { 294 rockchip,pins = <3 RK_ 294 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 295 }; 295 }; 296 }; 296 }; 297 297 298 usb { 298 usb { 299 host_vbus_drv: host-vbus-drv { 299 host_vbus_drv: host-vbus-drv { 300 rockchip,pins = <0 RK_ 300 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 301 }; 301 }; 302 }; 302 }; 303 }; 303 }; 304 304 305 &pmu_io_domains { 305 &pmu_io_domains { 306 status = "okay"; 306 status = "okay"; 307 307 308 pmu-supply = <&vcc_io>; 308 pmu-supply = <&vcc_io>; 309 vop-supply = <&vcc_io>; 309 vop-supply = <&vcc_io>; 310 }; 310 }; 311 311 312 &saradc { 312 &saradc { 313 vref-supply = <&vcc_18>; 313 vref-supply = <&vcc_18>; 314 status = "okay"; 314 status = "okay"; 315 }; 315 }; 316 316 317 &tsadc { 317 &tsadc { 318 rockchip,hw-tshut-mode = <0>; /* tshut 318 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ 319 rockchip,hw-tshut-polarity = <0>; /* t 319 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */ 320 status = "okay"; 320 status = "okay"; 321 }; 321 }; 322 322 323 &uart2 { 323 &uart2 { 324 status = "okay"; 324 status = "okay"; 325 }; 325 }; 326 326 327 &usb_host0_ehci { 327 &usb_host0_ehci { 328 status = "okay"; 328 status = "okay"; 329 }; 329 }; 330 330 331 &usb_otg { 331 &usb_otg { 332 dr_mode = "host"; 332 dr_mode = "host"; 333 status = "okay"; 333 status = "okay"; 334 }; 334 }; 335 335 336 &wdt { 336 &wdt { 337 status = "okay"; 337 status = "okay"; 338 }; 338 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.