1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
10 model = "Firefly ROC-RK3308-CC board";
11 compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308";
13 stdout-path = "serial2:1500000n8";
17 compatible = "gpio-ir-receiver";
18 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&ir_recv_pin>;
24 compatible = "pwm-ir-tx";
25 pwms = <&pwm5 0 25000 0>;
29 compatible = "gpio-leds";
32 label = "firefly:red:power";
33 linux,default-trigger = "ir-power-click";
35 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
39 label = "firefly:blue:user";
40 linux,default-trigger = "ir-user-click";
41 default-state = "off";
42 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
46 typec_vcc5v: typec-vcc5v {
47 compatible = "regulator-fixed";
48 regulator-name = "typec_vcc5v";
49 regulator-min-microvolt = <5000000>;
50 regulator-max-microvolt = <5000000>;
55 vcc5v0_sys: vcc5v0-sys {
56 compatible = "regulator-fixed";
57 regulator-name = "vcc5v0_sys";
58 regulator-min-microvolt = <5000000>;
59 regulator-max-microvolt = <5000000>;
62 vin-supply = <&typec_vcc5v>;
66 compatible = "regulator-fixed";
67 regulator-name = "vcc_io";
68 regulator-min-microvolt = <3300000>;
69 regulator-max-microvolt = <3300000>;
72 vin-supply = <&vcc5v0_sys>;
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>;
83 vin-supply = <&vcc5v0_sys>;
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>;
94 vim-supply = <&vcc_io>;
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>;
107 pwm-supply = <&vcc5v0_sys>;
111 compatible = "regulator-fixed";
112 regulator-name = "vdd_log";
113 regulator-min-microvolt = <1050000>;
114 regulator-max-microvolt = <1050000>;
117 vin-supply = <&vcc5v0_sys>;
122 cpu-supply = <&vdd_core>;
135 clock-frequency = <400000>;
139 compatible = "nxp,pcf8563";
147 pinctrl-names = "active";
148 pinctrl-0 = <&pwm5_pin_pull_down>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&rtc_32k>;
156 ir_recv_pin: ir-recv-pin {
157 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
163 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
170 pinctrl-0 = <&pwm0_pin_pull_down>;
177 card-detect-delay = <300>;
181 vmmc-supply = <&vcc_sd>;
182 vqmmc-supply = <&vcc_sdmmc>;