dts: disable useless devices
authorFrank Chen <frank.chen@amlogic.com>
Thu, 20 Apr 2017 03:27:57 +0000 (11:27 +0800)
committerFrank Chen <frank.chen@amlogic.com>
Thu, 20 Apr 2017 04:42:54 +0000 (12:42 +0800)
PD#138714: disable useless devices on p400 and p401

Change-Id: I7f0d2f4b59cae56814b3a91ceacf4aaac6058e16
Signed-off-by: Frank Chen <frank.chen@amlogic.com>
arch/arm64/boot/dts/amlogic/gxl_p400_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p401_2g.dts
scripts/amlogic/mk_dtb_gx.sh

index 00a5914..0eab6b0 100644 (file)
                serial4 = &uart_AO_B;
        };
 
-       ion_dev {
-               compatible = "amlogic, ion_dev";
-               memory-region = <&ion_reserved>;
-       };
 
        memory@00000000 {
                device_type = "memory";
                        no-map;
                };
 
-               di_reserved:linux,di {
-                       compatible = "amlogic, di-mem";
-                       size = <0x0 0x1e00000>; //10x1920x1088x3/2=30M
-                       //no-map;
-               };
-
-               ion_reserved:linux,ion-dev {
-                       compatible = "amlogic, idev-mem";
-                       size = <0x0 0x2000000>;
-               };
-
-               /*  POST PROCESS MANAGER */
-               ppmgr_reserved:linux,ppmgr {
-                       compatible = "shared-dma-pool";
-                       size = <0x0 0x0>;
-               };
 
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       size = <0x0 0xc000000>;
-                       alignment = <0x0 0x400000>;
-                       linux,contiguous-region;
-               };
-               picdec_cma_reserved:linux,picdec {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       size = <0x0 0x0>;
-                       alignment = <0x0 0x0>;
-                       linux,contiguous-region;
-               };
-               /* codec shared reserved */
-               codec_mm_reserved:linux,codec_mm_reserved {
-                       compatible = "amlogic, codec-mm-reserved";
-                       size = <0x0 0x4100000>;
-                       alignment = <0x0 0x100000>;
-                       //no-map;
-               };
        };
 
        wifi{
                dev_name = "aml_wifi";
                status = "okay";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
-               interrupts = <  0 68 4>;
+               interrupts = <  0 68 4>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                pinctrl-names = "wifi_32k_pins";
                pinctrl-0 = <&wifi_32k_pins>;
+//             pwm_config = <&wifi_pwm_conf>;
        };
 
+//     wifi_pwm_conf:wifi_pwm_conf{
+//             pwm_channel1 = <PWM_E>;
+//             pwm_channel2 = <PWM_E2>;
+//             pwm_channel1_conf = <30541 15270 6>;
+//             pwm_channel2_conf = <30518 15259 9>;
+//     };
+
        sd_emmc_c: emmc@d0074000 {
                status = "okay";
                compatible = "amlogic, meson-aml-mmc";
                };
        };
 
