From: Eugen.Hristev at microchip.com Date: Wed, 9 Oct 2019 09:23:41 +0000 Subject: [U-Boot] [PATCH 3/6] ARM: dts: sam9x60ek: add i2c0 as flexcom0 subnode and eeprom memory In-Reply-To: <1570612670-29333-1-git-send-email-eugen.hristev@microchip.com> References: <1570612670-29333-1-git-send-email-eugen.hristev@microchip.com> Message-ID: <1570612670-29333-3-git-send-email-eugen.hristev@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Eugen Hristev Add i2c0 bus as subnode to flx0. Add eeprom memory as slave device to i2c0. Signed-off-by: Eugen Hristev --- arch/arm/dts/sam9x60ek.dts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm/dts/sam9x60ek.dts index bed59f3..8767de9 100644 --- a/arch/arm/dts/sam9x60ek.dts +++ b/arch/arm/dts/sam9x60ek.dts @@ -15,6 +15,7 @@ chosen { stdout-path = &dbgu; + i2c0 = &flx0; }; onewire_tm: onewire { @@ -45,6 +46,28 @@ }; }; + flx0: flexcom at f801c600 { + atmel,flexcom-mode = <3>; + status = "okay"; + + i2c at 600 { + compatible = "atmel,sama5d2-i2c"; + reg = <0x600 0x200>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flx0>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&flx0_clk>; + status = "okay"; + + eeprom at 53 { + compatible = "atmel,24c32"; + reg = <0x53>; + pagesize = <16>; + }; + }; + }; + pinctrl { pinctrl_qspi: qspi { atmel,pins = @@ -56,6 +79,12 @@ AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; }; + pinctrl_flx0: flx0_default { + atmel,pins = + ; + }; + pinctrl_onewire_tm_default: onewire_tm_default { atmel,pins = ; -- 2.7.4