dts: axg: sync dts config
authorYueguie He <yuegui.he@amlogic.com>
Thu, 31 Aug 2017 07:15:10 +0000 (15:15 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 1 Sep 2017 09:12:51 +0000 (02:12 -0700)
PD#150185: dts: sync dts config

Change-Id: I3edcba36aefc1c487fcb8e31b4bdb23108b226cb
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
arch/arm64/boot/dts/amlogic/axg_a113d_skt.dts
arch/arm64/boot/dts/amlogic/axg_s400.dts
arch/arm64/boot/dts/amlogic/axg_s400_v03.dts
arch/arm64/boot/dts/amlogic/axg_s420_128m.dts
arch/arm64/boot/dts/amlogic/axg_s420_v03.dts

index a89e2cd..2240219 100644 (file)
                key_val = <0 143 266 389 512 635>; //val=voltage/1800mV*1023
                key_tolerance = <40 40 40 40 40 40>;
        };
+
+       unifykey{
+               compatible = "amlogic, unifykey";
+               status = "ok";
+
+               unifykey-num = <6>;
+               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>;
+
+               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 = "secure_boot_set";
+                       key-device = "efuse";
+                       key-permit = "write";
+               };
+               keysn_3:key_3{
+                       key-name = "mac_bt";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+                       key-type  = "mac";
+               };
+               keysn_4:key_4{
+                       key-name = "mac_wifi";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+                       key-type = "mac";
+               };
+               keysn_5:key_5{
+                       key-name = "deviceid";
+                       key-device = "normal";
+                       key-permit = "read","write","del";
+               };
+       };//End unifykey
+
 }; /* end of / */
+&efuse {
+       status = "ok";
+};
 
 /* Audio Related start */
 /* for spk board */
index 86a068d..330f2e7 100644 (file)
                interrupts = <  0 67 4>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
-               dhd_static_buf; //if use bcm wifi, config dhd_static_buf
+               dhd_static_buf; //if use bcm wifi, config dhd_static_buf
                pinctrl-names = "default";
                pinctrl-0 = <&wifi_32k_pins>;
                pwm_config = <&wifi_pwm_conf>;
index a59ad10..89c10c7 100644 (file)
                        f_max = <200000000>;
                        max_req_size = <0x20000>; /**128KB*/
                        gpio_dat3 = <&gpio BOOT_3 GPIO_ACTIVE_HIGH>;
+                       tx_delay = <8>;
                        hw_reset = <&gpio BOOT_9 GPIO_ACTIVE_HIGH>;
                        pinmux_base = <0xff634400>;
                        card_type = <1>;
index 0bda743..0b61aef 100644 (file)
                aml-audio-card,name = "AML-AXGSOUND";
                //aml-audio-card,mclk-fs = <256>;
 
+               aml-audio-card,loopback = <&aml_loopback>;
+
                aml-audio-card,dai-link@0 {
                        format = "dsp_a";
                        mclk-fs = <256>;//512
                        mclk-fs = <256>;
                        continuous-clock;
                        //bitclock-inversion;
-                       frame-inversion;
+                       //frame-inversion;
                        bitclock-master = <&aml_tdmb>;
                        frame-master = <&aml_tdmb>;
                        cpu {
                                dai-tdm-slot-width = <32>;
                        };
                        codec {
-                               sound-dai = <&tas5707_36 &tlv320adc3101_32>;
+                               sound-dai = <&tlv320adc3101_32>;
+                                       /*&tlv320adc3101_30>;*/
                        };
                };
 
                        continuous-clock;
                        /* tdmb clk using tdmc so no bclk-inv */
                        //bitclock-inversion;
-                       frame-inversion;
+                       //frame-inversion;
                        bitclock-master = <&aml_tdmc>;
                        frame-master = <&aml_tdmc>;
                        cpu {
                                dai-tdm-slot-width = <32>;
                        };
                        codec {
-                               sound-dai = <&dummy_codec>;
+                               sound-dai = <&tas5707_36 &dummy_codec>;
                        };
                };
 
                dai-tdm-clk-sel = <0>;
                tdm_from_ddr = <0>;
                tdm_to_ddr = <0>;
-               clocks = <&clkc CLKID_MPLL2>;
+               clocks = <&clkc CLKID_MPLL0>;
                                        //&clkaudio CLKID_AUDIO_TDMOUTA
                                        //&clkaudio CLKID_AUDIO_MCLK_A>;
                clock-names = "mpll0", "gate", "mclk";
                                GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
                interrupt-names = "tdmin", "tdmout";
                pinctrl-names = "tdm_pins";
-               pinctrl-0 = <&tdmout_a &tdmin_a &tdmout_a_data>;
+               pinctrl-0 = <&tdmin_a &tdmout_a  &tdmout_a_data>;
        };
 
        aml_tdmb: tdmb {
                #sound-dai-cells = <0>;
                dai-tdm-lane-slot-mask-out = <1 0>;
                dai-tdm-lane-slot-mask-in = <0 1>;
-               dai-tdm-clk-sel = <2>;
+               dai-tdm-clk-sel = <1>;
                tdm_from_ddr = <1>;
                tdm_to_ddr = <1>;
                clocks = <&clkc CLKID_MPLL1>;
                filter_mode = <1>; /* mode 0~4, defalut:1 */
                status = "okay";
        };
+
+       aml_loopback: loopback {
+               compatible = "amlogic, snd-loopback";
+               /*
+                * 0: out rate = in data rate;
+                * 1: out rate = loopback data rate;
+                */
+               lb_mode = <0>;
+
+               /* datain src
+                * 0: tdmin_a;
+                * 1: tdmin_b;
+                * 2: tdmin_c;
+                * 3: spdifin;
+                * 4: pdmin;
+                */
+               datain_src = <4>;
+               datain_chnum = <8>;
+               datain_chmask = <0xfc>;
+
+               /* tdmin_lb src
+                * 0: tdmoutA
+                * 1: tdmoutB
+                * 2: tdmoutC
+                * 3: PAD_tdminA
+                * 4: PAD_tdminB
+                * 5: PAD_tdminC
+                */
+               datalb_src = <2>;
+               datalb_chnum = <2>;
+               datalb_chmask = <0x3>;
+
+               status = "okay";
+       };
 }; /* end of audiobus */
 
 &pinctrl_periphs {
                        function = "tdma_in";
                };
        };
-
        tdmb_mclk: tdmb_mclk {
                mux {
                        pins = "GPIOA_1";
 
        tdmout_b: tdmout_b {
                mux {
-                       pins = "GPIOA_8", "GPIOA_9", "GPIOA_10";
+                       pins = "GPIOA_8", "GPIOA_9";
                        function = "tdmb_out";
                };
        };
         */
        tdmin_b: tdmin_b {
                mux {
-                       pins = "GPIOA_11";
+                       pins = "GPIOA_10","GPIOA_11";
                        function = "tdmb_in";
                };
        };
index 25a21cb..ae17615 100644 (file)
                                GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
                interrupt-names = "tdmin", "tdmout";
                pinctrl-names = "tdm_pins";
-               pinctrl-0 = <&tdmout_a &tdmin_a &tdmout_a_data>;
+               pinctrl-0 = <&tdmin_a &tdmout_a  &tdmout_a_data>;
        };
 
        aml_tdmb: tdmb {