~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353ps.dts

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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.h>
  7 #include <dt-bindings/pinctrl/rockchip.h>
  8 #include "rk3566-anbernic-rg353x.dtsi"
  9 
 10 / {
 11         model = "Anbernic RG353PS";
 12         compatible = "anbernic,rg353ps", "rockchip,rk3566";
 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-hours = <3472000>;
 23                 charge-term-current-microamp = <300000>;
 24                 constant-charge-current-max-microamp = <2000000>;
 25                 constant-charge-voltage-max-microvolt = <4200000>;
 26                 factory-internal-resistance-micro-ohms = <117000>;
 27                 voltage-max-design-microvolt = <4172000>;
 28                 voltage-min-design-microvolt = <3400000>;
 29 
 30                 ocv-capacity-celsius = <20>;
 31                 ocv-capacity-table-0 =  <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
 32                                         <3874000 80>, <3826000 75>, <3783000 70>, <3746000 65>,
 33                                         <3714000 60>, <3683000 55>, <3650000 50>, <3628000 45>,
 34                                         <3612000 40>, <3600000 35>, <3587000 30>, <3571000 25>,
 35                                         <3552000 20>, <3525000 15>, <3492000 10>, <3446000 5>,
 36                                         <3400000 0>;
 37         };
 38 
 39         /* Channels reversed for both headphones and speakers. */
 40         sound {
 41                 compatible = "simple-audio-card";
 42                 simple-audio-card,name = "rk817_ext";
 43                 simple-audio-card,aux-devs = <&spk_amp>;
 44                 simple-audio-card,format = "i2s";
 45                 simple-audio-card,hp-det-gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
 46                 simple-audio-card,mclk-fs = <256>;
 47                 simple-audio-card,widgets =
 48                         "Microphone", "Mic Jack",
 49                         "Headphone", "Headphones",
 50                         "Speaker", "Internal Speakers";
 51                 simple-audio-card,routing =
 52                         "MICL", "Mic Jack",
 53                         "Headphones", "HPOL",
 54                         "Headphones", "HPOR",
 55                         "Internal Speakers", "Speaker Amp OUTL",
 56                         "Internal Speakers", "Speaker Amp OUTR",
 57                         "Speaker Amp INL", "HPOL",
 58                         "Speaker Amp INR", "HPOR";
 59                 simple-audio-card,pin-switches = "Internal Speakers";
 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-amplifier";
 72                 enable-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
 73                 pinctrl-0 = <&spk_amp_enable_h>;
 74                 pinctrl-names = "default";
 75                 sound-name-prefix = "Speaker Amp";
 76         };
 77 };
 78 
 79 &gpio_keys_control {
 80         button-r1 {
 81                 gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>;
 82                 label = "TR";
 83                 linux,code = <BTN_TR>;
 84         };
 85 
 86         button-r2 {
 87                 gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
 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-enable-h {
103                         rockchip,pins =
104                                 <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
105                 };
106         };
107 };
108 
109 &rk817 {
110         rk817_charger: charger {
111                 monitored-battery = <&battery>;
112                 rockchip,resistor-sense-micro-ohms = <10000>;
113                 rockchip,sleep-enter-current-microamp = <300000>;
114                 rockchip,sleep-filter-current-microamp = <100000>;
115         };
116 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php