-       codec_mm {
-               compatible = "amlogic, codec, mm";
-               memory-region = <&codec_mm_cma &codec_mm_reserved>;
-               dev_name = "codec_mm";
-               status = "okay";
-       };
-
-       canvas{
-               compatible = "amlogic, meson, canvas";
-               dev_name = "amlogic-canvas";
-               status = "ok";
-               reg = <0x0 0xc8838000 0x0 0x400>;
-       };
-
-       mesonstream {
-               compatible = "amlogic, codec, streambuf";
-               dev_name = "mesonstream";
-               status = "okay";
-               clocks = <&clkc CLKID_DOS_PARSER
-                       &clkc CLKID_VPU_INTR
-                       &clkc CLKID_DEMUX
-                       &clkc CLKID_DOS
-                       &clkc CLKID_VDEC_MUX
-                       &clkc CLKID_HCODEC_MUX
-                       &clkc CLKID_HEVC_MUX>;
-               clock-names = "parser_top",
-                       "vpu_intr",
-                       "demux",
-                       "vdec",
-                       "clk_vdec_mux",
-                       "clk_hcodec_mux",
-                       "clk_hevc_mux";
-       };
-
-       vdec {
-               compatible = "amlogic, vdec";
-               dev_name = "vdec.0";
-               status = "okay";
-               interrupts = <0 3 1
-                       0 23 1
-                       0 32 1
-                       0 43 1
-                       0 44 1
-                       0 45 1>;
-               interrupt-names = "vsync",
-                       "demux",
-                       "parser",
-                       "mailbox_0",
-                       "mailbox_1",
-                       "mailbox_2";
+       aml_sensor0: aml-sensor@0 {
+               compatible = "amlogic, aml-thermal";
+               device_name = "thermal";
+               #thermal-sensor-cells = <1>;
+               cooling_devices {
+                       cpufreq_cool_cluster0 {
+                               min_state = <1000000>;
+                               dyn_coeff = <140>;
+                               cluster_id = <0>;
+                               node_name = "cpufreq_cool0";
+                               device_type = "cpufreq";
+                       };
+                       cpucore_cool_cluster0 {
+                               min_state = <1>;
+                               dyn_coeff = <0>;
+                               cluster_id = <0>;
+                               node_name = "cpucore_cool0";
+                               device_type = "cpucore";
+                       };
+                       gpufreq_cool {
+                               min_state = <400>;
+                               dyn_coeff = <437>;
+                               cluster_id = <0>;
+                               node_name = "gpufreq_cool0";
+                               device_type = "gpufreq";
+                       };
+                       gpucore_cool {
+                               min_state = <1>;
+                               dyn_coeff = <0>;
+                               cluster_id = <0>;
+                               node_name = "gpucore_cool0";
+                               device_type = "gpucore";
+                       };
+               };
+               cpufreq_cool0:cpufreq_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+               cpucore_cool0:cpucore_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+               gpufreq_cool0:gpufreq_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+               gpucore_cool0:gpucore_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+       };
+       thermal-zones {
+               soc_thermal {
+                       polling-delay = <1000>;
+                       polling-delay-passive = <100>;
+                       sustainable-power = <2150>;
+
+                       thermal-sensors = <&aml_sensor0 3>;
+
+                       trips {
+                               switch_on: trip-point@0 {
+                                       temperature = <70000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+                               control: trip-point@1 {
+                                       temperature = <80000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+                               hot: trip-point@2 {
+                                       temperature = <85000>;
+                                       hysteresis = <5000>;
+                                       type = "hot";
+                               };
+                               critical: trip-point@3 {
+                                       temperature = <260000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               cpufreq_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&cpufreq_cool0 0 4>;
+                                       contribution = <1024>;
+                               };
+                               cpucore_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&cpucore_cool0 0 3>;
+                                       contribution = <1024>;
+                               };
+                               gpufreq_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&gpufreq_cool0 0 4>;
+                                       contribution = <1024>;
+                               };
+                               gpucore_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&gpucore_cool0 0 2>;
+                                       contribution = <1024>;
+                               };
+                       };
+               };
        };
 
-
        dwc3: dwc3@c9000000 {
                compatible = "synopsys, dwc3";
                reg = <0x0 0xc9000000 0x0 0x100000>;
                fr_auto_policy = <0>;
        };
 
-       cvbsout {
-               compatible = "amlogic, cvbsout";
-               dev_name = "cvbsout";
-               status = "okay";
-       };
-
-       amhdmitx: amhdmitx{
-               compatible = "amlogic, amhdmitx";
-               dev_name = "amhdmitx";
-               status = "okay";
-               vend-data = <&vend_data>;
-               pinctrl-names="hdmitx_hpd", "hdmitx_ddc";
-               pinctrl-0=<&hdmitx_hpd>;
-               pinctrl-1=<&hdmitx_ddc>;
-               /* HPD, 57 + 32 = 89; CEC, 151 + 32 = 183*/
-               interrupts = <0 57 1>;
-               interrupt-names = "hdmitx_hpd";
-               vend_data: vend_data{ /* Should modified by Customer */
-                       vendor_name = "Amlogic"; /* Max Chars: 8 */
-                       /* standards.ieee.org/develop/regauth/oui/oui.txt */
-                       vendor_id = <0x000000>;
-                       product_desc = "MBox Meson Ref"; /* Max Chars: 16 */
-               };
-       };
-
        meson-fb {
                compatible = "amlogic, meson-fb";
                memory-region = <&fb_reserved>;
                logo_addr = "0x3d851000";
                /*ion base + fb0 memory size for uboot logo osd1*/
        };
