arm64: tegra: Add ID EEPROMs on Jetson Nano
authorThierry Reding <treding@nvidia.com>
Thu, 6 Jun 2019 15:54:05 +0000 (17:54 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 19 Jun 2019 15:51:42 +0000 (17:51 +0200)
The Jetson Nano has two ID EEPROMs, one for the module and another for
the carrier board. Add both to the device tree so that they can be read
from at runtime.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts

index 5d01819..97349fc 100644 (file)
                status = "okay";
        };
 
+       i2c@7000c500 {
+               status = "okay";
+               clock-frequency = <100000>;
+
+               eeprom@50 {
+                       compatible = "atmel,24c02";
+                       reg = <0x50>;
+
+                       address-bits = <8>;
+                       page-size = <8>;
+                       size = <256>;
+                       read-only;
+               };
+
+               eeprom@57 {
+                       compatible = "atmel,24c02";
+                       reg = <0x57>;
+
+                       address-bits = <8>;
+                       page-size = <8>;
+                       size = <256>;
+                       read-only;
+               };
+       };
+
        hdmi_ddc: i2c@7000c700 {
                status = "okay";
                clock-frequency = <100000>;