ARM: OMAP: dts and HWMOD entries for crypto modules
Subsystems (8)
cover ARM: OMAP: dts and HWMOD entries for crypto modules
Hi Tony, Benoit,
Here are some dts/hwmod patches for crypto on OMAP4 and DRA7, couple of them are resends and some are sent for first time now that clock nodes are available in dts.
If there's no other feedback, I would like these queued for v3.16. Thanks.
Patches 1,2 and 3 are dts, the rest are hwmod entries. The patches are rebased on v3.15-rc2. and can pulled from the Git repo below:
https://github.com/joelagnel/linux-kernel.git (branch v3.16/prep-dts)
Joel Fernandes (9):
ARM: OMAP: hwmod: Add SYSC offsets for AES IP
ARM: DRA7xx: hwmod: Add hwmod data for DES IP
ARM: DRA7xx: hwmod: Add hwmod data for AES IP
ARM: DRA7xx: Add hwmod entries for RNG module
ARM: OMAP4: hwmod: Add hwmod data for AES IP
ARM: OMAP4: hwmod: add hwmod data for DES IP
ARM: dts: DRA7: Add DT node for DES IP
ARM: dts: DRA7: Add DT node for AES IP
ARM: dts: OMAP4: Add clock nodes for AES/DES nodes
Lokesh Vutla (1):
ARM: dts: OMAP4: clk: Add clk node for DES IP
arch/arm/boot/dts/dra7.dtsi | 22 +++++ arch/arm/boot/dts/omap4.dtsi | 4 + arch/arm/boot/dts/omap44xx-clocks.dtsi | 8 ++ arch/arm/mach-omap2/omap_hwmod.h | 11 +++ arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 78 ++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 113 ++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_common_data.c | 10 +++ drivers/clk/ti/clk-44xx.c | 1 + 8 files changed, 247 insertions(+)
Signature · 1 line
1.7.9.5
PATCH 1/10 ARM: OMAP: hwmod: Add SYSC offsets for AES IP
The AES IP has the SIDLE offset by 2 and not 3, to allow SIDLE modes to work for AES, we add a new SYSC type to HWMOD code.
--- arch/arm/mach-omap2/omap_hwmod.h | 11 +++++++++++ arch/arm/mach-omap2/omap_hwmod_common_data.c | 10 ++++++++++ 2 files changed, 21 insertions(+)
arch/arm/mach-omap2/omap_hwmod.h +11 -0
@@ -41,6 +41,7 @@ struct omap_device;extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type1;extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2;extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type3; +extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type4;/* * OCP SYSCONFIG bit shifts/masks TYPE1. These are for IPs compliant
@@ -81,6 +82,16 @@ extern struct omap_hwmod_sysc_fields omap_hwmod_sysc_type3;#define SYSC_TYPE3_MIDLEMODE_SHIFT 2#define SYSC_TYPE3_MIDLEMODE_MASK (0x3 << SYSC_TYPE3_MIDLEMODE_SHIFT) +/* +* OCP SYSCONFIG bit shifts/masks TYPE4. +*/ +#define SYSC_TYPE4_SIDLEMODE_SHIFT 2 +#define SYSC_TYPE4_SIDLEMODE_MASK (0x3 << SYSC_TYPE4_SIDLEMODE_SHIFT) +#define SYSC_TYPE4_SOFTRESET_SHIFT 1 +#define SYSC_TYPE4_SOFTRESET_MASK (1 << SYSC_TYPE4_SOFTRESET_SHIFT) +#define SYSC_TYPE4_AUTOIDLE_SHIFT 0 +#define SYSC_TYPE4_AUTOIDLE_MASK (1 << SYSC_TYPE4_AUTOIDLE_SHIFT) +/* OCP SYSSTATUS bit shifts/masks */ #define SYSS_RESETDONE_SHIFT 0#define SYSS_RESETDONE_MASK (1 << SYSS_RESETDONE_SHIFT)
arch/arm/mach-omap2/omap_hwmod_common_data.c +10 -0
@@ -59,6 +59,16 @@ struct omap_hwmod_sysc_fields omap_hwmod_sysc_type3 = { .sidle_shift = SYSC_TYPE3_SIDLEMODE_SHIFT, }; +/** +* struct omap_hwmod_sysc_type4 - TYPE4 sysconfig scheme. +* Used by some IPs on AM33xx +*/ +struct omap_hwmod_sysc_fields omap_hwmod_sysc_type4 = { + .sidle_shift =SYSC_TYPE4_SIDLEMODE_SHIFT , + .srst_shift =SYSC_TYPE4_SOFTRESET_SHIFT , + .autoidle_shift =SYSC_TYPE4_AUTOIDLE_SHIFT , +}; +struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr = { .manager_count =2 , .has_framedonetv_irq =0
Signature · 1 line
1.7.9.5
PATCH 2/10 ARM: DRA7xx: hwmod: Add hwmod data for DES IP
In reply to Joel Fernandesdra7xx SoC has a DES module. Add the required data to hwmod.
--- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
arch/arm/mach-omap2/omap_hwmod_7xx_data.c +39 -0
@@ -561,6 +561,23 @@ static struct omap_hwmod_class dra7xx_gpio_hwmod_class = { .rev = 2, }; +static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = { + .rev_offs =0x0030 , + .sysc_offs =0x0034 , + .syss_offs =0x0038 , + .sysc_flags = (SYSC_HAS_AUTOIDLE | +SYSC_HAS_SIDLEMODE |SYSC_HAS_SOFTRESET | +SYSS_HAS_RESET_STATUS ), + .idlemodes = (SIDLE_FORCE |SIDLE_NO ), + .sysc_fields = &omap_hwmod_sysc_type4, +}; + +static struct omap_hwmod_class dra7xx_des_hwmod_class = { + .name ="des" , + .sysc = &dra7xx_des_sysc, + .rev =2 , +}; +/* gpio dev_attr */ static struct omap_gpio_dev_attr gpio_dev_attr = { .bank_width =32 ,
@@ -750,6 +767,19 @@ static struct omap_hwmod dra7xx_gpio8_hwmod = { .dev_attr = &gpio_dev_attr, }; +static struct omap_hwmod dra7xx_des_hwmod = { + .name ="des" , + .class = &dra7xx_des_hwmod_class, + .clkdm_name ="l4sec_clkdm" , + .prcm = { + .omap4 = { + .clkctrl_offs =DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET , + .context_offs =DRA7XX_RM_L4SEC_DES3DES_CONTEXT_OFFSET , + .modulemode =MODULEMODE_HWCTRL , + }, + }, +}; +/* * 'gpmc' class *
@@ -2170,6 +2200,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_per1 -> des */ +static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = { + .master = &dra7xx_l4_per1_hwmod, + .slave = &dra7xx_des_hwmod, + .clk ="l3_iclk_div" , + .user =OCP_USER_MPU |OCP_USER_SDMA , +}; +static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = { { .pa_start =0x50000000 ,
@@ -2704,6 +2742,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_per1__uart4, &dra7xx_l4_per1__uart5, &dra7xx_l4_per1__uart6, + &dra7xx_l4_per1__des, &dra7xx_l4_per3__usb_otg_ss1, &dra7xx_l4_per3__usb_otg_ss2, &dra7xx_l4_per3__usb_otg_ss3,
Signature · 1 line
1.7.9.5
PATCH 3/10 ARM: DRA7xx: hwmod: Add hwmod data for AES IP
In reply to Joel FernandesDRA7xx SoC has same AES IP as OMAP4. Add hwmod data for the same.
--- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
arch/arm/mach-omap2/omap_hwmod_7xx_data.c +39 -0
@@ -561,6 +561,17 @@ static struct omap_hwmod_class dra7xx_gpio_hwmod_class = { .rev = 2, }; +static struct omap_hwmod_class_sysconfig dra7xx_aes_sysc = { + .rev_offs =0x0080 , + .sysc_offs =0x0084 , + .syss_offs =0x0088 , + .sysc_flags = (SYSC_HAS_AUTOIDLE | +SYSC_HAS_SIDLEMODE |SYSC_HAS_SOFTRESET | +SYSS_HAS_RESET_STATUS ), + .idlemodes = (SIDLE_FORCE |SIDLE_NO |SIDLE_SMART ), + .sysc_fields = &omap_hwmod_sysc_type4, +}; +static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = { .rev_offs =0x0030 , .sysc_offs =0x0034 ,
@@ -572,6 +583,12 @@ static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = { .sysc_fields = &omap_hwmod_sysc_type4, }; +static struct omap_hwmod_class dra7xx_aes_hwmod_class = { + .name ="aes" , + .sysc = &dra7xx_aes_sysc, + .rev =2 , +}; +static struct omap_hwmod_class dra7xx_des_hwmod_class = { .name ="des" , .sysc = &dra7xx_des_sysc,
@@ -767,6 +784,19 @@ static struct omap_hwmod dra7xx_gpio8_hwmod = { .dev_attr = &gpio_dev_attr, }; +static struct omap_hwmod dra7xx_aes_hwmod = { + .name ="aes" , + .class = &dra7xx_aes_hwmod_class, + .clkdm_name ="l4sec_clkdm" , + .prcm = { + .omap4 = { + .clkctrl_offs =DRA7XX_CM_L4SEC_AES1_CLKCTRL_OFFSET , + .context_offs =DRA7XX_RM_L4SEC_AES1_CONTEXT_OFFSET , + .modulemode =MODULEMODE_HWCTRL , + }, + }, +}; +static struct omap_hwmod dra7xx_des_hwmod = { .name ="des" , .class = &dra7xx_des_hwmod_class,
@@ -2118,6 +2148,14 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l3_main_1 -> aes */ +static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes = { + .master = &dra7xx_l3_main_1_hwmod, + .slave = &dra7xx_aes_hwmod, + .clk ="l3_iclk_div" , + .user =OCP_USER_MPU |OCP_USER_SDMA , +}; +static struct omap_hwmod_addr_space dra7xx_elm_addrs[] = { { .pa_start =0x48078000 ,
@@ -2694,6 +2732,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l3_main_1__dss, &dra7xx_l3_main_1__dispc, &dra7xx_l3_main_1__hdmi, + &dra7xx_l3_main_1__aes, &dra7xx_l4_per1__elm, &dra7xx_l4_wkup__gpio1, &dra7xx_l4_per1__gpio2,
Signature · 1 line
1.7.9.5
PATCH 4/10 ARM: DRA7xx: Add hwmod entries for RNG module
In reply to Joel FernandesAdd the CLKCTRL offsets, SYSC offsets to the RNG module.
--- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
arch/arm/mach-omap2/omap_hwmod_7xx_data.c +35 -0
@@ -583,6 +583,15 @@ static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = { .sysc_fields = &omap_hwmod_sysc_type4, }; +/* rng */ +static struct omap_hwmod_class_sysconfig dra7xx_rng_sysc = { + .rev_offs =0x1fe0 , + .sysc_offs =0x1fe4 , + .sysc_flags =SYSC_HAS_AUTOIDLE |SYSC_HAS_SIDLEMODE , + .idlemodes =SIDLE_FORCE |SIDLE_NO , + .sysc_fields = &omap_hwmod_sysc_type1, +}; +static struct omap_hwmod_class dra7xx_aes_hwmod_class = { .name ="aes" , .sysc = &dra7xx_aes_sysc,
@@ -595,6 +604,11 @@ static struct omap_hwmod_class dra7xx_des_hwmod_class = { .rev = 2, }; +static struct omap_hwmod_class dra7xx_rng_hwmod_class = { + .name ="rng" , + .sysc = &dra7xx_rng_sysc, +}; +/* gpio dev_attr */ static struct omap_gpio_dev_attr gpio_dev_attr = { .bank_width =32 ,
@@ -810,6 +824,19 @@ static struct omap_hwmod dra7xx_des_hwmod = { }, }; +static struct omap_hwmod dra7xx_rng_hwmod = { + .name ="rng" , + .class = &dra7xx_rng_hwmod_class, + .clkdm_name ="l4sec_clkdm" , + .prcm = { + .omap4 = { + .clkctrl_offs =DRA7XX_CM_L4SEC_RNG_CLKCTRL_OFFSET , + .context_offs =DRA7XX_RM_L4SEC_RNG_CONTEXT_OFFSET , + .modulemode =MODULEMODE_HWCTRL , + }, + }, +}; +/* * 'gpmc' class *
@@ -2246,6 +2273,13 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_per1 -> rng */ +static struct omap_hwmod_ocp_if dra7xx_l4_per1__rng = { + .master = &dra7xx_l4_per1_hwmod, + .slave = &dra7xx_rng_hwmod, + .user =OCP_USER_MPU , +}; +static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = { { .pa_start =0x50000000 ,
@@ -2782,6 +2816,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_per1__uart5, &dra7xx_l4_per1__uart6, &dra7xx_l4_per1__des, + &dra7xx_l4_per1__rng, &dra7xx_l4_per3__usb_otg_ss1, &dra7xx_l4_per3__usb_otg_ss2, &dra7xx_l4_per3__usb_otg_ss3,
Signature · 1 line
1.7.9.5
PATCH 5/10 ARM: OMAP4: hwmod: Add hwmod data for AES IP
In reply to Joel FernandesCrypto modules AES0/1 belong to:
PD_L4_PER power domain
CD_L4_SEC clock domain
On the L3, the AES modules are mapped to
L3_CLK2: Peripherals and multimedia sub clock domain
We add hwmod data for the same.
--- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +43 -0
@@ -4782,6 +4782,48 @@ static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* +Crypto modules AES0/1 belong to: +PD_L4_PER power domain +CD_L4_SEC clock domain +On the L3, the AES modules are mapped to +L3_CLK2: Peripherals and multimedia sub clock domain +*/ + +static struct omap_hwmod_class_sysconfig omap4_aes1_sysc = { + .rev_offs =0x80 , + .sysc_offs =0x84 , + .syss_offs =0x88 , + .sysc_flags =SYSS_HAS_RESET_STATUS , + .sysc_fields = &omap_hwmod_sysc_type4, +}; + +static struct omap_hwmod_class omap4_aes1_hwmod_class = { + .name ="aes1" , + .sysc = &omap4_aes1_sysc, +}; + +static struct omap_hwmod omap4_aes1_hwmod = { + .name ="aes" , + .class = &omap4_aes1_hwmod_class, + .clkdm_name ="l4_secure_clkdm" , + .prcm = { + .omap4 = { + .clkctrl_offs =OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET , + .context_offs =OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET , + .modulemode =MODULEMODE_SWCTRL , + }, + }, +}; + +/* l3_main_2 -> aes1 */ +static struct omap_hwmod_ocp_if omap4_l3_main_2__aes1 = { + .master = &omap44xx_l3_main_2_hwmod, + .slave = &omap4_aes1_hwmod, + .clk ="aes1_fck" , + .user =OCP_USER_MPU |OCP_USER_SDMA , +}; +static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[]__initdata = { &omap44xx_l3_main_1__dmm, &omap44xx_mpu__dmm,
@@ -4936,6 +4978,7 @@ static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = { &omap44xx_l4_abe__wd_timer3_dma, &omap44xx_mpu__emif1, &omap44xx_mpu__emif2, + &omap4_l3_main_2__aes1, NULL, };
Signature · 1 line
1.7.9.5
PATCH 6/10 ARM: OMAP4: hwmod: add hwmod data for DES IP
In reply to Joel FernandesOMAP4 has a DES IP for DES and 3DES encryption, Add hwmod data for the same.
--- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +35 -0
@@ -4824,6 +4824,40 @@ static struct omap_hwmod_ocp_if omap4_l3_main_2__aes1 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* DES3DES */ +static struct omap_hwmod_class_sysconfig omap4_des_sysc = { + .rev_offs =0x30 , + .sysc_offs =0x34 , + .syss_offs =0x38 , + .sysc_flags =SYSS_HAS_RESET_STATUS , + .sysc_fields = &omap_hwmod_sysc_type4, +}; + +static struct omap_hwmod_class omap4_des_hwmod_class = { + .name ="des" , + .sysc = &omap4_des_sysc, +}; + +static struct omap_hwmod omap4_des_hwmod = { + .name ="des" , + .class = &omap4_des_hwmod_class, + .clkdm_name ="l4_secure_clkdm" , + .prcm = { + .omap4 = { + .clkctrl_offs =OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET , + .context_offs =OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET , + .modulemode =MODULEMODE_SWCTRL , + }, + }, +}; + +static struct omap_hwmod_ocp_if omap4_l4_per__des = { + .master = &omap44xx_l4_per_hwmod, + .slave = &omap4_des_hwmod, + .clk ="des_fck" , + .user =OCP_USER_MPU |OCP_USER_SDMA , +}; +static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[]__initdata = { &omap44xx_l3_main_1__dmm, &omap44xx_mpu__dmm,
@@ -4979,6 +5013,7 @@ static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = { &omap44xx_mpu__emif1, &omap44xx_mpu__emif2, &omap4_l3_main_2__aes1, + &omap4_l4_per__des, NULL, };
Signature · 1 line
1.7.9.5
PATCH 7/10 ARM: dts: DRA7: Add DT node for DES IP
In reply to Joel FernandesDRA7xx SoCs have a DES3DES IP. Add DT data for the same.
--- arch/arm/boot/dts/dra7.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/dra7.dtsi +11 -0
@@ -789,6 +789,17 @@ dma-names = "tx0", "rx0"; status = "disabled"; }; + + des: des at 480a5000 { + compatible = "ti,omap4-des"; + ti,hwmods = "des"; + reg = <0x480a5000 0xa0>; + interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&sdma 117>, <&sdma 116>; + dma-names = "tx", "rx"; + clocks = <&l3_iclk_div>; + clock-names = "fck"; + }; }; };
Signature · 1 line
1.7.9.5
Re: [PATCH 07/10] ARM: dts: DRA7: Add DT node for DES IP
Hello.
Quoted 12 lines · Joel Fernandes
DRA7xx SoCs have a DES3DES IP. Add DT data for the same.
Signed-off-by Joel Fernandes <[email protected]>--- arch/arm/boot/dts/dra7.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/dra7.dtsi +0
-0
arch/arm/boot/dts/dra7.dtsi line 793
Quoted 5 lines
arch/arm/boot/dts/dra7.dtsi +2
-0@@ -789,6 +789,17 @@ dma-names = "tx0", "rx0"; status = "disabled"; }; + + des: des@480a5000 {
Shouldn't the node name be "crypto@480a5000", according to the ePAPR standard?
WBR, Sergei
Re: [PATCH 07/10] ARM: dts: DRA7: Add DT node for DES IP
Quoted 11 lines · Sergei Shtylyov
Hello.
Quoted 6 lines · Joel Fernandes
DRA7xx SoCs have a DES3DES IP. Add DT data for the same.
Signed-off-by Joel Fernandes <[email protected]>--- arch/arm/boot/dts/dra7.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
Quoted 14 lines
arch/arm/boot/dts/dra7.dtsi line 793
Quoted 10 lines
arch/arm/boot/dts/dra7.dtsi +2
-0@@ -789,6 +789,17 @@ dma-names = "tx0", "rx0"; status = "disabled"; }; + + des: des at 480a5000 {Shouldn't the node name be "crypto at
480a5000", according to the ePAPR
standard?
Actually I'm not a big fan of the standard here in this regard. "crypto at 480a5000" doesn't mean anything and serves no purpose for anyone. There are quite a few crypto modules and such a name doesn't help and is confusing at best.
There's no property either in the device tree node itself to describe it as des, except for the phandle label which is used only at dt compile-time if I'm right. So makes sense to have the name be more specific.
This is how we have added dts nodes for other crypto modules in the past...
thanks,
-Joel
PATCH 8/10 ARM: dts: DRA7: Add DT node for AES IP
In reply to Joel FernandesDRA7 SoC has same AES IP as on OMAP4. Add DT entries for the same.
--- arch/arm/boot/dts/dra7.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/dra7.dtsi +11 -0
@@ -790,6 +790,17 @@ status = "disabled"; }; + aes: aes at 4b500000 { + compatible = "ti,omap4-aes"; + ti,hwmods = "aes"; + reg = <0x4b500000 0xa0>; + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&sdma 111>, <&sdma 110>; + dma-names = "tx", "rx"; + clocks = <&l3_iclk_div>; + clock-names = "fck"; + }; + des: des at 480a5000 { compatible = "ti,omap4-des"; ti,hwmods = "des";
Signature · 1 line
1.7.9.5
PATCH 9/10 ARM: dts: OMAP4: clk: Add clk node for DES IP
In reply to Joel FernandesFrom: Lokesh Vutla <[email protected]>
DES IP already has main and interface clk as des_fck. Node for des_fck is missing in clk tree. Adding the same.
--- arch/arm/boot/dts/omap44xx-clocks.dtsi | 8 ++++++++ drivers/clk/ti/clk-44xx.c | 1 + 2 files changed, 9 insertions(+)
arch/arm/boot/dts/omap44xx-clocks.dtsi +8 -0
@@ -985,6 +985,14 @@ reg = <0x15a8>; }; + des_fck: des_fck at 4a0095b0 { + #clock-cells = <0>; + compatible = "gate-clock"; + clocks = <&l3_div_ck>; + bit-shift = <1>; + reg = <0x4a0095b0 0x4>; + }; + dss_sys_clk: dss_sys_clk { #clock-cells = <0>; compatible = "ti,gate-clock";
drivers/clk/ti/clk-44xx.c +1 -0
@@ -120,6 +120,7 @@ static struct ti_dt_clk omap44xx_clks[] = {DT_CLK (NULL ,"syc_clk_div_ck" ,"syc_clk_div_ck" ),DT_CLK (NULL ,"aes1_fck" ,"aes1_fck" ),DT_CLK (NULL ,"aes2_fck" ,"aes2_fck" ), +DT_CLK (NULL ,"des_fck" ,"des_fck" ),DT_CLK (NULL ,"dmic_sync_mux_ck" ,"dmic_sync_mux_ck" ),DT_CLK (NULL ,"func_dmic_abe_gfclk" ,"func_dmic_abe_gfclk" ), DT_CLK(NULL, "dss_sys_clk", "dss_sys_clk"),
Signature · 1 line
1.7.9.5
Tero Kristo
NAKRe: [PATCH 09/10] ARM: dts: OMAP4: clk: Add clk node for DES IP
Quoted 17 lines · Joel Fernandes
From: Lokesh Vutla <[email protected]>
DES IP already has main and interface clk as
des_fck. Node fordes_fckis missing in clk tree. Adding the same.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by Joel Fernandes <[email protected]>--- arch/arm/boot/dts/omap44xx-clocks.dtsi | 8 ++++++++ drivers/clk/ti/clk-44xx.c | 1 + 2 files changed, 9 insertions(+)arch/arm/boot/dts/omap44xx-clocks.dtsi +0
-0
arch/arm/boot/dts/omap44xx-clocks.dtsi line 993
Quoted 9 lines
arch/arm/boot/dts/omap44xx-clocks.dtsi +6
-0@@ -985,6 +985,14 @@ reg = <0x15a8>; }; + des_fck: des_fck@4a0095b0 { + #clock-cells = <0>; + compatible = "gate-clock"; + clocks = <&l3_div_ck>; + bit-shift = <1>; + reg = <0x4a0095b0 0x4>;
NAK.
Obsolete compatible type used, also obsolete register format used.
-Tero
Quoted 18 lines
arch/arm/boot/dts/omap44xx-clocks.dtsi +2
-0+ }; + dss_sys_clk: dss_sys_clk { #clock-cells = <0>; compatible = "ti,gate-clock";drivers/clk/ti/clk-44xx.c +1
-0@@ -120,6 +120,7 @@ static struct ti_dt_clk omap44xx_clks[] = {DT_CLK (NULL ,"syc_clk_div_ck" ,"syc_clk_div_ck" ),DT_CLK (NULL ,"aes1_fck" ,"aes1_fck" ),DT_CLK (NULL ,"aes2_fck" ,"aes2_fck" ), +DT_CLK (NULL ,"des_fck" ,"des_fck" ),DT_CLK (NULL ,"dmic_sync_mux_ck" ,"dmic_sync_mux_ck" ),DT_CLK (NULL ,"func_dmic_abe_gfclk" ,"func_dmic_abe_gfclk" ), DT_CLK(NULL, "dss_sys_clk", "dss_sys_clk"),
PATCH 10/10 ARM: dts: OMAP4: Add clock nodes for AES/DES nodes
In reply to Joel FernandesAES/DES nodes have clock nodes in the clock tree, use them. Internal trees were using hwmod, but now that clock nodes are there, we can use them instead and upstream it.
--- arch/arm/boot/dts/omap4.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/omap4.dtsi +4 -0
@@ -806,6 +806,8 @@ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; dmas = <&sdma 111>, <&sdma 110>; dma-names = "tx", "rx"; + clocks = <&aes1_fck>; + clock-names = "fck"; }; des: des at 480a5000 {
@@ -815,6 +817,8 @@ interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; dmas = <&sdma 117>, <&sdma 116>; dma-names = "tx", "rx"; + clocks = <&des_fck>; + clock-names = "fck"; }; abb_mpu: regulator-abb-mpu {
Signature · 1 line
1.7.9.5