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";
19 stdout-path = "serial2:1500000n8";
23 compatible = "gpio-ir-receiver";
24 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&ir_recv_pin>;
30 compatible = "pwm-ir-tx";
31 pwms = <&pwm5 0 25000 0>;
35 compatible = "gpio-leds";
38 label = "firefly:red:power";
39 linux,default-trigger = "ir-power-click";
41 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
45 label = "firefly:blue:user";
46 linux,default-trigger = "ir-user-click";
47 default-state = "off";
48 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
52 typec_vcc5v: typec-vcc5v {
53 compatible = "regulator-fixed";
54 regulator-name = "typec_vcc5v";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
61 vcc5v0_sys: vcc5v0-sys {
62 compatible = "regulator-fixed";
63 regulator-name = "vcc5v0_sys";
64 regulator-min-microvolt = <5000000>;
65 regulator-max-microvolt = <5000000>;
68 vin-supply = <&typec_vcc5v>;
72 compatible = "regulator-fixed";
73 regulator-name = "vcc_io";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
78 vin-supply = <&vcc5v0_sys>;
81 vcc_sdmmc: vcc-sdmmc {
82 compatible = "regulator-gpio";
83 regulator-name = "vcc_sdmmc";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <3300000>;
86 gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
87 states = <1800000 0x0>,
89 vin-supply = <&vcc5v0_sys>;
93 compatible = "regulator-fixed";
94 gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>;
95 regulator-name = "vcc_sd";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
100 vin-supply = <&vcc_io>;
104 compatible = "pwm-regulator";
105 pwms = <&pwm0 0 5000 1>;
106 regulator-name = "vdd_core";
107 regulator-min-microvolt = <827000>;
108 regulator-max-microvolt = <1340000>;
109 regulator-settling-time-up-us = <250>;
112 pwm-supply = <&vcc5v0_sys>;
116 compatible = "regulator-fixed";
117 regulator-name = "vdd_log";
118 regulator-min-microvolt = <1050000>;
119 regulator-max-microvolt = <1050000>;
122 vin-supply = <&vcc5v0_sys>;
127 cpu-supply = <&vdd_core>;
138 clock-frequency = <400000>;
142 compatible = "nxp,pcf8563";
150 pinctrl-names = "active";
151 pinctrl-0 = <&pwm5_pin_pull_down>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&rtc_32k>;
159 ir_recv_pin: ir-recv-pin {
160 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
166 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
173 pinctrl-0 = <&pwm0_pin_pull_down>;
179 card-detect-delay = <300>;
183 vmmc-supply = <&vcc_sd>;
184 vqmmc-supply = <&vcc_sdmmc>;