0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004 * Copyright (C) 2014 Stefan Roese <sr@denx.de>
0005 */
0006
0007 #include "omap3-ha-common.dtsi"
0008
0009 / {
0010 model = "TI OMAP3 HEAD acoustics LCD-baseboard with TAO3530 SOM";
0011 compatible = "headacoustics,omap3-ha-lcd", "technexion,omap3-tao3530", "ti,omap3430", "ti,omap34xx", "ti,omap3";
0012 };
0013
0014 &omap3_pmx_core {
0015 pinctrl-names = "default";
0016 pinctrl-0 = <
0017 &hsusbb2_pins
0018 &powerdown_input_pins
0019 &fpga_boot0_pins
0020 &fpga_boot1_pins
0021 &led_blue_pins
0022 &led_green_pins
0023 &led_red_pins
0024 &touchscreen_wake_pins
0025 >;
0026
0027 touchscreen_irq_pins: pinmux_touchscreen_irq_pins {
0028 pinctrl-single,pins = <
0029 OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio_136, Touchscreen IRQ */
0030 >;
0031 };
0032
0033 touchscreen_wake_pins: pinmux_touchscreen_wake_pins {
0034 pinctrl-single,pins = <
0035 OMAP3_CORE1_IOPAD(0x212c, PIN_OUTPUT_PULLUP | MUX_MODE4) /* gpio_110, Touchscreen Wake */
0036 >;
0037 };
0038
0039 dss_dpi_pins: pinmux_dss_dpi_pins {
0040 pinctrl-single,pins = <
0041 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
0042 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
0043 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
0044 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
0045 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
0046 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
0047 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
0048 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
0049 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
0050 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
0051 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
0052 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
0053 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
0054 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
0055 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
0056 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
0057 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
0058 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
0059 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
0060 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
0061 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
0062 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
0063 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
0064 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
0065 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
0066 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
0067 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
0068 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
0069 >;
0070 };
0071
0072 lte430_pins: pinmux_lte430_pins {
0073 pinctrl-single,pins = <
0074 OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat6.gpio_138 */
0075 >;
0076 };
0077
0078 backlight_pins: pinmux_backlight_pins {
0079 pinctrl-single,pins = <
0080 OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 */
0081 >;
0082 };
0083 };
0084
0085 /* I2C2: mux'ed with GPIO168 which is connected to nKILL_POWER */
0086 &i2c2 {
0087 status = "disabled";
0088 };
0089
0090 &i2c3 {
0091 clock-frequency = <100000>;
0092
0093 pinctrl-names = "default";
0094 pinctrl-0 = <&i2c3_pins>;
0095 };
0096
0097 /* Needed to power the DPI pins */
0098 &vpll2 {
0099 regulator-always-on;
0100 };
0101
0102 &dss {
0103 status = "okay";
0104
0105 pinctrl-names = "default";
0106 pinctrl-0 = <&dss_dpi_pins>;
0107
0108 port {
0109 dpi_out: endpoint {
0110 remote-endpoint = <&lcd_in>;
0111 data-lines = <24>;
0112 };
0113 };
0114 };
0115
0116 / {
0117 aliases {
0118 display0 = &lcd0;
0119 };
0120
0121 lcd0: display {
0122 compatible = "panel-dpi";
0123 label = "lcd";
0124
0125 pinctrl-names = "default";
0126 pinctrl-0 = <<e430_pins>;
0127 enable-gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; /* gpio_138 */
0128
0129 port {
0130 lcd_in: endpoint {
0131 remote-endpoint = <&dpi_out>;
0132 };
0133 };
0134
0135 panel-timing {
0136 clock-frequency = <31250000>;
0137 hactive = <800>;
0138 vactive = <480>;
0139 hfront-porch = <40>;
0140 hback-porch = <86>;
0141 hsync-len = <1>;
0142 vback-porch = <30>;
0143 vfront-porch = <13>;
0144 vsync-len = <3>;
0145
0146 hsync-active = <0>;
0147 vsync-active = <0>;
0148 de-active = <1>;
0149 pixelclk-active = <1>;
0150 };
0151 };
0152
0153 backlight {
0154 compatible = "gpio-backlight";
0155
0156 pinctrl-names = "default";
0157 pinctrl-0 = <&backlight_pins>;
0158 gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* gpio_139 */
0159
0160 default-on;
0161 };
0162 };