dts: GXL: defendkey: support secure upgrade check [3/3]
authorZhongfu Luo <zhongfu.luo@amlogic.com>
Thu, 22 Nov 2018 06:12:59 +0000 (14:12 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Tue, 27 Nov 2018 03:16:18 +0000 (11:16 +0800)
PD#SWPL-2100

Problem:
GXL need to support secure upgrade check

Solution:
add defendkey support in all GXL dts

Verify:
GXL skt board verify pass

Change-Id: I73b84b86f23f512ddc556b61f3a07d015c717e8c
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
42 files changed:
arch/arm/boot/dts/amlogic/gxl_p212_1g.dts
arch/arm/boot/dts/amlogic/gxl_p212_1g_buildroot.dts
arch/arm/boot/dts/amlogic/gxl_p212_1g_hd.dts
arch/arm/boot/dts/amlogic/gxl_p212_2g.dts
arch/arm/boot/dts/amlogic/gxl_p212_2g_buildroot.dts
arch/arm/boot/dts/amlogic/gxl_p230_2g.dts
arch/arm/boot/dts/amlogic/gxl_p230_2g_buildroot.dts
arch/arm/boot/dts/amlogic/gxl_p231_1g.dts
arch/arm/boot/dts/amlogic/gxl_p231_2g.dts
arch/arm/boot/dts/amlogic/gxl_p231_2g_buildroot.dts
arch/arm/boot/dts/amlogic/gxl_p241_1g.dts
arch/arm/boot/dts/amlogic/gxl_p241_1g_buildroot.dts
arch/arm/boot/dts/amlogic/gxl_p241_v2-1g.dts
arch/arm/boot/dts/amlogic/gxl_p241_v2_1g_buildroot.dts
arch/arm/boot/dts/amlogic/gxl_p400_2g.dts
arch/arm/boot/dts/amlogic/gxl_p401_2g.dts
arch/arm/boot/dts/amlogic/gxl_sei210_1g.dts
arch/arm/boot/dts/amlogic/gxl_sei210_2g.dts
arch/arm/boot/dts/amlogic/gxl_skt.dts
arch/arm/boot/dts/amlogic/mesongxl.dtsi
arch/arm/boot/dts/amlogic/mesongxl_sei210.dtsi
arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p212_1g_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p212_1g_hd.dts
arch/arm64/boot/dts/amlogic/gxl_p212_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p212_2g_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p230_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p230_2g_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p231_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p231_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p231_2g_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p241_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p241_1g_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p241_v2-1g.dts
arch/arm64/boot/dts/amlogic/gxl_p241_v2_1g_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p400_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p401_2g.dts
arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts
arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts
arch/arm64/boot/dts/amlogic/gxl_skt.dts
arch/arm64/boot/dts/amlogic/mesongxl.dtsi
arch/arm64/boot/dts/amlogic/mesongxl_sei210.dtsi

index 9f1cacf..424c21c 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index a3075d2..519cfc8 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 3447aaa..e723f65 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 9272418..f98158d 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        dummy-battery {
 &audio_data{
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index d3c1a0f..0d865a3 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
        status = "okay";
 };
 
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index dda52f1..70832ef 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
        bt-dev{
                compatible = "amlogic, bt-dev";
                };
        };
 }; /* end of pinctrl_periphs */
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 85b8147..196fc62 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
        bt-dev{
                compatible = "amlogic, bt-dev";
                };
        };
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index d878812..af71ed0 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
 &pwm_ef {
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 39b32fd..f51479c 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
 &pwm_ef {
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 2d8efd8..1996859 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
 &pwm_ef {
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index b7ac075..30c98d3 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 0c1f5ed..6d8523c 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        vpu {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 0380e40..738a1dd 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index e42f846..9049e83 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        vpu {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 84cd017..deb4d1d 100644 (file)
                        alloc-ranges = <0x7dc00000 0x2400000>;
                };
 
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
 
        };
 
                status = "okay";
        };
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 921a32c..6e6ac7e 100644 (file)
                        alloc-ranges = <0x7dc00000 0x2400000>;
                };
 
-
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        wifi{
                status = "okay";
        };
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index a3a729a..2f6ce08 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 9d581d6..e24e9d3 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        bt-dev{
 &audio_data{
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 482ca70..211b1c9 100644 (file)
                        alignment = <0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x08300000 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index df21827..0235105 100644 (file)
                compatible = "amlogic, vdac-gxl";
                status = "okay";
        };
+
+       defendkey: defendkey {
+               compatible = "amlogic, defendkey";
+               reg = <0xc8834500 0x4>; /*RNG_USR_DATA*/
+               mem_size = <0x0 0x100000>;
+               status = "disabled";
+       };
 }; /* end of root */
 
 &pinctrl_aobus {
index 2445a5e..3ebecc5 100644 (file)
                compatible = "amlogic, vdac-gxl";
                status = "okay";
        };
+
+       defendkey: defendkey {
+               compatible = "amlogic, defendkey";
+               reg = <0xc8834500 0x4>; /*RNG_USR_DATA*/
+               mem_size = <0x0 0x100000>;
+               status = "disabled";
+       };
 }; /* end of root */
 
 &pinctrl_aobus {
index 34fe9b2..980fb89 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index c2d3b92..c6f85ec 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 6a064bb..1418d8b 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 2ffd2de..a54f543 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        dummy-battery {
 &audio_data{
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index b2a48e9..63b9c1e 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
        status = "okay";
 };
 
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index bbb6ab8..407a7eb 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
        bt-dev{
                compatible = "amlogic, bt-dev";
                };
        };
 }; /* end of pinctrl_periphs */
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 3e8d5cc..bda67d1 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
        bt-dev{
                compatible = "amlogic, bt-dev";
                };
        };
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 0d924c2..01bdc4c 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
 &pwm_ef {
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index e66d3e4..c71b1e1 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
 &pwm_ef {
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index f77ec38..8936bcd 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
 &pwm_ef {
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index e0ba54e..98b016e 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index b7104b5..36ae00d 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        vpu {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index e5073d5..c341916 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 8118feb..55ce615 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        vpu {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 5543490..5e291d3 100644 (file)
                        alloc-ranges = <0x0 0x7dc00000 0x0 0x2400000>;
                };
 
-
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        wifi{
                status = "okay";
        };
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index bcaced4..698972e 100644 (file)
                        alloc-ranges = <0x0 0x7dc00000 0x0 0x2400000>;
                };
 
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
 
        };
 
                status = "okay";
        };
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 2c2f3f8..53d476b 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 565b840..cf86235 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        bt-dev{
 &audio_data{
        status = "okay";
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 1ab1a07..85c6b54 100644 (file)
                        alignment = <0x0 0x100000>;
                        //no-map;
                };
+
+               defendkey_reserved:linux,defendkey {
+                       compatible = "amlogic, defendkey";
+                       reg = <0x0 0x08300000 0x0 0x100000>;
+               };
        };
 
        dummy-battery {
        delay_control = <0x15>;
        ssctl = <0>;
 };
+
+&defendkey {
+       memory-region = <&defendkey_reserved>;
+       status = "okay";
+};
+
index 42fdd83..4a6581e 100644 (file)
                compatible = "amlogic, vdac-gxl";
                status = "okay";
        };
+
+       defendkey: defendkey {
+               compatible = "amlogic, defendkey";
+               reg = <0x0 0xc8834500 0x0 0x4>; /*RNG_USR_DATA*/
+               mem_size = <0x0 0x100000>;
+               status = "disabled";
+       };
 }; /* end of root */
 
 &pinctrl_aobus {
index b2e72ec..82e31ce 100644 (file)
                compatible = "amlogic, vdac-gxl";
                status = "okay";
        };
+
+       defendkey: defendkey {
+               compatible = "amlogic, defendkey";
+               reg = <0x0 0xc8834500 0x0 0x4>; /*RNG_USR_DATA*/
+               mem_size = <0x0 0x100000>;
+               status = "disabled";
+       };
 }; /* end of root */
 
 &pinctrl_aobus {