From 528fdbdebb39332013caddbd57d1f4f0834390d4 Mon Sep 17 00:00:00 2001 From: Krzysztof Mazur Date: Sat, 9 Dec 2017 11:49:37 +0100 Subject: [PATCH 2/2] ecf: add HDMI Signed-off-by: Krzysztof Mazur --- arch/arm/boot/dts/am335x-boneblack-ecf.dts | 42 +++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/am335x-boneblack-ecf.dts b/arch/arm/boot/dts/am335x-boneblack-ecf.dts index fec64ee63151..13bb470d61f9 100644 --- a/arch/arm/boot/dts/am335x-boneblack-ecf-lcd7.dts +++ b/arch/arm/boot/dts/am335x-boneblack-ecf-lcd7.dts @@ -138,9 +138,9 @@ }; &am33xx_pinmux { - nxp_hdmi_bonelt_pins: nxp_hdmi_bonelt_pins { + lcd_pins: lcd_pins { pinctrl-single,pins = < - AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */ + AM33XX_IOPAD(0x9a4, PIN_OUTPUT_PULLUP | MUX_MODE7) /* mcasp0_fsr.gpio3_19 */ AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */ AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */ AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */ @@ -163,6 +163,11 @@ AM33XX_IOPAD(0x8ec, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */ >; }; + nxp_hdmi_bonelt_pins: nxp_hdmi_bonelt_pins { + pinctrl-single,pins = < + AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */ + >; + }; nxp_hdmi_bonelt_off_pins: nxp_hdmi_bonelt_off_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */ @@ -253,6 +258,12 @@ * in tda19988 node. */ blue-and-red-wiring = "straight"; + + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&hdmi_0>; + }; + }; }; &mcasp0 { @@ -412,7 +423,7 @@ status = "okay"; compatible = "ti,tilcdc,panel"; pinctrl-names = "default"; - pinctrl-0 = <&bb_lcd_lcd_pins>; + pinctrl-0 = <&lcd_pins>; backlight = <&lcd_bl>; panel-info { ac-bias = <255>; @@ -447,6 +458,31 @@ }; }; +&i2c0 { + tda19988: tda19988 { + compatible = "nxp,tda998x"; + reg = <0x70>; + + pinctrl-names = "default", "off"; + pinctrl-0 = <&nxp_hdmi_bonelt_pins>; + pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>; + + /* Convert 24bit BGR to RGB, e.g. cross red and blue wiring */ + /* video-ports = <0x234501>; */ + + #sound-dai-cells = <0>; + audio-ports = < TDA998x_I2S 0x03>; + + ports { + port@0 { + hdmi_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; + }; + }; + }; +}; + &lcdc { status = "okay"; }; -- 2.14.1