riscv: dts: starfive: Add support eeprom device tree node 66/297066/1
authorYanhong Wang <yanhong.wang@starfivetech.com>
Thu, 15 Jun 2023 09:36:49 +0000 (17:36 +0800)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 9 Aug 2023 21:37:42 +0000 (23:37 +0200)
Add support "atmel,24c04" eeprom for StarFive VisionFive2 board.

Change-Id: If09c2165bda50df9f57c1dc6b3a3efb57a098669
Origin: upstream, https://source.denx.de/u-boot/u-boot/-/commit/3421a45fdaed3ae243ea5852bc22ba643c94fa9d
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
arch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi
arch/riscv/dts/jh7110-starfive-visionfive-2-v1.3b-u-boot.dtsi
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi

index f8a738d7bd09c7f49b9ffd0ba08b42a743ac5815..451032fcb2d624d2b70d8f8c6e29fea11f6d12b9 100644 (file)
                u-boot,dm-spl;
        };
 };
+
+&i2c5_pins {
+       bootph-pre-ram;
+       i2c-pins {
+               bootph-pre-ram;
+       };
+};
+
+&i2c5 {
+       bootph-pre-ram;
+       eeprom@50 {
+              bootph-pre-ram;
+       };
+};
index f8a738d7bd09c7f49b9ffd0ba08b42a743ac5815..1a5b83b3923fd2410d079d081cae5bcd2f91e649 100644 (file)
                u-boot,dm-spl;
        };
 };
+
+&i2c5_pins {
+       bootph-pre-ram;
+       i2c-pins {
+               bootph-pre-ram;
+       };
+};
+
+&i2c5 {
+       bootph-pre-ram;
+       eeprom@50 {
+               bootph-pre-ram;
+       };
+};
index e526cb4d420fe98ffccbf82ec0d70d49442fa734..41180e6f0660c0615da74a5385e7fc6d542068c9 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&i2c5_pins>;
        status = "okay";
+
+       eeprom@50 {
+               compatible = "atmel,24c04";
+               reg = <0x50>;
+               pagesize = <16>;
+       };
 };
 
 &i2c6 {