|
1 | 1 | // SPDX-License-Identifier: GPL-2.0
|
2 | 2 | /*
|
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 |
5 | 4 | */
|
6 | 5 |
|
7 | 6 | /dts-v1/;
|
|
182 | 181 | pinctrl-names = "default";
|
183 | 182 | pinctrl-0 = <&clcd_24bit_mux>;
|
184 | 183 | port {
|
185 |
| - nomadik_clcd_pads: endpoint { |
| 184 | + nomadik_clcd: endpoint { |
186 | 185 | remote-endpoint = <&nomadik_clcd_panel>;
|
187 | 186 | arm,pl11x,tft-r0g0b0-pads = <16 8 0>;
|
188 | 187 | };
|
189 | 188 | };
|
190 | 189 |
|
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 |
| - }; |
222 | 190 | };
|
223 | 191 |
|
224 | 192 | /* Activate RX/TX and CTS/RTS on UART 0 */
|
|
233 | 201 | };
|
234 | 202 | };
|
235 | 203 |
|
| 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 | + |
236 | 253 | bl: backlight {
|
237 | 254 | compatible = "pwm-backlight";
|
238 | 255 | pwms = <&stmpe0_pwm 0 500000>;
|
|
0 commit comments