1/* 2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ or X11 5 */ 6 7/dts-v1/; 8#include "rk3066a.dtsi" 9 10/ { 11 model = "Rockchip RK3066a Evaluation board"; 12 compatible = "rockchip,rk3066-evb", "rockchip,rk3066a"; 13 14 chosen { 15 stdout-path = "serial2:115200n8"; 16 }; 17 18 memory@60000000 { 19 reg = <0x60000000 0x40000000>; 20 device_type = "memory"; 21 }; 22 23 gpio-leds { 24 compatible = "gpio-leds"; 25 26 blue { 27 label = "mk808:blue:power"; 28 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; 29 default-state = "off"; 30 linux,default-trigger = "default-on"; 31 }; 32 }; 33 34 vcc_io: vcc-io { 35 compatible = "regulator-fixed"; 36 regulator-name = "vcc_io"; 37 regulator-min-microvolt = <3300000>; 38 regulator-max-microvolt = <3300000>; 39 }; 40 41 vcc_host: usb-host-regulator { 42 compatible = "regulator-fixed"; 43 enable-active-high; 44 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>; 45 pinctrl-0 = <&host_drv>; 46 pinctrl-names = "default"; 47 regulator-always-on; 48 regulator-name = "host-pwr"; 49 regulator-min-microvolt = <5000000>; 50 regulator-max-microvolt = <5000000>; 51 startup-delay-us = <100000>; 52 vin-supply = <&vcc_io>; 53 }; 54 55 vcc_otg: usb-otg-regulator { 56 compatible = "regulator-fixed"; 57 enable-active-high; 58 gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>; 59 pinctrl-0 = <&otg_drv>; 60 pinctrl-names = "default"; 61 regulator-always-on; 62 regulator-name = "vcc_otg"; 63 regulator-min-microvolt = <5000000>; 64 regulator-max-microvolt = <5000000>; 65 startup-delay-us = <100000>; 66 vin-supply = <&vcc_io>; 67 }; 68 69 vcc_sd: sdmmc-regulator { 70 compatible = "regulator-fixed"; 71 gpio = <&gpio3 7 GPIO_ACTIVE_LOW>; 72 pinctrl-0 = <&sdmmc_pwr>; 73 pinctrl-names = "default"; 74 regulator-name = "vcc_sd"; 75 regulator-min-microvolt = <3300000>; 76 regulator-max-microvolt = <3300000>; 77 startup-delay-us = <100000>; 78 vin-supply = <&vcc_io>; 79 }; 80 81 vcc_wifi: sdio-regulator { 82 compatible = "regulator-fixed"; 83 enable-active-high; 84 gpio = <&gpio3 24 GPIO_ACTIVE_HIGH>; 85 pinctrl-0 = <&wifi_pwr>; 86 pinctrl-names = "default"; 87 regulator-name = "vcc_wifi"; 88 regulator-min-microvolt = <3300000>; 89 regulator-max-microvolt = <3300000>; 90 startup-delay-us = <100000>; 91 vin-supply = <&vcc_io>; 92 }; 93}; 94 95&dmc { 96 compatible = "rockchip,rk3066-dmc", "syscon"; 97 rockchip,pctl-timing = <0x12c 0xc8 0x1f4 0x1e 0x4e 0x4 0x69 0x6 98 0x3 0x0 0x6 0x5 0xc 0x10 0x6 0x4 99 0x4 0x5 0x4 0x200 0x3 0xa 0x40 0x0 100 0x1 0x5 0x5 0x3 0xc 0x1e 0x100 0x0 101 0x4 0x0>; 102 rockchip,phy-timing = <0x208c6690 0x690878 0x10022a00 103 0x220 0x40 0x0 0x0>; 104 rockchip,sdram-params = <0x24716310 0 2 300000000 3 9 0>; 105}; 106 107&emmc { 108 status = "okay"; 109}; 110 111&mmc0 { 112 bus-width = <4>; 113 cap-mmc-highspeed; 114 cap-sd-highspeed; 115 num-slots = <1>; 116 vmmc-supply = <&vcc_sd>; 117 status = "okay"; 118}; 119 120&mmc1 { 121 bus-width = <4>; 122 disable-wp; 123 non-removable; 124 num-slots = <1>; 125 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; 126 pinctrl-names = "default"; 127 vmmc-supply = <&vcc_wifi>; 128 status = "okay"; 129}; 130 131&nandc { 132 u-boot,dm-spl; 133 status = "okay"; 134 #address-cells = <1>; 135 #size-cells = <0>; 136 137 nand@0 { 138 u-boot,dm-spl; 139 reg = <0>; 140 nand-ecc-mode = "hw_syndrome"; 141 nand-ecc-strength = <40>; 142 nand-ecc-step-size = <1024>; 143 rockchip,protect-bootrom-blocks; 144 }; 145}; 146 147&pinctrl { 148 usb-host { 149 host_drv: host-drv { 150 rockchip,pins = <RK_GPIO0 6 RK_FUNC_GPIO &pcfg_pull_default>; 151 }; 152 }; 153 154 usb-otg { 155 otg_drv: otg-drv { 156 rockchip,pins = <RK_GPIO0 5 RK_FUNC_GPIO &pcfg_pull_default>; 157 }; 158 }; 159 160 sdmmc { 161 sdmmc_pwr: sdmmc-pwr { 162 rockchip,pins = <RK_GPIO3 7 RK_FUNC_GPIO &pcfg_pull_default>; 163 }; 164 }; 165 166 sdio { 167 wifi_pwr: wifi-pwr { 168 rockchip,pins = <RK_GPIO3 24 RK_FUNC_GPIO &pcfg_pull_none>; 169 }; 170 }; 171}; 172 173&uart2 { 174 status = "okay"; 175 u-boot,dm-pre-reloc; 176}; 177 178&usb_host { 179 status = "okay"; 180}; 181 182&usb_otg { 183 u-boot,dm-spl; 184 status = "okay"; 185}; 186 187&usbphy { 188 status = "okay"; 189}; 190 191&wdt { 192 status = "okay"; 193}; 194