1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree for the ST Microelectronics Nomadik NHK8815 board
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include "ste-nomadik-stn8815.dtsi"
12 model = "Nomadik STN8815NHK";
13 compatible = "st,nomadik-nhk-15";
16 bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk";
28 uart0_nhk_mode: uart0_mux {
31 groups = "u0txrx_a_1", "u0ctsrts_a_1";
37 stmpe2401_1_nhk_mode: stmpe2401_1_nhk {
39 pins = "GPIO76_B20"; // IRQ line
43 pins = "GPIO77_B8"; // reset line
49 stmpe2401_2_nhk_mode: stmpe2401_2_nhk {
51 pins = "GPIO78_A8"; // IRQ line
55 pins = "GPIO79_C9"; // reset line
61 lis3lv02dl_nhk_mode: lis3lv02dl_nhk {
63 pins = "GPIO82_C10"; // IRQ line
70 /* These chrystal outputs are not used on this board */
75 /* This is where the interrupt is routed on the NHK-15 debug board */
76 external-bus@34000000 {
77 compatible = "simple-bus";
78 reg = <0x34000000 0x1000000>;
81 ranges = <0 0x34000000 0x1000000>;
83 compatible = "smsc,lan91c111";
84 reg = <0x300 0x0fd00>;
86 reset-gpios = <&stmpe_gpio44 10 GPIO_ACTIVE_HIGH>;
87 interrupt-parent = <&stmpe_gpio44>;
88 interrupts = <11 IRQ_TYPE_EDGE_RISING>;
95 compatible = "st,lis3lv02dl-accel";
96 interrupt-parent = <&gpio2>;
97 interrupts = <18 IRQ_TYPE_EDGE_RISING>; // GPIO 82
98 pinctrl-0 = <&lis3lv02dl_nhk_mode>;
99 pinctrl-names = "default";
102 stmpe0: stmpe2401@43 {
103 compatible = "st,stmpe2401";
105 reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; // GPIO77
106 interrupts = <12 IRQ_TYPE_EDGE_FALLING>; // GPIO76
107 interrupt-parent = <&gpio2>;
108 interrupt-controller;
110 pinctrl-names = "default";
111 pinctrl-0 = <&stmpe2401_1_nhk_mode>;
112 stmpe_gpio43: stmpe_gpio {
113 compatible = "st,stmpe-gpio";
116 interrupt-controller;
117 #interrupt-cells = <2>;
118 /* Some pins in alternate functions */
119 st,norequest-mask = <0xf0f002>;
122 compatible = "st,stmpe-keypad";
123 debounce-interval = <64>;
126 keypad,num-rows = <8>;
127 keypad,num-columns = <8>;
128 linux,keymap = <0x00020072 // Vol down
143 stmpe0_pwm: stmpe_pwm {
144 compatible = "st,stmpe-pwm";
148 stmpe1: stmpe2401@44 {
149 compatible = "st,stmpe2401";
151 reset-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; // GPIO79
152 interrupts = <14 IRQ_TYPE_EDGE_FALLING>; // GPIO78
153 interrupt-parent = <&gpio2>;
154 interrupt-controller;
156 pinctrl-names = "default";
157 pinctrl-0 = <&stmpe2401_2_nhk_mode>;
158 stmpe_gpio44: stmpe_gpio {
159 compatible = "st,stmpe-gpio";
162 interrupt-controller;
163 #interrupt-cells = <2>;
165 * This will turn off SATA so that MMC/SD
172 line-name = "SATA EN";
181 pinctrl-names = "default";
182 pinctrl-0 = <&clcd_24bit_mux>;
184 nomadik_clcd: endpoint {
185 remote-endpoint = <&nomadik_clcd_panel>;
186 arm,pl11x,tft-r0g0b0-pads = <16 8 0>;
192 /* Activate RX/TX and CTS/RTS on UART 0 */
193 uart0: uart@101fd000 {
194 pinctrl-names = "default";
195 pinctrl-0 = <&uart0_nhk_mode>;
198 mmcsd: sdi@101f6000 {
199 cd-gpios = <&stmpe_gpio44 7 GPIO_ACTIVE_LOW>;
200 wp-gpios = <&stmpe_gpio44 18 GPIO_ACTIVE_HIGH>;
205 compatible = "spi-gpio";
206 #address-cells = <1>;
210 * As we're dealing with 3wire SPI, we only define SCK
211 * and MOSI (in the spec MOSI is called "SDA").
213 gpio-sck = <&gpio0 5 GPIO_ACTIVE_HIGH>;
214 gpio-mosi = <&gpio0 4 GPIO_ACTIVE_HIGH>;
215 cs-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
216 num-chipselects = <1>;
220 * WVGA (800x480): 4.3" TPG110 TDO43MTEA2 24-bit RGB
221 * with TPO touch screen.
225 * The TPO display driver is connected to a
226 * 5.7" OSD OSD057VA01CT TFT display.
228 compatible = "tpo,tpg110";
231 /* 320 ns min period ~= 3 MHz */
232 spi-max-frequency = <3000000>;
233 /* Width and height from the OSD data sheet */
236 grestb-gpios = <&stmpe_gpio44 5 GPIO_ACTIVE_LOW>;
240 nomadik_clcd_panel: endpoint {
241 remote-endpoint = <&nomadik_clcd>;
248 compatible = "pwm-backlight";
249 pwms = <&stmpe0_pwm 0 500000>;
250 pwm-names = "backlight";
251 brightness-levels = <
253 10 11 12 13 14 15 16 17 18 19
254 20 21 22 23 24 25 26 27 28 29
255 30 31 32 33 34 35 36 37 38 39
256 40 41 42 43 44 45 46 47 48 49
257 50 51 52 53 54 55 56 57 58 59
258 60 61 62 63 64 65 66 67 68 69
259 70 71 72 73 74 75 76 77 78 79
260 80 81 82 83 84 85 86 87 88 89
261 90 91 92 93 94 95 96 97 98 99
264 default-brightness-level = <100>;