1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd 4 */ 5 6/dts-v1/; 7#include "rk3308.dtsi" 8 9/ { 10 model = "Firefly ROC-RK3308-CC board"; 11 compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308"; 12 chosen { 13 stdout-path = "serial2:1500000n8"; 14 }; 15 16 ir_rx { 17 compatible = "gpio-ir-receiver"; 18 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&ir_recv_pin>; 21 }; 22 23 ir_tx { 24 compatible = "pwm-ir-tx"; 25 pwms = <&pwm5 0 25000 0>; 26 }; 27 28 leds { 29 compatible = "gpio-leds"; 30 31 power { 32 label = "firefly:red:power"; 33 linux,default-trigger = "ir-power-click"; 34 default-state = "on"; 35 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 36 }; 37 38 user { 39 label = "firefly:blue:user"; 40 linux,default-trigger = "ir-user-click"; 41 default-state = "off"; 42 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; 43 }; 44 }; 45 46 typec_vcc5v: typec-vcc5v { 47 compatible = "regulator-fixed"; 48 regulator-name = "typec_vcc5v"; 49 regulator-min-microvolt = <5000000>; 50 regulator-max-microvolt = <5000000>; 51 regulator-always-on; 52 regulator-boot-on; 53 }; 54 55 vcc5v0_sys: vcc5v0-sys { 56 compatible = "regulator-fixed"; 57 regulator-name = "vcc5v0_sys"; 58 regulator-min-microvolt = <5000000>; 59 regulator-max-microvolt = <5000000>; 60 regulator-always-on; 61 regulator-boot-on; 62 vin-supply = <&typec_vcc5v>; 63 }; 64 65 vcc_io: vcc-io { 66 compatible = "regulator-fixed"; 67 regulator-name = "vcc_io"; 68 regulator-min-microvolt = <3300000>; 69 regulator-max-microvolt = <3300000>; 70 regulator-always-on; 71 regulator-boot-on; 72 vin-supply = <&vcc5v0_sys>; 73 }; 74 75 vcc_sdmmc: vcc-sdmmc { 76 compatible = "regulator-gpio"; 77 regulator-name = "vcc_sdmmc"; 78 regulator-min-microvolt = <1800000>; 79 regulator-max-microvolt = <3300000>; 80 gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>; 81 states = <1800000 0x0 82 3300000 0x1>; 83 vin-supply = <&vcc5v0_sys>; 84 }; 85 86 vcc_sd: vcc-sd { 87 compatible = "regulator-fixed"; 88 gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>; 89 regulator-name = "vcc_sd"; 90 regulator-min-microvolt = <3300000>; 91 regulator-max-microvolt = <3300000>; 92 regulator-always-on; 93 regulator-boot-on; 94 vim-supply = <&vcc_io>; 95 }; 96 97 vdd_core: vdd-core { 98 compatible = "pwm-regulator"; 99 pwms = <&pwm0 0 5000 1>; 100 regulator-name = "vdd_core"; 101 regulator-min-microvolt = <827000>; 102 regulator-max-microvolt = <1340000>; 103 regulator-init-microvolt = <1015000>; 104 regulator-settling-time-up-us = <250>; 105 regulator-always-on; 106 regulator-boot-on; 107 pwm-supply = <&vcc5v0_sys>; 108 }; 109 110 vdd_log: vdd-log { 111 compatible = "regulator-fixed"; 112 regulator-name = "vdd_log"; 113 regulator-min-microvolt = <1050000>; 114 regulator-max-microvolt = <1050000>; 115 regulator-always-on; 116 regulator-boot-on; 117 vin-supply = <&vcc5v0_sys>; 118 }; 119}; 120 121&cpu0 { 122 cpu-supply = <&vdd_core>; 123}; 124 125&emmc { 126 bus-width = <8>; 127 cap-mmc-highspeed; 128 disable-wp; 129 mmc-hs200-1_8v; 130 non-removable; 131 status = "okay"; 132}; 133 134&i2c1 { 135 clock-frequency = <400000>; 136 status = "okay"; 137 138 rtc: rtc@51 { 139 compatible = "nxp,pcf8563"; 140 reg = <0x51>; 141 #clock-cells = <0>; 142 }; 143}; 144 145&pwm5 { 146 status = "okay"; 147 pinctrl-names = "active"; 148 pinctrl-0 = <&pwm5_pin_pull_down>; 149}; 150 151&pinctrl { 152 pinctrl-names = "default"; 153 pinctrl-0 = <&rtc_32k>; 154 155 ir-receiver { 156 ir_recv_pin: ir-recv-pin { 157 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 158 }; 159 }; 160 161 buttons { 162 pwr_key: pwr-key { 163 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 164 }; 165 }; 166}; 167 168&pwm0 { 169 status = "okay"; 170 pinctrl-0 = <&pwm0_pin_pull_down>; 171}; 172 173&sdmmc { 174 bus-width = <4>; 175 cap-mmc-highspeed; 176 cap-sd-highspeed; 177 card-detect-delay = <300>; 178 sd-uhs-sdr25; 179 sd-uhs-sdr50; 180 sd-uhs-sdr104; 181 vmmc-supply = <&vcc_sd>; 182 vqmmc-supply = <&vcc_sdmmc>; 183 status = "okay"; 184}; 185 186&uart2 { 187 status = "okay"; 188}; 189