1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3 /dts-v1/; 4 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes. 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rg353x.dtsi" 9 10 / { 11 model = "Anbernic RG353PS"; 12 compatible = "anbernic,rg353ps", "rock 13 14 aliases { 15 mmc0 = &sdmmc0; 16 mmc1 = &sdmmc1; 17 mmc2 = &sdmmc2; 18 }; 19 20 battery: battery { 21 compatible = "simple-battery"; 22 charge-full-design-microamp-ho 23 charge-term-current-microamp = 24 constant-charge-current-max-mi 25 constant-charge-voltage-max-mi 26 factory-internal-resistance-mi 27 voltage-max-design-microvolt = 28 voltage-min-design-microvolt = 29 30 ocv-capacity-celsius = <20>; 31 ocv-capacity-table-0 = <41720 32 <38740 33 <37140 34 <36120 35 <35520 36 <34000 37 }; 38 39 /* Channels reversed for both headphon 40 sound { 41 compatible = "simple-audio-car 42 simple-audio-card,name = "rk81 43 simple-audio-card,aux-devs = < 44 simple-audio-card,format = "i2 45 simple-audio-card,hp-det-gpio 46 simple-audio-card,mclk-fs = <2 47 simple-audio-card,widgets = 48 "Microphone", "Mic Jac 49 "Headphone", "Headphon 50 "Speaker", "Internal S 51 simple-audio-card,routing = 52 "MICL", "Mic Jack", 53 "Headphones", "HPOL", 54 "Headphones", "HPOR", 55 "Internal Speakers", " 56 "Internal Speakers", " 57 "Speaker Amp INL", "HP 58 "Speaker Amp INR", "HP 59 simple-audio-card,pin-switches 60 61 simple-audio-card,codec { 62 sound-dai = <&rk817>; 63 }; 64 65 simple-audio-card,cpu { 66 sound-dai = <&i2s1_8ch 67 }; 68 }; 69 70 spk_amp: audio-amplifier { 71 compatible = "simple-audio-amp 72 enable-gpios = <&gpio4 RK_PC2 73 pinctrl-0 = <&spk_amp_enable_h 74 pinctrl-names = "default"; 75 sound-name-prefix = "Speaker A 76 }; 77 }; 78 79 &gpio_keys_control { 80 button-r1 { 81 gpios = <&gpio3 RK_PB4 GPIO_AC 82 label = "TR"; 83 linux,code = <BTN_TR>; 84 }; 85 86 button-r2 { 87 gpios = <&gpio3 RK_PB3 GPIO_AC 88 label = "TR2"; 89 linux,code = <BTN_TR2>; 90 }; 91 }; 92 93 &panel { 94 compatible = "anbernic,rg353v-panel-v2 95 iovcc-supply = <&vcc3v3_lcd0_n>; 96 vcc-supply = <&vcc3v3_lcd0_n>; 97 /delete-property/ vdd-supply; 98 }; 99 100 &pinctrl { 101 audio-amplifier { 102 spk_amp_enable_h: spk-amp-enab 103 rockchip,pins = 104 <4 RK_PC2 RK_F 105 }; 106 }; 107 }; 108 109 &rk817 { 110 rk817_charger: charger { 111 monitored-battery = <&battery> 112 rockchip,resistor-sense-micro- 113 rockchip,sleep-enter-current-m 114 rockchip,sleep-filter-current- 115 }; 116 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.