]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: rmobile: Add sysinfo extras on R-Car Gen3
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 3 Jul 2021 16:16:14 +0000 (18:16 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 20 Jul 2021 21:33:54 +0000 (23:33 +0200)
Add sysinfo node and phandle to the board ID EEPROM on all boards
where this functionality is described in DT, which is Salvator-X(S),
ULCB and Ebisu. The u-boot,dm-pre-reloc is necessary here, since the
sysinfo must be available early during boot. The V3M and V3H boards
currently do not describe this board ID EEPROM in upstream DT, but
that could be easily added later, once the DTs contain the necessary
nodes.

ULCB and Ebisu needs the full EEPROM node in the u-boot extras DT,
since the EEPROM node is still missing in the upstream DTs. Ebisu
also needs extra compatible string override for the i2c_dvfs.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
arch/arm/dts/r8a77950-salvator-x-u-boot.dts
arch/arm/dts/r8a77950-ulcb-u-boot.dts
arch/arm/dts/r8a77960-salvator-x-u-boot.dts
arch/arm/dts/r8a77960-ulcb-u-boot.dts
arch/arm/dts/r8a77965-salvator-x-u-boot.dts
arch/arm/dts/r8a77965-ulcb-u-boot.dts
arch/arm/dts/r8a77990-ebisu-u-boot.dts

index 36c8a44a902810498eb62dde23eb887ad0c09bd4..bb83bc1d7b7c3dede353c6a502356f4d4f99bea7 100644 (file)
@@ -8,6 +8,23 @@
 #include "r8a77950-salvator-x.dts"
 #include "r8a77950-u-boot.dtsi"
 
+/ {
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
+};
+
 &rpc {
        reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0x04000000>;
        status = "okay";
index d3191c55d57683273c255d1c64a0f3c3caa3a27a..16d9e38b70b5906f6e918b079bf7f79c3e217727 100644 (file)
                gpio-miso = <&gpio6 10 0>;
                gpio-sstbz = <&gpio2 3 0>;
        };
+
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               compatible = "rohm,br24t01", "atmel,24c01";
+               reg = <0x50>;
+               pagesize = <8>;
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
 };
 
 &rpc {
index 439fd6c3ada59b970285adc16dcd10aa743899ff..dda3567e9ee93a6dbafa725ec8c038d2f3880d45 100644 (file)
@@ -8,6 +8,23 @@
 #include "r8a77960-salvator-x.dts"
 #include "r8a77960-u-boot.dtsi"
 
+/ {
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
+};
+
 &rpc {
        reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0x04000000>;
        status = "okay";
index aab9c95931f840e6b62773cb73ec19a47f424df1..e4f77ae2627e3015d16fc0f3a2ab0c2d9ffaa9a2 100644 (file)
                gpio-miso = <&gpio6 10 0>;
                gpio-sstbz = <&gpio2 3 0>;
        };
+
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               compatible = "rohm,br24t01", "atmel,24c01";
+               reg = <0x50>;
+               pagesize = <8>;
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
 };
 
 &rpc {
index 8cbef83b9c450359602b71a2062cc08cea81280e..e651e889bc8339748acad95cc0378093a8bf86f1 100644 (file)
@@ -8,6 +8,23 @@
 #include "r8a77965-salvator-x.dts"
 #include "r8a77965-u-boot.dtsi"
 
+/ {
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
+};
+
 &rpc {
        reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0x04000000>;
        status = "okay";
index 38966bf644eca2fdbd29561711d43dd21f9a91bb..3574d6da6fd00e30e064f39c381b664419986e54 100644 (file)
                gpio-miso = <&gpio6 10 0>;
                gpio-sstbz = <&gpio2 3 0>;
        };
+
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               compatible = "rohm,br24t01", "atmel,24c01";
+               reg = <0x50>;
+               pagesize = <8>;
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
 };
 
 &rpc {
index 6afc0be66e937e8fd1e70a9623056daf59b52c29..7022a2ba84e8460c497578b00ab8bb3ef26ee2e6 100644 (file)
@@ -8,6 +8,29 @@
 #include "r8a77990-ebisu.dts"
 #include "r8a77990-u-boot.dtsi"
 
+/ {
+       sysinfo {
+               compatible = "renesas,rcar-sysinfo";
+               i2c-eeprom = <&sysinfo_eeprom>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&i2c_dvfs {
+       compatible = "renesas,iic-r8a77990",
+                    "renesas,rcar-gen3-iic",
+                    "renesas,rmobile-iic";
+       u-boot,dm-pre-reloc;
+
+       sysinfo_eeprom: eeprom@50 {
+               compatible = "rohm,br24t01", "atmel,24c01";
+               reg = <0x50>;
+               pagesize = <8>;
+               u-boot,dm-pre-reloc;
+               status = "okay";
+       };
+};
+
 &pfc {
        pinctrl-0 = <&scif_clk_pins>;
        pinctrl-names = "default";