From: Simon Horman <horms+renesas@verge.net.au> To: linux-renesas-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Magnus Damm <magnus.damm@gmail.com>, Fabrizio Castro <fabrizio.castro@bp.renesas.com>, Simon Horman <horms+renesas@verge.net.au> Subject: [PATCH 05/21] ARM: dts: iwg23s-sbc: Add HDMI support Date: Fri, 19 Apr 2019 16:34:32 +0200 [thread overview] Message-ID: <26c9d79b3730dff03d1c3ea6aee3e2968d36fe15.1555655522.git.horms+renesas@verge.net.au> (raw) In-Reply-To: <cover.1555655522.git.horms+renesas@verge.net.au> From: Fabrizio Castro <fabrizio.castro@bp.renesas.com> This patch adds HDMI video output support to the iwg23s board from iWave. Due to a problem with the bootloader not dealing with the configuration of one of the pins correctly, we have to use a gpio-hog for the interrupt line to make sure the pin is configured as GPIO-input when requesting the interrupt. Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts | 79 +++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts b/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts index 77d18242ef59..9f9eb15a1e65 100644 --- a/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts +++ b/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts @@ -22,6 +22,17 @@ stdout-path = "serial1:115200n8"; }; + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&bridge_out>; + }; + }; + }; + memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x20000000>; @@ -80,10 +91,34 @@ status = "okay"; }; +&du { + pinctrl-0 = <&du0_pins>; + pinctrl-names = "default"; + + status = "okay"; + + ports { + port@0 { + endpoint { + remote-endpoint = <&bridge_in>; + }; + }; + }; +}; + &extal_clk { clock-frequency = <20000000>; }; +&gpio2 { + interrupt-fixup { + gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + line-name = "hdmi-hpd-int"; + input; + }; +}; + &i2c3 { pinctrl-0 = <&i2c3_pins>; pinctrl-names = "default"; @@ -97,12 +132,56 @@ }; }; +&i2c4 { + pinctrl-0 = <&i2c4_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <100000>; + + hdmi@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + interrupt-parent = <&gpio2>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in: endpoint { + remote-endpoint = <&du_out_rgb0>; + }; + }; + + port@1 { + reg = <1>; + bridge_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + &pfc { avb_pins: avb { groups = "avb_mdio", "avb_gmii_tx_rx"; function = "avb"; }; + du0_pins: du0 { + groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out"; + function = "du0"; + }; + + i2c4_pins: i2c4 { + groups = "i2c4_e"; + function = "i2c4"; + }; + i2c3_pins: i2c3 { groups = "i2c3_c"; function = "i2c3"; -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: Simon Horman <horms+renesas@verge.net.au> To: linux-renesas-soc@vger.kernel.org Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>, Simon Horman <horms+renesas@verge.net.au>, Magnus Damm <magnus.damm@gmail.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/21] ARM: dts: iwg23s-sbc: Add HDMI support Date: Fri, 19 Apr 2019 16:34:32 +0200 [thread overview] Message-ID: <26c9d79b3730dff03d1c3ea6aee3e2968d36fe15.1555655522.git.horms+renesas@verge.net.au> (raw) In-Reply-To: <cover.1555655522.git.horms+renesas@verge.net.au> From: Fabrizio Castro <fabrizio.castro@bp.renesas.com> This patch adds HDMI video output support to the iwg23s board from iWave. Due to a problem with the bootloader not dealing with the configuration of one of the pins correctly, we have to use a gpio-hog for the interrupt line to make sure the pin is configured as GPIO-input when requesting the interrupt. Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts | 79 +++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts b/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts index 77d18242ef59..9f9eb15a1e65 100644 --- a/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts +++ b/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts @@ -22,6 +22,17 @@ stdout-path = "serial1:115200n8"; }; + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&bridge_out>; + }; + }; + }; + memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x20000000>; @@ -80,10 +91,34 @@ status = "okay"; }; +&du { + pinctrl-0 = <&du0_pins>; + pinctrl-names = "default"; + + status = "okay"; + + ports { + port@0 { + endpoint { + remote-endpoint = <&bridge_in>; + }; + }; + }; +}; + &extal_clk { clock-frequency = <20000000>; }; +&gpio2 { + interrupt-fixup { + gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + line-name = "hdmi-hpd-int"; + input; + }; +}; + &i2c3 { pinctrl-0 = <&i2c3_pins>; pinctrl-names = "default"; @@ -97,12 +132,56 @@ }; }; +&i2c4 { + pinctrl-0 = <&i2c4_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <100000>; + + hdmi@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + interrupt-parent = <&gpio2>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in: endpoint { + remote-endpoint = <&du_out_rgb0>; + }; + }; + + port@1 { + reg = <1>; + bridge_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + &pfc { avb_pins: avb { groups = "avb_mdio", "avb_gmii_tx_rx"; function = "avb"; }; + du0_pins: du0 { + groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out"; + function = "du0"; + }; + + i2c4_pins: i2c4 { + groups = "i2c4_e"; + function = "i2c4"; + }; + i2c3_pins: i2c3 { groups = "i2c3_c"; function = "i2c3"; -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-04-19 18:23 UTC|newest] Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-04-19 14:34 [GIT PULL] Renesas ARM Based SoC DT Updates for v5.2 Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 01/21] ARM: dts: r8a7792: blanche: Add IIC3 and DA9063 PMIC node Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 02/21] ARM: dts: alt: Add " Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 03/21] ARM: dts: ape6evm: Add NOR FLASH Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 04/21] ARM: dts: r8a77470: Add DU support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` Simon Horman [this message] 2019-04-19 14:34 ` [PATCH 05/21] ARM: dts: iwg23s-sbc: Add HDMI support Simon Horman 2019-04-19 14:34 ` [PATCH 06/21] ARM: dts: rskrza1: Add I2C support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 07/21] ARM: dts: rskrza1: Add remaining LEDs Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 08/21] ARM: dts: alt: Enable USB support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 09/21] ARM: dts: r8a77470: Add HSCIF support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 10/21] ARM: dts: r8a77470: Add PWM support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-30 13:01 ` Geert Uytterhoeven 2019-04-30 13:01 ` Geert Uytterhoeven 2019-04-19 14:34 ` [PATCH 11/21] ARM: dts: r8a77470: Add VIN support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 12/21] ARM: dts: r8a77470: Add USB PHY DT support Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 13/21] ARM: dts: iwg23s-sbc: Enable USB Phy[01] Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 14/21] ARM: dts: r8a77470: Add USB2.0 Host (EHCI/OHCI) device Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 15/21] ARM: dts: iwg23s-sbc: Enable USB USB2.0 Host Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 16/21] ARM: dts: r8a77470: Add HSUSB device nodes Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 17/21] ARM: dts: iwg23s-sbc: Enable HS-USB Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 18/21] ARM: dts: kzm9d: Add rw parameter to bootargs Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 19/21] ARM: dts: bockw: Reorder bootargs Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 20/21] ARM: dts: marzen: Add rw to bootargs and use ip=dhcp Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-19 14:34 ` [PATCH 21/21] ARM: dts: ape6evm: Reorder bootargs Simon Horman 2019-04-19 14:34 ` Simon Horman 2019-04-28 19:46 ` [GIT PULL] Renesas ARM Based SoC DT Updates for v5.2 Olof Johansson 2019-04-28 19:46 ` Olof Johansson
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=26c9d79b3730dff03d1c3ea6aee3e2968d36fe15.1555655522.git.horms+renesas@verge.net.au \ --to=horms+renesas@verge.net.au \ --cc=fabrizio.castro@bp.renesas.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-renesas-soc@vger.kernel.org \ --cc=magnus.damm@gmail.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.