1 // SPDX-License-Identifier: GPL-2.0
4 #include "jz4725b.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/iio/adc/ingenic,adc.h>
8 #include <dt-bindings/input/linux-event-codes.h>
11 compatible = "ylm,rs90", "ingenic,jz4725b";
15 device_type = "memory";
16 reg = <0x0 0x2000000>;
20 compatible = "regulator-fixed";
22 regulator-name = "vcc";
23 regulaor-min-microvolt = <3300000>;
24 regulaor-max-microvolt = <3300000>;
28 backlight: backlight {
29 compatible = "pwm-backlight";
30 pwms = <&pwm 3 40000 0>;
32 brightness-levels = <0 16 32 48 64 80 112 144 192 255>;
33 default-brightness-level = <8>;
35 pinctrl-names = "default";
36 pinctrl-0 = <&pins_pwm3>;
38 power-supply = <&vcc>;
42 compatible = "gpio-keys";
48 linux,code = <KEY_UP>;
49 gpios = <&gpc 10 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_DOWN>;
55 gpios = <&gpc 11 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_LEFT>;
61 gpios = <&gpb 31 GPIO_ACTIVE_LOW>;
65 label = "D-pad right";
66 linux,code = <KEY_RIGHT>;
67 gpios = <&gpd 21 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_LEFTCTRL>;
73 gpios = <&gpc 31 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_LEFTALT>;
79 gpios = <&gpc 30 GPIO_ACTIVE_LOW>;
83 label = "Right shoulder button";
84 linux,code = <KEY_BACKSPACE>;
85 gpios = <&gpc 12 GPIO_ACTIVE_LOW>;
86 debounce-interval = <10>;
90 label = "Start button";
91 linux,code = <KEY_ENTER>;
92 gpios = <&gpd 17 GPIO_ACTIVE_LOW>;
97 compatible = "adc-keys";
98 io-channels = <&adc INGENIC_ADC_AUX>;
99 io-channel-names = "buttons";
100 keyup-threshold-microvolt = <1400000>;
101 poll-interval = <30>;
104 label = "Left shoulder button";
105 linux,code = <KEY_TAB>;
106 press-threshold-microvolt = <800000>;
110 label = "Select button";
111 linux,code = <KEY_ESC>;
112 press-threshold-microvolt = <1100000>;
116 amp: analog-amplifier {
117 compatible = "simple-audio-amplifier";
118 enable-gpios = <&gpc 15 GPIO_ACTIVE_HIGH>;
124 compatible = "simple-audio-card";
126 simple-audio-card,name = "rs90-audio";
127 simple-audio-card,format = "i2s";
129 simple-audio-card,widgets =
130 "Speaker", "Speaker",
131 "Headphone", "Headphones";
132 simple-audio-card,routing =
135 "Headphones", "LHPOUT",
136 "Headphones", "RHPOUT",
139 simple-audio-card,pin-switches = "Speaker";
141 simple-audio-card,hp-det-gpio = <&gpd 16 GPIO_ACTIVE_LOW>;
142 simple-audio-card,aux-devs = <&>;
144 simple-audio-card,bitclock-master = <&dai_codec>;
145 simple-audio-card,frame-master = <&dai_codec>;
147 dai_cpu: simple-audio-card,cpu {
151 dai_codec: simple-audio-card,codec {
152 sound-dai = <&codec>;
158 compatible = "usb-nop-xceiv";
161 clocks = <&cgu JZ4725B_CLK_UDC_PHY>;
162 clock-names = "main_clk";
167 compatible = "sharp,ls020b1dd01d";
169 backlight = <&backlight>;
170 power-supply = <&vcc>;
173 panel_input: endpoint {
174 remote-endpoint = <&panel_output>;
181 clock-frequency = <12000000>;
185 system-power-controller;
195 groups = "mmc1-1bit";
200 groups = "nand-cs1", "nand-cle-ale", "nand-fre-fwe";
211 groups = "lcd-8bit", "lcd-16bit", "lcd-special";
221 max-frequency = <48000000>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&pins_mmc1>;
226 cd-gpios = <&gpc 20 GPIO_ACTIVE_LOW>;
231 * The pins for RX/TX are used for the right shoulder button and
238 nandc: nand-controller@1 {
239 compatible = "ingenic,jz4725b-nand";
240 reg = <1 0 0x4000000>;
242 #address-cells = <1>;
247 ingenic,nemc-tAS = <10>;
248 ingenic,nemc-tAH = <5>;
249 ingenic,nemc-tBP = <10>;
250 ingenic,nemc-tAW = <15>;
251 ingenic,nemc-tSTRV = <100>;
253 pinctrl-names = "default";
254 pinctrl-0 = <&pins_nemc>;
256 rb-gpios = <&gpc 27 GPIO_ACTIVE_HIGH>;
261 nand-ecc-step-size = <512>;
262 nand-ecc-strength = <8>;
263 nand-ecc-mode = "hw";
268 compatible = "fixed-partitions";
269 #address-cells = <1>;
273 label = "bootloader";
287 /* Use 32kHz oscillator as the parent of the RTC clock */
288 assigned-clocks = <&cgu JZ4725B_CLK_RTC>;
289 assigned-clock-parents = <&cgu JZ4725B_CLK_OSC32K>;
294 * 750 kHz for the system timer and clocksource, and use RTC as the
295 * parent for the watchdog clock.
297 assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, <&tcu TCU_CLK_WDT>;
298 assigned-clock-parents = <0>, <0>, <&cgu JZ4725B_CLK_RTC>;
299 assigned-clock-rates = <750000>, <750000>;
303 pinctrl-names = "default";
304 pinctrl-0 = <&pins_lcd>;
311 panel_output: endpoint {
312 remote-endpoint = <&panel_input>;