From: Tomi Valkeinen <tomi.valkeinen@ti.com> To: Tony Lindgren <tony@atomide.com>, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: paul@pwsan.com, Tero Kristo <t-kristo@ti.com>, Nishanth Menon <nm@ti.com>, Tomi Valkeinen <tomi.valkeinen@ti.com>, devicetree@vger.kernel.org Subject: [PATCHv4 09/10] arm/dts: dra72-evm.dts: add HDMI Date: Mon, 1 Jun 2015 09:23:17 +0300 [thread overview] Message-ID: <1433139798-23450-10-git-send-email-tomi.valkeinen@ti.com> (raw) In-Reply-To: <1433139798-23450-1-git-send-email-tomi.valkeinen@ti.com> DRA72 EVM has a HDMI output. This patch adds the device tree nodes required for HDMI. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: devicetree@vger.kernel.org --- arch/arm/boot/dts/dra72-evm.dts | 110 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts index ce0390f081d9..4e1b60581782 100644 --- a/arch/arm/boot/dts/dra72-evm.dts +++ b/arch/arm/boot/dts/dra72-evm.dts @@ -19,6 +19,10 @@ reg = <0x80000000 0x40000000>; /* 1024 MB */ }; + aliases { + display0 = &hdmi0; + }; + evm_3v3: fixedregulator-evm_3v3 { compatible = "regulator-fixed"; regulator-name = "evm_3v3"; @@ -35,6 +39,51 @@ compatible = "linux,extcon-usb-gpio"; id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; }; + + hdmi0: connector { + compatible = "hdmi-connector"; + label = "hdmi"; + + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&tpd12s015_out>; + }; + }; + }; + + tpd12s015: encoder { + compatible = "ti,tpd12s015"; + + pinctrl-names = "default"; + pinctrl-0 = <&tpd12s015_pins>; + + gpios = <&pcf_hdmi 4 GPIO_ACTIVE_HIGH>, /* P4, CT CP HPD */ + <&pcf_hdmi 5 GPIO_ACTIVE_HIGH>, /* P5, LS OE */ + <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */ + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + tpd12s015_in: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + + port@1 { + reg = <1>; + + tpd12s015_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; }; &dra7_pmx_core { @@ -45,6 +94,13 @@ >; }; + i2c5_pins: pinmux_i2c5_pins { + pinctrl-single,pins = < + 0x2b4 (PIN_INPUT | MUX_MODE10) /* mcasp1_axr0.i2c5_sda */ + 0x2b8 (PIN_INPUT | MUX_MODE10) /* mcasp1_axr1.i2c5_scl */ + >; + }; + nand_default: nand_default { pinctrl-single,pins = < 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */ @@ -142,6 +198,19 @@ 0xb8 (PIN_OUTPUT | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */ >; }; + + hdmi_pins: pinmux_hdmi_pins { + pinctrl-single,pins = < + 0x408 (PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */ + 0x40c (PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */ + >; + }; + + tpd12s015_pins: pinmux_tpd12s015_pins { + pinctrl-single,pins = < + 0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */ + >; + }; }; &i2c1 { @@ -277,6 +346,27 @@ }; }; +&i2c5 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c5_pins>; + clock-frequency = <400000>; + + pcf_hdmi: pcf8575@26 { + compatible = "nxp,pcf8575"; + reg = <0x26>; + gpio-controller; + #gpio-cells = <2>; + /* + * initial state is used here to keep the mdio interface + * selected on RU89 through SEL_VIN4_MUX_S0, VIN2_S1 and + * VIN2_S0 driven high otherwise Ethernet stops working + * VIN6_SEL_S0 is low, thus selecting McASP3 over VIN6 + */ + lines-initial-states = <0x0f2b>; + }; +}; + &uart1 { status = "okay"; }; @@ -566,3 +656,23 @@ }; }; }; + +&dss { + status = "ok"; + + vdda_video-supply = <&ldo5_reg>; +}; + +&hdmi { + status = "ok"; + vdda-supply = <&ldo3_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_pins>; + + port { + hdmi_out: endpoint { + remote-endpoint = <&tpd12s015_in>; + }; + }; +}; -- 2.1.4
WARNING: multiple messages have this Message-ID (diff)
From: tomi.valkeinen@ti.com (Tomi Valkeinen) To: linux-arm-kernel@lists.infradead.org Subject: [PATCHv4 09/10] arm/dts: dra72-evm.dts: add HDMI Date: Mon, 1 Jun 2015 09:23:17 +0300 [thread overview] Message-ID: <1433139798-23450-10-git-send-email-tomi.valkeinen@ti.com> (raw) In-Reply-To: <1433139798-23450-1-git-send-email-tomi.valkeinen@ti.com> DRA72 EVM has a HDMI output. This patch adds the device tree nodes required for HDMI. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: devicetree at vger.kernel.org --- arch/arm/boot/dts/dra72-evm.dts | 110 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts index ce0390f081d9..4e1b60581782 100644 --- a/arch/arm/boot/dts/dra72-evm.dts +++ b/arch/arm/boot/dts/dra72-evm.dts @@ -19,6 +19,10 @@ reg = <0x80000000 0x40000000>; /* 1024 MB */ }; + aliases { + display0 = &hdmi0; + }; + evm_3v3: fixedregulator-evm_3v3 { compatible = "regulator-fixed"; regulator-name = "evm_3v3"; @@ -35,6 +39,51 @@ compatible = "linux,extcon-usb-gpio"; id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; }; + + hdmi0: connector { + compatible = "hdmi-connector"; + label = "hdmi"; + + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&tpd12s015_out>; + }; + }; + }; + + tpd12s015: encoder { + compatible = "ti,tpd12s015"; + + pinctrl-names = "default"; + pinctrl-0 = <&tpd12s015_pins>; + + gpios = <&pcf_hdmi 4 GPIO_ACTIVE_HIGH>, /* P4, CT CP HPD */ + <&pcf_hdmi 5 GPIO_ACTIVE_HIGH>, /* P5, LS OE */ + <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */ + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + + tpd12s015_in: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + + port at 1 { + reg = <1>; + + tpd12s015_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; }; &dra7_pmx_core { @@ -45,6 +94,13 @@ >; }; + i2c5_pins: pinmux_i2c5_pins { + pinctrl-single,pins = < + 0x2b4 (PIN_INPUT | MUX_MODE10) /* mcasp1_axr0.i2c5_sda */ + 0x2b8 (PIN_INPUT | MUX_MODE10) /* mcasp1_axr1.i2c5_scl */ + >; + }; + nand_default: nand_default { pinctrl-single,pins = < 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */ @@ -142,6 +198,19 @@ 0xb8 (PIN_OUTPUT | MUX_MODE1) /* gpmc_cs2.qspi1_cs0 */ >; }; + + hdmi_pins: pinmux_hdmi_pins { + pinctrl-single,pins = < + 0x408 (PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */ + 0x40c (PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */ + >; + }; + + tpd12s015_pins: pinmux_tpd12s015_pins { + pinctrl-single,pins = < + 0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */ + >; + }; }; &i2c1 { @@ -277,6 +346,27 @@ }; }; +&i2c5 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c5_pins>; + clock-frequency = <400000>; + + pcf_hdmi: pcf8575 at 26 { + compatible = "nxp,pcf8575"; + reg = <0x26>; + gpio-controller; + #gpio-cells = <2>; + /* + * initial state is used here to keep the mdio interface + * selected on RU89 through SEL_VIN4_MUX_S0, VIN2_S1 and + * VIN2_S0 driven high otherwise Ethernet stops working + * VIN6_SEL_S0 is low, thus selecting McASP3 over VIN6 + */ + lines-initial-states = <0x0f2b>; + }; +}; + &uart1 { status = "okay"; }; @@ -566,3 +656,23 @@ }; }; }; + +&dss { + status = "ok"; + + vdda_video-supply = <&ldo5_reg>; +}; + +&hdmi { + status = "ok"; + vdda-supply = <&ldo3_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_pins>; + + port { + hdmi_out: endpoint { + remote-endpoint = <&tpd12s015_in>; + }; + }; +}; -- 2.1.4
next prev parent reply other threads:[~2015-06-01 6:23 UTC|newest] Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-01 6:23 [PATCHv4 00/10] ARM: DRA7: add display support Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-01 6:23 ` [PATCHv4 01/10] arm: dra7: add DESHDCP clock Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-02 6:56 ` Tero Kristo 2015-06-02 6:56 ` Tero Kristo 2015-06-01 6:23 ` [PATCHv4 02/10] CLK: TI: always enable " Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-01 21:49 ` Tony Lindgren 2015-06-01 21:49 ` Tony Lindgren 2015-06-02 6:57 ` Tero Kristo 2015-06-02 6:57 ` Tero Kristo 2015-06-01 6:23 ` [PATCHv4 03/10] arm/dts: dra7xx: add 'ti,set-rate-parent' for dss_dss_clk Tomi Valkeinen 2015-06-01 6:23 ` [PATCHv4 03/10] arm/dts: dra7xx: add 'ti, set-rate-parent' " Tomi Valkeinen 2015-06-02 6:57 ` [PATCHv4 03/10] arm/dts: dra7xx: add 'ti,set-rate-parent' " Tero Kristo 2015-06-02 6:57 ` Tero Kristo 2015-06-01 6:23 ` [PATCHv4 04/10] ARM: DRA7: hwmod: add DMM hwmod description Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-01 22:24 ` Paul Walmsley 2015-06-01 22:24 ` Paul Walmsley 2015-06-01 6:23 ` [PATCHv4 05/10] ARM: DRA7: hwmod: set DSS submodule parent hwmods Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-01 22:26 ` Paul Walmsley 2015-06-01 22:26 ` Paul Walmsley 2015-06-01 6:23 ` [PATCHv4 06/10] ARM: OMAP: display: change compat names to array Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-03 15:42 ` Tony Lindgren 2015-06-03 15:42 ` Tony Lindgren 2015-06-01 6:23 ` [PATCHv4 07/10] ARM: OMAP2+: display: detect DRA7 DSS Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen 2015-06-03 15:42 ` Tony Lindgren 2015-06-03 15:42 ` Tony Lindgren 2015-06-01 6:23 ` [PATCHv4 08/10] arm/dts: dra7.dtsi: add DSS support Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen [not found] ` <1433139798-23450-9-git-send-email-tomi.valkeinen-l0cyMroinI0@public.gmane.org> 2015-06-03 15:43 ` Tony Lindgren 2015-06-03 15:43 ` Tony Lindgren 2015-06-01 6:23 ` Tomi Valkeinen [this message] 2015-06-01 6:23 ` [PATCHv4 09/10] arm/dts: dra72-evm.dts: add HDMI Tomi Valkeinen 2015-06-03 15:43 ` Tony Lindgren 2015-06-03 15:43 ` Tony Lindgren 2015-06-01 6:23 ` [PATCHv4 10/10] arm/dts: am57xx-beagle-x15.dts: " Tomi Valkeinen 2015-06-01 6:23 ` Tomi Valkeinen [not found] ` <1433139798-23450-11-git-send-email-tomi.valkeinen-l0cyMroinI0@public.gmane.org> 2015-06-01 21:51 ` Tony Lindgren 2015-06-01 21:51 ` Tony Lindgren [not found] ` <20150601215115.GH30984-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2015-06-02 6:28 ` Tomi Valkeinen 2015-06-02 6:28 ` Tomi Valkeinen 2015-06-03 11:26 ` Tomi Valkeinen 2015-06-03 11:26 ` Tomi Valkeinen 2015-06-03 15:44 ` Tony Lindgren 2015-06-03 15:44 ` Tony Lindgren 2015-06-03 16:01 ` Tomi Valkeinen 2015-06-03 16:01 ` Tomi Valkeinen [not found] ` <556F24E6.7040003-l0cyMroinI0@public.gmane.org> 2015-06-03 16:10 ` Tony Lindgren 2015-06-03 16:10 ` Tony Lindgren 2015-06-03 17:16 ` Tony Lindgren 2015-06-03 17:16 ` Tony Lindgren 2015-06-04 6:13 ` Tomi Valkeinen 2015-06-04 6:13 ` Tomi Valkeinen
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1433139798-23450-10-git-send-email-tomi.valkeinen@ti.com \ --to=tomi.valkeinen@ti.com \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=nm@ti.com \ --cc=paul@pwsan.com \ --cc=t-kristo@ti.com \ --cc=tony@atomide.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.