diff mbox

[2/7] ARM: dts: STi: Add gpio polarity for "hdmi, hpd-gpio" property

Message ID 1515572469-19276-3-git-send-email-patrice.chotard@st.com (mailing list archive)
State New, archived
Headers show

Commit Message

Patrice CHOTARD Jan. 10, 2018, 8:21 a.m. UTC
From: Patrice Chotard <patrice.chotard@st.com>

The GPIO polarity is missing in the hdmi,hpd-gpio property, this
fixes the following DT warnings:

arch/arm/boot/dts/stih410-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000

arch/arm/boot/dts/stih407-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000

arch/arm/boot/dts/stih410-b2260.dtb: Warning (gpios_property): hdmi,hpd-gpio property
size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---
 arch/arm/boot/dts/stih407.dtsi | 3 ++-
 arch/arm/boot/dts/stih410.dtsi | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Comments

Arnd Bergmann Jan. 15, 2018, 2:59 p.m. UTC | #1
On Wed, Jan 10, 2018 at 9:21 AM,  <patrice.chotard@st.com> wrote:
> From: Patrice Chotard <patrice.chotard@st.com>
>
> The GPIO polarity is missing in the hdmi,hpd-gpio property, this
> fixes the following DT warnings:
>
> arch/arm/boot/dts/stih410-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
> size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
>
> arch/arm/boot/dts/stih407-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
> size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
>
> arch/arm/boot/dts/stih410-b2260.dtb: Warning (gpios_property): hdmi,hpd-gpio property
> size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
>
> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>

Olof has picked up a number of other dtc warning fixes into next/dt,
so I ended up
adding this to the same place rather than our fixes branch, but added
a Cc:stable
tag. We now have just one warning left in arm-soc, and I think Linus
Walleij will
send a patch for that soon.

Please send a pull request for the remaining commits from the STi
series, thanks!

      Arnd
Patrice CHOTARD Jan. 15, 2018, 5:43 p.m. UTC | #2
Hi Arnd

On 01/15/2018 03:59 PM, Arnd Bergmann wrote:
> On Wed, Jan 10, 2018 at 9:21 AM,  <patrice.chotard@st.com> wrote:
>> From: Patrice Chotard <patrice.chotard@st.com>
>>
>> The GPIO polarity is missing in the hdmi,hpd-gpio property, this
>> fixes the following DT warnings:
>>
>> arch/arm/boot/dts/stih410-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
>> size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
>>
>> arch/arm/boot/dts/stih407-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
>> size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
>>
>> arch/arm/boot/dts/stih410-b2260.dtb: Warning (gpios_property): hdmi,hpd-gpio property
>> size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
>>
>> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
> 
> Olof has picked up a number of other dtc warning fixes into next/dt,
> so I ended up
> adding this to the same place rather than our fixes branch, but added
> a Cc:stable
> tag. We now have just one warning left in arm-soc, and I think Linus
> Walleij will
> send a patch for that soon. >
> Please send a pull request for the remaining commits from the STi
> series, thanks!

Ok thanks

Patrice

> 
>        Arnd
>
diff mbox

Patch

diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi
index fa14983..11fdecd 100644
--- a/arch/arm/boot/dts/stih407.dtsi
+++ b/arch/arm/boot/dts/stih407.dtsi
@@ -8,6 +8,7 @@ 
  */
 #include "stih407-clock.dtsi"
 #include "stih407-family.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
 	soc {
 		sti-display-subsystem {
@@ -122,7 +123,7 @@ 
 					 <&clk_s_d2_quadfs 0>,
 					 <&clk_s_d2_quadfs 1>;
 
-				hdmi,hpd-gpio = <&pio5 3>;
+				hdmi,hpd-gpio = <&pio5 3 GPIO_ACTIVE_LOW>;
 				reset-names = "hdmi";
 				resets = <&softreset STIH407_HDMI_TX_PHY_SOFTRESET>;
 				ddc = <&hdmiddc>;
diff --git a/arch/arm/boot/dts/stih410.dtsi b/arch/arm/boot/dts/stih410.dtsi
index 07b02a3..e4b7e3d 100644
--- a/arch/arm/boot/dts/stih410.dtsi
+++ b/arch/arm/boot/dts/stih410.dtsi
@@ -9,6 +9,7 @@ 
 #include "stih410-clock.dtsi"
 #include "stih407-family.dtsi"
 #include "stih410-pinctrl.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
 	aliases {
 		bdisp0 = &bdisp0;
@@ -213,7 +214,7 @@ 
 					 <&clk_s_d2_quadfs 0>,
 					 <&clk_s_d2_quadfs 1>;
 
-				hdmi,hpd-gpio = <&pio5 3>;
+				hdmi,hpd-gpio = <&pio5 3 GPIO_ACTIVE_LOW>;
 				reset-names = "hdmi";
 				resets = <&softreset STIH407_HDMI_TX_PHY_SOFTRESET>;
 				ddc = <&hdmiddc>;