From: Maxime Ripard Date: Wed, 24 Jan 2018 11:57:49 +0100 Subject: [U-Boot] [PATCH 2/3] sunxi: add DM I2C support for H3/H5 In-Reply-To: <20180124100153.25044-2-nunojpg@gmail.com> References: <20180124100153.25044-1-nunojpg@gmail.com> <20180124100153.25044-2-nunojpg@gmail.com> Message-ID: <20180124105749.xmik2bdqlrgtxfha@flea.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Wed, Jan 24, 2018 at 11:01:52AM +0100, Nuno Goncalves wrote: > Signed-off-by: Nuno Goncalves 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 = ; > + 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 = ; > + 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 = ; > + 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: