Commit e6e0f093 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

dt-bindings: soc: qcom: fix IPA binding

The definitions for the "qcom,smem-states" and "qcom,smem-state-names"
properties need to list their "$ref" under an "allOf" keyword.

In addition, fix two problems in the example at the end:
  - Use #include for header files that define needed symbolic values
  - Terminate the line that includes the "ipa-shared" register space
    name with a comma rather than a semicolon

Finally, update some white space in the example for better alignment.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 767d3ded
...@@ -87,14 +87,16 @@ properties: ...@@ -87,14 +87,16 @@ properties:
- const: config - const: config
qcom,smem-states: qcom,smem-states:
$ref: /schemas/types.yaml#/definitions/phandle-array allOf:
- $ref: /schemas/types.yaml#/definitions/phandle-array
description: State bits used in by the AP to signal the modem. description: State bits used in by the AP to signal the modem.
items: items:
- description: Whether the "ipa-clock-enabled" state bit is valid - description: Whether the "ipa-clock-enabled" state bit is valid
- description: Whether the IPA clock is enabled (if valid) - description: Whether the IPA clock is enabled (if valid)
qcom,smem-state-names: qcom,smem-state-names:
$ref: /schemas/types.yaml#/definitions/string-array allOf:
- $ref: /schemas/types.yaml#/definitions/string-array
description: The names of the state bits used for SMP2P output description: The names of the state bits used for SMP2P output
items: items:
- const: ipa-clock-enabled-valid - const: ipa-clock-enabled-valid
...@@ -139,6 +141,10 @@ oneOf: ...@@ -139,6 +141,10 @@ oneOf:
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interconnect/qcom,sdm845.h>
smp2p-mpss { smp2p-mpss {
compatible = "qcom,smp2p"; compatible = "qcom,smp2p";
ipa_smp2p_out: ipa-ap-to-modem { ipa_smp2p_out: ipa-ap-to-modem {
...@@ -162,17 +168,17 @@ examples: ...@@ -162,17 +168,17 @@ examples:
<0 0x1e47000 0 0x2000>, <0 0x1e47000 0 0x2000>,
<0 0x1e04000 0 0x2c000>; <0 0x1e04000 0 0x2c000>;
reg-names = "ipa-reg", reg-names = "ipa-reg",
"ipa-shared"; "ipa-shared",
"gsi"; "gsi";
interrupts-extended = <&intc 0 311 IRQ_TYPE_EDGE_RISING>, interrupts-extended = <&intc 0 311 IRQ_TYPE_EDGE_RISING>,
<&intc 0 432 IRQ_TYPE_LEVEL_HIGH>, <&intc 0 432 IRQ_TYPE_LEVEL_HIGH>,
<&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
<&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>; <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ipa", interrupt-names = "ipa",
"gsi", "gsi",
"ipa-clock-query", "ipa-clock-query",
"ipa-setup-ready"; "ipa-setup-ready";
clocks = <&rpmhcc RPMH_IPA_CLK>; clocks = <&rpmhcc RPMH_IPA_CLK>;
clock-names = "core"; clock-names = "core";
...@@ -182,11 +188,11 @@ examples: ...@@ -182,11 +188,11 @@ examples:
<&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_IMEM>, <&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_IMEM>,
<&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_IPA_CFG>; <&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_IPA_CFG>;
interconnect-names = "memory", interconnect-names = "memory",
"imem", "imem",
"config"; "config";
qcom,smem-states = <&ipa_smp2p_out 0>, qcom,smem-states = <&ipa_smp2p_out 0>,
<&ipa_smp2p_out 1>; <&ipa_smp2p_out 1>;
qcom,smem-state-names = "ipa-clock-enabled-valid", qcom,smem-state-names = "ipa-clock-enabled-valid",
"ipa-clock-enabled"; "ipa-clock-enabled";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment