1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rg353x.dtsi"
12 compatible = "powkiddy,rgb30", "rockchip,rk3566";
21 compatible = "simple-battery";
22 charge-full-design-microamp-hours = <3151000>;
23 charge-term-current-microamp = <300000>;
24 constant-charge-current-max-microamp = <2000000>;
25 constant-charge-voltage-max-microvolt = <4250000>;
26 factory-internal-resistance-micro-ohms = <117000>;
27 voltage-max-design-microvolt = <4172000>;
28 voltage-min-design-microvolt = <3400000>;
30 ocv-capacity-celsius = <20>;
31 ocv-capacity-table-0 = <4172000 100>, <4092000 95>, <4035000 90>, <3990000 85>,
32 <3939000 80>, <3895000 75>, <3852000 70>, <3807000 65>,
33 <3762000 60>, <3713000 55>, <3672000 50>, <3647000 45>,
34 <3629000 40>, <3613000 35>, <3598000 30>, <3578000 25>,
35 <3550000 20>, <3519000 15>, <3479000 10>, <3438000 5>,
40 * Channels reversed for speakers. Headphones automatically switch via hardware when
41 * detected with no ability to control output in software. Headphones appear to be mono
42 * (each output channel receives all audio). No microphone support on 3.5mm jack.
45 compatible = "simple-audio-card";
46 simple-audio-card,name = "rk817_ext";
47 simple-audio-card,format = "i2s";
48 simple-audio-card,mclk-fs = <256>;
49 simple-audio-card,widgets =
50 "Headphone", "Headphones";
51 simple-audio-card,routing =
55 simple-audio-card,codec {
59 simple-audio-card,cpu {
60 sound-dai = <&i2s1_8ch>;
65 /delete-node/ &adc_keys;
68 /delete-property/ stdout-path;
72 assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>,
73 <&pmucru PLL_PPLL>, <&cru PLL_VPLL>;
74 assigned-clock-rates = <32768>, <1200000000>,
75 <200000000>, <292500000>;
80 gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
82 linux,code = <BTN_TR>;
86 gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>;
88 linux,code = <BTN_TR2>;
92 /delete-node/ &{/i2c@fdd40000/regulator@40};
95 vdd_cpu: regulator@1c {
96 compatible = "tcs,tcs4525";
98 fcs,suspend-voltage-selector = <1>;
101 regulator-min-microvolt = <712500>;
102 regulator-max-microvolt = <1390000>;
103 regulator-name = "vdd_cpu";
104 regulator-ramp-delay = <2300>;
105 vin-supply = <&vcc_sys>;
106 regulator-state-mem {
107 regulator-off-in-suspend;
113 * Device has 2 red LEDs instead of an amber and a red. Relabel LEDs as
114 * red_led0 and red_led1.
116 /delete-node/ &{/pwm-leds/led-1};
117 /delete-node/ &{/pwm-leds/led-2};
121 color = <LED_COLOR_ID_RED>;
122 function = LED_FUNCTION_CHARGING;
123 max-brightness = <255>;
124 pwms = <&pwm7 0 25000 0>;
128 color = <LED_COLOR_ID_RED>;
129 default-state = "off";
130 function = LED_FUNCTION_STATUS;
131 max-brightness = <255>;
132 pwms = <&pwm0 0 25000 0>;
137 compatible = "powkiddy,rgb30-panel";
138 vcc-supply = <&vcc3v3_lcd0_n>;
139 iovcc-supply = <&vcc3v3_lcd0_n>;
140 /delete-property/ vdd-supply;
148 rk817_charger: charger {
149 monitored-battery = <&battery>;
150 rockchip,resistor-sense-micro-ohms = <10000>;
151 rockchip,sleep-enter-current-microamp = <300000>;
152 rockchip,sleep-filter-current-microamp = <100000>;
156 /* There is no UART header visible on the board for this device. */
161 /delete-node/ &vibrator;