[U-Boot] [PATCH 09/15] ARM: DTS: stm32: add gpio compatible and aliases for stm32h743

Vikas MANOCHA vikas.manocha at st.com
Tue Aug 8 23:14:53 UTC 2017


Hi Patrice,

> -----Original Message-----
> From: Patrice CHOTARD
> Sent: Friday, August 04, 2017 6:19 AM
> To: u-boot at lists.denx.de; albert.u.boot at aribaud.net; sjg at chromium.org; Vikas MANOCHA <vikas.manocha at st.com>
> Cc: Patrice CHOTARD <patrice.chotard at st.com>; Patrick DELAUNAY <patrick.delaunay at st.com>; Christophe KERELLO
> <christophe.kerello at st.com>
> Subject: [PATCH 09/15] ARM: DTS: stm32: add gpio compatible and aliases for stm32h743
> 
> From: Patrice Chotard <patrice.chotard at st.com>
> 
> This is needed to bind stm32-gpio driver

Same, it should be fixed in previous patch " DTS: stm32: add stm32h743i-disco files"

Cheers,
Vikas

> 
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>  arch/arm/dts/stm32h743-pinctrl.dtsi | 11 +++++++++++
>  arch/arm/dts/stm32h743i-disco.dts   | 11 +++++++++++
>  2 files changed, 22 insertions(+)
> 
> diff --git a/arch/arm/dts/stm32h743-pinctrl.dtsi b/arch/arm/dts/stm32h743-pinctrl.dtsi
> index d438818..f32d086 100644
> --- a/arch/arm/dts/stm32h743-pinctrl.dtsi
> +++ b/arch/arm/dts/stm32h743-pinctrl.dtsi
> @@ -54,6 +54,7 @@
>  			gpioa: gpio at 58020000 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x0 0x400>;
>  				clocks = <&rcc GPIOA_CK>;
>  				st,bank-name = "GPIOA";
> @@ -62,6 +63,7 @@
>  			gpiob: gpio at 58020400 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x400 0x400>;
>  				clocks = <&rcc GPIOB_CK>;
>  				st,bank-name = "GPIOB";
> @@ -70,6 +72,7 @@
>  			gpioc: gpio at 58020800 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x800 0x400>;
>  				clocks = <&rcc GPIOC_CK>;
>  				st,bank-name = "GPIOC";
> @@ -78,6 +81,7 @@
>  			gpiod: gpio at 58020c00 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0xc00 0x400>;
>  				clocks = <&rcc GPIOD_CK>;
>  				st,bank-name = "GPIOD";
> @@ -86,6 +90,7 @@
>  			gpioe: gpio at 58021000 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x1000 0x400>;
>  				clocks = <&rcc GPIOE_CK>;
>  				st,bank-name = "GPIOE";
> @@ -94,6 +99,7 @@
>  			gpiof: gpio at 58021400 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x1400 0x400>;
>  				clocks = <&rcc GPIOF_CK>;
>  				st,bank-name = "GPIOF";
> @@ -102,6 +108,7 @@
>  			gpiog: gpio at 58021800 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x1800 0x400>;
>  				clocks = <&rcc GPIOG_CK>;
>  				st,bank-name = "GPIOG";
> @@ -110,6 +117,7 @@
>  			gpioh: gpio at 58021c00 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x1c00 0x400>;
>  				clocks = <&rcc GPIOH_CK>;
>  				st,bank-name = "GPIOH";
> @@ -118,6 +126,7 @@
>  			gpioi: gpio at 58022000 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x2000 0x400>;
>  				clocks = <&rcc GPIOI_CK>;
>  				st,bank-name = "GPIOI";
> @@ -126,6 +135,7 @@
>  			gpioj: gpio at 58022400 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x2400 0x400>;
>  				clocks = <&rcc GPIOJ_CK>;
>  				st,bank-name = "GPIOJ";
> @@ -134,6 +144,7 @@
>  			gpiok: gpio at 58022800 {
>  				gpio-controller;
>  				#gpio-cells = <2>;
> +				compatible = "st,stm32-gpio";
>  				reg = <0x2800 0x400>;
>  				clocks = <&rcc GPIOK_CK>;
>  				st,bank-name = "GPIOK";
> diff --git a/arch/arm/dts/stm32h743i-disco.dts b/arch/arm/dts/stm32h743i-disco.dts
> index 79e841d..cc707d3 100644
> --- a/arch/arm/dts/stm32h743i-disco.dts
> +++ b/arch/arm/dts/stm32h743i-disco.dts
> @@ -59,6 +59,17 @@
> 
>  	aliases {
>  		serial0 = &usart2;
> +		gpio0 = &gpioa;
> +		gpio1 = &gpiob;
> +		gpio2 = &gpioc;
> +		gpio3 = &gpiod;
> +		gpio4 = &gpioe;
> +		gpio5 = &gpiof;
> +		gpio6 = &gpiog;
> +		gpio7 = &gpioh;
> +		gpio8 = &gpioi;
> +		gpio9 = &gpioj;
> +		gpio10 = &gpiok;
>  	};
>  };
> 
> --
> 1.9.1



More information about the U-Boot mailing list