ARM: dts: meson: add the efuse node
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 2 Oct 2017 23:28:04 +0000 (01:28 +0200)
committerKevin Hilman <khilman@baylibre.com>
Sun, 29 Oct 2017 16:00:38 +0000 (09:00 -0700)
Meson6, Meson8 and Meson8b use a similar IP block which has access to
512 bytes of efuse data.
During SoC manufacturing some calibration settings for the CVBS
connector and the internal temperature sensor are written to this efuse.
On some boards it additionally stores for example the MAC addresses.

The efuse is enabled on Meson8 and Meson8b but kept disabled on Meson6
since we do not have a clock driver there (which is required to read
data from the efuse).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson.dtsi
arch/arm/boot/dts/meson6.dtsi
arch/arm/boot/dts/meson8.dtsi
arch/arm/boot/dts/meson8b.dtsi

index 3d18ecc2bef1e6f6a61490cac69bdc34025a40ac..4926133077b3541165ccf989af0834a8362411b3 100644 (file)
                        compatible = "amlogic,meson-mx-bootrom", "syscon";
                        reg = <0xd9040000 0x10000>;
                };
+
+               secbus: secbus@da000000 {
+                       compatible = "simple-bus";
+                       reg = <0xda000000 0x6000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0x0 0xda000000 0x6000>;
+
+                       efuse: nvmem@0 {
+                               compatible = "amlogic,meson6-efuse";
+                               reg = <0x0 0x2000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+               };
        };
 }; /* end of / */
index ef281d2900527703af28b49f425df50415d1bd2d..9b463211339f5f5bc9156e88da3881607ba22ecc 100644 (file)
@@ -84,6 +84,9 @@
        };
 }; /* end of / */
 
+&efuse {
+       status = "disabled";
+};
 
 &uart_AO {
        clocks = <&xtal>, <&clk81>, <&clk81>;
index 871d48d67190a9454f4d4da053bf8252f242b308..661287806ead03109372531384d99f3fafc47fbc 100644 (file)
        };
 };
 
+&efuse {
+       compatible = "amlogic,meson8-efuse";
+       clocks = <&clkc CLKID_EFUSE>;
+       clock-names = "core";
+};
+
 &ethmac {
        clocks = <&clkc CLKID_ETH>;
        clock-names = "stmmaceth";
index c12646ecef2b43e9a327d2dc09d4d819c453b46b..7ecce8890d21fccc18036492dce1f2cc2d4bd5c7 100644 (file)
        };
 };
 
+
+&efuse {
+       compatible = "amlogic,meson8b-efuse";
+       clocks = <&clkc CLKID_EFUSE>;
+       clock-names = "core";
+};
+
 &ethmac {
        clocks = <&clkc CLKID_ETH>;
        clock-names = "stmmaceth";