]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: sama7g5ek: add i2c1 bus and eeproms
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 31 Jul 2020 12:20:01 +0000 (15:20 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 7 Jan 2021 07:44:16 +0000 (09:44 +0200)
Add node for flx1 i2c1 subnode (and alias to bus 0)
This bus has two eeprom devices connected.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/arm/dts/sama7g5ek.dts

index 452bf425df16876677cf96376dc52fa889a47969..b7c35559fe8303064c5b1c613c3abc3639522b40 100644 (file)
@@ -17,6 +17,7 @@
 
        aliases {
                serial0 = &uart0;
+               i2c0 = &i2c1;
        };
 
        chosen {
        };
 };
 
+&flx1 {
+       atmel,flexcom-mode = <3>;
+       status = "okay";
+};
+
+&i2c1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_flx1_default>;
+       status = "okay";
+
+       eeprom@52 {
+               compatible = "microchip,24aa02e48";
+               reg = <0x52>;
+               pagesize = <16>;
+       };
+
+       eeprom@53 {
+               compatible = "microchip,24aa02e48";
+               reg = <0x53>;
+               pagesize = <16>;
+       };
+};
+
 &gmac0 {
        #address-cells = <1>;
        #size-cells = <0>;
 };
 
 &pinctrl {
+       pinctrl_flx1_default: flx1_default {
+               pinmux = <PIN_PC9__FLEXCOM1_IO0>,
+                        <PIN_PC10__FLEXCOM1_IO1>;
+               bias-disable;
+       };
+
        pinctrl_flx3_default: flx3_default {
                pinmux = <PIN_PD16__FLEXCOM3_IO0>,
                         <PIN_PD17__FLEXCOM3_IO1>;