[U-Boot] [PATCH 2/3] sunxi: add DM I2C support for H3/H5

Maxime Ripard maxime.ripard at free-electrons.com
Wed Jan 24 10:57:49 UTC 2018


Hi,

On Wed, Jan 24, 2018 at 11:01:52AM +0100, Nuno Goncalves wrote:
> Signed-off-by: Nuno Goncalves <nunojpg at gmail.com>

Please write a commit log.

> ---
>  arch/arm/dts/sun8i-h3.dtsi             | 48 ++++++++++++++++++++++++++++++++++
>  arch/arm/include/asm/arch-sunxi/gpio.h |  2 ++
>  board/sunxi/board.c                    | 10 ++++++-
>  3 files changed, 59 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/dts/sun8i-h3.dtsi b/arch/arm/dts/sun8i-h3.dtsi
> index df2742095e..da17dfa579 100644
> --- a/arch/arm/dts/sun8i-h3.dtsi
> +++ b/arch/arm/dts/sun8i-h3.dtsi
> @@ -396,6 +396,21 @@
>  				drive-strength = <10>;
>  				bias-disable;
>  			};
> +
> +			i2c0_pins_a: i2c0 at 0 {
> +				pins = "PA11", "PA12";
> +				function = "i2c0";
> +			};
> +
> +			i2c1_pins_a: i2c1 at 0 {
> +				pins = "PA18", "PA19";
> +				function = "i2c1";
> +			};
> +
> +			i2c2_pins_a: i2c2 at 0 {
> +				pins = "PE12", "PE13";
> +				function = "i2c2";
> +			};
>  		};
>  
>  		timer at 01c20c00 {
> @@ -464,6 +479,39 @@
>  			status = "disabled";
>  		};
>  
> +		i2c0: i2c at 01c2ac00 {
> +			compatible = "allwinner,sun6i-a31-i2c";
> +			reg = <0x01c2ac00 0x400>;
> +			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&ccu CLK_BUS_I2C0>;
> +			resets = <&ccu RST_BUS_I2C0>;
> +			status = "disabled";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +		};
> +
> +		i2c1: i2c at 01c2b000 {
> +			compatible = "allwinner,sun6i-a31-i2c";
> +			reg = <0x01c2b000 0x400>;
> +			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&ccu CLK_BUS_I2C1>;
> +			resets = <&ccu RST_BUS_I2C1>;
> +			status = "disabled";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +		};
> +
> +		i2c2: i2c at 01c2b400 {
> +			compatible = "allwinner,sun6i-a31-i2c";
> +			reg = <0x01c2b400 0x400>;
> +			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&ccu CLK_BUS_I2C2>;
> +			resets = <&ccu RST_BUS_I2C2>;
> +			status = "disabled";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +		};
> +

Why don't you just synchronize the DT with Linux?

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180124/0ce4c3f5/attachment.sig>


More information about the U-Boot mailing list