dts: G12A: add efuse support
authorZhongfu Luo <zhongfu.luo@amlogic.com>
Thu, 5 Jul 2018 10:33:38 +0000 (18:33 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 11 Jul 2018 06:55:22 +0000 (23:55 -0700)
PD#168568: G12A need to support EFUSE burning

Change-Id: If85af608a03450ca5fc8557ea7d2c2c5f71fff09
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_pxp.dts
arch/arm64/boot/dts/amlogic/mesong12a.dtsi

index 99d12281a008dae5a1324cdf2dc8b076bd06d861..dc0e5ac104f405cc108cd35cb938ca074df6d858 100644 (file)
                pps-enable = <1>;
        };
 
+       efusekey:efusekey{
+               keynum = <4>;
+               key0 = <&key_0>;
+               key1 = <&key_1>;
+               key2 = <&key_2>;
+               key3 = <&key_3>;
+               key_0:key_0{
+                       keyname = "mac";
+                       offset = <0>;
+                       size = <6>;
+               };
+               key_1:key_1{
+                       keyname = "mac_bt";
+                       offset = <6>;
+                       size = <6>;
+               };
+               key_2:key_2{
+                       keyname = "mac_wifi";
+                       offset = <12>;
+                       size = <6>;
+               };
+               key_3:key_3{
+                       keyname = "usid";
+                       offset = <18>;
+                       size = <16>;
+               };
+       };//End efusekey
+
        amlvecm {
                compatible = "amlogic, vecm";
                dev_name = "aml_vecm";
index 00624ad3790f3ac7abb676e375a2f43c91db7377..a560639a3ecdc8fb5db88fd8c0c84e23294efd6b 100644 (file)
                        status = "okay";
                };
        };
+
+       efuse: efuse{
+               compatible = "amlogic, efuse";
+               read_cmd = <0x82000030>;
+               write_cmd = <0x82000031>;
+               get_max_cmd = <0x82000033>;
+               key = <&efusekey>;
+               clocks = <&clkc CLKID_EFUSE>;
+               clock-names = "efuse_clk";
+               status = "disabled";
+       };
 };/* end of / */
 
 &pinctrl_aobus {