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,7 +168,7 @@ examples: ...@@ -162,7 +168,7 @@ 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>,
......
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