1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device tree file for Firefly Rockchip RK3288 Core board
4 * Copyright (c) 2016 Randy Li <ayaka@soulik.info>
8 #include "rk3288-firefly-reload-core.dtsi"
11 model = "Firefly-RK3288-reload";
12 compatible = "firefly,firefly-rk3288-reload", "rockchip,rk3288";
15 compatible = "adc-keys";
16 io-channels = <&saradc 1>;
17 io-channel-names = "buttons";
18 keyup-threshold-microvolt = <1800000>;
22 linux,code = <KEY_VENDOR>;
23 press-threshold-microvolt = <0>;
28 compatible = "gpio-keys";
32 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_POWER>;
35 pinctrl-names = "default";
36 pinctrl-0 = <&pwr_key>;
41 compatible = "gpio-ir-receiver";
42 gpios = <&gpio7 RK_PA0 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
49 gpios = <&gpio8 RK_PA2 GPIO_ACTIVE_LOW>;
50 label = "firefly:blue:power";
51 pinctrl-names = "default";
52 pinctrl-0 = <&power_led_pin>;
57 gpios = <&gpio8 RK_PA1 GPIO_ACTIVE_LOW>;
58 label = "firefly:blue:user";
59 linux,default-trigger = "rc-feedback";
60 pinctrl-names = "default";
61 pinctrl-0 = <&work_led_pin>;
65 sdio_pwrseq: sdio-pwrseq {
66 compatible = "mmc-pwrseq-simple";
68 clock-names = "ext_clock";
69 pinctrl-names = "default";
70 pinctrl-0 = <&wifi_enable>;
71 reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
75 compatible = "simple-audio-card";
76 simple-audio-card,name = "SPDIF";
77 simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
78 cpu { sound-dai = <&spdif>; };
79 codec { sound-dai = <&spdif_out>; };
83 spdif_out: spdif-out {
84 compatible = "linux,spdif-dit";
85 #sound-dai-cells = <0>;
88 vcc_host_5v: usb-host-regulator {
89 compatible = "regulator-fixed";
91 gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&host_vbus_drv>;
94 regulator-name = "vcc_host_5v";
95 regulator-min-microvolt = <5000000>;
96 regulator-max-microvolt = <5000000>;
98 vin-supply = <&vcc_5v>;
101 vcc_5v: vcc_sys: vsys-regulator {
102 compatible = "regulator-fixed";
103 regulator-name = "vcc_5v";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
110 vcc_sd: sdmmc-regulator {
111 compatible = "regulator-fixed";
112 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&sdmmc_pwr>;
115 regulator-name = "vcc_sd";
116 regulator-min-microvolt = <3300000>;
117 regulator-max-microvolt = <3300000>;
118 startup-delay-us = <100000>;
119 vin-supply = <&vcc_io>;
122 vcc_otg_5v: usb-otg-regulator {
123 compatible = "regulator-fixed";
125 gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&otg_vbus_drv>;
128 regulator-name = "vcc_otg_5v";
129 regulator-min-microvolt = <5000000>;
130 regulator-max-microvolt = <5000000>;
132 vin-supply = <&vcc_5v>;
135 dovdd_1v8: dovdd-1v8-regulator {
136 compatible = "regulator-fixed";
138 gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&dvp_pwr>;
141 regulator-name = "dovdd_1v8";
142 regulator-min-microvolt = <1800000>;
143 regulator-max-microvolt = <1800000>;
144 vin-supply = <&vcc_io>;
147 vcc28_dvp: vcc28-dvp-regulator {
148 compatible = "regulator-fixed";
150 gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&dvp_pwr>;
153 regulator-name = "vcc28_dvp";
154 regulator-min-microvolt = <2800000>;
155 regulator-max-microvolt = <2800000>;
156 vin-supply = <&vcc_io>;
159 af_28: af_28-regulator {
160 compatible = "regulator-fixed";
162 gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&dvp_pwr>;
165 regulator-name = "af_28";
166 regulator-min-microvolt = <2800000>;
167 regulator-max-microvolt = <2800000>;
168 vin-supply = <&vcc_io>;
171 dvdd_1v2: af_28-regulator {
172 compatible = "regulator-fixed";
174 gpio = <&gpio7 RK_PB4 GPIO_ACTIVE_HIGH>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&cif_pwr>;
177 regulator-name = "dvdd_1v2";
178 regulator-min-microvolt = <1200000>;
179 regulator-max-microvolt = <1200000>;
180 vin-supply = <&vcc_io>;
183 vbat_wl: wifi-regulator {
184 compatible = "regulator-fixed";
185 regulator-name = "vbat_wl";
186 regulator-min-microvolt = <3300000>;
187 regulator-max-microvolt = <3300000>;
188 vin-supply = <&vcc_io>;
193 ddc-i2c-bus = <&i2c5>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&hdmi_cec_c0>;
200 hym8563: hym8563@51 {
201 compatible = "haoyu,hym8563";
204 clock-frequency = <32768>;
205 clock-output-names = "xin32k";
206 interrupt-parent = <&gpio7>;
207 interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&rtc_int>;
217 compatible = "everest,es8328";
218 DVDD-supply = <&vcca_33>;
219 AVDD-supply = <&vcca_33>;
220 PVDD-supply = <&vcca_33>;
221 HPVDD-supply = <&vcca_33>;
222 clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
223 clock-names = "i2s_hclk", "i2s_clk";
237 vref-supply = <&vcc_18>;
245 card-detect-delay = <200>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
249 vmmc-supply = <&vcc_sd>;
250 vqmmc-supply = <&vccio_sd>;
258 mmc-pwrseq = <&sdio_pwrseq>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>, <&sdio0_int>;
266 vmmc-supply = <&vbat_wl>;
267 vqmmc-supply = <&vccio_wl>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
298 pinctrl-names = "default";
299 pinctrl-0 = <&usbhub_rst>;
310 rockchip,pins = <7 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
316 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
320 rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
326 rockchip,pins = <7 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
332 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
337 power_led_pin: power-led-pin {
338 rockchip,pins = <8 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
341 work_led_pin: work-led-pin {
342 rockchip,pins = <8 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
348 * Default drive strength isn't enough to achieve even
349 * high-speed mode on firefly board so bump up to 12ma.
351 sdmmc_bus4: sdmmc-bus4 {
352 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_12ma>,
353 <6 RK_PC1 1 &pcfg_pull_up_drv_12ma>,
354 <6 RK_PC2 1 &pcfg_pull_up_drv_12ma>,
355 <6 RK_PC3 1 &pcfg_pull_up_drv_12ma>;
358 sdmmc_clk: sdmmc-clk {
359 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_12ma>;
362 sdmmc_cmd: sdmmc-cmd {
363 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_12ma>;
366 sdmmc_pwr: sdmmc-pwr {
367 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
372 wifi_enable: wifi-enable {
373 rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
378 host_vbus_drv: host-vbus-drv {
379 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
382 usbhub_rst: usbhub-rst {
383 rockchip,pins = <8 RK_PA3 RK_FUNC_GPIO &pcfg_output_high>;
388 otg_vbus_drv: otg-vbus-drv {
389 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;