1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2017 T-Chip Intelligent Techn 3 * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 #include "rk3328.dtsi" 7 #include "rk3328.dtsi" 8 8 9 / { 9 / { 10 model = "Firefly roc-rk3328-cc"; 10 model = "Firefly roc-rk3328-cc"; 11 compatible = "firefly,roc-rk3328-cc", 11 compatible = "firefly,roc-rk3328-cc", "rockchip,rk3328"; 12 12 13 aliases { << 14 ethernet0 = &gmac2io; << 15 mmc0 = &sdmmc; << 16 mmc1 = &emmc; << 17 }; << 18 << 19 chosen { 13 chosen { 20 stdout-path = "serial2:1500000 14 stdout-path = "serial2:1500000n8"; 21 }; 15 }; 22 16 23 gmac_clkin: external-gmac-clock { 17 gmac_clkin: external-gmac-clock { 24 compatible = "fixed-clock"; 18 compatible = "fixed-clock"; 25 clock-frequency = <125000000>; 19 clock-frequency = <125000000>; 26 clock-output-names = "gmac_clk 20 clock-output-names = "gmac_clkin"; 27 #clock-cells = <0>; 21 #clock-cells = <0>; 28 }; 22 }; 29 23 30 dc_12v: dc-12v { 24 dc_12v: dc-12v { 31 compatible = "regulator-fixed" 25 compatible = "regulator-fixed"; 32 regulator-name = "dc_12v"; 26 regulator-name = "dc_12v"; 33 regulator-always-on; 27 regulator-always-on; 34 regulator-boot-on; 28 regulator-boot-on; 35 regulator-min-microvolt = <120 29 regulator-min-microvolt = <12000000>; 36 regulator-max-microvolt = <120 30 regulator-max-microvolt = <12000000>; 37 }; 31 }; 38 32 39 vcc_sd: sdmmc-regulator { 33 vcc_sd: sdmmc-regulator { 40 compatible = "regulator-fixed" 34 compatible = "regulator-fixed"; 41 gpio = <&gpio0 RK_PD6 GPIO_ACT 35 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>; 42 pinctrl-names = "default"; 36 pinctrl-names = "default"; 43 pinctrl-0 = <&sdmmc0m1_pin>; !! 37 pinctrl-0 = <&sdmmc0m1_gpio>; 44 regulator-boot-on; 38 regulator-boot-on; 45 regulator-name = "vcc_sd"; 39 regulator-name = "vcc_sd"; 46 regulator-min-microvolt = <330 40 regulator-min-microvolt = <3300000>; 47 regulator-max-microvolt = <330 41 regulator-max-microvolt = <3300000>; 48 vin-supply = <&vcc_io>; 42 vin-supply = <&vcc_io>; 49 }; 43 }; 50 44 51 vcc_sdio: sdmmcio-regulator { 45 vcc_sdio: sdmmcio-regulator { 52 compatible = "regulator-gpio"; 46 compatible = "regulator-gpio"; 53 gpios = <&grf_gpio 0 GPIO_ACTI 47 gpios = <&grf_gpio 0 GPIO_ACTIVE_HIGH>; 54 states = <1800000 0x1>, !! 48 states = <1800000 0x1 55 <3300000 0x0>; !! 49 3300000 0x0>; 56 regulator-name = "vcc_sdio"; 50 regulator-name = "vcc_sdio"; 57 regulator-type = "voltage"; 51 regulator-type = "voltage"; 58 regulator-min-microvolt = <180 52 regulator-min-microvolt = <1800000>; 59 regulator-max-microvolt = <330 53 regulator-max-microvolt = <3300000>; 60 regulator-always-on; 54 regulator-always-on; 61 vin-supply = <&vcc_sys>; 55 vin-supply = <&vcc_sys>; 62 }; 56 }; 63 57 64 vcc_host1_5v: vcc_otg_5v: vcc-host1-5v 58 vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator { 65 compatible = "regulator-fixed" 59 compatible = "regulator-fixed"; 66 enable-active-high; 60 enable-active-high; 67 gpio = <&gpio1 RK_PD2 GPIO_ACT 61 gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; 68 pinctrl-names = "default"; 62 pinctrl-names = "default"; 69 pinctrl-0 = <&usb20_host_drv>; 63 pinctrl-0 = <&usb20_host_drv>; 70 regulator-name = "vcc_host1_5v 64 regulator-name = "vcc_host1_5v"; 71 regulator-always-on; 65 regulator-always-on; 72 vin-supply = <&vcc_sys>; 66 vin-supply = <&vcc_sys>; 73 }; 67 }; 74 68 75 vcc_sys: vcc-sys { 69 vcc_sys: vcc-sys { 76 compatible = "regulator-fixed" 70 compatible = "regulator-fixed"; 77 regulator-name = "vcc_sys"; 71 regulator-name = "vcc_sys"; 78 regulator-always-on; 72 regulator-always-on; 79 regulator-boot-on; 73 regulator-boot-on; 80 regulator-min-microvolt = <500 74 regulator-min-microvolt = <5000000>; 81 regulator-max-microvolt = <500 75 regulator-max-microvolt = <5000000>; 82 vin-supply = <&dc_12v>; 76 vin-supply = <&dc_12v>; 83 }; 77 }; 84 78 85 vcc_phy: vcc-phy-regulator { 79 vcc_phy: vcc-phy-regulator { 86 compatible = "regulator-fixed" 80 compatible = "regulator-fixed"; 87 regulator-name = "vcc_phy"; 81 regulator-name = "vcc_phy"; 88 regulator-always-on; 82 regulator-always-on; 89 regulator-boot-on; 83 regulator-boot-on; 90 }; 84 }; 91 85 92 leds { 86 leds { 93 compatible = "gpio-leds"; 87 compatible = "gpio-leds"; 94 88 95 power_led: led-0 { 89 power_led: led-0 { 96 label = "firefly:blue: 90 label = "firefly:blue:power"; 97 linux,default-trigger 91 linux,default-trigger = "heartbeat"; 98 gpios = <&rk805 1 GPIO 92 gpios = <&rk805 1 GPIO_ACTIVE_LOW>; 99 default-state = "on"; 93 default-state = "on"; >> 94 mode = <0x23>; 100 }; 95 }; 101 96 102 user_led: led-1 { 97 user_led: led-1 { 103 label = "firefly:yello 98 label = "firefly:yellow:user"; 104 linux,default-trigger 99 linux,default-trigger = "mmc1"; 105 gpios = <&rk805 0 GPIO 100 gpios = <&rk805 0 GPIO_ACTIVE_LOW>; 106 default-state = "off"; 101 default-state = "off"; >> 102 mode = <0x05>; 107 }; 103 }; 108 }; 104 }; 109 }; 105 }; 110 106 111 &analog_sound { << 112 status = "okay"; << 113 }; << 114 << 115 &codec { << 116 status = "okay"; << 117 }; << 118 << 119 &cpu0 { 107 &cpu0 { 120 cpu-supply = <&vdd_arm>; 108 cpu-supply = <&vdd_arm>; 121 }; 109 }; 122 110 123 &cpu1 { 111 &cpu1 { 124 cpu-supply = <&vdd_arm>; 112 cpu-supply = <&vdd_arm>; 125 }; 113 }; 126 114 127 &cpu2 { 115 &cpu2 { 128 cpu-supply = <&vdd_arm>; 116 cpu-supply = <&vdd_arm>; 129 }; 117 }; 130 118 131 &cpu3 { 119 &cpu3 { 132 cpu-supply = <&vdd_arm>; 120 cpu-supply = <&vdd_arm>; 133 }; 121 }; 134 122 135 &emmc { 123 &emmc { 136 bus-width = <8>; 124 bus-width = <8>; 137 cap-mmc-highspeed; 125 cap-mmc-highspeed; 138 max-frequency = <150000000>; 126 max-frequency = <150000000>; 139 mmc-ddr-1_8v; 127 mmc-ddr-1_8v; 140 mmc-hs200-1_8v; 128 mmc-hs200-1_8v; 141 non-removable; 129 non-removable; 142 pinctrl-names = "default"; 130 pinctrl-names = "default"; 143 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc 131 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 144 vmmc-supply = <&vcc_io>; 132 vmmc-supply = <&vcc_io>; 145 vqmmc-supply = <&vcc18_emmc>; 133 vqmmc-supply = <&vcc18_emmc>; 146 status = "okay"; 134 status = "okay"; 147 }; 135 }; 148 136 149 &gmac2io { 137 &gmac2io { 150 assigned-clocks = <&cru SCLK_MAC2IO>, 138 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>; 151 assigned-clock-parents = <&gmac_clkin> 139 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>; 152 clock_in_out = "input"; 140 clock_in_out = "input"; 153 phy-supply = <&vcc_phy>; 141 phy-supply = <&vcc_phy>; 154 phy-mode = "rgmii"; 142 phy-mode = "rgmii"; 155 pinctrl-names = "default"; 143 pinctrl-names = "default"; 156 pinctrl-0 = <&rgmiim1_pins>; 144 pinctrl-0 = <&rgmiim1_pins>; 157 snps,aal; 145 snps,aal; 158 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ 146 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; 159 snps,reset-active-low; 147 snps,reset-active-low; 160 snps,reset-delays-us = <0 10000 50000> 148 snps,reset-delays-us = <0 10000 50000>; 161 snps,rxpbl = <0x4>; 149 snps,rxpbl = <0x4>; 162 snps,txpbl = <0x4>; 150 snps,txpbl = <0x4>; 163 tx_delay = <0x24>; 151 tx_delay = <0x24>; 164 rx_delay = <0x18>; 152 rx_delay = <0x18>; 165 status = "okay"; 153 status = "okay"; 166 }; 154 }; 167 155 168 &hdmi { 156 &hdmi { 169 status = "okay"; 157 status = "okay"; 170 }; 158 }; 171 159 172 &hdmiphy { 160 &hdmiphy { 173 status = "okay"; 161 status = "okay"; 174 }; 162 }; 175 163 176 &hdmi_sound { << 177 status = "okay"; << 178 }; << 179 << 180 &i2c1 { 164 &i2c1 { 181 status = "okay"; 165 status = "okay"; 182 166 183 rk805: pmic@18 { 167 rk805: pmic@18 { 184 compatible = "rockchip,rk805"; 168 compatible = "rockchip,rk805"; 185 reg = <0x18>; 169 reg = <0x18>; 186 interrupt-parent = <&gpio1>; 170 interrupt-parent = <&gpio1>; 187 interrupts = <24 IRQ_TYPE_LEVE 171 interrupts = <24 IRQ_TYPE_LEVEL_LOW>; 188 #clock-cells = <1>; 172 #clock-cells = <1>; 189 clock-output-names = "xin32k", 173 clock-output-names = "xin32k", "rk805-clkout2"; 190 gpio-controller; 174 gpio-controller; 191 #gpio-cells = <2>; 175 #gpio-cells = <2>; 192 pinctrl-names = "default"; 176 pinctrl-names = "default"; 193 pinctrl-0 = <&pmic_int_l>; 177 pinctrl-0 = <&pmic_int_l>; 194 rockchip,system-power-controll 178 rockchip,system-power-controller; 195 wakeup-source; 179 wakeup-source; 196 180 197 vcc1-supply = <&vcc_sys>; 181 vcc1-supply = <&vcc_sys>; 198 vcc2-supply = <&vcc_sys>; 182 vcc2-supply = <&vcc_sys>; 199 vcc3-supply = <&vcc_sys>; 183 vcc3-supply = <&vcc_sys>; 200 vcc4-supply = <&vcc_sys>; 184 vcc4-supply = <&vcc_sys>; 201 vcc5-supply = <&vcc_io>; 185 vcc5-supply = <&vcc_io>; 202 vcc6-supply = <&vcc_io>; 186 vcc6-supply = <&vcc_io>; 203 187 204 regulators { 188 regulators { 205 vdd_logic: DCDC_REG1 { 189 vdd_logic: DCDC_REG1 { 206 regulator-name 190 regulator-name = "vdd_logic"; 207 regulator-min- 191 regulator-min-microvolt = <712500>; 208 regulator-max- 192 regulator-max-microvolt = <1450000>; 209 regulator-alwa 193 regulator-always-on; 210 regulator-boot 194 regulator-boot-on; 211 regulator-stat 195 regulator-state-mem { 212 regula 196 regulator-on-in-suspend; 213 regula 197 regulator-suspend-microvolt = <1000000>; 214 }; 198 }; 215 }; 199 }; 216 200 217 vdd_arm: DCDC_REG2 { 201 vdd_arm: DCDC_REG2 { 218 regulator-name 202 regulator-name = "vdd_arm"; 219 regulator-min- 203 regulator-min-microvolt = <712500>; 220 regulator-max- 204 regulator-max-microvolt = <1450000>; 221 regulator-alwa 205 regulator-always-on; 222 regulator-boot 206 regulator-boot-on; 223 regulator-stat 207 regulator-state-mem { 224 regula 208 regulator-on-in-suspend; 225 regula 209 regulator-suspend-microvolt = <950000>; 226 }; 210 }; 227 }; 211 }; 228 212 229 vcc_ddr: DCDC_REG3 { 213 vcc_ddr: DCDC_REG3 { 230 regulator-name 214 regulator-name = "vcc_ddr"; 231 regulator-alwa 215 regulator-always-on; 232 regulator-boot 216 regulator-boot-on; 233 regulator-stat 217 regulator-state-mem { 234 regula 218 regulator-on-in-suspend; 235 }; 219 }; 236 }; 220 }; 237 221 238 vcc_io: DCDC_REG4 { 222 vcc_io: DCDC_REG4 { 239 regulator-name 223 regulator-name = "vcc_io"; 240 regulator-min- 224 regulator-min-microvolt = <3300000>; 241 regulator-max- 225 regulator-max-microvolt = <3300000>; 242 regulator-alwa 226 regulator-always-on; 243 regulator-boot 227 regulator-boot-on; 244 regulator-stat 228 regulator-state-mem { 245 regula 229 regulator-on-in-suspend; 246 regula 230 regulator-suspend-microvolt = <3300000>; 247 }; 231 }; 248 }; 232 }; 249 233 250 vcc_18: LDO_REG1 { 234 vcc_18: LDO_REG1 { 251 regulator-name 235 regulator-name = "vcc_18"; 252 regulator-min- 236 regulator-min-microvolt = <1800000>; 253 regulator-max- 237 regulator-max-microvolt = <1800000>; 254 regulator-alwa 238 regulator-always-on; 255 regulator-boot 239 regulator-boot-on; 256 regulator-stat 240 regulator-state-mem { 257 regula 241 regulator-on-in-suspend; 258 regula 242 regulator-suspend-microvolt = <1800000>; 259 }; 243 }; 260 }; 244 }; 261 245 262 vcc18_emmc: LDO_REG2 { 246 vcc18_emmc: LDO_REG2 { 263 regulator-name 247 regulator-name = "vcc18_emmc"; 264 regulator-min- 248 regulator-min-microvolt = <1800000>; 265 regulator-max- 249 regulator-max-microvolt = <1800000>; 266 regulator-alwa 250 regulator-always-on; 267 regulator-boot 251 regulator-boot-on; 268 regulator-stat 252 regulator-state-mem { 269 regula 253 regulator-on-in-suspend; 270 regula 254 regulator-suspend-microvolt = <1800000>; 271 }; 255 }; 272 }; 256 }; 273 257 274 vdd_10: LDO_REG3 { 258 vdd_10: LDO_REG3 { 275 regulator-name 259 regulator-name = "vdd_10"; 276 regulator-min- 260 regulator-min-microvolt = <1000000>; 277 regulator-max- 261 regulator-max-microvolt = <1000000>; 278 regulator-alwa 262 regulator-always-on; 279 regulator-boot 263 regulator-boot-on; 280 regulator-stat 264 regulator-state-mem { 281 regula 265 regulator-on-in-suspend; 282 regula 266 regulator-suspend-microvolt = <1000000>; 283 }; 267 }; 284 }; 268 }; 285 }; 269 }; 286 }; 270 }; 287 }; 271 }; 288 272 289 &i2s0 { << 290 status = "okay"; << 291 }; << 292 << 293 &i2s1 { << 294 status = "okay"; << 295 }; << 296 << 297 &io_domains { 273 &io_domains { 298 status = "okay"; 274 status = "okay"; 299 275 300 vccio1-supply = <&vcc_io>; 276 vccio1-supply = <&vcc_io>; 301 vccio2-supply = <&vcc18_emmc>; 277 vccio2-supply = <&vcc18_emmc>; 302 vccio3-supply = <&vcc_sdio>; 278 vccio3-supply = <&vcc_sdio>; 303 vccio4-supply = <&vcc_18>; 279 vccio4-supply = <&vcc_18>; 304 vccio5-supply = <&vcc_io>; 280 vccio5-supply = <&vcc_io>; 305 vccio6-supply = <&vcc_io>; 281 vccio6-supply = <&vcc_io>; 306 pmuio-supply = <&vcc_io>; 282 pmuio-supply = <&vcc_io>; 307 }; 283 }; 308 284 309 &pinctrl { 285 &pinctrl { 310 pmic { 286 pmic { 311 pmic_int_l: pmic-int-l { 287 pmic_int_l: pmic-int-l { 312 rockchip,pins = <1 RK_ 288 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>; 313 }; 289 }; 314 }; 290 }; 315 291 316 usb2 { 292 usb2 { 317 usb20_host_drv: usb20-host-drv 293 usb20_host_drv: usb20-host-drv { 318 rockchip,pins = <1 RK_ 294 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 319 }; 295 }; 320 }; 296 }; 321 }; 297 }; 322 298 323 &sdmmc { 299 &sdmmc { 324 bus-width = <4>; 300 bus-width = <4>; 325 cap-mmc-highspeed; 301 cap-mmc-highspeed; 326 cap-sd-highspeed; 302 cap-sd-highspeed; 327 disable-wp; 303 disable-wp; 328 max-frequency = <150000000>; 304 max-frequency = <150000000>; 329 pinctrl-names = "default"; 305 pinctrl-names = "default"; 330 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd & 306 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>; 331 sd-uhs-sdr12; 307 sd-uhs-sdr12; 332 sd-uhs-sdr25; 308 sd-uhs-sdr25; 333 sd-uhs-sdr50; 309 sd-uhs-sdr50; 334 sd-uhs-sdr104; 310 sd-uhs-sdr104; 335 vmmc-supply = <&vcc_sd>; 311 vmmc-supply = <&vcc_sd>; 336 vqmmc-supply = <&vcc_sdio>; 312 vqmmc-supply = <&vcc_sdio>; 337 status = "okay"; 313 status = "okay"; 338 }; 314 }; 339 315 340 &tsadc { 316 &tsadc { 341 status = "okay"; 317 status = "okay"; 342 }; 318 }; 343 319 344 &u2phy { 320 &u2phy { 345 status = "okay"; 321 status = "okay"; 346 }; 322 }; 347 323 348 &u2phy_host { 324 &u2phy_host { 349 status = "okay"; 325 status = "okay"; 350 }; 326 }; 351 327 352 &u2phy_otg { 328 &u2phy_otg { 353 status = "okay"; 329 status = "okay"; 354 }; 330 }; 355 331 356 &uart2 { 332 &uart2 { 357 status = "okay"; 333 status = "okay"; 358 }; 334 }; 359 335 360 &usb20_otg { 336 &usb20_otg { 361 dr_mode = "host"; << 362 status = "okay"; << 363 }; << 364 << 365 &usbdrd3 { << 366 dr_mode = "host"; << 367 status = "okay"; 337 status = "okay"; 368 }; 338 }; 369 339 370 &usb_host0_ehci { 340 &usb_host0_ehci { 371 status = "okay"; 341 status = "okay"; 372 }; 342 }; 373 343 374 &usb_host0_ohci { 344 &usb_host0_ohci { 375 status = "okay"; 345 status = "okay"; 376 }; 346 }; 377 347 378 &vop { 348 &vop { 379 status = "okay"; 349 status = "okay"; 380 }; 350 }; 381 351 382 &vop_mmu { 352 &vop_mmu { 383 status = "okay"; 353 status = "okay"; 384 }; 354 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.