+
        ge2d {
                compatible = "amlogic, ge2d";
                dev_name = "ge2d";
                        "clk_ge2d_gate";
        };
 
-
-
        /* AUDIO MESON DEVICES */
        i2s_dai: I2S {
                #sound-dai-cells = <0>;
                };
        };
        /* END OF AUDIO board specific */
-
-       ionvideo {
-               compatible = "amlogic, ionvideo";
-               dev_name = "ionvideo";
-               status = "okay";
-       };
-
-       amlvideo {
-               compatible = "amlogic, amlvideo";
-               dev_name = "amlvideo";
-               status = "okay";
-       };
-
-       ppmgr {
-               compatible = "amlogic, ppmgr";
-               memory-region = <&ppmgr_reserved>;
-               dev_name = "ppmgr";
-               status = "okay";
-       };
-
        rdma{
                compatible = "amlogic, meson, rdma";
                dev_name = "amlogic-rdma";
                        mask = <4>;
                };
        };
+
+       unifykey{
+               compatible = "amlogic, unifykey";
+               status = "ok";
+
+               unifykey-num = <14>;
+               unifykey-index-0 = <&keysn_0>;
+               unifykey-index-1 = <&keysn_1>;
+               unifykey-index-2 = <&keysn_2>;
+               unifykey-index-3 = <&keysn_3>;
+               unifykey-index-4 = <&keysn_4>;
+               unifykey-index-5 = <&keysn_5>;
+               unifykey-index-6 = <&keysn_6>;
+               unifykey-index-7 = <&keysn_7>;
+               unifykey-index-8 = <&keysn_8>;
+               unifykey-index-9 = <&keysn_9>;
+               unifykey-index-10= <&keysn_10>;
+               unifykey-index-11= <&keysn_11>;
+               unifykey-index-12= <&keysn_12>;
+               unifykey-index-13= <&keysn_13>;
+
+               keysn_0: key_0{
+                       key-name = "usid";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_1:key_1{
+                       key-name = "mac";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_2:key_2{
+                       key-name = "hdcp";
+                       key-device = "secure";
+                       key-type = "sha1";
+                       key-permit = "read","write","del";
+               };
+               keysn_3:key_3{
+                       key-name = "secure_boot_set";
+                       key-device = "efuse";
+                       key-permit = "write";
+               };
+               keysn_4:key_4{
+                       key-name = "mac_bt";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+                       key-type  = "mac";
+               };
+               keysn_5:key_5{
+                       key-name = "mac_wifi";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+                       key-type = "mac";
+               };
+               keysn_6:key_6{
+                       key-name = "hdcp2_tx";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_7:key_7{
+                       key-name = "hdcp2_rx";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_8:key_8{
+                       key-name = "widevinekeybox";
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_9:key_9{
+                       key-name = "deviceid";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_10:key_10{
+                       key-name = "hdcp22_fw_private";
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_11:key_11{
+                       key-name = "PlayReadykeybox25";
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_12:key_12{
+                       key-name = "prpubkeybox";// PlayReady
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_13:key_13{
+                       key-name = "prprivkeybox";// PlayReady
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+       };//End unifykey
 };
+
 &efuse {
        status = "ok";
 };
-       &audio_i2s_pins {
-               mux {
-                       groups = "i2s_am_clk",
-                       "i2s_ao_clk_out",
-                       "i2s_lr_clk_out",
-                       "i2sout_ch01",
-                       "i2sin_ch23",
-                       "i2sin_ch45",
-                       "i2sin_ch67";
-                       function = "i2s";
-               };
+&audio_i2s_pins {
+       mux {
+               groups = "i2s_am_clk",
+               "i2s_ao_clk_out",
+               "i2s_lr_clk_out",
+               "i2sout_ch01",
+               "i2sin_ch23",
+               "i2sin_ch45",
+               "i2sin_ch67";
+               function = "i2s";
        };
+};
index 8113ddd..168a1c6 100644 (file)
                serial4 = &uart_AO_B;
        };
 
-       ion_dev {
-               compatible = "amlogic, ion_dev";
-               memory-region = <&ion_reserved>;
-       };
 
        memory@00000000 {
                device_type = "memory";
                        no-map;
                };
 
-               di_reserved:linux,di {
-                       compatible = "amlogic, di-mem";
-                       size = <0x0 0x1e00000>; //10x1920x1088x3/2=30M
-                       //no-map;
-               };
-
-               ion_reserved:linux,ion-dev {
-                       compatible = "amlogic, idev-mem";
-                       size = <0x0 0x2000000>;
-               };
-
-               ionvideo {
-                       compatible = "amlogic, ionvideo";
-                       dev_name = "ionvideo";
-                       status = "okay";
-               };
 
-               amlvideo {
-                       compatible = "amlogic, amlvideo";
-                       dev_name = "amlvideo";
-                       status = "okay";
-               };
-
-               /*  POST PROCESS MANAGER */
-               ppmgr_reserved:linux,ppmgr {
-                       compatible = "shared-dma-pool";
-                       size = <0x0 0x0>;
-               };
-
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       size = <0x0 0xc000000>;
-                       alignment = <0x0 0x400000>;
-                       linux,contiguous-region;
-               };
-               picdec_cma_reserved:linux,picdec {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       size = <0x0 0x0>;
-                       alignment = <0x0 0x0>;
-                       linux,contiguous-region;
-               };
-               /* codec shared reserved */
-               codec_mm_reserved:linux,codec_mm_reserved {
-                       compatible = "amlogic, codec-mm-reserved";
-                       size = <0x0 0x4100000>;
-                       alignment = <0x0 0x100000>;
-                       //no-map;
-               };
        };
 
        wifi{
                dev_name = "aml_wifi";
                status = "okay";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
-               interrupts = <  0 68 4>;
+               interrupts = <  0 68 4>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                pinctrl-names = "wifi_32k_pins";
                pinctrl-0 = <&wifi_32k_pins>;
+//             pwm_config = <&wifi_pwm_conf>;
        };
 
+//     wifi_pwm_conf:wifi_pwm_conf{
+//             pwm_channel1 = <PWM_E>;
+//             pwm_channel2 = <PWM_E2>;
+//             pwm_channel1_conf = <30541 15270 6>;
+//             pwm_channel2_conf = <30518 15259 9>;
+//     };
+
        sd_emmc_c: emmc@d0074000 {
                status = "disabled";
                compatible = "amlogic, meson-aml-mmc";
                };
        };
 
-       codec_mm {
-               compatible = "amlogic, codec, mm";
-               memory-region = <&codec_mm_cma &codec_mm_reserved>;
-               dev_name = "codec_mm";
-               status = "okay";
-       };
-
-       canvas{
-               compatible = "amlogic, meson, canvas";
-               dev_name = "amlogic-canvas";
-               status = "ok";
-               reg = <0x0 0xc8838000 0x0 0x400>;
-       };
+       aml_sensor0: aml-sensor@0 {
+               compatible = "amlogic, aml-thermal";
+               device_name = "thermal";
+               #thermal-sensor-cells = <1>;
+               cooling_devices {
+                       cpufreq_cool_cluster0 {
+                               min_state = <1000000>;
+                               dyn_coeff = <140>;
+                               cluster_id = <0>;
+                               node_name = "cpufreq_cool0";
+                               device_type = "cpufreq";
+                       };
+                       cpucore_cool_cluster0 {
+                               min_state = <1>;
+                               dyn_coeff = <0>;
+                               cluster_id = <0>;
+                               node_name = "cpucore_cool0";
+                               device_type = "cpucore";
+                       };
+                       gpufreq_cool {
+                               min_state = <400>;
+                               dyn_coeff = <437>;
+                               cluster_id = <0>;
+                               node_name = "gpufreq_cool0";
+                               device_type = "gpufreq";
+                       };
+                       gpucore_cool {
+                               min_state = <1>;
+                               dyn_coeff = <0>;
+                               cluster_id = <0>;
+                               node_name = "gpucore_cool0";
+                               device_type = "gpucore";
+                       };
+               };
+               cpufreq_cool0:cpufreq_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+               cpucore_cool0:cpucore_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+               gpufreq_cool0:gpufreq_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+               gpucore_cool0:gpucore_cool0 {
+                       #cooling-cells = <2>; /* min followed by max */
+               };
+       };
+       thermal-zones {
+               soc_thermal {
+                       polling-delay = <1000>;
+                       polling-delay-passive = <100>;
+                       sustainable-power = <2150>;
+
+                       thermal-sensors = <&aml_sensor0 3>;
+
+                       trips {
+                               switch_on: trip-point@0 {
+                                       temperature = <70000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+                               control: trip-point@1 {
+                                       temperature = <80000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+                               hot: trip-point@2 {
+                                       temperature = <85000>;
+                                       hysteresis = <5000>;
+                                       type = "hot";
+                               };
+                               critical: trip-point@3 {
+                                       temperature = <260000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
 
-       mesonstream {
-               compatible = "amlogic, codec, streambuf";
-               dev_name = "mesonstream";
-               status = "okay";
-               clocks = <&clkc CLKID_DOS_PARSER
-                       &clkc CLKID_VPU_INTR
-                       &clkc CLKID_DEMUX
-                       &clkc CLKID_DOS
-                       &clkc CLKID_VDEC_MUX
-                       &clkc CLKID_HCODEC_MUX
-                       &clkc CLKID_HEVC_MUX>;
-               clock-names = "parser_top",
-                       "vpu_intr",
-                       "demux",
-                       "vdec",
-                       "clk_vdec_mux",
-                       "clk_hcodec_mux",
-                       "clk_hevc_mux";
-       };
-
-       vdec {
-               compatible = "amlogic, vdec";
-               dev_name = "vdec.0";
-               status = "okay";
-               interrupts = <0 3 1
-                       0 23 1
-                       0 32 1
-                       0 43 1
-                       0 44 1
-                       0 45 1>;
-               interrupt-names = "vsync",
-                       "demux",
-                       "parser",
-                       "mailbox_0",
-                       "mailbox_1",
-                       "mailbox_2";
+                       cooling-maps {
+                               cpufreq_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&cpufreq_cool0 0 4>;
+                                       contribution = <1024>;
+                               };
+                               cpucore_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&cpucore_cool0 0 3>;
+                                       contribution = <1024>;
+                               };
+                               gpufreq_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&gpufreq_cool0 0 4>;
+                                       contribution = <1024>;
+                               };
+                               gpucore_cooling_map {
+                                       trip = <&control>;
+                                       cooling-device = <&gpucore_cool0 0 2>;
+                                       contribution = <1024>;
+                               };
+                       };
+               };
        };
 
-
        dwc3: dwc3@c9000000 {
                compatible = "synopsys, dwc3";
                reg = <0x0 0xc9000000 0x0 0x100000>;
                fr_auto_policy = <0>;
        };
 
-       cvbsout {
-               compatible = "amlogic, cvbsout";
-               dev_name = "cvbsout";
-               status = "okay";
-       };
-
-       amhdmitx: amhdmitx{
-               compatible = "amlogic, amhdmitx";
-               dev_name = "amhdmitx";
-               status = "okay";
-               vend-data = <&vend_data>;
-               pinctrl-names="hdmitx_hpd", "hdmitx_ddc";
-               pinctrl-0=<&hdmitx_hpd>;
-               pinctrl-1=<&hdmitx_ddc>;
-               /* HPD, 57 + 32 = 89; CEC, 151 + 32 = 183*/
-               interrupts = <0 57 1>;
-               interrupt-names = "hdmitx_hpd";
-               vend_data: vend_data{ /* Should modified by Customer */
-                       vendor_name = "Amlogic"; /* Max Chars: 8 */
-                       /* standards.ieee.org/develop/regauth/oui/oui.txt */
-                       vendor_id = <0x000000>;
-                       product_desc = "MBox Meson Ref"; /* Max Chars: 16 */
-               };
-       };
-
        meson-fb {
                compatible = "amlogic, meson-fb";
                memory-region = <&fb_reserved>;
                logo_addr = "0x3d851000";
                /*ion base + fb0 memory size for uboot logo osd1*/
        };
+
        ge2d {
                compatible = "amlogic, ge2d";
                dev_name = "ge2d";
                        "clk_ge2d_gate";
        };
 
-
-
        /* AUDIO MESON DEVICES */
        i2s_dai: I2S {
                #sound-dai-cells = <0>;
                };
        };
        /* END OF AUDIO board specific */
-
-       ppmgr {
-               compatible = "amlogic, ppmgr";
-               memory-region = <&ppmgr_reserved>;
-               dev_name = "ppmgr";
-               status = "okay";
-       };
-
        rdma{
                compatible = "amlogic, meson, rdma";
                dev_name = "amlogic-rdma";
                        mask = <4>;
                };
        };
+
+       unifykey{
+               compatible = "amlogic, unifykey";
+               status = "ok";
+
+               unifykey-num = <14>;
+               unifykey-index-0 = <&keysn_0>;
+               unifykey-index-1 = <&keysn_1>;
+               unifykey-index-2 = <&keysn_2>;
+               unifykey-index-3 = <&keysn_3>;
+               unifykey-index-4 = <&keysn_4>;
+               unifykey-index-5 = <&keysn_5>;
+               unifykey-index-6 = <&keysn_6>;
+               unifykey-index-7 = <&keysn_7>;
+               unifykey-index-8 = <&keysn_8>;
+               unifykey-index-9 = <&keysn_9>;
+               unifykey-index-10= <&keysn_10>;
+               unifykey-index-11= <&keysn_11>;
+               unifykey-index-12= <&keysn_12>;
+               unifykey-index-13= <&keysn_13>;
+
+               keysn_0: key_0{
+                       key-name = "usid";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_1:key_1{
+                       key-name = "mac";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_2:key_2{
+                       key-name = "hdcp";
+                       key-device = "secure";
+                       key-type = "sha1";
+                       key-permit = "read","write","del";
+               };
+               keysn_3:key_3{
+                       key-name = "secure_boot_set";
+                       key-device = "efuse";
+                       key-permit = "write";
+               };
+               keysn_4:key_4{
+                       key-name = "mac_bt";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+                       key-type  = "mac";
+               };
+               keysn_5:key_5{
+                       key-name = "mac_wifi";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+                       key-type = "mac";
+               };
+               keysn_6:key_6{
+                       key-name = "hdcp2_tx";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_7:key_7{
+                       key-name = "hdcp2_rx";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_8:key_8{
+                       key-name = "widevinekeybox";
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_9:key_9{
+                       key-name = "deviceid";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+               keysn_10:key_10{
+                       key-name = "hdcp22_fw_private";
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_11:key_11{
+                       key-name = "PlayReadykeybox25";
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_12:key_12{
+                       key-name = "prpubkeybox";// PlayReady
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+               keysn_13:key_13{
+                       key-name = "prprivkeybox";// PlayReady
+                       key-device = "secure";
+                       key-permit = "read","write","del";
+               };
+       };//End unifykey
 };
+
 &efuse {
        status = "ok";
 };
-       &audio_i2s_pins {
-               mux {
-                       groups = "i2s_am_clk",
-                       "i2s_ao_clk_out",
-                       "i2s_lr_clk_out",
-                       "i2sout_ch01",
-                       "i2sin_ch23",
-                       "i2sin_ch45",
-                       "i2sin_ch67";
-                       function = "i2s";
-               };
+&audio_i2s_pins {
+       mux {
+               groups = "i2s_am_clk",
+               "i2s_ao_clk_out",
+               "i2s_lr_clk_out",
+               "i2sout_ch01",
+               "i2sin_ch23",
+               "i2sin_ch45",
+               "i2sin_ch67";
+               function = "i2s";
        };
+};
index 8833918..d3696c5 100755 (executable)
@@ -11,3 +11,5 @@ make ARCH=arm64 gxl_p212_2g.dtb || echo "Compile dtb Fail !!"
 make ARCH=arm64 gxl_p212_1g.dtb || echo "Compile dtb Fail !!"
 
 make ARCH=arm64 gxl_p400_2g.dtb || echo "Compile dtb Fail !!"
+
+make ARCH=arm64 gxl_p401_2g.dtb || echo "Compile dtb Fail !!"