hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/ste-nomadik-nhk15.dts
....@@ -1,7 +1,6 @@
11 // SPDX-License-Identifier: GPL-2.0
22 /*
3
- * Device Tree for the ST-Ericsson Nomadik S8815 board
4
- * Produced by Calao Systems
3
+ * Device Tree for the ST Microelectronics Nomadik NHK8815 board
54 */
65
76 /dts-v1/;
....@@ -182,43 +181,12 @@
182181 pinctrl-names = "default";
183182 pinctrl-0 = <&clcd_24bit_mux>;
184183 port {
185
- nomadik_clcd_pads: endpoint {
184
+ nomadik_clcd: endpoint {
186185 remote-endpoint = <&nomadik_clcd_panel>;
187186 arm,pl11x,tft-r0g0b0-pads = <16 8 0>;
188187 };
189188 };
190189
191
- /*
192
- * WVGA connector 21
193
- * WVGA (800x480): 4.3" TPG110 TDO43MTEA2 24-bit RGB
194
- * with TPO touch screen.
195
- */
196
- panel {
197
- compatible = "tpo,tpg110", "panel-dpi";
198
- grestb-gpios = <&stmpe_gpio44 5 GPIO_ACTIVE_LOW>;
199
- scen-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
200
- scl-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
201
- sda-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
202
- backlight = <&bl>;
203
-
204
- port {
205
- nomadik_clcd_panel: endpoint {
206
- remote-endpoint = <&nomadik_clcd_pads>;
207
- };
208
- };
209
-
210
- panel-timing {
211
- clock-frequency = <33200000>;
212
- hactive = <800>;
213
- hback-porch = <216>;
214
- hfront-porch = <40>;
215
- hsync-len = <1>;
216
- vactive = <480>;
217
- vback-porch = <35>;
218
- vfront-porch = <10>;
219
- vsync-len = <1>;
220
- };
221
- };
222190 };
223191
224192 /* Activate RX/TX and CTS/RTS on UART 0 */
....@@ -233,6 +201,49 @@
233201 };
234202 };
235203
204
+ spi {
205
+ compatible = "spi-gpio";
206
+ #address-cells = <1>;
207
+ #size-cells = <0>;
208
+
209
+ /*
210
+ * As we're dealing with 3wire SPI, we only define SCK
211
+ * and MOSI (in the spec MOSI is called "SDA").
212
+ */
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>;
217
+
218
+ /*
219
+ * WVGA connector 21
220
+ * WVGA (800x480): 4.3" TPG110 TDO43MTEA2 24-bit RGB
221
+ * with TPO touch screen.
222
+ */
223
+ panel: display@0 {
224
+ /*
225
+ * The TPO display driver is connected to a
226
+ * 5.7" OSD OSD057VA01CT TFT display.
227
+ */
228
+ compatible = "tpo,tpg110";
229
+ reg = <0>;
230
+ spi-3wire;
231
+ /* 320 ns min period ~= 3 MHz */
232
+ spi-max-frequency = <3000000>;
233
+ /* Width and height from the OSD data sheet */
234
+ width-mm = <116>;
235
+ height-mm = <87>;
236
+ grestb-gpios = <&stmpe_gpio44 5 GPIO_ACTIVE_LOW>;
237
+ backlight = <&bl>;
238
+
239
+ port {
240
+ nomadik_clcd_panel: endpoint {
241
+ remote-endpoint = <&nomadik_clcd>;
242
+ };
243
+ };
244
+ };
245
+ };
246
+
236247 bl: backlight {
237248 compatible = "pwm-backlight";
238249 pwms = <&stmpe0_pwm 0 500000>;