Add pinmuxing for the LCD panels. Both panels have a reset GPIO, but the second one has some extra complexity: some boards have a PicoDLP projector, which shares resources with the LCD2. We don't currently support switching between the PicoDL and the LCD2, so we use pin pull-ups and pull-downs to select the LCD2. GPIO40 is pulled down, which disables the PicoDLP power. GPIO59 is pulled up, which selects the LCD2. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@xxxxxx> --- arch/arm/boot/dts/omap4-sdp.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts index 7951b4e..ed14a7a 100644 --- a/arch/arm/boot/dts/omap4-sdp.dts +++ b/arch/arm/boot/dts/omap4-sdp.dts @@ -166,6 +166,8 @@ &mcbsp2_pins &dss_hdmi_pins &tpd12s015_pins + &lcd1_pins + &lcd2_pins >; uart2_pins: pinmux_uart2_pins { @@ -268,6 +270,25 @@ >; }; + lcd1_pins: pinmux_lcd1_pins { + pinctrl-single,pins = < + 0x52 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpio_102 */ + >; + }; + + /* + * GPIO 59 is used to switch between LCD2 and PicoDLP. We don't support + * the switching, so set the pin to PULLUP which enables the LCD2. + * GPIO 40 enables power to PicoDLP. Use PULLDOWN to disable power. + */ + lcd2_pins: pinmux_lcd2_pins { + pinctrl-single,pins = < + 0x20 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpio_40 */ + 0x46 (PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpio_59 */ + 0x56 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpio_104 */ + >; + }; + i2c1_pins: pinmux_i2c1_pins { pinctrl-single,pins = < 0xe2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html