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>;
24 vmem: video-memory@1f00000 {
25 compatible = "shared-dma-pool";
26 reg = <0x1f00000 0x100000>;
32 compatible = "regulator-fixed";
34 regulator-name = "vcc";
35 regulaor-min-microvolt = <3300000>;
36 regulaor-max-microvolt = <3300000>;
40 backlight: backlight {
41 compatible = "pwm-backlight";
42 pwms = <&pwm 3 40000 0>;
44 brightness-levels = <0 16 32 48 64 80 112 144 192 255>;
45 default-brightness-level = <8>;
47 pinctrl-names = "default";
48 pinctrl-0 = <&pins_pwm3>;
50 power-supply = <&vcc>;
54 compatible = "gpio-keys";
58 linux,code = <KEY_UP>;
59 gpios = <&gpc 10 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_DOWN>;
65 gpios = <&gpc 11 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_LEFT>;
71 gpios = <&gpb 31 GPIO_ACTIVE_LOW>;
75 label = "D-pad right";
76 linux,code = <KEY_RIGHT>;
77 gpios = <&gpd 21 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_LEFTCTRL>;
83 gpios = <&gpc 31 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_LEFTALT>;
89 gpios = <&gpc 30 GPIO_ACTIVE_LOW>;
93 label = "Right shoulder button";
94 linux,code = <KEY_BACKSPACE>;
95 gpios = <&gpc 12 GPIO_ACTIVE_LOW>;
96 debounce-interval = <10>;
100 label = "Start button";
101 linux,code = <KEY_ENTER>;
102 gpios = <&gpd 17 GPIO_ACTIVE_LOW>;
107 compatible = "adc-keys";
108 io-channels = <&adc INGENIC_ADC_AUX>;
109 io-channel-names = "buttons";
110 keyup-threshold-microvolt = <1400000>;
111 poll-interval = <30>;
114 label = "Left shoulder button";
115 linux,code = <KEY_TAB>;
116 press-threshold-microvolt = <800000>;
120 label = "Select button";
121 linux,code = <KEY_ESC>;
122 press-threshold-microvolt = <1100000>;
126 amp: analog-amplifier {
127 compatible = "simple-audio-amplifier";
128 enable-gpios = <&gpc 15 GPIO_ACTIVE_HIGH>;
134 compatible = "simple-audio-card";
136 simple-audio-card,name = "rs90-audio";
137 simple-audio-card,format = "i2s";
139 simple-audio-card,widgets =
140 "Speaker", "Speaker",
141 "Headphone", "Headphones";
142 simple-audio-card,routing =
145 "Headphones", "LHPOUT",
146 "Headphones", "RHPOUT",
149 simple-audio-card,pin-switches = "Speaker";
151 simple-audio-card,hp-det-gpio = <&gpd 16 GPIO_ACTIVE_LOW>;
152 simple-audio-card,aux-devs = <&>;
154 simple-audio-card,bitclock-master = <&dai_codec>;
155 simple-audio-card,frame-master = <&dai_codec>;
157 dai_cpu: simple-audio-card,cpu {
161 dai_codec: simple-audio-card,codec {
162 sound-dai = <&codec>;
168 compatible = "usb-nop-xceiv";
171 clocks = <&cgu JZ4725B_CLK_UDC_PHY>;
172 clock-names = "main_clk";
177 compatible = "sharp,ls020b1dd01d";
179 backlight = <&backlight>;
180 power-supply = <&vcc>;
183 panel_input: endpoint {
184 remote-endpoint = <&panel_output>;
191 clock-frequency = <12000000>;
195 system-power-controller;
205 groups = "mmc1-1bit";
210 groups = "nand-cs1", "nand-cle-ale", "nand-fre-fwe";
221 groups = "lcd-8bit", "lcd-16bit", "lcd-special";
231 max-frequency = <48000000>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pins_mmc1>;
236 cd-gpios = <&gpc 20 GPIO_ACTIVE_LOW>;
241 * The pins for RX/TX are used for the right shoulder button and
248 nandc: nand-controller@1 {
249 compatible = "ingenic,jz4725b-nand";
250 reg = <1 0 0x4000000>;
252 #address-cells = <1>;
257 ingenic,nemc-tAS = <10>;
258 ingenic,nemc-tAH = <5>;
259 ingenic,nemc-tBP = <10>;
260 ingenic,nemc-tAW = <15>;
261 ingenic,nemc-tSTRV = <100>;
263 pinctrl-names = "default";
264 pinctrl-0 = <&pins_nemc>;
266 rb-gpios = <&gpc 27 GPIO_ACTIVE_HIGH>;
271 nand-ecc-step-size = <512>;
272 nand-ecc-strength = <8>;
273 nand-ecc-mode = "hw";
278 compatible = "fixed-partitions";
279 #address-cells = <1>;
283 label = "bootloader";
297 /* Use 32kHz oscillator as the parent of the RTC clock */
298 assigned-clocks = <&cgu JZ4725B_CLK_RTC>;
299 assigned-clock-parents = <&cgu JZ4725B_CLK_OSC32K>;
304 * 750 kHz for the system timer and clocksource, and use RTC as the
305 * parent for the watchdog clock.
307 assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, <&tcu TCU_CLK_WDT>;
308 assigned-clock-parents = <0>, <0>, <&cgu JZ4725B_CLK_RTC>;
309 assigned-clock-rates = <750000>, <750000>;
313 memory-region = <&vmem>;
315 pinctrl-names = "default";
316 pinctrl-0 = <&pins_lcd>;
323 panel_output: endpoint {
324 remote-endpoint = <&panel_input>;