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 */
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";
};
};