arm64: tegra: Populate Jetson AGX Orin EEPROMs
authorJon Hunter <jonathanh@nvidia.com>
Mon, 16 Jan 2023 12:06:26 +0000 (12:06 +0000)
committerThierry Reding <treding@nvidia.com>
Tue, 17 Jan 2023 13:52:01 +0000 (14:52 +0100)
Populate the module and system EEPROMs on the Jetson AGX Orin platform.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi

index 12f72e3..2378da3 100644 (file)
@@ -7,6 +7,22 @@
        compatible = "nvidia,p3701-0000", "nvidia,tegra234";
 
        bus@0 {
+               i2c@3160000 {
+                       status = "okay";
+
+                       eeprom@50 {
+                               compatible = "atmel,24c02";
+                               reg = <0x50>;
+
+                               label = "module";
+                               vcc-supply = <&vdd_1v8_hs>;
+                               address-width = <8>;
+                               pagesize = <8>;
+                               size = <256>;
+                               read-only;
+                       };
+               };
+
                spi@3270000 {
                        status = "okay";
 
                regulator-always-on;
        };
 
+       vdd_1v8_hs: regulator-vdd-1v8-hs {
+               compatible = "regulator-fixed";
+               regulator-name = "VDD_1V8_HS";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+       };
+
        vdd_1v8_ao: regulator-vdd-1v8-ao {
                compatible = "regulator-fixed";
                regulator-name = "VDD_1V8_AO";
index e768945..022a540 100644 (file)
@@ -4,6 +4,22 @@
        compatible = "nvidia,p3737-0000";
 
        bus@0 {
+               i2c@3160000 {
+                       status = "okay";
+
+                       eeprom@56 {
+                               compatible = "atmel,24c02";
+                               reg = <0x56>;
+
+                               label = "system";
+                               vcc-supply = <&vdd_1v8_sys>;
+                               address-width = <8>;
+                               pagesize = <8>;
+                               size = <256>;
+                               read-only;
+                       };
+               };
+
                pwm@3280000 {
                        status = "okay";
                };
                        status = "okay";
                };
        };
+
+       vdd_1v8_sys: regulator-vdd-1v8-sys {
+               compatible = "regulator-fixed";
+               regulator-name = "VDD_1V8_SYS";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+       };
 };