Skip to content

Commit cffbb02

Browse files
committed
ARM: dts: nomadik: Augment NHK15 panel setting
The NHK15 panel is specified inside the display controller, which works for the DPI-type DT parsing the old fbdev code used, but for the DRM driver it needs to be spawn as its own device, so we move it out of the display controller. We also drop the panel timings: this should be determined by the hardware or a device-specific compatible string, not by this type of encoding into the device tree. It turns out that this hardware is strapped to the right configuration at boot already and we the driver just reads out the hardware-specified resolution and timings. Drop the "panel,dpi" compatible string altogether. Fix a comment error in the DTS file while we're at it. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent bfeffd1 commit cffbb02

File tree

1 file changed

+51
-34
lines changed

1 file changed

+51
-34
lines changed

arch/arm/boot/dts/ste-nomadik-nhk15.dts

Lines changed: 51 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -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,55 @@
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+
/*
216+
* It's not actually active high, but the frameworks assume
217+
* the polarity of the passed-in GPIO is "normal" (active
218+
* high) then actively drives the line low to select the
219+
* chip.
220+
*/
221+
cs-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
222+
num-chipselects = <1>;
223+
224+
/*
225+
* WVGA connector 21
226+
* WVGA (800x480): 4.3" TPG110 TDO43MTEA2 24-bit RGB
227+
* with TPO touch screen.
228+
*/
229+
panel: display@0 {
230+
/*
231+
* The TPO display driver is connected to a
232+
* 5.7" OSD OSD057VA01CT TFT display.
233+
*/
234+
compatible = "tpo,tpg110";
235+
reg = <0>;
236+
spi-3wire;
237+
/* 320 ns min period ~= 3 MHz */
238+
spi-max-frequency = <3000000>;
239+
/* Width and height from the OSD data sheet */
240+
width-mm = <116>;
241+
height-mm = <87>;
242+
grestb-gpios = <&stmpe_gpio44 5 GPIO_ACTIVE_LOW>;
243+
backlight = <&bl>;
244+
245+
port {
246+
nomadik_clcd_panel: endpoint {
247+
remote-endpoint = <&nomadik_clcd>;
248+
};
249+
};
250+
};
251+
};
252+
236253
bl: backlight {
237254
compatible = "pwm-backlight";
238255
pwms = <&stmpe0_pwm 0 500000>;

0 commit comments

Comments
 (0)