mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
dts: axg: add unifykey
PD#146698: add unifykey 1. add unifykey,usid,mac,secure_boot_set,mac_bt,mac_wifi,deviceid. 2. enable efuse. Change-Id: Ifcc902aae8d019235ef506fb6ba864feb29f3a3b Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
This commit is contained in:
@@ -774,7 +774,57 @@
|
||||
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 = <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>;
|
||||
|
||||
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 */
|
||||
|
||||
@@ -619,8 +619,58 @@
|
||||
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>;
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
/* for spk board */
|
||||
&i2c_b {
|
||||
status = "okay";
|
||||
|
||||
@@ -149,6 +149,24 @@
|
||||
reserve_mem_size = <0x00300000>;
|
||||
};
|
||||
|
||||
securitykey {
|
||||
compatible = "aml, securitykey";
|
||||
storage_query = <0x82000060>;
|
||||
storage_read = <0x82000061>;
|
||||
storage_write = <0x82000062>;
|
||||
storage_tell = <0x82000063>;
|
||||
storage_verify = <0x82000064>;
|
||||
storage_status = <0x82000065>;
|
||||
storage_list = <0x82000067>;
|
||||
storage_remove = <0x82000068>;
|
||||
storage_in_func = <0x82000023>;
|
||||
storage_out_func = <0x82000024>;
|
||||
storage_block_func = <0x82000025>;
|
||||
storage_size_func = <0x82000027>;
|
||||
storage_set_enctype = <0x8200006A>;
|
||||
storage_get_enctype = <0x8200006B>;
|
||||
storage_version = <0x8200006C>;
|
||||
};
|
||||
mailbox: mhu@c883c400 {
|
||||
compatible = "amlogic, meson_mhu";
|
||||
reg = <0x0 0xff63c400 0x0 0x4c>, /* MHU registers */
|
||||
@@ -704,6 +722,44 @@
|
||||
interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
|
||||
reg = <0x0 0xff809000 0x0 0x38>;
|
||||
};
|
||||
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";
|
||||
};
|
||||
|
||||
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 of / */
|
||||
|
||||
&pinctrl_aobus {
|
||||
|
||||
Reference in New Issue
Block a user