[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240903220240.2594102-17-quic_nkela@quicinc.com>
Date: Tue, 3 Sep 2024 15:02:35 -0700
From: Nikunj Kela <quic_nkela@...cinc.com>
To: <quic_nkela@...cinc.com>
CC: <andersson@...nel.org>, <konradybcio@...nel.org>, <robh@...nel.org>,
<krzk+dt@...nel.org>, <conor+dt@...nel.org>, <rafael@...nel.org>,
<viresh.kumar@...aro.org>, <herbert@...dor.apana.org.au>,
<davem@...emloft.net>, <sudeep.holla@....com>, <andi.shyti@...nel.org>,
<tglx@...utronix.de>, <will@...nel.org>, <robin.murphy@....com>,
<joro@...tes.org>, <jassisinghbrar@...il.com>, <lee@...nel.org>,
<linus.walleij@...aro.org>, <amitk@...nel.org>,
<thara.gopinath@...il.com>, <broonie@...nel.org>,
<cristian.marussi@....com>, <rui.zhang@...el.com>,
<lukasz.luba@....com>, <wim@...ux-watchdog.org>, <linux@...ck-us.net>,
<linux-arm-msm@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-crypto@...r.kernel.org>, <arm-scmi@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-i2c@...r.kernel.org>,
<iommu@...ts.linux.dev>, <linux-gpio@...r.kernel.org>,
<linux-serial@...r.kernel.org>, <linux-spi@...r.kernel.org>,
<linux-watchdog@...r.kernel.org>, <kernel@...cinc.com>,
<quic_psodagud@...cinc.com>, Praveen Talari <quic_ptalari@...cinc.com>
Subject: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
Add compatible representing spi support on SA8255p.
Clocks and interconnects are being configured in firmware VM
on SA8255p platform, therefore making them optional.
CC: Praveen Talari <quic_ptalari@...cinc.com>
Signed-off-by: Nikunj Kela <quic_nkela@...cinc.com>
---
.../bindings/spi/qcom,spi-geni-qcom.yaml | 60 +++++++++++++++++--
1 file changed, 56 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
index 2e20ca313ec1..75b52c0a7440 100644
--- a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
@@ -25,10 +25,45 @@ description:
allOf:
- $ref: /schemas/spi/spi-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,sa8255p-geni-spi
+ then:
+ required:
+ - power-domains
+ - power-domain-names
+
+ properties:
+ power-domains:
+ minItems: 2
+
+ else:
+ required:
+ - clocks
+ - clock-names
+
+ properties:
+ power-domains:
+ maxItems: 1
+
+ interconnects:
+ minItems: 2
+ maxItems: 3
+
+ interconnect-names:
+ minItems: 2
+ items:
+ - const: qup-core
+ - const: qup-config
+ - const: qup-memory
properties:
compatible:
- const: qcom,geni-spi
+ enum:
+ - qcom,geni-spi
+ - qcom,sa8255p-geni-spi
clocks:
maxItems: 1
@@ -61,15 +96,19 @@ properties:
operating-points-v2: true
power-domains:
- maxItems: 1
+ minItems: 1
+ maxItems: 2
+
+ power-domain-names:
+ items:
+ - const: power
+ - const: perf
reg:
maxItems: 1
required:
- compatible
- - clocks
- - clock-names
- interrupts
- reg
@@ -116,3 +155,16 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
};
+
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ spi@...000 {
+ compatible = "qcom,sa8255p-geni-spi";
+ reg = <0x888000 0x4000>;
+ interrupts = <GIC_SPI 584 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ power-domains = <&scmi10_pd 16>, <&scmi10_dvfs 16>;
+ power-domain-names = "power", "perf";
+ };
--
2.34.1
Powered by blists - more mailing lists