Add support for remoteprocs on the MSM8953 platform
Subsystems (4)
cover Add support for remoteprocs on the MSM8953 platform
Hi,
This patch series adds support for the audio DSP (q6v5_pas), modem (q6v5_mss), and WiFi (wcnss-pil) subsystems found on the MSM8953 platform. Device tree bindings for MSS and WCNSS have been converted to YAML. The relevant nodes have also been added to the MSM8953 device tree.
Sireesh Kodali (8):
remoteproc: qcom: pas: Add MSM8953 ADSP PIL support
remoteproc: qcom: q6v5-mss: Add modem support on MSM8953
dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
dt-bindings: remoteproc: qcom: wcnss: Add compatible for pronto v3
dt-bindings: remoteproc: qcom: mss: Convert bindings to YAML
dt-bindings: remoteproc: qcom: mss: Add MSS on MSM8953
dt-bindings: remoteproc: qcom: adsp: Add ADSP on MSM8953
arm64: dts: qcom: msm8953: Add remote processor nodes
Vladimir Lypak (1):
remoteproc: qcom: qcom_wcnss: Add support for pronto-v3
.../bindings/remoteproc/qcom,adsp.yaml | 5 + .../bindings/remoteproc/qcom,q6v5.txt | 302 -------- .../bindings/remoteproc/qcom,q6v5.yaml | 727 ++++++++++++++++++ .../bindings/remoteproc/qcom,wcnss-pil.txt | 177 ----- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 230 ++++++ arch/arm64/boot/dts/qcom/msm8953.dtsi | 378 +++++++++ drivers/remoteproc/qcom_q6v5_mss.c | 64 +- drivers/remoteproc/qcom_q6v5_pas.c | 31 + drivers/remoteproc/qcom_wcnss.c | 13 + 9 files changed, 1442 insertions(+), 485 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml
Signature · 1 line
2.36.0
PATCH 1/9 remoteproc: qcom: pas: Add MSM8953 ADSP PIL support
Add support for the Audio DSP PIL found on the Qualcomm MSM8953 platform. The same configuration is used on all SoCs based on the MSM8953 platform (SDM450, SDA450, SDM625, SDM632, APQ8053).
--- drivers/remoteproc/qcom_q6v5_pas.c | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
drivers/remoteproc/qcom_q6v5_pas.c +31 -0
@@ -617,7 +617,37 @@ static const struct adsp_data sm8350_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data msm8953_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + }, + .ssr_name ="lpass" , + .sysmon_name ="adsp" , + .ssctl_id =0x14 , +}; +static const struct adsp_data msm8996_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + }, + .ssr_name ="lpass" , + .sysmon_name ="adsp" , + .ssctl_id =0x14 , +}; + +static const struct adsp_data msm8998_adsp_resource = { .crash_reason_smem =423 , .firmware_name ="adsp.mdt" , .pas_id =1 ,
@@ -850,6 +880,7 @@ static const struct adsp_data sdx55_mpss_resource = {static const struct of_device_id adsp_of_match[] = { { .compatible ="qcom,msm8974-adsp-pil" , .data = &adsp_resource_init}, { .compatible ="qcom,msm8996-adsp-pil" , .data = &msm8996_adsp_resource}, + { .compatible ="qcom,msm8953-adsp-pil" , .data = &msm8953_adsp_resource}, { .compatible ="qcom,msm8996-slpi-pil" , .data = &slpi_resource_init}, { .compatible ="qcom,msm8998-adsp-pas" , .data = &msm8996_adsp_resource}, { .compatible ="qcom,msm8998-slpi-pas" , .data = &slpi_resource_init},
Signature · 1 line
2.36.0
Re: [PATCH 1/9] remoteproc: qcom: pas: Add MSM8953 ADSP PIL support
Quoted 38 lines · Sireesh Kodali
Add support for the Audio DSP PIL found on the Qualcomm MSM8953 platform. The same configuration is used on all SoCs based on the MSM8953 platform (SDM450, SDA450, SDM625, SDM632, APQ8053).
Signed-off-by Sireesh Kodali <[email protected]>--- drivers/remoteproc/qcom_q6v5_pas.c | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)drivers/remoteproc/qcom_q6v5_pas.c +20
-0@@ -617,7 +617,37 @@ static const struct adsp_data sm8350_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data msm8953_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + }, + .ssr_name ="lpass" , + .sysmon_name ="adsp" , + .ssctl_id =0x14 , +}; +static const struct adsp_data msm8996_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true,
drivers/remoteproc/qcom_q6v5_pas.c static const struct adsp_data sm8350_adsp_resource = { · line 650
Quoted 10 lines
drivers/remoteproc/qcom_q6v5_pas.c +10
-0+ .proxy_pd_names = (char*[]){ +"cx" , +NULL , + }, + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; + +static const struct adsp_data msm8998_adsp_resource = {
This was dropped in 9ae45035ba2be4117edb8fd3952c3c5b84a0b820. Please take care when rebasing your patches.
Quoted 11 lines
drivers/remoteproc/qcom_q6v5_pas.c +1
-0.crash_reason_smem = 423, .firmware_name = "adsp.mdt", .pas_id = 1,@@ -850,6 +880,7 @@ static const struct adsp_data sdx55_mpss_resource = {static const struct of_device_id adsp_of_match[] = { { .compatible ="qcom,msm8974-adsp-pil" , .data = &adsp_resource_init}, { .compatible ="qcom,msm8996-adsp-pil" , .data = &msm8996_adsp_resource}, + { .compatible ="qcom,msm8953-adsp-pil" , .data = &msm8953_adsp_resource}, { .compatible ="qcom,msm8996-slpi-pil" , .data = &slpi_resource_init}, { .compatible ="qcom,msm8998-adsp-pas" , .data = &msm8996_adsp_resource}, { .compatible ="qcom,msm8998-slpi-pas" , .data = &slpi_resource_init},
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 1/9] remoteproc: qcom: pas: Add MSM8953 ADSP PIL support
In reply to Sireesh KodaliQuoted 22 lines · Sireesh Kodali
Add support for the Audio DSP PIL found on the Qualcomm MSM8953 platform. The same configuration is used on all SoCs based on the MSM8953 platform (SDM450, SDA450, SDM625, SDM632, APQ8053).
Signed-off-by Sireesh Kodali <[email protected]>--- drivers/remoteproc/qcom_q6v5_pas.c | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)drivers/remoteproc/qcom_q6v5_pas.c +5
-0@@ -617,7 +617,37 @@ static const struct adsp_data sm8350_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data msm8953_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false,
drivers/remoteproc/qcom_q6v5_pas.c static const struct adsp_data sm8350_adsp_resource = { · line 634
Quoted 10 lines
drivers/remoteproc/qcom_q6v5_pas.c +10
-0+ .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + }, + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; +
Also it looks like this item is identical to msm8996_adsp_resources. So you can existing structure instead.
Quoted 27 lines
drivers/remoteproc/qcom_q6v5_pas.c +16
-0static const struct adsp_data msm8996_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + }, + .ssr_name ="lpass" , + .sysmon_name ="adsp" , + .ssctl_id =0x14 , +}; + +static const struct adsp_data msm8998_adsp_resource = { .crash_reason_smem =423 , .firmware_name ="adsp.mdt" , .pas_id =1 ,@@ -850,6 +880,7 @@ static const struct adsp_data sdx55_mpss_resource = {static const struct of_device_id adsp_of_match[] = { { .compatible ="qcom,msm8974-adsp-pil" , .data = &adsp_resource_init}, { .compatible ="qcom,msm8996-adsp-pil" , .data = &msm8996_adsp_resource}, + { .compatible ="qcom,msm8953-adsp-pil" , .data = &msm8953_adsp_resource}, { .compatible ="qcom,msm8996-slpi-pil" , .data = &slpi_resource_init}, { .compatible ="qcom,msm8998-adsp-pas" , .data = &msm8996_adsp_resource}, { .compatible ="qcom,msm8998-slpi-pas" , .data = &slpi_resource_init},
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 1/9] remoteproc: qcom: pas: Add MSM8953 ADSP PIL support
Quoted 28 lines · Dmitry Baryshkov
Quoted 27 lines · Sireesh Kodali
Add support for the Audio DSP PIL found on the Qualcomm MSM8953 platform. The same configuration is used on all SoCs based on the MSM8953 platform (SDM450, SDA450, SDM625, SDM632, APQ8053).
Signed-off-by Sireesh Kodali <[email protected]>--- drivers/remoteproc/qcom_q6v5_pas.c | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)drivers/remoteproc/qcom_q6v5_pas.c +10
-0@@ -617,7 +617,37 @@ static const struct adsp_data sm8350_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data msm8953_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + },
Quoted 9 lines
drivers/remoteproc/qcom_q6v5_pas.c static const struct adsp_data sm8350_adsp_resource = { · line 634
Quoted 5 lines
drivers/remoteproc/qcom_q6v5_pas.c +5
-0+ .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; +Also it looks like this item is identical to
msm8996_adsp_resources. So you can existing structure instead.
Yes, the msm8953 item is identical to the msm8996_adsp_resource. I wasn't aware that we could re-use structs like this, I will do that in v2 of this patch
Quoted 19 lines
Quoted 19 lines
drivers/remoteproc/qcom_q6v5_pas.c +15
-0static const struct adsp_data msm8996_adsp_resource = { + .crash_reason_smem =423 , + .firmware_name ="adsp.mdt" , + .pas_id =1 , + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char *[]){ +"cx" , +NULL , + }, + .ssr_name ="lpass" , + .sysmon_name ="adsp" , + .ssctl_id =0x14 , +}; + +static const struct adsp_data msm8998_adsp_resource = { .crash_reason_smem =423 , .firmware_name ="adsp.mdt" , .pas_id =1 ,
Quoted 13 lines
Quoted 8 lines
drivers/remoteproc/qcom_q6v5_pas.c +1
-0@@ -850,6 +880,7 @@ static const struct adsp_data sdx55_mpss_resource = {static const struct of_device_id adsp_of_match[] = { { .compatible ="qcom,msm8974-adsp-pil" , .data = &adsp_resource_init}, { .compatible ="qcom,msm8996-adsp-pil" , .data = &msm8996_adsp_resource}, + { .compatible ="qcom,msm8953-adsp-pil" , .data = &msm8953_adsp_resource}, { .compatible ="qcom,msm8996-slpi-pil" , .data = &slpi_resource_init}, { .compatible ="qcom,msm8998-adsp-pas" , .data = &msm8996_adsp_resource}, { .compatible ="qcom,msm8998-slpi-pas" , .data = &slpi_resource_init},Signature · 2 lines
With best wishes Dmitry
Thanks,
Sireesh
PATCH 2/9 remoteproc: qcom: q6v5-mss: Add modem support on MSM8953
In reply to Sireesh KodaliThe modem on the MSM8953 platform is similar to the modem on the MSM8996 platform in terms of set up. It differs primarily in the way it needs SCM to bless the MPSS firmware region.
--- drivers/remoteproc/qcom_q6v5_mss.c | 64 +++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 6 deletions(-)
drivers/remoteproc/qcom_q6v5_mss.c +58 -6
@@ -234,6 +234,7 @@ struct q6v5 {enum {MSS_MSM8916 , +MSS_MSM8953 ,MSS_MSM8974 ,MSS_MSM8996 ,MSS_MSM8998 ,
@@ -687,12 +688,14 @@ static int q6v5proc_reset(struct q6v5 *qproc) } goto pbl_wait; }else if (qproc->version ==MSS_MSM8996 || - qproc->version ==MSS_MSM8998 ) { + qproc->version ==MSS_MSM8998 || + qproc->version ==MSS_MSM8953 ) {int mem_pwr_ctl;/* Override the ACC value if required */ -writel (QDSP6SS_ACC_OVERRIDE_VAL , - qproc->reg_base +QDSP6SS_STRAP_ACC ); +if (qproc->version !=MSS_MSM8953 ) +writel (QDSP6SS_ACC_OVERRIDE_VAL , + qproc->reg_base +QDSP6SS_STRAP_ACC );/* Assert resets, stop core */ val =readl (qproc->reg_base +QDSP6SS_RESET_REG );
@@ -734,7 +737,8 @@ static int q6v5proc_reset(struct q6v5 *qproc)writel (val, qproc->reg_base +QDSP6SS_PWR_CTL_REG );/* Turn on L1, L2, ETB and JU memories 1 at a time */ -if (qproc->version ==MSS_MSM8996 ) { +if (qproc->version ==MSS_MSM8996 || + qproc->version ==MSS_MSM8953 ) { mem_pwr_ctl =QDSP6SS_MEM_PWR_CTL ; i =19 ; }else {
@@ -1314,7 +1318,16 @@ static int q6v5_mpss_load(struct q6v5 *qproc) max_addr =ALIGN (phdr->p_paddr + phdr->p_memsz,SZ_4K ); } -/* +if (qproc->version ==MSS_MSM8953 ) { + ret =qcom_scm_pas_mem_setup (5 , qproc->mpss_phys, qproc->mpss_size); +if (ret) { +dev_err (qproc->dev, +"setting up mpss memory failed: %d\n" , ret); + goto release_firmware; + } + } + +/** * In case of a modem subsystem restart on secure devices, the modem * memory can be reclaimed only after MBA is loaded. */
@@ -1413,7 +1426,6 @@ static int q6v5_mpss_load(struct q6v5 *qproc)writel (RMB_CMD_LOAD_READY , qproc->rmb_base +RMB_MBA_COMMAND_REG ); }writel (size, qproc->rmb_base +RMB_PMI_CODE_LENGTH_REG ); - ret =readl (qproc->rmb_base +RMB_MBA_STATUS_REG );if (ret <0 ) { dev_err(qproc->dev, "MPSS authentication failed: %d\n",
@@ -1422,6 +1434,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) } } +/* Transfer ownership of modem ddr region to q6 */ ret =q6v5_xfer_mem_ownership (qproc, &qproc->mpss_perm, false, true, qproc->mpss_phys, qproc->mpss_size);
@@ -2198,6 +2211,44 @@ static const struct rproc_hexagon_res msm8996_mss = { .version = MSS_MSM8996, }; +static const struct rproc_hexagon_res msm8953_mss = { + .hexagon_mba_image ="mba.mbn" , + .proxy_supply = (struct qcom_mss_reg_res []) { + { + .supply ="pll" , + .uA =100000 , + }, + {} + }, + .proxy_pd_names = (char *[]) { +"cx" , +"mx" , +NULL + }, + .active_supply = (struct qcom_mss_reg_res []) { + { + .supply ="mss" , + .uV =1050000 , + .uA =100000 , + }, + {} + }, + .proxy_clk_names = (char *[]){ +"xo" , +NULL + }, + .active_clk_names = (char *[]){ +"iface" , +"bus" , +"mem" , +NULL + }, + .need_mem_protection = false, + .has_alt_reset = false, + .has_spare_reg = false, + .version =MSS_MSM8953 , +}; +static const struct rproc_hexagon_res msm8916_mss = { .hexagon_mba_image ="mba.mbn" , .proxy_supply = (struct qcom_mss_reg_res []) {
@@ -2301,6 +2352,7 @@ static const struct of_device_id q6v5_of_match[] = { { .compatible = "qcom,msm8916-mss-pil", .data = &msm8916_mss}, { .compatible = "qcom,msm8974-mss-pil", .data = &msm8974_mss}, { .compatible = "qcom,msm8996-mss-pil", .data = &msm8996_mss}, + { .compatible = "qcom,msm8953-mss-pil", .data = &msm8953_mss}, { .compatible = "qcom,msm8998-mss-pil", .data = &msm8998_mss}, { .compatible = "qcom,sc7180-mss-pil", .data = &sc7180_mss}, { .compatible = "qcom,sc7280-mss-pil", .data = &sc7280_mss},
Signature · 1 line
2.36.0
Re: [PATCH 2/9] remoteproc: qcom: q6v5-mss: Add modem support on MSM8953
Quoted 54 lines · Sireesh Kodali
The modem on the MSM8953 platform is similar to the modem on the MSM8996 platform in terms of set up. It differs primarily in the way it needs SCM to bless the MPSS firmware region.
Signed-off-by Sireesh Kodali <[email protected]>--- drivers/remoteproc/qcom_q6v5_mss.c | 64 +++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 6 deletions(-)drivers/remoteproc/qcom_q6v5_mss.c +8
-5@@ -234,6 +234,7 @@ struct q6v5 {enum {MSS_MSM8916 , +MSS_MSM8953 ,MSS_MSM8974 ,MSS_MSM8996 ,MSS_MSM8998 ,@@ -687,12 +688,14 @@ static int q6v5proc_reset(struct q6v5 *qproc) } goto pbl_wait; }else if (qproc->version ==MSS_MSM8996 || - qproc->version ==MSS_MSM8998 ) { + qproc->version ==MSS_MSM8998 || + qproc->version ==MSS_MSM8953 ) {int mem_pwr_ctl;/* Override the ACC value if required */ -writel (QDSP6SS_ACC_OVERRIDE_VAL , - qproc->reg_base +QDSP6SS_STRAP_ACC ); +if (qproc->version !=MSS_MSM8953 ) +writel (QDSP6SS_ACC_OVERRIDE_VAL , + qproc->reg_base +QDSP6SS_STRAP_ACC );/* Assert resets, stop core */ val =readl (qproc->reg_base +QDSP6SS_RESET_REG );@@ -734,7 +737,8 @@ static int q6v5proc_reset(struct q6v5 *qproc)writel (val, qproc->reg_base +QDSP6SS_PWR_CTL_REG );/* Turn on L1, L2, ETB and JU memories 1 at a time */ -if (qproc->version ==MSS_MSM8996 ) { +if (qproc->version ==MSS_MSM8996 || + qproc->version ==MSS_MSM8953 ) { mem_pwr_ctl =QDSP6SS_MEM_PWR_CTL ; i =19 ; }else {@@ -1314,7 +1318,16 @@ static int q6v5_mpss_load(struct q6v5 *qproc) max_addr =ALIGN (phdr->p_paddr + phdr->p_memsz,SZ_4K ); } -/*
drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_mpss_load(struct q6v5 *qproc) · line 1330
Quoted 10 lines
drivers/remoteproc/qcom_q6v5_mss.c +10
-0+if (qproc->version ==MSS_MSM8953 ) { + ret =qcom_scm_pas_mem_setup (5 , qproc->mpss_phys, qproc->mpss_size); +if (ret) { +dev_err (qproc->dev, +"setting up mpss memory failed: %d\n" , ret); + goto release_firmware; + } + } + +/**
Single star please
Quoted 12 lines
drivers/remoteproc/qcom_q6v5_mss.c +0
-1* In case of a modem subsystem restart on secure devices, the modem * memory can be reclaimed only after MBA is loaded. */ @@ -1413,7 +1426,6 @@ static int q6v5_mpss_load(struct q6v5 *qproc)writel (RMB_CMD_LOAD_READY , qproc->rmb_base +RMB_MBA_COMMAND_REG ); }writel (size, qproc->rmb_base +RMB_PMI_CODE_LENGTH_REG ); - ret =readl (qproc->rmb_base +RMB_MBA_STATUS_REG );if (ret <0 ) { dev_err(qproc->dev, "MPSS authentication failed: %d\n",
drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_mpss_load(struct q6v5 *qproc) · line 1437
Quoted 4 lines
drivers/remoteproc/qcom_q6v5_mss.c +1
-0@@ -1422,6 +1434,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) } } +
Unnecessary
Quoted 32 lines
drivers/remoteproc/qcom_q6v5_mss.c +25
-0/* Transfer ownership of modem ddr region to q6 */ ret =q6v5_xfer_mem_ownership (qproc, &qproc->mpss_perm, false, true, qproc->mpss_phys, qproc->mpss_size);@@ -2198,6 +2211,44 @@ static const struct rproc_hexagon_res msm8996_mss = { .version = MSS_MSM8996, }; +static const struct rproc_hexagon_res msm8953_mss = { + .hexagon_mba_image ="mba.mbn" , + .proxy_supply = (struct qcom_mss_reg_res []) { + { + .supply ="pll" , + .uA =100000 , + }, + {} + }, + .proxy_pd_names = (char *[]) { +"cx" , +"mx" , +NULL + }, + .active_supply = (struct qcom_mss_reg_res []) { + { + .supply ="mss" , + .uV =1050000 , + .uA =100000 , + }, + {} + }, + .proxy_clk_names = (char *[]){ +"xo" , +NULL
drivers/remoteproc/qcom_q6v5_mss.c static const struct rproc_hexagon_res msm8996_mss = { · line 2248
Quoted 10 lines
drivers/remoteproc/qcom_q6v5_mss.c +10
-0+ }, + .active_clk_names = (char*[]){ +"iface" , +"bus" , +"mem" , +NULL + }, + .need_mem_protection = false, + .has_alt_reset = false, + .has_spare_reg = false,
Please follow the custom and define the rest of fields here.
Quoted 14 lines
drivers/remoteproc/qcom_q6v5_mss.c +4
-0+ .version = MSS_MSM8953, +}; +static const struct rproc_hexagon_res msm8916_mss = { .hexagon_mba_image ="mba.mbn" , .proxy_supply = (struct qcom_mss_reg_res []) {@@ -2301,6 +2352,7 @@ static const struct of_device_id q6v5_of_match[] = { { .compatible = "qcom,msm8916-mss-pil", .data = &msm8916_mss}, { .compatible = "qcom,msm8974-mss-pil", .data = &msm8974_mss}, { .compatible = "qcom,msm8996-mss-pil", .data = &msm8996_mss}, + { .compatible = "qcom,msm8953-mss-pil", .data = &msm8953_mss}, { .compatible = "qcom,msm8998-mss-pil", .data = &msm8998_mss}, { .compatible = "qcom,sc7180-mss-pil", .data = &sc7180_mss}, { .compatible = "qcom,sc7280-mss-pil", .data = &sc7280_mss},
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 2/9] remoteproc: qcom: q6v5-mss: Add modem support on MSM8953
Quoted 83 lines · Dmitry Baryshkov
Quoted 54 lines · Sireesh Kodali
The modem on the MSM8953 platform is similar to the modem on the MSM8996 platform in terms of set up. It differs primarily in the way it needs SCM to bless the MPSS firmware region.
Signed-off-by Sireesh Kodali <[email protected]>--- drivers/remoteproc/qcom_q6v5_mss.c | 64 +++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 6 deletions(-)drivers/remoteproc/qcom_q6v5_mss.c +8
-5@@ -234,6 +234,7 @@ struct q6v5 {enum {MSS_MSM8916 , +MSS_MSM8953 ,MSS_MSM8974 ,MSS_MSM8996 ,MSS_MSM8998 ,@@ -687,12 +688,14 @@ static int q6v5proc_reset(struct q6v5 *qproc) } goto pbl_wait; }else if (qproc->version ==MSS_MSM8996 || - qproc->version ==MSS_MSM8998 ) { + qproc->version ==MSS_MSM8998 || + qproc->version ==MSS_MSM8953 ) {int mem_pwr_ctl;/* Override the ACC value if required */ -writel (QDSP6SS_ACC_OVERRIDE_VAL , - qproc->reg_base +QDSP6SS_STRAP_ACC ); +if (qproc->version !=MSS_MSM8953 ) +writel (QDSP6SS_ACC_OVERRIDE_VAL , + qproc->reg_base +QDSP6SS_STRAP_ACC );/* Assert resets, stop core */ val =readl (qproc->reg_base +QDSP6SS_RESET_REG );@@ -734,7 +737,8 @@ static int q6v5proc_reset(struct q6v5 *qproc)writel (val, qproc->reg_base +QDSP6SS_PWR_CTL_REG );/* Turn on L1, L2, ETB and JU memories 1 at a time */ -if (qproc->version ==MSS_MSM8996 ) { +if (qproc->version ==MSS_MSM8996 || + qproc->version ==MSS_MSM8953 ) { mem_pwr_ctl =QDSP6SS_MEM_PWR_CTL ; i =19 ; }else {@@ -1314,7 +1318,16 @@ static int q6v5_mpss_load(struct q6v5 *qproc) max_addr =ALIGN (phdr->p_paddr + phdr->p_memsz,SZ_4K ); } -/* drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_mpss_load(struct q6v5 *qproc) · line 1330
Quoted 10 lines
drivers/remoteproc/qcom_q6v5_mss.c +10
-0+if (qproc->version ==MSS_MSM8953 ) { + ret =qcom_scm_pas_mem_setup (5 , qproc->mpss_phys, qproc->mpss_size); +if (ret) { +dev_err (qproc->dev, +"setting up mpss memory failed: %d\n" , ret); + goto release_firmware; + } + } + +/** Single star please
Quoted 15 lines
drivers/remoteproc/qcom_q6v5_mss.c +0
-1* In case of a modem subsystem restart on secure devices, the modem * memory can be reclaimed only after MBA is loaded. */ @@ -1413,7 +1426,6 @@ static int q6v5_mpss_load(struct q6v5 *qproc)writel (RMB_CMD_LOAD_READY , qproc->rmb_base +RMB_MBA_COMMAND_REG ); }writel (size, qproc->rmb_base +RMB_PMI_CODE_LENGTH_REG ); - ret =readl (qproc->rmb_base +RMB_MBA_STATUS_REG );if (ret <0 ) { dev_err(qproc->dev, "MPSS authentication failed: %d\n",@@ -1422,6 +1434,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) } }
Quoted 4 lines
drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_mpss_load(struct q6v5 *qproc) · line 1437
Quoted 1 line
drivers/remoteproc/qcom_q6v5_mss.c +1
-0+Unnecessary
oops
Quoted 37 lines
Quoted 37 lines
drivers/remoteproc/qcom_q6v5_mss.c +30
-0/* Transfer ownership of modem ddr region to q6 */ ret =q6v5_xfer_mem_ownership (qproc, &qproc->mpss_perm, false, true, qproc->mpss_phys, qproc->mpss_size);@@ -2198,6 +2211,44 @@ static const struct rproc_hexagon_res msm8996_mss = { .version = MSS_MSM8996, }; +static const struct rproc_hexagon_res msm8953_mss = { + .hexagon_mba_image ="mba.mbn" , + .proxy_supply = (struct qcom_mss_reg_res []) { + { + .supply ="pll" , + .uA =100000 , + }, + {} + }, + .proxy_pd_names = (char *[]) { +"cx" , +"mx" , +NULL + }, + .active_supply = (struct qcom_mss_reg_res []) { + { + .supply ="mss" , + .uV =1050000 , + .uA =100000 , + }, + {} + }, + .proxy_clk_names = (char *[]){ +"xo" , +NULL + }, + .active_clk_names = (char *[]){ +"iface" , +"bus" , +"mem" ,
Quoted 9 lines
drivers/remoteproc/qcom_q6v5_mss.c static const struct rproc_hexagon_res msm8996_mss = { · line 2248
Quoted 5 lines
drivers/remoteproc/qcom_q6v5_mss.c +5
-0+NULL + }, + .need_mem_protection = false, + .has_alt_reset = false, + .has_spare_reg = false,Please follow the custom and define the rest of fields here.
I missed these in the rebase, I'll add them in v2
Quoted 6 lines
Quoted 6 lines
drivers/remoteproc/qcom_q6v5_mss.c +3
-0+ .version = MSS_MSM8953, +}; +static const struct rproc_hexagon_res msm8916_mss = { .hexagon_mba_image ="mba.mbn" , .proxy_supply = (struct qcom_mss_reg_res []) {
Quoted 13 lines
Quoted 8 lines
drivers/remoteproc/qcom_q6v5_mss.c +1
-0@@ -2301,6 +2352,7 @@ static const struct of_device_id q6v5_of_match[] = { { .compatible = "qcom,msm8916-mss-pil", .data = &msm8916_mss}, { .compatible = "qcom,msm8974-mss-pil", .data = &msm8974_mss}, { .compatible = "qcom,msm8996-mss-pil", .data = &msm8996_mss}, + { .compatible = "qcom,msm8953-mss-pil", .data = &msm8953_mss}, { .compatible = "qcom,msm8998-mss-pil", .data = &msm8998_mss}, { .compatible = "qcom,sc7180-mss-pil", .data = &sc7180_mss}, { .compatible = "qcom,sc7280-mss-pil", .data = &sc7280_mss},Signature · 2 lines
With best wishes Dmitry
Thank you for the review, I'll make the changes in v2 of this patch.
Thanks,
Sireesh
Re: [PATCH 2/9] remoteproc: qcom: q6v5-mss: Add modem support on MSM8953
In reply to Dmitry BaryshkovQuoted 54 lines · Dmitry Baryshkov
Quoted 53 lines · Sireesh Kodali
The modem on the MSM8953 platform is similar to the modem on the MSM8996 platform in terms of set up. It differs primarily in the way it needs SCM to bless the MPSS firmware region.
Signed-off-by Sireesh Kodali <[email protected]>--- drivers/remoteproc/qcom_q6v5_mss.c | 64 +++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 6 deletions(-)drivers/remoteproc/qcom_q6v5_mss.c +8
-4@@ -234,6 +234,7 @@ struct q6v5 {enum {MSS_MSM8916 , +MSS_MSM8953 ,MSS_MSM8974 ,MSS_MSM8996 ,MSS_MSM8998 ,@@ -687,12 +688,14 @@ static int q6v5proc_reset(struct q6v5 *qproc) } goto pbl_wait; }else if (qproc->version ==MSS_MSM8996 || - qproc->version ==MSS_MSM8998 ) { + qproc->version ==MSS_MSM8998 || + qproc->version ==MSS_MSM8953 ) {int mem_pwr_ctl;/* Override the ACC value if required */ -writel (QDSP6SS_ACC_OVERRIDE_VAL , - qproc->reg_base +QDSP6SS_STRAP_ACC ); +if (qproc->version !=MSS_MSM8953 ) +writel (QDSP6SS_ACC_OVERRIDE_VAL , + qproc->reg_base +QDSP6SS_STRAP_ACC );/* Assert resets, stop core */ val =readl (qproc->reg_base +QDSP6SS_RESET_REG );@@ -734,7 +737,8 @@ static int q6v5proc_reset(struct q6v5 *qproc)writel (val, qproc->reg_base +QDSP6SS_PWR_CTL_REG );/* Turn on L1, L2, ETB and JU memories 1 at a time */ -if (qproc->version ==MSS_MSM8996 ) { +if (qproc->version ==MSS_MSM8996 || + qproc->version ==MSS_MSM8953 ) { mem_pwr_ctl =QDSP6SS_MEM_PWR_CTL ; i =19 ; }else {@@ -1314,7 +1318,16 @@ static int q6v5_mpss_load(struct q6v5 *qproc) max_addr =ALIGN (phdr->p_paddr + phdr->p_memsz,SZ_4K ); }
Quoted 13 lines
drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_mpss_load(struct q6v5 *qproc) · line 1330
Quoted 11 lines
drivers/remoteproc/qcom_q6v5_mss.c +10
-1-/* +if (qproc->version ==MSS_MSM8953 ) { + ret =qcom_scm_pas_mem_setup (5 , qproc->mpss_phys, qproc->mpss_size); +if (ret) { +dev_err (qproc->dev, +"setting up mpss memory failed: %d\n" , ret); + goto release_firmware; + } + } + +/** Single star please
Will fix in v2
Quoted 16 lines
Quoted 16 lines
drivers/remoteproc/qcom_q6v5_mss.c +0
-1* In case of a modem subsystem restart on secure devices, the modem * memory can be reclaimed only after MBA is loaded. */ @@ -1413,7 +1426,6 @@ static int q6v5_mpss_load(struct q6v5 *qproc)writel (RMB_CMD_LOAD_READY , qproc->rmb_base +RMB_MBA_COMMAND_REG ); }writel (size, qproc->rmb_base +RMB_PMI_CODE_LENGTH_REG ); - ret =readl (qproc->rmb_base +RMB_MBA_STATUS_REG );if (ret <0 ) { dev_err(qproc->dev, "MPSS authentication failed: %d\n",@@ -1422,6 +1434,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) } }
Quoted 3 lines
drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_mpss_load(struct q6v5 *qproc) · line 1437
Quoted 1 line
drivers/remoteproc/qcom_q6v5_mss.c +1
-0+Unnecessary
Will fix in v2
Quoted 39 lines
Quoted 39 lines
drivers/remoteproc/qcom_q6v5_mss.c +30
-0/* Transfer ownership of modem ddr region to q6 */ ret =q6v5_xfer_mem_ownership (qproc, &qproc->mpss_perm, false, true, qproc->mpss_phys, qproc->mpss_size);@@ -2198,6 +2211,44 @@ static const struct rproc_hexagon_res msm8996_mss = { .version = MSS_MSM8996, }; +static const struct rproc_hexagon_res msm8953_mss = { + .hexagon_mba_image ="mba.mbn" , + .proxy_supply = (struct qcom_mss_reg_res []) { + { + .supply ="pll" , + .uA =100000 , + }, + {} + }, + .proxy_pd_names = (char *[]) { +"cx" , +"mx" , +NULL + }, + .active_supply = (struct qcom_mss_reg_res []) { + { + .supply ="mss" , + .uV =1050000 , + .uA =100000 , + }, + {} + }, + .proxy_clk_names = (char *[]){ +"xo" , +NULL + }, + .active_clk_names = (char *[]){ +"iface" , +"bus" , +"mem" ,
Quoted 8 lines
drivers/remoteproc/qcom_q6v5_mss.c static const struct rproc_hexagon_res msm8996_mss = { · line 2248
Quoted 5 lines
drivers/remoteproc/qcom_q6v5_mss.c +5
-0+NULL + }, + .need_mem_protection = false, + .has_alt_reset = false, + .has_spare_reg = false,Please follow the custom and define the rest of fields here.
Will fix in v2
Quoted 20 lines
Quoted 15 lines
drivers/remoteproc/qcom_q6v5_mss.c +4
-0+ .version = MSS_MSM8953, +}; +static const struct rproc_hexagon_res msm8916_mss = { .hexagon_mba_image ="mba.mbn" , .proxy_supply = (struct qcom_mss_reg_res []) {@@ -2301,6 +2352,7 @@ static const struct of_device_id q6v5_of_match[] = { { .compatible = "qcom,msm8916-mss-pil", .data = &msm8916_mss}, { .compatible = "qcom,msm8974-mss-pil", .data = &msm8974_mss}, { .compatible = "qcom,msm8996-mss-pil", .data = &msm8996_mss}, + { .compatible = "qcom,msm8953-mss-pil", .data = &msm8953_mss}, { .compatible = "qcom,msm8998-mss-pil", .data = &msm8998_mss}, { .compatible = "qcom,sc7180-mss-pil", .data = &sc7180_mss}, { .compatible = "qcom,sc7280-mss-pil", .data = &sc7280_mss},Signature · 2 lines
With best wishes Dmitry
Thanks,
Sireesh
PATCH 3/9 remoteproc: qcom: qcom_wcnss: Add support for pronto-v3
In reply to Sireesh KodaliFrom: Vladimir Lypak <[email protected]>
Pronto-v3 is similar to pronto-v2. It requires two power domains, and it requires the xo clock. It is used on the MSM8953 platform.
--- drivers/remoteproc/qcom_wcnss.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/remoteproc/qcom_wcnss.c +13 -0
@@ -141,6 +141,18 @@ static const struct wcnss_data pronto_v2_data = { .num_vregs = 1, }; +static const struct wcnss_data pronto_v3_data = { + .pmu_offset =0x1004 , + .spare_offset =0x1088 , + + .pd_names = {"mx" ,"cx" }, + .vregs = (struct wcnss_vreg_info []) { + {"vddpx" ,1800000 ,1800000 ,0 }, + }, + .num_pd_vregs =2 , + .num_vregs =1 , +}; +static int wcnss_load (struct rproc *rproc,const struct firmware *fw) {struct qcom_wcnss *wcnss = (struct qcom_wcnss *)rproc->priv;
@@ -669,6 +681,7 @@ static const struct of_device_id wcnss_of_match[] = { { .compatible = "qcom,riva-pil", &riva_data }, { .compatible = "qcom,pronto-v1-pil", &pronto_v1_data }, { .compatible = "qcom,pronto-v2-pil", &pronto_v2_data }, + { .compatible = "qcom,pronto-v3-pil", &pronto_v3_data }, { }, };MODULE_DEVICE_TABLE (of, wcnss_of_match);
Signature · 1 line
2.36.0
PATCH 4/9 dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
In reply to Sireesh KodaliConvert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
--- .../bindings/remoteproc/qcom,wcnss-pil.txt | 177 -------------- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 228 ++++++++++++++++++ 2 files changed, 228 insertions(+), 177 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt deleted +0 -177
@@ -1,177 +0,0 @@ -Qualcomm WCNSS Peripheral Image Loader - -This document defines the binding for a component that loads and boots firmware -on the Qualcomm WCNSS core. - -- compatible: - Usage: required - Value type: <string> - Definition: must be one of: - "qcom,riva-pil", - "qcom,pronto-v1-pil", - "qcom,pronto-v2-pil" - -- reg: - Usage: required - Value type: <prop-encoded-array> - Definition: must specify the base address and size of the CCU, DXE and - PMU register blocks - -- reg-names: - Usage: required - Value type: <stringlist> - Definition: must be "ccu", "dxe", "pmu" - -- interrupts-extended: - Usage: required - Value type: <prop-encoded-array> - Definition: must list the watchdog and fatal IRQs and may specify the - ready, handover and stop-ack IRQs - -- interrupt-names: - Usage: required - Value type: <stringlist> - Definition: should be "wdog", "fatal", optionally followed by "ready", - "handover", "stop-ack" - -- firmware-name: - Usage: optional - Value type: <string> - Definition: must list the relative firmware image path for the - WCNSS core. Defaults to "wcnss.mdt". - -- vddmx-supply: (deprecated for qcom,pronto-v1/2-pil) -- vddcx-supply: (deprecated for qcom,pronto-v1/2-pil) -- vddpx-supply: - Usage: required - Value type: <phandle> - Definition: reference to the regulators to be held on behalf of the - booting of the WCNSS core - -- power-domains: - Usage: required (for qcom,pronto-v1/2-pil) - Value type: <phandle> - Definition: reference to the power domains to be held on behalf of the - booting of the WCNSS core - -- power-domain-names: - Usage: required (for qcom,pronto-v1/2-pil) - Value type: <stringlist> - Definition: must be "cx", "mx" - -- qcom,smem-states: - Usage: optional - Value type: <prop-encoded-array> - Definition: reference to the SMEM state used to indicate to WCNSS that - it should shut down - -- qcom,smem-state-names: - Usage: optional - Value type: <stringlist> - Definition: should be "stop" - -- memory-region: - Usage: required - Value type: <prop-encoded-array> - Definition: reference to reserved-memory node for the remote processor - see ../reserved-memory/reserved-memory.txt - -= SUBNODES -A required subnode of the WCNSS PIL is used to describe the attached rf module -and its resource dependencies. It is described by the following properties: - -- compatible: - Usage: required - Value type: <string> - Definition: must be one of: - "qcom,wcn3620", - "qcom,wcn3660", - "qcom,wcn3660b", - "qcom,wcn3680" - -- clocks: - Usage: required - Value type: <prop-encoded-array> - Definition: should specify the xo clock and optionally the rf clock - -- clock-names: - Usage: required - Value type: <stringlist> - Definition: should be "xo", optionally followed by "rf" - -- vddxo-supply: -- vddrfa-supply: -- vddpa-supply: -- vdddig-supply: - Usage: required - Value type: <phandle> - Definition: reference to the regulators to be held on behalf of the - booting of the WCNSS core - - -The wcnss node can also have an subnode named "smd-edge" that describes the SMD -edge, channels and devices related to the WCNSS. -See ../soc/qcom/qcom,smd.txt for details on how to describe the SMD edge. - -= EXAMPLE -The following example describes the resources needed to boot control the WCNSS, -with attached WCN3680, as it is commonly found on MSM8974 boards. - -pronto@fb204000 { - compatible = "qcom,pronto-v2-pil"; - reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>; - reg-names = "ccu", "dxe", "pmu"; - - interrupts-extended = <&intc 0 149 1>, - <&wcnss_smp2p_slave 0 0>, - <&wcnss_smp2p_slave 1 0>, - <&wcnss_smp2p_slave 2 0>, - <&wcnss_smp2p_slave 3 0>; - interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; - - power-domains = <&rpmpd MSM8974_VDDCX>, <&rpmpd MSM8974_VDDMX>; - power-domain-names = "cx", "mx"; - - vddpx-supply = <&pm8941_s3>; - - qcom,smem-states = <&wcnss_smp2p_out 0>; - qcom,smem-state-names = "stop"; - - memory-region = <&wcnss_region>; - - pinctrl-names = "default"; - pinctrl-0 = <&wcnss_pin_a>; - - iris { - compatible = "qcom,wcn3680"; - - clocks = <&rpmcc RPM_CXO_CLK_SRC>, <&rpmcc RPM_CXO_A2>; - clock-names = "xo", "rf"; - - vddxo-supply = <&pm8941_l6>; - vddrfa-supply = <&pm8941_l11>; - vddpa-supply = <&pm8941_l19>; - vdddig-supply = <&pm8941_s3>; - }; - - smd-edge { - interrupts = <0 142 1>; - - qcom,ipc = <&apcs 8 17>; - qcom,smd-edge = <6>; - qcom,remote-pid = <4>; - - label = "pronto"; - - wcnss { - compatible = "qcom,wcnss"; - qcom,smd-channels = "WCNSS_CTRL"; - - qcom,mmio = <&pronto>; - - bt { - compatible = "qcom,wcnss-bt"; - }; - }; - }; -};
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +228 -0
228 lines not on this page · raw message
Signature · 1 line
2.36.0
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 4 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>
Thank you for your patch. There is something to discuss/improve.
Please use existing bindings or example-schema as a starting point. Half of my review could be skipped if you just followed what we already have in the tree.
Some of these qcom specific properties already exist but you decided to write them differently... please don't, rather reuse the code.
(...)
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ +maintainers: + - Bjorn Andersson <[email protected]> + +description: + This document defines the binding for a component that loads and boots
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ firmware on the Qualcomm WCNSS core. + +properties: + compatible: + oneOf: + - items: + - enum: + - qcom,pronto-v2-pil + - enum: + - qcom,pronto
This does not look correct. The fallback compatible should not change. What is more, it was not documented in original binding, so this should be done in separate patch.
Quoted 1 line
+ - items:
No need for items, it's just one item.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 32
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +8
-0+ - enum: + - qcom,riva-pil + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + + reg: + description: must specify the base address and size of the CCU, DXE and PMU + register blocks
New line after "decription:", drop "must specify" and start with capital letter.
You need maxItems: 3
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 42
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + reg-names: + items: + - const: ccu + - const: dxe + - const: pmu + + interrupts-extended: + description: + Interrupt lines
Skip description, it's obvious.
It should be only "interrupts", not extended.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 48
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ minItems: 2 + maxItems: 5 + + interrupt-names: + minItems: 2 + maxItems: 5
Names should be clearly defined. They were BTW defined in original bindings, so you should not remove them. This makes me wonder what else did you remove from original bindings...
Please document all deviations from pure conversion in the commit msg. It's a second "hidden" difference.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 53
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Relative firmware image path for the WCNSS core. Defaults to + "wcnss.mdt".
Blank line after "description:". This applies to other places as well.
Remove "Defailts to ..." and just add "default" schema.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 65
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ + vddpx-supply: + description: Reference to the PX regulator to be held on behalf of the + booting of the WCNSS core + + vddmx-supply: + description: Reference to the MX regulator to be held on behalf of the + booting of the WCNSS core. + + vddcx-supply: + description: Reference to the CX regulator to be held on behalf of the + booting of the WCNSS core.
s/Reference to the//
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 70
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + power-domains: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: References to the power domains that need to be held on + behalf of the booting WCNSS core
1. Ditto.
2. No need for ref
3. maxItems
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 73
Quoted 3 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ + power-domain-names: + $ref: /schemas/types.yaml#/definitions/string-array
No need for ref, skip description.
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +4
-0+ description: Names of the power domains + items: + - const: cx + - const: mx
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 87
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the WCNSS core that it should + shutdown + items: + - description: Stop the modem + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-array
No need for ref. Really, it does not appear in any of existing bindings for smem-state-names, so how did you get it?
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 100
Quoted 13 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +13
-0+ description: The names of the state bits used for SMP2P output + items: + - const: stop + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the WCNSS core + + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP.
You should reference /schemas/soc/qcom/qcom,smd.yaml
Review
Quoted 2 lines
(quoted diff) +2
-0+ + iris:
Generic node name... what is "iris"?
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 105
Quoted 3 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ type: object + description: + The iris subnode of the WCNSS PIL is used to describe the attached rf module
s/rf/RF/
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +9
-0+ and its resource dependencies. + + properties: + compatible: + enum: + - qcom,wcn3620 + - qcom,wcn3660 + - qcom,wcn3660b + - qcom,wcn3680
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 124
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + clocks: + description: XO clock + + clock-names: + items: + - const: xo + + required: + - compatible
clocks and clock-names were required. Missing supplies, which were btw as well required.
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ +required: + - compatible + - reg + - reg-names
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 139
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ - interrupts-extended + - interrupt-names + - vddpx-supply + - memory-region + - smd-edge + - iris + +additionalProperties: false + +if:
Within allOf, please.
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 6 lines · Krzysztof Kozlowski
Quoted 4 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>
Quoted 9 lines
Thank you for your patch. There is something to discuss/improve.
Please use existing bindings or example-schema as a starting point. Half of my review could be skipped if you just followed what we already have in the tree.
Some of these qcom specific properties already exist but you decided to write them differently... please don't, rather reuse the code.
Thank you for your review, I will make the chnages as appropriate in v2.
Quoted 14 lines
(...)
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ +maintainers: + - Bjorn Andersson <[email protected]> + +description: + This document defines the binding for a component that loads and boots + firmware on the Qualcomm WCNSS core. + +properties: + compatible: + oneOf: + - items:
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 23
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +4
-0+ - enum: + - qcom,pronto-v2-pil + - enum: + - qcom,prontoThis does not look correct. The fallback compatible should not change. What is more, it was not documented in original binding, so this should be done in separate patch.
This was not a change to the fallback compatible. msm8916.dtsi's wcnss node has "qcom,pronto" as the compatible string, which is why this was added. It is however not documented in the txt file. Is it sufficient to add a note in the commit message, or should it be split into a separate commit?
Quoted 13 lines
Quoted 1 line
+ - items:
No need for items, it's just one item.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 32
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +8
-0+ - enum: + - qcom,riva-pil + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + + reg: + description: must specify the base address and size of the CCU, DXE and PMU + register blocks
Quoted 5 lines
New line after "decription:", drop "must specify" and start with capital letter.
You need maxItems: 3
Will fix in v2
Quoted 23 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 42
Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + reg-names: + items: + - const: ccu + - const: dxe + - const: pmu + + interrupts-extended: + description: + Interrupt linesSkip description, it's obvious.
It should be only "interrupts", not extended.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 48
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ minItems: 2 + maxItems: 5 + + interrupt-names: + minItems: 2 + maxItems: 5
Quoted 7 lines
Names should be clearly defined. They were BTW defined in original bindings, so you should not remove them. This makes me wonder what else did you remove from original bindings...
Please document all deviations from pure conversion in the commit msg. It's a second "hidden" difference.
Sorry, this was meant to be a pure txt->YAML conversion. The missing interrupt names was accidental, and will be fixed in v2.
Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 53
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Relative firmware image path for the WCNSS core. Defaults to + "wcnss.mdt".Blank line after "description:". This applies to other places as well.
Remove "Defailts to ..." and just add "default" schema.
Will be fixed in v2
Quoted 40 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 65
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ + vddpx-supply: + description: Reference to the PX regulator to be held on behalf of the + booting of the WCNSS core + + vddmx-supply: + description: Reference to the MX regulator to be held on behalf of the + booting of the WCNSS core. + + vddcx-supply: + description: Reference to the CX regulator to be held on behalf of the + booting of the WCNSS core.s/Reference to the//
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 70
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + power-domains: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: References to the power domains that need to be held on + behalf of the booting WCNSS core1. Ditto.
2. No need for ref
3. maxItemsDocumentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 73
Quoted 3 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ + power-domain-names: + $ref: /schemas/types.yaml#/definitions/string-arrayNo need for ref, skip description.
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +9
-0+ description: Names of the power domains + items: + - const: cx + - const: mx + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the WCNSS core that it should + shutdown
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 87
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ items: + - description: Stop the modem + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-arrayNo need for ref. Really, it does not appear in any of existing bindings for smem-state-names, so how did you get it?
The smem nodes were copied from /remoteproc/qcom,sdm845-adsp-pil.yaml
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +7
-0+ description: The names of the state bits used for SMP2P output + items: + - const: stop + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the WCNSS core
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 100
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP.You should reference /schemas/soc/qcom/qcom,smd.yaml
Will be done in v2
Quoted 6 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ + iris:Generic node name... what is "iris"?
Iris is the RF module, I'll make the description better
Quoted 20 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 105
Quoted 3 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ type: object + description: + The iris subnode of the WCNSS PIL is used to describe the attached rf modules/rf/RF/
Quoted 14 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +14
-0+ and its resource dependencies. + + properties: + compatible: + enum: + - qcom,wcn3620 + - qcom,wcn3660 + - qcom,wcn3660b + - qcom,wcn3680 + + clocks: + description: XO clock + + clock-names:
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 124
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ items: + - const: xo + + required: + - compatibleclocks and clock-names were required. Missing supplies, which were btw as well required.
This was unintentional, it will be fixed in v2.
Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +9
-0+ +required: + - compatible + - reg + - reg-names + - interrupts-extended + - interrupt-names + - vddpx-supply + - memory-region
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 139
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ - smd-edge + - iris + +additionalProperties: false + +if:Within allOf, please.
Will be fixed in v2
Quoted 4 lines
Best regards,
Krzysztof
Thanks again for the review,
Sireesh
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 42 lines · Sireesh Kodali
Quoted 6 lines · Krzysztof Kozlowski
Quoted 4 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>Quoted 9 lines
Thank you for your patch. There is something to discuss/improve.
Please use existing bindings or example-schema as a starting point. Half of my review could be skipped if you just followed what we already have in the tree.
Some of these qcom specific properties already exist but you decided to write them differently... please don't, rather reuse the code.
Thank you for your review, I will make the chnages as appropriate in v2.
Quoted 14 lines
(...)
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ +maintainers: + - Bjorn Andersson <[email protected]> + +description: + This document defines the binding for a component that loads and boots + firmware on the Qualcomm WCNSS core. + +properties: + compatible: + oneOf: + - items:Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 23
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +4
-0+ - enum: + - qcom,pronto-v2-pil + - enum: + - qcom,prontoThis does not look correct. The fallback compatible should not change. What is more, it was not documented in original binding, so this should be done in separate patch.
Quoted 1 line
This was not a change to the fallback compatible.
You made it an enum, so you expect it to use different fallback for different cases.
Quoted 5 lines
msm8916.dtsi's wcnss
node has "qcom,pronto" as the compatible string, which is why this was added. It is however not documented in the txt file. Is it sufficient to add a note in the commit message, or should it be split into a separate commit?
Please split it, assuming that fallback is correct. Maybe the fallback is wrong?
Quoted 117 lines
Quoted 14 lines
Quoted 2 lines
+ - items:
No need for items, it's just one item.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 32
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +8
-0+ - enum: + - qcom,riva-pil + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + + reg: + description: must specify the base address and size of the CCU, DXE and PMU + register blocksQuoted 5 lines
New line after "decription:", drop "must specify" and start with capital letter.
You need maxItems: 3
Will fix in v2
Quoted 23 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 42
Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + reg-names: + items: + - const: ccu + - const: dxe + - const: pmu + + interrupts-extended: + description: + Interrupt linesSkip description, it's obvious.
It should be only "interrupts", not extended.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 48
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ minItems: 2 + maxItems: 5 + + interrupt-names: + minItems: 2 + maxItems: 5Quoted 7 lines
Names should be clearly defined. They were BTW defined in original bindings, so you should not remove them. This makes me wonder what else did you remove from original bindings...
Please document all deviations from pure conversion in the commit msg. It's a second "hidden" difference.
Sorry, this was meant to be a pure
txt->YAMLconversion. The missing interrupt names was accidental, and will be fixed in v2.Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 53
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Relative firmware image path for the WCNSS core. Defaults to + "wcnss.mdt".Blank line after "description:". This applies to other places as well.
Remove "Defailts to ..." and just add "default" schema.
Will be fixed in v2
Quoted 40 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 65
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ + vddpx-supply: + description: Reference to the PX regulator to be held on behalf of the + booting of the WCNSS core + + vddmx-supply: + description: Reference to the MX regulator to be held on behalf of the + booting of the WCNSS core. + + vddcx-supply: + description: Reference to the CX regulator to be held on behalf of the + booting of the WCNSS core.s/Reference to the//
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 70
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + power-domains: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: References to the power domains that need to be held on + behalf of the booting WCNSS core1. Ditto.
2. No need for ref
3. maxItemsDocumentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 73
Quoted 3 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ + power-domain-names: + $ref: /schemas/types.yaml#/definitions/string-arrayNo need for ref, skip description.
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +9
-0+ description: Names of the power domains + items: + - const: cx + - const: mx + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the WCNSS core that it should + shutdownQuoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 87
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ items: + - description: Stop the modem + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-arrayNo need for ref. Really, it does not appear in any of existing bindings for smem-state-names, so how did you get it?
Quoted 1 line
The smem nodes were copied from /remoteproc/qcom,sdm845-adsp-pil.yaml
Hm, indeed, you're right. There are few files having here ref. I'll fix these.
Quoted 17 lines
Quoted 16 lines
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ description: The names of the state bits used for SMP2P output + items: + - const: stopDocumentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 100
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the WCNSS core + + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP.You should reference /schemas/soc/qcom/qcom,smd.yaml
Quoted 8 lines
Will be done in v2
Quoted 6 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ + iris:Generic node name... what is "iris"?
Iris is the RF module, I'll make the description better
RF like wifi? Then the property name should be "wifi".
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 48 lines · Krzysztof Kozlowski
Quoted 42 lines · Sireesh Kodali
Quoted 6 lines · Krzysztof Kozlowski
Quoted 4 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>Quoted 9 lines
Thank you for your patch. There is something to discuss/improve.
Please use existing bindings or example-schema as a starting point. Half of my review could be skipped if you just followed what we already have in the tree.
Some of these qcom specific properties already exist but you decided to write them differently... please don't, rather reuse the code.
Thank you for your review, I will make the chnages as appropriate in v2.
Quoted 14 lines
(...)
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ +maintainers: + - Bjorn Andersson <[email protected]> + +description: + This document defines the binding for a component that loads and boots + firmware on the Qualcomm WCNSS core. + +properties: + compatible: + oneOf: + - items:Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 23
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +4
-0+ - enum: + - qcom,pronto-v2-pil + - enum: + - qcom,prontoThis does not look correct. The fallback compatible should not change. What is more, it was not documented in original binding, so this should be done in separate patch.
Quoted 1 line
This was not a change to the fallback compatible.
You made it an enum, so you expect it to use different fallback for different cases.
Quoted 8 lines
Quoted 5 lines
msm8916.dtsi's wcnss
node has "qcom,pronto" as the compatible string, which is why this was added. It is however not documented in the txt file. Is it sufficient to add a note in the commit message, or should it be split into a separate commit?Please split it, assuming that fallback is correct. Maybe the fallback is wrong?
The code doesn't recognize "qcom,pronto", so perhaps the best solution is to just remove that compatible from msm8916.dtsi?
Quoted 142 lines
Quoted 118 lines
Quoted 15 lines
Quoted 3 lines
+ - items:
No need for items, it's just one item.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 32
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +8
-0+ - enum: + - qcom,riva-pil + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + + reg: + description: must specify the base address and size of the CCU, DXE and PMU + register blocksQuoted 5 lines
New line after "decription:", drop "must specify" and start with capital letter.
You need maxItems: 3
Will fix in v2
Quoted 23 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 42
Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + reg-names: + items: + - const: ccu + - const: dxe + - const: pmu + + interrupts-extended: + description: + Interrupt linesSkip description, it's obvious.
It should be only "interrupts", not extended.
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 48
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ minItems: 2 + maxItems: 5 + + interrupt-names: + minItems: 2 + maxItems: 5Quoted 7 lines
Names should be clearly defined. They were BTW defined in original bindings, so you should not remove them. This makes me wonder what else did you remove from original bindings...
Please document all deviations from pure conversion in the commit msg. It's a second "hidden" difference.
Sorry, this was meant to be a pure
txt->YAMLconversion. The missing interrupt names was accidental, and will be fixed in v2.Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 53
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Relative firmware image path for the WCNSS core. Defaults to + "wcnss.mdt".Blank line after "description:". This applies to other places as well.
Remove "Defailts to ..." and just add "default" schema.
Will be fixed in v2
Quoted 40 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 65
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +12
-0+ + vddpx-supply: + description: Reference to the PX regulator to be held on behalf of the + booting of the WCNSS core + + vddmx-supply: + description: Reference to the MX regulator to be held on behalf of the + booting of the WCNSS core. + + vddcx-supply: + description: Reference to the CX regulator to be held on behalf of the + booting of the WCNSS core.s/Reference to the//
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 70
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ + power-domains: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: References to the power domains that need to be held on + behalf of the booting WCNSS core1. Ditto.
2. No need for ref
3. maxItemsDocumentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 73
Quoted 3 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ + power-domain-names: + $ref: /schemas/types.yaml#/definitions/string-arrayNo need for ref, skip description.
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +9
-0+ description: Names of the power domains + items: + - const: cx + - const: mx + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the WCNSS core that it should + shutdownQuoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 87
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +5
-0+ items: + - description: Stop the modem + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-arrayNo need for ref. Really, it does not appear in any of existing bindings for smem-state-names, so how did you get it?
Quoted 1 line
The smem nodes were copied from /remoteproc/qcom,sdm845-adsp-pil.yaml
Hm, indeed, you're right. There are few files having here ref. I'll fix these.
Quoted 19 lines
Quoted 16 lines
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +3
-0+ description: The names of the state bits used for SMP2P output + items: + - const: stopDocumentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 100
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +10
-0+ + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the WCNSS core + + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP.You should reference /schemas/soc/qcom/qcom,smd.yaml
Will be done in v2
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ + iris:Generic node name... what is "iris"?
Iris is the RF module, I'll make the description better
RF like wifi? Then the property name should be "wifi".
RF like wifi and bluetooth. However there are wifi and bt subnodes in the smd-edge subnode. Iris is just the antenna hardware if I understand correctly. Also this is just a documentation of the existing nodes that are present in msm8916.dtsi, but for whatever reason their documentation was missing in the txt file. Without adding this node in the YAML dtb_check fails.
Quoted 4 lines
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 21 lines · Sireesh Kodali
Quoted 21 lines
Quoted 11 lines
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 23
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +4
-0+ - enum: + - qcom,pronto-v2-pil + - enum: + - qcom,prontoThis does not look correct. The fallback compatible should not change. What is more, it was not documented in original binding, so this should be done in separate patch.
This was not a change to the fallback compatible.
You made it an enum, so you expect it to use different fallback for different cases.
Quoted 5 lines
msm8916.dtsi's wcnss
node has "qcom,pronto" as the compatible string, which is why this was added. It is however not documented in the txt file. Is it sufficient to add a note in the commit message, or should it be split into a separate commit?
Quoted 5 lines
Quoted 2 lines
Please split it, assuming that fallback is correct. Maybe the fallback is wrong?
The code doesn't recognize "qcom,pronto", so perhaps the best solution is to just remove that compatible from
msm8916.dtsi?
Eh, I don't know. You need to check, maybe also in downstream sources.
(...)
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ + iris:Generic node name... what is "iris"?
Iris is the RF module, I'll make the description better
Quoted 8 lines
Quoted 1 line
RF like wifi? Then the property name should be "wifi".
RF like wifi and bluetooth. However there are wifi and bt subnodes in the smd-edge subnode. Iris is just the antenna hardware if I understand correctly. Also this is just a documentation of the existing nodes that are present in
msm8916.dtsi, but for whatever reason their documentation was missing in the txt file. Without adding this node in the YAMLdtb_checkfails.
It seems commit fd52bdae9ab0 ("wcn36xx: Disable 5GHz for wcn3620")
added usage of "iris" property but did not document it in the bindings.
You can fix it by documenting (separate patch) existing practice or document with changing the node name. I am not sure if it is worth the effort, so just new patch please.
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 22 lines · Krzysztof Kozlowski
Quoted 21 lines · Sireesh Kodali
Quoted 21 lines
Quoted 11 lines
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 23
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +4
-0+ - enum: + - qcom,pronto-v2-pil + - enum: + - qcom,prontoThis does not look correct. The fallback compatible should not change. What is more, it was not documented in original binding, so this should be done in separate patch.
This was not a change to the fallback compatible.
You made it an enum, so you expect it to use different fallback for different cases.
Quoted 5 lines
msm8916.dtsi's wcnss
node has "qcom,pronto" as the compatible string, which is why this was added. It is however not documented in the txt file. Is it sufficient to add a note in the commit message, or should it be split into a separate commit?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Please split it, assuming that fallback is correct. Maybe the fallback is wrong?
The code doesn't recognize "qcom,pronto", so perhaps the best solution is to just remove that compatible from
msm8916.dtsi?Eh, I don't know. You need to check, maybe also in downstream sources.
I just checked, it seems "qcom,pronto" is used by the wcnss driver in /net. So both "qcom,pronto-v2-pil" and "qcom,pronto" need to be present, but the latter wasn't documented.
Quoted 19 lines
(...)
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ + iris:Generic node name... what is "iris"?
Iris is the RF module, I'll make the description better
Quoted 8 lines
Quoted 1 line
RF like wifi? Then the property name should be "wifi".
RF like wifi and bluetooth. However there are wifi and bt subnodes in the smd-edge subnode. Iris is just the antenna hardware if I understand correctly. Also this is just a documentation of the existing nodes that are present in
msm8916.dtsi, but for whatever reason their documentation was missing in the txt file. Without adding this node in the YAMLdtb_checkfails.
Quoted 7 lines
It seems commit
fd52bdae9ab0("wcn36xx: Disable 5GHz for wcn3620")
added usage of "iris" property but did not document it in the bindings.You can fix it by documenting (separate patch) existing practice or document with changing the node name. I am not sure if it is worth the effort, so just new patch please.
I'll make a 2 separate patches, documenting the extra "qcom,pronto" compatible, and the iris subnode.
Thanks,
Sireesh
Quoted 2 lines
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
In reply to Sireesh KodaliQuoted 7 lines · Sireesh Kodali
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +7
-0+ description: The names of the state bits used for SMP2P output + items: + - const: stop + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the WCNSS core
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 100
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP.You should reference /schemas/soc/qcom/qcom,smd.yaml
It seems it is not a SMD driver so above reference is not correct. This should be probably described in its own schema, I just need to understand what's this...
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 17 lines · Krzysztof Kozlowski
Quoted 7 lines · Sireesh Kodali
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +7
-0+ description: The names of the state bits used for SMP2P output + items: + - const: stop + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the WCNSS coreQuoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml line 100
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file +6
-0+ + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP.You should reference /schemas/soc/qcom/qcom,smd.yaml
Quoted 4 lines
It seems it is not a SMD driver so above reference is not correct. This should be probably described in its own schema, I just need to understand what's this...
The smd-edge node describes the smd channels used to communicate with the remote processor. For wcnss that would be the remote proc id, and the channels for bt and wifi (both separate). There's a similar node for adsp and q6v5.
Quoted 3 lines
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
In reply to Sireesh KodaliQuoted 11 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,wcnss-pil.txt | 177 -------------- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 228 ++++++++++++++++++ 2 files changed, 228 insertions(+), 177 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml
Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.
Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.
Full log is available here: https://patchwork.ozlabs.org/patch/
remoteproc@a21b000: 'qcom,state', 'qcom,state-names' do not match any of the regexes: 'pinctrl-[0-9]+'
arch/arm64/boot/dts/qcom/apq8016-sbc.dtb arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dtb arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dtb arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dtb arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dtb arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dtb arch/arm64/boot/dts/qcom/msm8916-mtp.dtb arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dtb arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dtb arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dtb arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dtb arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dtb arch/arm/boot/dts/qcom-apq8016-sbc.dtb arch/arm/boot/dts/qcom-msm8916-samsung-serranove.dtb
remoteproc@fb21b000: 'power-domain-names' is a required property
arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dtb
remoteproc@fb21b000: 'power-domains' is a required property
arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dtb
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
In reply to Sireesh KodaliQuoted 11 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,wcnss-pil.txt | 177 -------------- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 228 ++++++++++++++++++ 2 files changed, 228 insertions(+), 177 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml
Half year passed, so I wonder if these series are abandoned or shall we expect v2?
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,wcnss-pil.txt | 177 -------------- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 228 ++++++++++++++++++ 2 files changed, 228 insertions(+), 177 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml
Quoted 3 lines
Half year passed, so I wonder if these series are abandoned or shall we expect v2?
This series was split into sub-series to make upstreaming easier. Links to the sub-series:
WCNSS: https://lkml.org/lkml/2022/9/30/1502
ADSP: https://lkml.org/lkml/2022/10/13/5
Regards,
Sireesh
Quoted 2 lines
Best regards,
Krzysztof
Re: [PATCH 4/9] dt-bindings: remoteproc: qcom: wcnss: Convert to YAML
Quoted 14 lines · Sireesh Kodali
Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · Sireesh Kodali
Convert the dt-bindings from txt to YAML. This is in preparation for including the relevant bindings for the MSM8953 platform's wcnss pil.
Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,wcnss-pil.txt | 177 -------------- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 228 ++++++++++++++++++ 2 files changed, 228 insertions(+), 177 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml
Quoted 8 lines
Quoted 3 lines
Half year passed, so I wonder if these series are abandoned or shall we expect v2?
This series was split into sub-series to make upstreaming easier. Links to the sub-series:
WCNSS: https://lkml.org/lkml/2022/9/30/1502
ADSP: https://lkml.org/lkml/2022/10/13/5
I see, thanks. I wonder why they were not picked up... The ADSP was sent more than a month ago.
Best regards,
Krzysztof
PATCH 5/9 dt-bindings: remoteproc: qcom: wcnss: Add compatible for pronto v3
In reply to Sireesh KodaliThe pronto v3 remoteproc is similar to pronto v2. It is found on the MSM8953 platform, which is used by SDM450, SDM625, SDM626, APQ8053 and other SoCs. Since the configuration is same on all SoCs, a single compatible is used.
--- .../devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml +4 -2
@@ -26,6 +26,7 @@ properties: - qcom,riva-pil - qcom,pronto-v1-pil - qcom,pronto-v2-pil + - qcom,pronto-v3-pil reg: description: must specify the base address and size of the CCU, DXE and PMU
@@ -143,15 +144,16 @@ if: enum: - qcom,pronto-v1-pil - qcom,pronto-v2-pil + - qcom,pronto-v3-pil then: properties: vddmx-supply: deprecated: true - description: Deprecated for qcom,pronto-v1/2-pil + description: Deprecated for qcom,pronto-v1/2/3-pil vddcx-supply: deprecated: true - description: Deprecated for qcom,pronto-v1/2-pil + description: Deprecated for qcom,pronto-v1/2/3-pil required: - power-domains
Signature · 1 line
2.36.0
PATCH 6/9 dt-bindings: remoteproc: qcom: mss: Convert bindings to YAML
In reply to Sireesh KodaliConvert the bindings to YAML from txt. The bindings follow a similar schema to qcom,adsp.yaml.
--- .../bindings/remoteproc/qcom,q6v5.txt | 302 -------- .../bindings/remoteproc/qcom,q6v5.yaml | 702 ++++++++++++++++++ 2 files changed, 702 insertions(+), 302 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt deleted +0 -302
@@ -1,302 +0,0 @@ -Qualcomm Hexagon Peripheral Image Loader - -This document defines the binding for a component that loads and boots firmware -on the Qualcomm Hexagon core. - -- compatible: - Usage: required - Value type: <string> - Definition: must be one of: - "qcom,q6v5-pil", - "qcom,ipq8074-wcss-pil" - "qcom,qcs404-wcss-pil" - "qcom,msm8916-mss-pil", - "qcom,msm8974-mss-pil" - "qcom,msm8996-mss-pil" - "qcom,msm8998-mss-pil" - "qcom,sc7180-mss-pil" - "qcom,sc7280-mss-pil" - "qcom,sdm845-mss-pil" - -- reg: - Usage: required - Value type: <prop-encoded-array> - Definition: must specify the base address and size of the qdsp6 and - rmb register blocks - -- reg-names: - Usage: required - Value type: <stringlist> - Definition: must be "q6dsp" and "rmb" - -- interrupts-extended: - Usage: required - Value type: <prop-encoded-array> - Definition: reference to the interrupts that match interrupt-names - -- interrupt-names: - Usage: required - Value type: <stringlist> - Definition: The interrupts needed depends on the the compatible - string: - qcom,q6v5-pil: - qcom,ipq8074-wcss-pil: - qcom,qcs404-wcss-pil: - qcom,msm8916-mss-pil: - qcom,msm8974-mss-pil: - must be "wdog", "fatal", "ready", "handover", "stop-ack" - qcom,msm8996-mss-pil: - qcom,msm8998-mss-pil: - qcom,sc7180-mss-pil: - qcom,sc7280-mss-pil: - qcom,sdm845-mss-pil: - must be "wdog", "fatal", "ready", "handover", "stop-ack", - "shutdown-ack" - -- firmware-name: - Usage: optional - Value type: <stringlist> - Definition: must list the relative firmware image paths for mba and - modem. They are used for booting and authenticating the - Hexagon core. - -- clocks: - Usage: required - Value type: <phandle> - Definition: reference to the clocks that match clock-names - -- clock-names: - Usage: required - Value type: <stringlist> - Definition: The clocks needed depend on the compatible string: - qcom,ipq8074-wcss-pil: - no clock names required - qcom,qcs404-wcss-pil: - must be "xo", "gcc_abhs_cbcr", "gcc_abhs_cbcr", - "gcc_axim_cbcr", "lcc_ahbfabric_cbc", "tcsr_lcc_cbc", - "lcc_abhs_cbc", "lcc_tcm_slave_cbc", "lcc_abhm_cbc", - "lcc_axim_cbc", "lcc_bcr_sleep" - qcom,q6v5-pil: - qcom,msm8916-mss-pil: - qcom,msm8974-mss-pil: - must be "iface", "bus", "mem", "xo" - qcom,msm8996-mss-pil: - must be "iface", "bus", "mem", "xo", "gpll0_mss", - "snoc_axi", "mnoc_axi", "pnoc", "qdss" - qcom,msm8998-mss-pil: - must be "iface", "bus", "mem", "xo", "gpll0_mss", - "snoc_axi", "mnoc_axi", "qdss" - qcom,sc7180-mss-pil: - must be "iface", "bus", "xo", "snoc_axi", "mnoc_axi", - "nav" - qcom,sc7280-mss-pil: - must be "iface", "xo", "snoc_axi", "offline", "pka" - qcom,sdm845-mss-pil: - must be "iface", "bus", "mem", "xo", "gpll0_mss", - "snoc_axi", "mnoc_axi", "prng" - -- resets: - Usage: required - Value type: <phandle> - Definition: reference to the reset-controller for the modem sub-system - reference to the list of 3 reset-controllers for the - wcss sub-system - reference to the list of 2 reset-controllers for the modem - sub-system on SC7180, SC7280, SDM845 SoCs - -- reset-names: - Usage: required - Value type: <stringlist> - Definition: must be "mss_restart" for the modem sub-system - must be "wcss_aon_reset", "wcss_reset", "wcss_q6_reset" - for the wcss sub-system - must be "mss_restart", "pdc_reset" for the modem - sub-system on SC7180, SC7280, SDM845 SoCs - -For devices where the mba and mpss sub-nodes are not specified, mba/mpss region -should be referenced as follows: -- memory-region: - Usage: required - Value type: <phandle> - Definition: reference to the reserved-memory for the mba region followed - by the mpss region - -For the compatible strings below the following supplies are required: - "qcom,q6v5-pil" - "qcom,msm8916-mss-pil", -- cx-supply: (deprecated, use power domain instead) -- mx-supply: (deprecated, use power domain instead) -- pll-supply: - Usage: required - Value type: <phandle> - Definition: reference to the regulators to be held on behalf of the - booting of the Hexagon core - -For the compatible string below the following supplies are required: - "qcom,msm8974-mss-pil" -- cx-supply: (deprecated, use power domain instead) -- mss-supply: -- mx-supply: (deprecated, use power domain instead) -- pll-supply: - Usage: required - Value type: <phandle> - Definition: reference to the regulators to be held on behalf of the - booting of the Hexagon core - -For the compatible string below the following supplies are required: - "qcom,qcs404-wcss-pil" -- cx-supply: - Usage: required - Value type: <phandle> - Definition: reference to the regulators to be held on behalf of the - booting of the Hexagon core - -For the compatible string below the following supplies are required: - "qcom,msm8996-mss-pil" -- pll-supply: - Usage: required - Value type: <phandle> - Definition: reference to the regulators to be held on behalf of the - booting of the Hexagon core - -- power-domains: - Usage: required - Value type: <phandle> - Definition: reference to power-domains that match power-domain-names - -- power-domain-names: - Usage: required - Value type: <stringlist> - Definition: The power-domains needed depend on the compatible string: - qcom,ipq8074-wcss-pil: - no power-domain names required - qcom,q6v5-pil: - qcom,msm8916-mss-pil: - qcom,msm8974-mss-pil: - qcom,msm8996-mss-pil: - qcom,msm8998-mss-pil: - must be "cx", "mx" - qcom,sc7180-mss-pil: - must be "cx", "mx", "mss" - qcom,sc7280-mss-pil: - must be "cx", "mss" - qcom,sdm845-mss-pil: - must be "cx", "mx", "mss" - -- qcom,qmp: - Usage: optional - Value type: <phandle> - Definition: reference to the AOSS side-channel message RAM. - -- qcom,smem-states: - Usage: required - Value type: <phandle> - Definition: reference to the smem state for requesting the Hexagon to - shut down - -- qcom,smem-state-names: - Usage: required - Value type: <stringlist> - Definition: must be "stop" - -- qcom,halt-regs: - Usage: required - Value type: <prop-encoded-array> - Definition: a phandle reference to a syscon representing TCSR followed - by the three offsets within syscon for q6, modem and nc - halt registers. - a phandle reference to a syscon representing TCSR followed - by the four offsets within syscon for q6, modem, nc and vq6 - halt registers on SC7280 SoCs. - -For the compatible strings below the following phandle references are required: - "qcom,sc7180-mss-pil" -- qcom,spare-regs: - Usage: required - Value type: <prop-encoded-array> - Definition: a phandle reference to a syscon representing TCSR followed - by the offset within syscon for conn_box_spare0 register - used by the modem sub-system running on SC7180 SoC. - -For the compatible strings below the following phandle references are required: - "qcom,sc7280-mss-pil" -- qcom,ext-regs: - Usage: required - Value type: <prop-encoded-array> - Definition: two phandle references to syscons representing TCSR_REG and - TCSR register space followed by the two offsets within the syscon - to force_clk_en/rscc_disable and axim1_clk_off/crypto_clk_off - registers respectively. - -- qcom,qaccept-regs: - Usage: required - Value type: <prop-encoded-array> - Definition: a phandle reference to a syscon representing TCSR followed - by the three offsets within syscon for mdm, cx and axi - qaccept registers used by the modem sub-system running on - SC7280 SoC. - -The Hexagon node must contain iommus property as described in ../iommu/iommu.txt -on platforms which do not have TrustZone. - -= SUBNODES: -The Hexagon node must contain two subnodes, named "mba" and "mpss" representing -the memory regions used by the Hexagon firmware. Each sub-node must contain: - -- memory-region: - Usage: required - Value type: <phandle> - Definition: reference to the reserved-memory for the region - -The Hexagon node may also have an subnode named either "smd-edge" or -"glink-edge" that describes the communication edge, channels and devices -related to the Hexagon. See ../soc/qcom/qcom,smd.txt and -../soc/qcom/qcom,glink.txt for details on how to describe these. - -= EXAMPLE -The following example describes the resources needed to boot control the -Hexagon, as it is found on MSM8974 boards. - - modem-rproc@fc880000 { - compatible = "qcom,q6v5-pil"; - reg = <0xfc880000 0x100>, - <0xfc820000 0x020>; - reg-names = "qdsp6", "rmb"; - - interrupts-extended = <&intc 0 24 1>, - <&modem_smp2p_in 0 0>, - <&modem_smp2p_in 1 0>, - <&modem_smp2p_in 2 0>, - <&modem_smp2p_in 3 0>; - interrupt-names = "wdog", - "fatal", - "ready", - "handover", - "stop-ack"; - - clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, - <&gcc GCC_MSS_CFG_AHB_CLK>, - <&gcc GCC_BOOT_ROM_AHB_CLK>; - clock-names = "iface", "bus", "mem"; - - qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>; - - resets = <&gcc GCC_MSS_RESTART>; - reset-names = "mss_restart"; - - cx-supply = <&pm8841_s2>; - mss-supply = <&pm8841_s3>; - mx-supply = <&pm8841_s1>; - pll-supply = <&pm8941_l12>; - - qcom,smem-states = <&modem_smp2p_out 0>; - qcom,smem-state-names = "stop"; - - mba { - memory-region = <&mba_region>; - }; - - mpss { - memory-region = <&mpss_region>; - }; - };
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +702 -0
702 lines not on this page · raw message
Signature · 1 line
2.36.0
Re: [PATCH 6/9] dt-bindings: remoteproc: qcom: mss: Convert bindings to YAML
Quoted 10 lines · Sireesh Kodali
Convert the bindings to YAML from txt. The bindings follow a similar schema to
qcom,adsp.yaml.Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,q6v5.txt | 302 -------- .../bindings/remoteproc/qcom,q6v5.yaml | 702 ++++++++++++++++++ 2 files changed, 702 insertions(+), 302 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml
Same comments as for patch 4 apply here. Some of them seems fixed so it makes me wonder - why you wrote two bindings in entirely different way?
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +4
-0+ This document defines the binding for a component that loads and boots firmware + on the Qualcomm Hexagon core. + +properties:
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 26
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ compatible: + # Special case, because older platforms like MSM8916 use both compatibles together + minItems: 1 + maxItems: 2 + oneOf: + - items: + - enum: + - qcom,msm8916-mss-pil + - enum: + - qcom,q6v5-pil
Everywhere - same comments as in patch 4.
Quoted 63 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +63
-0+ - items: + - enum: + - qcom,q6v5-pil + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + - qcom,sc7180-mss-pil + - qcom,sc7280-mss-pil + - qcom,sdm845-mss-pil + + reg: + description: must specify the base address and size of the qdsp6 and rmb + register blocks + maxItems: 2 + + reg-names: + items: + - const: qdsp6 + - const: rmb + + interrupts-extended: + minItems: 5 + maxItems: 6 + + interrupt-names: + minItems: 5 + maxItems: 6 + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string-array + description: List the relative firmware image paths for the mba and + modem. They are used for booting and authenticating the Hexagon core. + maxItems: 2 + + clocks: + minItems: 4 + maxItems: 10 + + clock-names: + minItems: 4 + maxItems: 10 + + resets: + description: Reference to the reset-controllwer for the modem subsystem + minItems: 1 + maxItems: 3 + + reset-names: + minItems: 1 + maxItems: 3 + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the mba region followed + by the mpss region. Required if the mba and mpss sub-nodes are not + specified. + + cx-supply: + description: Phandle to the CX regulator +
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 99
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ mx-supply: + description: Phandle to the MX regulator + + pll-supply: + description: Phandle to the PLL regulator, to be held on behalf of the + booting Hexagon core + + mss-supply: + description: Phandle to the mss regulator, to be held on behalf of the + booting Hexagon core
s/Phandle to//, everywhere.
Quoted 61 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +61
-0+ + power-domains: + minItems: 1 + maxItems: 4 + + power-domain-names: + minItems: 1 + maxItems: 4 + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the Hexagon core + items: + - description: Stop the modem + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-array + description: The names of the state bits used for SMP2P output + items: + - const: stop + + qcom,halt-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle reference to a syscon representing TCSR followed by the + three offsets within syscon for q6, modem and nc halt registers. + + qcom,spare-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + A phandle reference to a syscon representing TCSR followed by the + offset within syscon for conn_box_spare0 register used by the modem + sub-system running on SC7180 SoC. + + qcom,ext-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Two phandle references to syscons representing TCSR_REG and TCSR + register space followed by the two offsets within the syscon to + force_clk_en/rscc_disable and axim1_clk_off/crypto_clk_off registers + respectively. + + qcom,qaccept-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + A phandle reference to a syscon representing TCSR followed by the three + offsets within syscon for mdm, cx and axi qaccept registers used by the + modem sub-system running on SC7280 SoC. + + iommus: + description: + Only required on platforms that do not have TrustZone. + + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge,
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 170
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ channels and devices related to the ADSP. + + glink-edge: + type: object + description: + Qualcomm G-Link subnode which represents communication edge, channels + and devices related to the ADSP. + + mba: + type: object
description needed.
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 178
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +8
-0+ properties: + memory-region: + maxItems: 1 + + required: + - memory-region + + mpss:
description needed.
Quoted 227 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +227
-0+ type: object + properties: + memory-region: + maxItems: 1 + + required: + - memory-region + +required: + - compatible + - clocks + - clock-names + - interrupts-extended + - interrupt-names + - qcom,smem-states + - qcom,smem-state-names + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq8074-wcss-pil + then: + properties: + clocks: false + clock-names: false + + - if: + properties: + compatible: + contains: + enum: + - qcom,qcs404-wcss-pil + then: + properties: + clocks: + items: + - description: GCC_AHBS_CBCR clock + - description: GCC_AXIM_CBCR clock + - description: LCC_AHBFABRIC_CBC clock + - description: TCSR_LCC_CBC clock + - description: LCC_AHBS_CBC clock + - description: LCC_TCM_SLAVE_CBC clock + - description: LCC_ABHM_CBC clock + - description: LCC_AXIM_CBC clock + - description: LCC_BCR_SLEEP clock + - description: XO clock + clock-names: + items: + - const: gcc_ahbs_cbcr + - const: gcc_axim_cbcr + - const: lcc_ahbfabric_cbc + - const: tcsr_lcc_cbc + - const: lcc_abhs_cbc + - const: lcc_tcm_slave_cbc + - const: lcc_abhm_cbc + - const: lcc_axim_cbc + - const: lcc_bcr_sleep + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,q6v5-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: GPLL0_MSS clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: PNOC clock + - description: QDSS clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: gpll0_mss + - const: snoc_axi + - const: mnoc_axi + - const: pnoc + - const: qdss + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8998-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: GPLL0_MSS clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: QDSS clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: gpll0_mss + - const: snoc_axi + - const: mnoc_axi + - const: qdss + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: NAV clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: nav + - const: snoc_axi + - const: mnoc_axi + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Offline clock + - description: SNOC_AXI clock + - description: PKA clock + - description: XO clock + clock-names: + items: + - const: iface + - const: offline + - const: snoc_axi + - const: pka + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,sdm845-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: GPLL0_MSS clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: PRNG clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: gpll0_mss + - const: snoc_axi + - const: mnoc_axi + - const: prng + - const: xo + + - if: + properties: + compatible:
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 415
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ contains: + enum: + - qcom,q6v5-pil + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + then: + properties: + interrupts-extended:
No extended.
Quoted 32 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +32
-0+ items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interrupt + - description: Stop acknowledge interrupt + interrupt-names: + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + - qcom,sc7180-mss-pil + - qcom,sc7280-mss-pil + - qcom,sdm845-mss-pil + then: + properties: + interrupts-extended: + items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interrupt
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 457
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ - description: Stop acknowledge interrupt + - description: Shutdown acknowledge interrupt + interrupt-names: + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + - const: shutdown-ack
Both ifs should be written differently. Move the bigger list to properties with minItems: 5. For qcom,q6v5-pil you set maxItems:5. For qcom,msm8996-mss-pil you set minItems:6.
Quoted 183 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +183
-0+ + - if: + properties: + compatible: + enum: + - const: qcom,q6v5-pil + - const: qcom,msm8916-mss-pil + - const: qcom,msm8974-mss-pil + then: + properties: + cx-supply: + deprecated: true + mx-supply: + deprecated: true + + required: + - pll-supply + + - if: + properties: + compatible: + enum: + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + power-domain-names: + items: + - const: cx + - const: mx + + required: + - power-domains + - power-domain-names + + - if: + properties: + compatible: + enum: + - const: qcom,msm8996-mss-pil + then: + properties: + cx-supply: false + mx-supply: false + + required: + - pll-supply + + - if: + properties: + compatible: + enum: + - const: qcom,qcs404-wcss-pil + then: + required: + - cx-supply + + - if: + properties: + compatible: + contains: + enum: + - qcom,sdm845-mss-pil + - qcom,sc7180-mss-pil + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mx + - const: mss + + required: + - power-domains + - power-domain-names + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-mss-pil + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + + required: + - power-domains + - power-domain-names + - qcom,ext-regs + - qcom,qaccept-regs + + - if: + properties: + compatible: + contains: + enum: + - qcom,q6v5-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + then: + properties: + resets: + items: + - description: MSS reset + reset-names: + items: + - const: mss_restart + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + then: + properties: + resets: + items: + - description: WCSS Always On restart + - description: WCSS reset + - description: WCSS Q6 reset + reset-names: + items: + - const: wcss_aon_restart + - const: wcss_reset + - const: wcss_q6_reset + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-mss-pil + - qcom,sc7280-mss-pil + - qcom,sdm845-mss-pil + then: + properties: + resets: + items: + - description: MSS restart + - description: PDC reset + reset-names: + items: + - const: mss_restart + - const: pdc_reset + + - if: + properties: + compatible: + contains: + enum: + - qcom,q6v5-pil + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + then: + properties: + qcom,qmp: false
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 650
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ iommus: false + +examples: + - | + #include <dt-bindings/clock/qcom,rpmcc.h> + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/clock/qcom,gcc-msm8974.h> + #include <dt-bindings/reset/qcom,gcc-msm8974.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + modem-rproc@fc880000 {
Generic node name, so "remoteproc"
Quoted 13 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +13
-0+ compatible = "qcom,q6v5-pil"; + reg = <0xfc880000 0x100>, + <0xfc820000 0x020>; + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc GIC_SPI 24 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready",
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 673
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ "handover", + "stop-ack"; + + clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&xo_board>; + clock-names = "iface", "bus", "mem", "xo"; + + qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>;
Does this pass the tests? Did you test the bindings?
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +4
-0+ + resets = <&gcc GCC_MSS_RESTART>; + reset-names = "mss_restart"; +
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 687
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + mba { + memory-region = <&mba_region>;
Wrong indentation.
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +5
-0+ }; + + mpss { + memory-region = <&mpss_region>; + };
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 702
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ + smd-edge { + interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 12>; + qcom,smd-edge = <0>; + + label = "modem"; + }; + };
Best regards,
Krzysztof
Re: [PATCH 6/9] dt-bindings: remoteproc: qcom: mss: Convert bindings to YAML
Quoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Sireesh Kodali
Convert the bindings to YAML from txt. The bindings follow a similar schema to
qcom,adsp.yaml.Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,q6v5.txt | 302 -------- .../bindings/remoteproc/qcom,q6v5.yaml | 702 ++++++++++++++++++ 2 files changed, 702 insertions(+), 302 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml
Quoted 3 lines
Same comments as for patch 4 apply here. Some of them seems fixed so it makes me wonder - why you wrote two bindings in entirely different way?
This was largely based on the existing qcom,adsp.yaml. That's probably why there are less mistakes.
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +8
-0+ This document defines the binding for a component that loads and boots firmware + on the Qualcomm Hexagon core. + +properties: + compatible: + # Special case, because older platforms like MSM8916 use both compatibles together + minItems: 1 + maxItems: 2
Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 26
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +6
-0+ oneOf: + - items: + - enum: + - qcom,msm8916-mss-pil + - enum: + - qcom,q6v5-pilEverywhere - same comments as in patch 4.
Will be fixed in v2.
Quoted 635 lines
Quoted 63 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +63
-0+ - items: + - enum: + - qcom,q6v5-pil + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + - qcom,sc7180-mss-pil + - qcom,sc7280-mss-pil + - qcom,sdm845-mss-pil + + reg: + description: must specify the base address and size of the qdsp6 and rmb + register blocks + maxItems: 2 + + reg-names: + items: + - const: qdsp6 + - const: rmb + + interrupts-extended: + minItems: 5 + maxItems: 6 + + interrupt-names: + minItems: 5 + maxItems: 6 + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string-array + description: List the relative firmware image paths for the mba and + modem. They are used for booting and authenticating the Hexagon core. + maxItems: 2 + + clocks: + minItems: 4 + maxItems: 10 + + clock-names: + minItems: 4 + maxItems: 10 + + resets: + description: Reference to the reset-controllwer for the modem subsystem + minItems: 1 + maxItems: 3 + + reset-names: + minItems: 1 + maxItems: 3 + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the mba region followed + by the mpss region. Required if the mba and mpss sub-nodes are not + specified. + + cx-supply: + description: Phandle to the CX regulator +Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 99
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ mx-supply: + description: Phandle to the MX regulator + + pll-supply: + description: Phandle to the PLL regulator, to be held on behalf of the + booting Hexagon core + + mss-supply: + description: Phandle to the mss regulator, to be held on behalf of the + booting Hexagon cores/Phandle to//, everywhere.
Quoted 61 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +61
-0+ + power-domains: + minItems: 1 + maxItems: 4 + + power-domain-names: + minItems: 1 + maxItems: 4 + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the Hexagon core + items: + - description: Stop the modem + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-array + description: The names of the state bits used for SMP2P output + items: + - const: stop + + qcom,halt-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle reference to a syscon representing TCSR followed by the + three offsets within syscon for q6, modem and nc halt registers. + + qcom,spare-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + A phandle reference to a syscon representing TCSR followed by the + offset within syscon for conn_box_spare0 register used by the modem + sub-system running on SC7180 SoC. + + qcom,ext-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Two phandle references to syscons representing TCSR_REG and TCSR + register space followed by the two offsets within the syscon to + force_clk_en/rscc_disable and axim1_clk_off/crypto_clk_off registers + respectively. + + qcom,qaccept-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + A phandle reference to a syscon representing TCSR followed by the three + offsets within syscon for mdm, cx and axi qaccept registers used by the + modem sub-system running on SC7280 SoC. + + iommus: + description: + Only required on platforms that do not have TrustZone. + + smd-edge: + type: object + description: + Qualcomm Shared Memory subnode which represents communication edge,Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 170
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ channels and devices related to the ADSP. + + glink-edge: + type: object + description: + Qualcomm G-Link subnode which represents communication edge, channels + and devices related to the ADSP. + + mba: + type: objectdescription needed.
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 178
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +8
-0+ properties: + memory-region: + maxItems: 1 + + required: + - memory-region + + mpss:description needed.
Quoted 227 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +227
-0+ type: object + properties: + memory-region: + maxItems: 1 + + required: + - memory-region + +required: + - compatible + - clocks + - clock-names + - interrupts-extended + - interrupt-names + - qcom,smem-states + - qcom,smem-state-names + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq8074-wcss-pil + then: + properties: + clocks: false + clock-names: false + + - if: + properties: + compatible: + contains: + enum: + - qcom,qcs404-wcss-pil + then: + properties: + clocks: + items: + - description: GCC_AHBS_CBCR clock + - description: GCC_AXIM_CBCR clock + - description: LCC_AHBFABRIC_CBC clock + - description: TCSR_LCC_CBC clock + - description: LCC_AHBS_CBC clock + - description: LCC_TCM_SLAVE_CBC clock + - description: LCC_ABHM_CBC clock + - description: LCC_AXIM_CBC clock + - description: LCC_BCR_SLEEP clock + - description: XO clock + clock-names: + items: + - const: gcc_ahbs_cbcr + - const: gcc_axim_cbcr + - const: lcc_ahbfabric_cbc + - const: tcsr_lcc_cbc + - const: lcc_abhs_cbc + - const: lcc_tcm_slave_cbc + - const: lcc_abhm_cbc + - const: lcc_axim_cbc + - const: lcc_bcr_sleep + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,q6v5-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: GPLL0_MSS clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: PNOC clock + - description: QDSS clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: gpll0_mss + - const: snoc_axi + - const: mnoc_axi + - const: pnoc + - const: qdss + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8998-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: GPLL0_MSS clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: QDSS clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: gpll0_mss + - const: snoc_axi + - const: mnoc_axi + - const: qdss + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: NAV clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: nav + - const: snoc_axi + - const: mnoc_axi + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Offline clock + - description: SNOC_AXI clock + - description: PKA clock + - description: XO clock + clock-names: + items: + - const: iface + - const: offline + - const: snoc_axi + - const: pka + - const: xo + + - if: + properties: + compatible: + contains: + enum: + - qcom,sdm845-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: GPLL0_MSS clock + - description: SNOC_AXI clock + - description: MNOC_AXI clock + - description: PRNG clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: gpll0_mss + - const: snoc_axi + - const: mnoc_axi + - const: prng + - const: xo + + - if: + properties: + compatible:Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 415
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ contains: + enum: + - qcom,q6v5-pil + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + then: + properties: + interrupts-extended:No extended.
Quoted 32 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +32
-0+ items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interrupt + - description: Stop acknowledge interrupt + interrupt-names: + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + - qcom,sc7180-mss-pil + - qcom,sc7280-mss-pil + - qcom,sdm845-mss-pil + then: + properties: + interrupts-extended: + items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interruptDocumentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 457
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ - description: Stop acknowledge interrupt + - description: Shutdown acknowledge interrupt + interrupt-names: + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + - const: shutdown-ackBoth ifs should be written differently. Move the bigger list to properties with minItems: 5. For qcom,q6v5-pil you set maxItems:5. For qcom,msm8996-mss-pil you set minItems:6.
Quoted 187 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +187
-0+ + - if: + properties: + compatible: + enum: + - const: qcom,q6v5-pil + - const: qcom,msm8916-mss-pil + - const: qcom,msm8974-mss-pil + then: + properties: + cx-supply: + deprecated: true + mx-supply: + deprecated: true + + required: + - pll-supply + + - if: + properties: + compatible: + enum: + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + power-domain-names: + items: + - const: cx + - const: mx + + required: + - power-domains + - power-domain-names + + - if: + properties: + compatible: + enum: + - const: qcom,msm8996-mss-pil + then: + properties: + cx-supply: false + mx-supply: false + + required: + - pll-supply + + - if: + properties: + compatible: + enum: + - const: qcom,qcs404-wcss-pil + then: + required: + - cx-supply + + - if: + properties: + compatible: + contains: + enum: + - qcom,sdm845-mss-pil + - qcom,sc7180-mss-pil + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mx + - const: mss + + required: + - power-domains + - power-domain-names + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-mss-pil + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + + required: + - power-domains + - power-domain-names + - qcom,ext-regs + - qcom,qaccept-regs + + - if: + properties: + compatible: + contains: + enum: + - qcom,q6v5-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + then: + properties: + resets: + items: + - description: MSS reset + reset-names: + items: + - const: mss_restart + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + then: + properties: + resets: + items: + - description: WCSS Always On restart + - description: WCSS reset + - description: WCSS Q6 reset + reset-names: + items: + - const: wcss_aon_restart + - const: wcss_reset + - const: wcss_q6_reset + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-mss-pil + - qcom,sc7280-mss-pil + - qcom,sdm845-mss-pil + then: + properties: + resets: + items: + - description: MSS restart + - description: PDC reset + reset-names: + items: + - const: mss_restart + - const: pdc_reset + + - if: + properties: + compatible: + contains: + enum: + - qcom,q6v5-pil + - qcom,ipq8074-wcss-pil + - qcom,qcs404-wcss-pil + - qcom,msm8916-mss-pil + - qcom,msm8974-mss-pil + - qcom,msm8996-mss-pil + - qcom,msm8998-mss-pil + then: + properties: + qcom,qmp: false + iommus: false + +examples: + - |
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 650
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +6
-0+ #include <dt-bindings/clock/qcom,rpmcc.h> + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/clock/qcom,gcc-msm8974.h> + #include <dt-bindings/reset/qcom,gcc-msm8974.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + modem-rproc@fc880000 {Generic node name, so "remoteproc"
Will fix in v2
Quoted 18 lines
Quoted 18 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +17
-0+ compatible = "qcom,q6v5-pil"; + reg = <0xfc880000 0x100>, + <0xfc820000 0x020>; + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc GIC_SPI 24 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>,
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 673
Quoted 6 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +6
-0+ <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&xo_board>; + clock-names = "iface", "bus", "mem", "xo"; + + qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>;Does this pass the tests? Did you test the bindings?
Yes, both dtbs_check and dt_binding_check
Quoted 18 lines
Quoted 5 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +4
-0+ + resets = <&gcc GCC_MSS_RESTART>; + reset-names = "mss_restart"; +Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 687
Quoted 10 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +10
-0+ cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + mba { + memory-region = <&mba_region>;Wrong indentation.
Will fix in v2
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +11
-0+ }; + + mpss { + memory-region = <&mpss_region>; + }; + + smd-edge { + interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 12>; + qcom,smd-edge = <0>;
Quoted 8 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml line 702
Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml new file +4
-0+ + label = "modem"; + }; + };Best regards,
Krzysztof
Thanks,
Sireesh Kodali
Rob Herring
maintainerRe: [PATCH 6/9] dt-bindings: remoteproc: qcom: mss: Convert bindings to YAML
In reply to Sireesh KodaliQuoted 11 lines · Sireesh Kodali
Convert the bindings to YAML from txt. The bindings follow a similar schema to
qcom,adsp.yaml.Signed-off-by Sireesh Kodali <[email protected]>--- .../bindings/remoteproc/qcom,q6v5.txt | 302 -------- .../bindings/remoteproc/qcom,q6v5.yaml | 702 ++++++++++++++++++ 2 files changed, 702 insertions(+), 302 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml
Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.
Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.
Full log is available here: https://patchwork.ozlabs.org/patch/
remoteproc@4080000: memory-region: [[123], [124]] is too long
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r3-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r9.dtb
remoteproc@4080000: memory-region: [[124], [125]] is too long
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r4.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r5.dtb
remoteproc@4080000: memory-region: [[125], [126]] is too long
arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar-r2.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar-r4.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-r9.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-kb.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dtb
remoteproc@4080000: memory-region: [[126], [127]] is too long
arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar-r3.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-r4.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-kb.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-kb.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r3.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r3-lte.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dtb arch/arm64/boot/dts/qcom/sc7180-trogdor-r1-lte.dtb
remoteproc@4080000: memory-region: [[193], [194]] is too long
arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r0.dtb
remoteproc@4080000: memory-region: [[200], [201]] is too long
arch/arm64/boot/dts/qcom/sc7280-idp.dtb
remoteproc@4080000: memory-region: [[205], [206]] is too long
arch/arm64/boot/dts/qcom/sc7280-idp2.dtb
remoteproc@4080000: memory-region: [[208], [209]] is too long
arch/arm64/boot/dts/qcom/sc7280-crd.dtb
remoteproc@4080000: memory-region: [[213], [214]] is too long
arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dtb
remoteproc@4080000: memory-region: [[98], [99]] is too long
arch/arm64/boot/dts/qcom/sc7180-idp.dtb
remoteproc@fc880000: 'power-domain-names' is a required property
arch/arm/boot/dts/qcom-apq8074-dragonboard.dtb arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dtb arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dtb arch/arm/boot/dts/qcom-msm8974-samsung-klte.dtb arch/arm/boot/dts/qcom-msm8974-sony-xperia-amami.dtb arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dtb arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dtb
remoteproc@fc880000: 'power-domains' is a required property
arch/arm/boot/dts/qcom-apq8074-dragonboard.dtb arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dtb arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dtb arch/arm/boot/dts/qcom-msm8974-samsung-klte.dtb arch/arm/boot/dts/qcom-msm8974-sony-xperia-amami.dtb arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dtb arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dtb
PATCH 7/9 dt-bindings: remoteproc: qcom: mss: Add MSS on MSM8953
In reply to Sireesh KodaliAdd bindings for MSS on the MSM8953 platform, which is used by SDM450, SDM625, SDM626, APQ8053 and SDM632.
--- .../bindings/remoteproc/qcom,q6v5.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+)
Documentation/devicetree/bindings/remoteproc/qcom,q6v5.yaml +25 -0
@@ -31,6 +31,7 @@ properties: - qcom,qcs404-wcss-pil - qcom,msm8916-mss-pil - qcom,msm8974-mss-pil + - qcom,msm8953-mss-pil - qcom,msm8996-mss-pil - qcom,msm8998-mss-pil - qcom,sc7180-mss-pil
@@ -263,6 +264,27 @@ allOf: - const: mem - const: xo + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8953-mss-pil + then: + properties: + clocks: + items: + - description: Interface clock + - description: Bus clock + - description: Memory clock + - description: XO clock + clock-names: + items: + - const: iface + - const: bus + - const: mem + - const: xo + - if: properties: compatible:
@@ -410,6 +432,7 @@ allOf: - qcom,qcs404-wcss-pil - qcom,msm8916-mss-pil - qcom,msm8974-mss-pil + - qcom,msm8953-mss-pil then: properties: interrupts-extended:
@@ -479,6 +502,7 @@ allOf: enum: - qcom,msm8916-mss-pil - qcom,msm8974-mss-pil + - qcom,msm8953-mss-pil - qcom,msm8996-mss-pil - qcom,msm8998-mss-pil then:
@@ -573,6 +597,7 @@ allOf: - qcom,q6v5-pil - qcom,msm8916-mss-pil - qcom,msm8974-mss-pil + - qcom,msm8953-mss-pil - qcom,msm8996-mss-pil - qcom,msm8998-mss-pil then:
Signature · 1 line
2.36.0
PATCH 8/9 dt-bindings: remoteproc: qcom: adsp: Add ADSP on MSM8953
In reply to Sireesh KodaliAdd support for booting the Audio DSP on the MSM8953 platform. This is used by SoCs like SDM450, SDM625, SDM626, APQ8053, etc. Since the configuration is the same on all SoCs, a single compatible string is used.
--- Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +5 -0
@@ -17,6 +17,7 @@ properties: compatible: enum: - qcom,msm8974-adsp-pil + - qcom,msm8953-adsp-pil - qcom,msm8996-adsp-pil - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas
@@ -160,6 +161,7 @@ allOf: contains: enum: - qcom,msm8974-adsp-pil + - qcom,msm8953-adsp-pil - qcom,msm8996-adsp-pil - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas
@@ -275,6 +277,7 @@ allOf: contains: enum: - qcom,msm8974-adsp-pil + - qcom,msm8953-adsp-pil - qcom,msm8996-adsp-pil - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas
@@ -364,6 +367,7 @@ allOf: compatible: contains: enum: + - qcom,msm8953-adsp-pil - qcom,msm8996-adsp-pil - qcom,msm8998-adsp-pas then:
@@ -547,6 +551,7 @@ allOf: contains: enum: - qcom,msm8974-adsp-pil + - qcom,msm8953-adsp-pil - qcom,msm8996-adsp-pil - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas
Signature · 1 line
2.36.0
PATCH 9/9 arm64: dts: qcom: msm8953: Add remote processor nodes
In reply to Sireesh KodaliThis commit adds the modem (q6v5_mss), WiFi (wcnss-pil) and audio DSP (q6v5_pas) remote processor nodes for the MSM8953 platform. It also adds the coresponding SMP2P, SMSM and pinctrl nodes that are needed by these remote processors.
--- arch/arm64/boot/dts/qcom/msm8953.dtsi | 378 ++++++++++++++++++++++++++ 1 file changed, 378 insertions(+)
arch/arm64/boot/dts/qcom/msm8953.dtsi +378 -0
@@ -2,9 +2,13 @@ /* Copyright (c) 2022, The Linux Foundation. All rights reserved. */ #include <dt-bindings/clock/qcom,gcc-msm8953.h> +#include <dt-bindings/clock/qcom,rpmcc.h> #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/power/qcom-rpmpd.h> +#include <dt-bindings/soc/qcom,apr.h> +#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h> +#include <dt-bindings/sound/qcom,q6asm.h> #include <dt-bindings/thermal/thermal.h> / {
@@ -384,6 +388,80 @@ rpmpd_opp_turbo: opp9 { }; }; + modem-smp2p { + compatible = "qcom,smp2p"; + qcom,smem = <435>, <428>; + + interrupts = <GIC_SPI 27 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 14>; + + qcom,local-pid = <0>; + qcom,remote-pid = <1>; + + modem_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + modem_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + adsp-smp2p { + compatible = "qcom,smp2p"; + qcom,smem = <443>, <429>; + + interrupts = <GIC_SPI 291 IRQ_TYPE_EDGE_RISING>; + + mboxes = <&apcs 10>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + smp2p_adsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_adsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + wcnss-smp2p { + compatible = "qcom,smp2p"; + qcom,smem = <451>, <431>; + + interrupts = <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 18>; + + qcom,local-pid = <0>; + qcom,remote-pid = <4>; + + wcnss_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + wcnss_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + smsm { compatible = "qcom,smsm";
@@ -398,6 +476,22 @@ apps_smsm: apps@0 { #qcom,smem-state-cells = <1>; }; + + hexagon_smsm: hexagon@1 { + reg = <1>; + interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + wcnss_smsm: wcnss@6 { + reg = <6>; + interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>; + + interrupt-controller; + #interrupt-cells = <2>; + }; }; soc: soc@0 {
@@ -688,6 +782,59 @@ i2c_8_sleep: i2c-8-sleep-pins { drive-strength = <2>; bias-disable; }; + + wcnss_default: wcnss-default-pins { + wcss_wlan2 { + pins = "gpio76"; + function = "wcss_wlan2"; + }; + wcss_wlan1 { + pins = "gpio77"; + function = "wcss_wlan1"; + }; + wcss_wlan0 { + pins = "gpio78"; + function = "wcss_wlan0"; + }; + wcss_wlan { + pins = "gpio79", "gpio80"; + function = "wcss_wlan"; + }; + + pinconf { + pins = "gpio76", "gpio77", "gpio78", + "gpio79", "gpio80"; + drive-strength = <6>; + bias-pull-up; + }; + }; + + wcnss_sleep: wcnss-sleep-pins { + wcss_wlan2 { + pins = "gpio76"; + function = "wcss_wlan2"; + }; + wcss_wlan1 { + pins = "gpio77"; + function = "wcss_wlan1"; + }; + wcss_wlan0 { + pins = "gpio78"; + function = "wcss_wlan0"; + }; + wcss_wlan { + pins = "gpio79", "gpio80"; + function = "wcss_wlan"; + }; + + pinconf { + pins = "gpio76", "gpio77", + "gpio78", "gpio79", + "gpio80"; + drive-strength = <2>; + bias-pull-down; + }; + }; }; gcc: clock-controller@1800000 {
@@ -745,6 +892,59 @@ spmi_bus: spmi@200f000 { #size-cells = <0>; }; + modem: remoteproc@4080000 { + compatible = "qcom,msm8953-mss-pil"; + reg = <0x4080000 0x100>, + <0x4020000 0x040>; + + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc 0 24 1>, + <&modem_smp2p_in 0 0>, + <&modem_smp2p_in 1 0>, + <&modem_smp2p_in 2 0>, + <&modem_smp2p_in 3 0>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&xo_board>; + clock-names = "iface", "bus", "mem", "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>, <&rpmpd MSM8953_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + resets = <&gcc GCC_MSS_BCR>; + reset-names = "mss_restart"; + + qcom,halt-regs = <&tcsr 0x18000 0x19000 0x1a000>; + + status = "okay"; + + mba { + memory-region = <&mba_mem>; + }; + + mpss { + memory-region = <&mpss_mem>; + }; + + smd-edge { + interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>; + + qcom,smd-edge = <0>; + qcom,ipc = <&apcs 8 12>; + qcom,remote-pid = <1>; + + label = "modem"; + }; + }; + usb3: usb@70f8800 { compatible = "qcom,msm8953-dwc3", "qcom,dwc3"; reg = <0x70f8800 0x400>;
@@ -1057,6 +1257,74 @@ i2c_8: i2c@7af8000 { status = "disabled"; }; + pronto: remoteproc@a21b000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0xa204000 0x2000>, + <0xa202000 0x1000>, + <0xa21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc 0 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8953_VDDCX>, <&rpmpd MSM8953_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,state = <&wcnss_smp2p_out 0>; + qcom,state-names = "stop"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wcnss_default>; + pinctrl-1 = <&wcnss_sleep>; + + status = "okay"; + + iris: iris { + compatible = "qcom,wcn3660b"; + + clocks = <&rpmcc RPM_SMD_RF_CLK2>; + clock-names = "xo"; + }; + + smd-edge { + interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + + wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", "tx-rings-empty"; + }; + }; + }; + }; + intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; interrupt-controller;
@@ -1070,6 +1338,116 @@ apcs: mailbox@b011000 { #mbox-cells = <1>; }; + lpass: remoteproc@c200000 { + compatible = "qcom,msm8953-adsp-pil"; + reg = <0xc200000 0x100>; + + interrupts-extended = <&intc 0 293 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + clocks = <&xo_board>; + clock-names = "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + smd-edge { + interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>; + + label = "lpass"; + mboxes = <&apcs 8>; + qcom,smd-edge = <1>; + qcom,remote-pid = <2>; + #address-cells = <1>; + #size-cells = <0>; + + apr { + compatible = "qcom,apr-v2"; + qcom,smd-channels = "apr_audio_svc"; + qcom,apr-domain = <APR_DOMAIN_ADSP>; + #address-cells = <1>; + #size-cells = <0>; + + q6core { + reg = <APR_SVC_ADSP_CORE>; + compatible = "qcom,q6core"; + }; + + q6afe: q6afe { + compatible = "qcom,q6afe"; + reg = <APR_SVC_AFE>; + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@16 { + reg = <PRIMARY_MI2S_RX>; + qcom,sd-lines = <0 1>; + }; + + dai@21 { + reg = <TERTIARY_MI2S_TX>; + qcom,sd-lines = <0 1>; + }; + }; + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: q6asm { + compatible = "qcom,q6asm"; + reg = <APR_SVC_ASM>; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@0 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + + dai@1 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + + dai@2 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + + dai@3 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>; + is-compress-dai; + }; + }; + }; + + q6adm: q6adm { + compatible = "qcom,q6adm"; + reg = <APR_SVC_ADM>; + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + }; + + }; + timer@b120000 { compatible = "arm,armv7-timer-mem"; reg = <0xb120000 0x1000>;
Signature · 1 line
2.36.0
Re: [PATCH 9/9] arm64: dts: qcom: msm8953: Add remote processor nodes
arch/arm64/boot/dts/qcom/msm8953.dtsi i2c_8_sleep: i2c-8-sleep-pins { · line 813
Quoted 10 lines · Sireesh Kodali
This commit adds the modem (
q6v5_mss), WiFi (wcnss-pil) and audio DSP (q6v5_pas) remote processor nodes for the MSM8953 platform. It also adds the coresponding SMP2P, SMSM and pinctrl nodes that are needed by these remote processors.Signed-off-by Sireesh Kodali <[email protected]>arch/arm64/boot/dts/qcom/msm8953.dtsi +4
-0+ }; + + wcnss_sleep: wcnss-sleep-pins { + wcss_wlan2 {
No underscores in node names, unless something needs it?
Quoted 54 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +47
-0+ pins = "gpio76"; + function = "wcss_wlan2"; + }; + wcss_wlan1 { + pins = "gpio77"; + function = "wcss_wlan1"; + }; + wcss_wlan0 { + pins = "gpio78"; + function = "wcss_wlan0"; + }; + wcss_wlan { + pins = "gpio79", "gpio80"; + function = "wcss_wlan"; + }; + + pinconf { + pins = "gpio76", "gpio77", + "gpio78", "gpio79", + "gpio80"; + drive-strength = <2>; + bias-pull-down; + }; + }; }; gcc: clock-controller@1800000 {@@ -745,6 +892,59 @@ spmi_bus: spmi@200f000 { #size-cells = <0>; }; + modem: remoteproc@4080000 { + compatible = "qcom,msm8953-mss-pil"; + reg = <0x4080000 0x100>, + <0x4020000 0x040>; + + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc 0 24 1>, + <&modem_smp2p_in 0 0>, + <&modem_smp2p_in 1 0>, + <&modem_smp2p_in 2 0>, + <&modem_smp2p_in 3 0>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&xo_board>; + clock-names = "iface", "bus", "mem", "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>, <&rpmpd MSM8953_VDDMX>; + power-domain-names = "cx", "mx";
arch/arm64/boot/dts/qcom/msm8953.dtsi spmi_bus: spmi@200f000 { · line 927
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +10
-0+ + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + resets = <&gcc GCC_MSS_BCR>; + reset-names = "mss_restart"; + + qcom,halt-regs = <&tcsr 0x18000 0x19000 0x1a000>; + + status = "okay";
No need for okay.
Quoted 44 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +37
-0+ + mba { + memory-region = <&mba_mem>; + }; + + mpss { + memory-region = <&mpss_mem>; + }; + + smd-edge { + interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>; + + qcom,smd-edge = <0>; + qcom,ipc = <&apcs 8 12>; + qcom,remote-pid = <1>; + + label = "modem"; + }; + }; + usb3: usb@70f8800 { compatible = "qcom,msm8953-dwc3", "qcom,dwc3"; reg = <0x70f8800 0x400>;@@ -1057,6 +1257,74 @@ i2c_8: i2c@7af8000 { status = "disabled"; }; + pronto: remoteproc@a21b000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0xa204000 0x2000>, + <0xa202000 0x1000>, + <0xa21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc 0 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8953_VDDCX>, <&rpmpd MSM8953_VDDMX>;
arch/arm64/boot/dts/qcom/msm8953.dtsi i2c_8: i2c@7af8000 { · line 1286
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +10
-0+ power-domain-names = "cx", "mx"; + + qcom,state = <&wcnss_smp2p_out 0>; + qcom,state-names = "stop"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wcnss_default>; + pinctrl-1 = <&wcnss_sleep>; + + status = "okay";
No need for status.
Quoted 146 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +139
-0+ + iris: iris { + compatible = "qcom,wcn3660b"; + + clocks = <&rpmcc RPM_SMD_RF_CLK2>; + clock-names = "xo"; + }; + + smd-edge { + interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + + wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", "tx-rings-empty"; + }; + }; + }; + }; + intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; interrupt-controller;@@ -1070,6 +1338,116 @@ apcs: mailbox@b011000 { #mbox-cells = <1>; }; + lpass: remoteproc@c200000 { + compatible = "qcom,msm8953-adsp-pil"; + reg = <0xc200000 0x100>; + + interrupts-extended = <&intc 0 293 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + clocks = <&xo_board>; + clock-names = "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + smd-edge { + interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>; + + label = "lpass"; + mboxes = <&apcs 8>; + qcom,smd-edge = <1>; + qcom,remote-pid = <2>; + #address-cells = <1>; + #size-cells = <0>; + + apr { + compatible = "qcom,apr-v2"; + qcom,smd-channels = "apr_audio_svc"; + qcom,apr-domain = <APR_DOMAIN_ADSP>; + #address-cells = <1>; + #size-cells = <0>; + + q6core { + reg = <APR_SVC_ADSP_CORE>; + compatible = "qcom,q6core"; + }; + + q6afe: q6afe { + compatible = "qcom,q6afe"; + reg = <APR_SVC_AFE>; + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@16 { + reg = <PRIMARY_MI2S_RX>; + qcom,sd-lines = <0 1>; + }; + + dai@21 { + reg = <TERTIARY_MI2S_TX>; + qcom,sd-lines = <0 1>; + }; + }; + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: q6asm { + compatible = "qcom,q6asm"; + reg = <APR_SVC_ASM>; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@0 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + + dai@1 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + + dai@2 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + + dai@3 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>; + is-compress-dai; + }; + }; + }; + + q6adm: q6adm {
arch/arm64/boot/dts/qcom/msm8953.dtsi apcs: mailbox@b011000 { · line 1448
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +10
-0+ compatible = "qcom,q6adm"; + reg = <APR_SVC_ADM>; + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + }; +
Remove unneeded blank lines.
arch/arm64/boot/dts/qcom/msm8953.dtsi apcs: mailbox@b011000 { · line 1453
Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +2
-0+ }; + timer@b120000 { compatible = "arm,armv7-timer-mem"; reg = <0xb120000 0x1000>;
Best regards,
Krzysztof
Re: [PATCH 9/9] arm64: dts: qcom: msm8953: Add remote processor nodes
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Sireesh Kodali
This commit adds the modem (
q6v5_mss), WiFi (wcnss-pil) and audio DSP (q6v5_pas) remote processor nodes for the MSM8953 platform. It also adds the coresponding SMP2P, SMSM and pinctrl nodes that are needed by these remote processors.
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi i2c_8_sleep: i2c-8-sleep-pins { · line 813
Quoted 5 lines
Signed-off-by Sireesh Kodali <[email protected]>arch/arm64/boot/dts/qcom/msm8953.dtsi +4
-0+ }; + + wcnss_sleep: wcnss-sleep-pins { + wcss_wlan2 {No underscores in node names, unless something needs it?
wcnss_sleep is used by the pronto node defined below
Quoted 58 lines
Quoted 58 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +51
-0+ pins = "gpio76"; + function = "wcss_wlan2"; + }; + wcss_wlan1 { + pins = "gpio77"; + function = "wcss_wlan1"; + }; + wcss_wlan0 { + pins = "gpio78"; + function = "wcss_wlan0"; + }; + wcss_wlan { + pins = "gpio79", "gpio80"; + function = "wcss_wlan"; + }; + + pinconf { + pins = "gpio76", "gpio77", + "gpio78", "gpio79", + "gpio80"; + drive-strength = <2>; + bias-pull-down; + }; + }; }; gcc: clock-controller@1800000 {@@ -745,6 +892,59 @@ spmi_bus: spmi@200f000 { #size-cells = <0>; }; + modem: remoteproc@4080000 { + compatible = "qcom,msm8953-mss-pil"; + reg = <0x4080000 0x100>, + <0x4020000 0x040>; + + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc 0 24 1>, + <&modem_smp2p_in 0 0>, + <&modem_smp2p_in 1 0>, + <&modem_smp2p_in 2 0>, + <&modem_smp2p_in 3 0>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&xo_board>; + clock-names = "iface", "bus", "mem", "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>, <&rpmpd MSM8953_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; +
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi spmi_bus: spmi@200f000 { · line 927
Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +6
-0+ resets = <&gcc GCC_MSS_BCR>; + reset-names = "mss_restart"; + + qcom,halt-regs = <&tcsr 0x18000 0x19000 0x1a000>; + + status = "okay";No need for okay.
I'll drop it in v2
Quoted 49 lines
Quoted 49 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +41
-0+ + mba { + memory-region = <&mba_mem>; + }; + + mpss { + memory-region = <&mpss_mem>; + }; + + smd-edge { + interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>; + + qcom,smd-edge = <0>; + qcom,ipc = <&apcs 8 12>; + qcom,remote-pid = <1>; + + label = "modem"; + }; + }; + usb3: usb@70f8800 { compatible = "qcom,msm8953-dwc3", "qcom,dwc3"; reg = <0x70f8800 0x400>;@@ -1057,6 +1257,74 @@ i2c_8: i2c@7af8000 { status = "disabled"; }; + pronto: remoteproc@a21b000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0xa204000 0x2000>, + <0xa202000 0x1000>, + <0xa21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc 0 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8953_VDDCX>, <&rpmpd MSM8953_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,state = <&wcnss_smp2p_out 0>; + qcom,state-names = "stop";
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi i2c_8: i2c@7af8000 { · line 1286
Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +6
-0+ + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wcnss_default>; + pinctrl-1 = <&wcnss_sleep>; + + status = "okay";No need for status.
Will be dropped in v2
Quoted 151 lines
Quoted 151 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +143
-0+ + iris: iris { + compatible = "qcom,wcn3660b"; + + clocks = <&rpmcc RPM_SMD_RF_CLK2>; + clock-names = "xo"; + }; + + smd-edge { + interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + + wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", "tx-rings-empty"; + }; + }; + }; + }; + intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; interrupt-controller;@@ -1070,6 +1338,116 @@ apcs: mailbox@b011000 { #mbox-cells = <1>; }; + lpass: remoteproc@c200000 { + compatible = "qcom,msm8953-adsp-pil"; + reg = <0xc200000 0x100>; + + interrupts-extended = <&intc 0 293 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + clocks = <&xo_board>; + clock-names = "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + smd-edge { + interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>; + + label = "lpass"; + mboxes = <&apcs 8>; + qcom,smd-edge = <1>; + qcom,remote-pid = <2>; + #address-cells = <1>; + #size-cells = <0>; + + apr { + compatible = "qcom,apr-v2"; + qcom,smd-channels = "apr_audio_svc"; + qcom,apr-domain = <APR_DOMAIN_ADSP>; + #address-cells = <1>; + #size-cells = <0>; + + q6core { + reg = <APR_SVC_ADSP_CORE>; + compatible = "qcom,q6core"; + }; + + q6afe: q6afe { + compatible = "qcom,q6afe"; + reg = <APR_SVC_AFE>; + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@16 { + reg = <PRIMARY_MI2S_RX>; + qcom,sd-lines = <0 1>; + }; + + dai@21 { + reg = <TERTIARY_MI2S_TX>; + qcom,sd-lines = <0 1>; + }; + }; + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: q6asm { + compatible = "qcom,q6asm"; + reg = <APR_SVC_ASM>; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@0 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + + dai@1 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + + dai@2 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + + dai@3 { + reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>; + is-compress-dai; + }; + }; + }; + + q6adm: q6adm { + compatible = "qcom,q6adm"; + reg = <APR_SVC_ADM>; + q6routing: routing { + compatible = "qcom,q6adm-routing";
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi apcs: mailbox@b011000 { · line 1448
Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +6
-0+ #sound-dai-cells = <0>; + }; + }; + }; + }; +Remove unneeded blank lines.
Will be fixed in v2
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi apcs: mailbox@b011000 { · line 1453
Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi +2
-0+ }; + timer@b120000 { compatible = "arm,armv7-timer-mem"; reg = <0xb120000 0x1000>;Best regards,
Krzysztof
Thanks,
Sireesh Kodali
Re: [PATCH 9/9] arm64: dts: qcom: msm8953: Add remote processor nodes
Quoted 16 lines · Sireesh Kodali
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Sireesh Kodali
This commit adds the modem (
q6v5_mss), WiFi (wcnss-pil) and audio DSP (q6v5_pas) remote processor nodes for the MSM8953 platform. It also adds the coresponding SMP2P, SMSM and pinctrl nodes that are needed by these remote processors.Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8953.dtsi i2c_8_sleep: i2c-8-sleep-pins { · line 813
Quoted 5 lines
Signed-off-by Sireesh Kodali <[email protected]>arch/arm64/boot/dts/qcom/msm8953.dtsi +4
-0+ }; + + wcnss_sleep: wcnss-sleep-pins { + wcss_wlan2 {No underscores in node names, unless something needs it?
Quoted 1 line
wcnss_sleepis used by the pronto node defined below
wcnss_sleep is not a node name and it is not in the line where I commented.
Best regards,
Krzysztof
Re: [PATCH 9/9] arm64: dts: qcom: msm8953: Add remote processor nodes
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Sireesh Kodali
Quoted 14 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/msm8953.dtsi i2c_8_sleep: i2c-8-sleep-pins { · line 813
Quoted 10 lines · Sireesh Kodali
This commit adds the modem (
q6v5_mss), WiFi (wcnss-pil) and audio DSP (q6v5_pas) remote processor nodes for the MSM8953 platform. It also adds the coresponding SMP2P, SMSM and pinctrl nodes that are needed by these remote processors.Signed-off-by Sireesh Kodali <[email protected]>arch/arm64/boot/dts/qcom/msm8953.dtsi +4
-0+ }; + + wcnss_sleep: wcnss-sleep-pins { + wcss_wlan2 {No underscores in node names, unless something needs it?
Quoted 4 lines
Quoted 1 line
wcnss_sleepis used by the pronto node defined below
wcnss_sleepis not a node name and it is not in the line where I commented.
Sorry, I'll fix it in v2
Quoted 2 lines
Best regards,
Krzysztof
Thanks,
Sireesh