1/* 2 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 3 * Copyright (C) 2014 Stefan Roese <sr@denx.de> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ 9 10#include "omap3-tao3530.dtsi" 11 12/ { 13 model = "TI OMAP3 Thunder baseboard with TAO3530 SOM"; 14 compatible = "technexion,omap3-thunder", "technexion,omap3-tao3530", "ti,omap34xx", "ti,omap3"; 15}; 16 17&omap3_pmx_core { 18 dss_dpi_pins: pinmux_dss_dpi_pins { 19 pinctrl-single,pins = < 20 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */ 21 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */ 22 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */ 23 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */ 24 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */ 25 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */ 26 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */ 27 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */ 28 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */ 29 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */ 30 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */ 31 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */ 32 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */ 33 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */ 34 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */ 35 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */ 36 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */ 37 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */ 38 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */ 39 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ 40 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */ 41 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */ 42 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */ 43 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */ 44 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */ 45 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */ 46 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */ 47 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */ 48 >; 49 }; 50 51 lte430_pins: pinmux_lte430_pins { 52 pinctrl-single,pins = < 53 OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat6.gpio_138 */ 54 >; 55 }; 56 57 backlight_pins: pinmux_backlight_pins { 58 pinctrl-single,pins = < 59 OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 */ 60 >; 61 }; 62}; 63 64/* Needed to power the DPI pins */ 65&vpll2 { 66 regulator-always-on; 67}; 68 69&dss { 70 status = "ok"; 71 72 pinctrl-names = "default"; 73 pinctrl-0 = <&dss_dpi_pins>; 74 75 port { 76 dpi_out: endpoint { 77 remote-endpoint = <&lcd_in>; 78 data-lines = <24>; 79 }; 80 }; 81}; 82 83/ { 84 aliases { 85 display0 = &lcd0; 86 }; 87 88 lcd0: display@0 { 89 compatible = "samsung,lte430wq-f0c", "panel-dpi"; 90 label = "lcd"; 91 92 pinctrl-names = "default"; 93 pinctrl-0 = <<e430_pins>; 94 enable-gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; /* gpio_138 */ 95 96 port { 97 lcd_in: endpoint { 98 remote-endpoint = <&dpi_out>; 99 }; 100 }; 101 102 panel-timing { 103 clock-frequency = <9000000>; 104 hactive = <480>; 105 vactive = <272>; 106 hfront-porch = <3>; 107 hback-porch = <2>; 108 hsync-len = <42>; 109 vback-porch = <2>; 110 vfront-porch = <3>; 111 vsync-len = <11>; 112 113 hsync-active = <0>; 114 vsync-active = <0>; 115 de-active = <1>; 116 pixelclk-active = <1>; 117 }; 118 }; 119 120 backlight { 121 compatible = "gpio-backlight"; 122 123 pinctrl-names = "default"; 124 pinctrl-0 = <&backlight_pins>; 125 gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* gpio_139 */ 126 127 default-on; 128 }; 129}; 130