0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
0004 */
0005
0006 /*
0007 * 4.3'' LCD panel output for some Gumstix Overo boards (Gallop43, Chestnut43)
0008 */
0009
0010 &omap3_pmx_core {
0011 dss_dpi_pins: pinmux_dss_dpi_pins {
0012 pinctrl-single,pins = <
0013 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
0014 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
0015 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
0016 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
0017 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
0018 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
0019 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
0020 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
0021 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
0022 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
0023 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
0024 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
0025 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
0026 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
0027 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
0028 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
0029 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
0030 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
0031 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
0032 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
0033 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
0034 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
0035 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
0036 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
0037 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
0038 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
0039 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
0040 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
0041 >;
0042 };
0043
0044 lte430_pins: pinmux_lte430_pins {
0045 pinctrl-single,pins = <
0046 OMAP3_CORE1_IOPAD(0x2174, PIN_OUTPUT | MUX_MODE4) /* uart2_cts.gpio_144 */
0047 >;
0048 };
0049
0050 backlight_pins: pinmux_backlight_pins {
0051 pinctrl-single,pins = <
0052 OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE4) /* uart2_rts.gpio_145 */
0053 >;
0054 };
0055
0056 mcspi1_pins: pinmux_mcspi1_pins {
0057 pinctrl-single,pins = <
0058 OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
0059 OMAP3_CORE1_IOPAD(0x21ca, PIN_INPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
0060 OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
0061 OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
0062 >;
0063 };
0064
0065 ads7846_pins: pinmux_ads7846_pins {
0066 pinctrl-single,pins = <
0067 OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT_PULLDOWN | MUX_MODE4) /* csi2_dx1.gpio_114 */
0068 >;
0069 };
0070 };
0071
0072 /* Needed to power the DPI pins */
0073 &vpll2 {
0074 regulator-always-on;
0075 };
0076
0077 &dss {
0078 status = "okay";
0079
0080 pinctrl-names = "default";
0081 pinctrl-0 = <&dss_dpi_pins>;
0082
0083 port {
0084 dpi_out: endpoint {
0085 remote-endpoint = <&lcd_in>;
0086 data-lines = <24>;
0087 };
0088 };
0089 };
0090
0091 / {
0092 aliases {
0093 display0 = &lcd0;
0094 };
0095
0096 lcd0: display {
0097 compatible = "samsung,lte430wq-f0c", "panel-dpi";
0098 label = "lcd43";
0099
0100 pinctrl-names = "default";
0101 pinctrl-0 = <<e430_pins>;
0102 enable-gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* gpio_144 */
0103
0104 port {
0105 lcd_in: endpoint {
0106 remote-endpoint = <&dpi_out>;
0107 };
0108 };
0109
0110 panel-timing {
0111 clock-frequency = <9200000>;
0112 hactive = <480>;
0113 vactive = <272>;
0114 hfront-porch = <8>;
0115 hback-porch = <4>;
0116 hsync-len = <41>;
0117 vback-porch = <2>;
0118 vfront-porch = <4>;
0119 vsync-len = <10>;
0120
0121 hsync-active = <0>;
0122 vsync-active = <0>;
0123 de-active = <1>;
0124 pixelclk-active = <1>;
0125 };
0126 };
0127
0128 ads7846reg: ads7846-reg {
0129 compatible = "regulator-fixed";
0130 regulator-name = "ads7846-reg";
0131 regulator-min-microvolt = <3300000>;
0132 regulator-max-microvolt = <3300000>;
0133 };
0134
0135 backlight {
0136 compatible = "gpio-backlight";
0137
0138 pinctrl-names = "default";
0139 pinctrl-0 = <&backlight_pins>;
0140 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; /* gpio_145 */
0141
0142 default-on;
0143 };
0144 };
0145
0146 &mcspi1 {
0147 pinctrl-names = "default";
0148 pinctrl-0 = <&mcspi1_pins>;
0149
0150 /* touch controller */
0151 ads7846@0 {
0152 pinctrl-names = "default";
0153 pinctrl-0 = <&ads7846_pins>;
0154
0155 compatible = "ti,ads7846";
0156 vcc-supply = <&ads7846reg>;
0157
0158 reg = <0>; /* CS0 */
0159 spi-max-frequency = <1500000>;
0160
0161 interrupt-parent = <&gpio4>;
0162 interrupts = <18 0>; /* gpio_114 */
0163 pendown-gpio = <&gpio4 18 GPIO_ACTIVE_HIGH>;
0164
0165 ti,x-min = /bits/ 16 <0x0>;
0166 ti,x-max = /bits/ 16 <0x0fff>;
0167 ti,y-min = /bits/ 16 <0x0>;
0168 ti,y-max = /bits/ 16 <0x0fff>;
0169 ti,x-plate-ohms = /bits/ 16 <180>;
0170 ti,pressure-max = /bits/ 16 <255>;
0171
0172 wakeup-source;
0173 };
0174 };
0175