]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: dts: starfive: Add support eeprom device tree node
authorYanhong Wang <yanhong.wang@starfivetech.com>
Thu, 15 Jun 2023 09:36:49 +0000 (17:36 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 12 Jul 2023 05:21:40 +0000 (13:21 +0800)
Add support "atmel,24c04" eeprom for StarFive VisionFive2 board.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/jh7110-starfive-visionfive-2-u-boot.dtsi
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi

index 2afcec30b87116c0204100edb195c4fa16dc1dc3..13f69da31ec0c866fe7930d15a0f2528c3d87616 100644 (file)
        };
 };
 
+&i2c5_pins {
+       bootph-pre-ram;
+       i2c-pins {
+               bootph-pre-ram;
+       };
+};
+
+&i2c5 {
+       bootph-pre-ram;
+       eeprom@50 {
+               bootph-pre-ram;
+       };
+};
+
 &binman {
        itb {
                fit {
index 3c1148ae2d497742a38cdf8509b4d35b77546332..710b082766d72ed7973368982a56da95063a62d2 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&i2c5_pins>;
        status = "okay";
+
+       eeprom@50 {
+               compatible = "atmel,24c04";
+               reg = <0x50>;
+               pagesize = <16>;
+       };
 };
 
 &i2c6 {