Linux SPI subsystem development
 help / color / mirror / Atom feed
From: Nikunj Kela <quic_nkela@quicinc.com>
To: Rob Herring <robh@kernel.org>
Cc: <andersson@kernel.org>, <konradybcio@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>, <rafael@kernel.org>,
	<viresh.kumar@linaro.org>, <herbert@gondor.apana.org.au>,
	<davem@davemloft.net>, <sudeep.holla@arm.com>,
	<andi.shyti@kernel.org>, <tglx@linutronix.de>, <will@kernel.org>,
	<joro@8bytes.org>, <jassisinghbrar@gmail.com>, <lee@kernel.org>,
	<linus.walleij@linaro.org>, <amitk@kernel.org>,
	<thara.gopinath@gmail.com>, <broonie@kernel.org>,
	<wim@linux-watchdog.org>, <linux@roeck-us.net>,
	<robin.murphy@arm.com>, <cristian.marussi@arm.com>,
	<rui.zhang@intel.com>, <lukasz.luba@arm.com>, <vkoul@kernel.org>,
	<quic_gurus@quicinc.com>, <agross@kernel.org>,
	<bartosz.golaszewski@linaro.org>, <quic_rjendra@quicinc.com>,
	<robimarko@gmail.com>, <linux-arm-msm@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-pm@vger.kernel.org>, <linux-crypto@vger.kernel.org>,
	<arm-scmi@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-i2c@vger.kernel.org>, <iommu@lists.linux.dev>,
	<linux-gpio@vger.kernel.org>, <linux-serial@vger.kernel.org>,
	<linux-spi@vger.kernel.org>, <linux-watchdog@vger.kernel.org>,
	<kernel@quicinc.com>, <quic_psodagud@quicinc.com>,
	<quic_tsoni@quicinc.com>, <quic_shazhuss@quicinc.com>,
	Praveen Talari <quic_ptalari@quicinc.com>
Subject: Re: [PATCH 18/22] dt-bindings: spi: document support for SA8255p
Date: Thu, 29 Aug 2024 07:28:16 -0700	[thread overview]
Message-ID: <e391c0b3-079c-48be-b343-f4e893f910af@quicinc.com> (raw)
In-Reply-To: <20240829030636.GA2208587-robh@kernel.org>


On 8/28/2024 8:06 PM, Rob Herring wrote:
> On Wed, Aug 28, 2024 at 01:37:17PM -0700, Nikunj Kela wrote:
>> 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@quicinc.com>
>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>> ---
>>  .../bindings/spi/qcom,spi-geni-qcom.yaml      | 64 +++++++++++++++----
>>  1 file changed, 53 insertions(+), 11 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..74ea7c4f2451 100644
>> --- a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
>> +++ b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
>> @@ -25,10 +25,41 @@ description:
>>  
>>  allOf:
>>    - $ref: /schemas/spi/spi-controller.yaml#
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            const: qcom,sa8255p-geni-spi
>> +    then:
>> +      required:
>> +        - power-domains
>> +        - power-domain-names
> blank line
>
>> +      properties:
>> +        power-domains:
>> +          minItems: 2
>> +          maxItems: 2
> Drop maxItems as 2 is already the max (with my change below).
>
> Add blank line here.
>
>> +    else:
>> +      required:
>> +        - clocks
>> +        - clock-names
> blank line
>
>> +      properties:
>> +        power-domains:
>> +          maxItems: 1
> blank line
>
>> +        interconnects:
>> +          minItems: 2
>> +          maxItems: 3
> blank line
>
>> +        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
>> @@ -45,15 +76,10 @@ properties:
>>        - const: rx
>>  
>>    interconnects:
>> -    minItems: 2
>> -    maxItems: 3
>> +    description: phandles of interconnect bw provider
>>  
>>    interconnect-names:
>> -    minItems: 2
>> -    items:
>> -      - const: qup-core
>> -      - const: qup-config
>> -      - const: qup-memory
>> +    description: names of interconnects
> No, keep all properties defined at the top-level and then add 
> constraints in if/then schemas.
>
>>  
>>    interrupts:
>>      maxItems: 1
>> @@ -61,15 +87,18 @@ properties:
>>    operating-points-v2: true
>>  
>>    power-domains:
>> -    maxItems: 1
>> +    $ref: "/schemas/power/power-domain.yaml#/properties/power-domains"
> Do you see an example of this anywhere else? No. You need:
>
> minItems: 1
> maxItems: 2

Thanks Rob for reviewing the patch. Will take care of your comments in
next version.


>> +
>> +  power-domain-names:
>> +    items:
>> +      - const: power
>> +      - const: perf
>>  
>>    reg:
>>      maxItems: 1
>>  
>>  required:
>>    - compatible
>> -  - clocks
>> -  - clock-names
>>    - interrupts
>>    - reg
>>  
>> @@ -116,3 +145,16 @@ examples:
>>          #address-cells = <1>;
>>          #size-cells = <0>;
>>      };
>> +
>> +  - |
>> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
>> +
>> +    spi@888000 {
>> +        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
>>

  reply	other threads:[~2024-08-29 14:28 UTC|newest]

Thread overview: 147+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-28 20:36 [PATCH 00/22] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
2024-08-28 20:37 ` [PATCH 01/22] dt-bindings: arm: qcom: add the SoC ID for SA8255P Nikunj Kela
2024-08-29  6:26   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 02/22] soc: qcom: socinfo: add support " Nikunj Kela
2024-08-29  6:26   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 03/22] dt-bindings: arm: qcom: add SA8255p Ride board Nikunj Kela
2024-08-29  6:26   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 04/22] dt-bindings: firmware: qcom,scm: document support for SA8255p Nikunj Kela
2024-08-29  6:28   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 05/22] dt-bindings: mailbox: qcom-ipcc: document the " Nikunj Kela
2024-08-29  6:29   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 06/22] dt-bindings: watchdog: qcom-wdt: document support on SA8255p Nikunj Kela
2024-08-29  6:29   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 07/22] dt-bindings: crypto: qcom,prng: document support for SA8255p Nikunj Kela
2024-08-29  7:27   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 08/22] dt-bindings: interrupt-controller: qcom-pdc: " Nikunj Kela
2024-08-29  7:28   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 09/22] dt-bindings: soc: qcom: aoss-qmp: " Nikunj Kela
2024-08-29  7:28   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 10/22] dt-bindings: pinctrl: " Nikunj Kela
2024-08-29  7:30   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 11/22] pinctrl: qcom: sa8775p: Add support for SA8255p SoC Nikunj Kela
2024-08-29  7:29   ` Krzysztof Kozlowski
2024-08-29 14:17     ` Nikunj Kela
2024-08-30  9:52       ` Krzysztof Kozlowski
2024-09-03 15:24         ` Nikunj Kela
2024-09-03 15:34           ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 12/22] dt-bindings: cpufreq: qcom-hw: document support for SA8255p Nikunj Kela
2024-08-29  7:32   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 13/22] dt-bindings: thermal: tsens: document support on SA8255p Nikunj Kela
2024-08-29  7:33   ` Krzysztof Kozlowski
2024-09-02 11:13   ` Daniel Lezcano
2024-08-28 20:37 ` [PATCH 14/22] dt-bindings: arm-smmu: document the " Nikunj Kela
2024-08-29  7:36   ` Krzysztof Kozlowski
2024-08-29 15:39     ` Nikunj Kela
2024-08-30 10:00       ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 15/22] dt-bindings: mfd: qcom,tcsr: document support for SA8255p Nikunj Kela
2024-08-29  7:37   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 16/22] dt-bindings: qcom: geni-se: document support for SA8255P Nikunj Kela
2024-08-28 23:44   ` Rob Herring (Arm)
2024-08-29  7:42   ` Krzysztof Kozlowski
2024-08-29 14:23     ` Nikunj Kela
2024-08-30  9:58       ` Krzysztof Kozlowski
2024-08-30 14:55         ` Nikunj Kela
2024-08-28 20:37 ` [PATCH 17/22] dt-bindings: serial: document support for SA8255p Nikunj Kela
2024-08-29  7:41   ` Krzysztof Kozlowski
2024-08-29 14:27     ` Nikunj Kela
2024-08-28 20:37 ` [PATCH 18/22] dt-bindings: spi: " Nikunj Kela
2024-08-28 23:45   ` Rob Herring (Arm)
2024-08-29  3:06   ` Rob Herring
2024-08-29 14:28     ` Nikunj Kela [this message]
2024-08-28 20:37 ` [PATCH 19/22] dt-bindings: i2c: " Nikunj Kela
2024-08-29  7:44   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 20/22] dt-bindings: firmware: arm,scmi: allow multiple virtual instances Nikunj Kela
2024-08-29  7:45   ` Krzysztof Kozlowski
2024-08-28 20:37 ` [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier Nikunj Kela
2024-08-29  7:46   ` Krzysztof Kozlowski
2024-08-29 18:52   ` Rob Herring
2024-08-29 19:01     ` Nikunj Kela
2024-08-30 14:44       ` Rob Herring
2024-08-30 14:51         ` Nikunj Kela
2024-08-28 20:37 ` [PATCH 22/22] arm64: dts: qcom: Add reduced functional DT for SA8255p Ride platform Nikunj Kela
2024-08-29  7:49   ` Krzysztof Kozlowski
2024-08-29 19:06     ` Nikunj Kela
2024-08-30  9:51       ` Krzysztof Kozlowski
2024-08-30 14:58         ` Nikunj Kela
2024-08-29  7:57 ` [PATCH 00/22] arm64: qcom: Introduce " Krzysztof Kozlowski
2024-08-29 14:32   ` Nikunj Kela
2024-09-03 22:02 ` [PATCH v2 00/21] " Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 01/21] dt-bindings: arm: qcom: add the SoC ID for SA8255P Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 02/21] soc: qcom: socinfo: add support " Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 03/21] dt-bindings: arm: qcom: add SA8255p Ride board Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 04/21] dt-bindings: firmware: qcom,scm: document support for SA8255p Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 05/21] dt-bindings: mailbox: qcom-ipcc: document the " Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 06/21] dt-bindings: watchdog: qcom-wdt: document support on SA8255p Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 07/21] dt-bindings: crypto: qcom,prng: document support for SA8255p Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 08/21] dt-bindings: interrupt-controller: qcom-pdc: " Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 09/21] dt-bindings: soc: qcom: aoss-qmp: " Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 10/21] dt-bindings: arm-smmu: document the support on SA8255p Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 11/21] dt-bindings: mfd: qcom,tcsr: document support for SA8255p Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 12/21] dt-bindings: thermal: tsens: document support on SA8255p Nikunj Kela
2024-09-06  7:38     ` Daniel Lezcano
2024-09-03 22:02   ` [PATCH v2 13/21] dt-bindings: pinctrl: Add SA8255p TLMM Nikunj Kela
2024-09-04  1:50     ` Rob Herring (Arm)
2024-09-03 22:02   ` [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p Nikunj Kela
2024-09-04  6:26     ` Krzysztof Kozlowski
2024-09-04 12:27       ` Nikunj Kela
2024-09-04 13:17         ` Krzysztof Kozlowski
2024-09-04 14:19           ` Nikunj Kela
2024-09-04 14:29             ` Krzysztof Kozlowski
2024-09-03 22:02   ` [PATCH v2 15/21] dt-bindings: i2c: " Nikunj Kela
2024-09-04  6:31     ` Krzysztof Kozlowski
2024-09-04 12:41       ` Nikunj Kela
2024-09-04 13:20         ` Krzysztof Kozlowski
2024-09-04  7:49     ` Krzysztof Kozlowski
2024-09-04  7:55       ` Wolfram Sang
2024-09-04 12:45         ` Nikunj Kela
2024-09-04 13:20           ` Krzysztof Kozlowski
2024-09-05 19:28           ` Andi Shyti
2024-09-03 22:02   ` [PATCH v2 16/21] dt-bindings: spi: " Nikunj Kela
2024-09-04  6:34     ` Krzysztof Kozlowski
2024-09-04 12:48       ` Nikunj Kela
2024-09-04 13:21         ` Krzysztof Kozlowski
2024-09-04 16:14           ` Nikunj Kela
2024-09-04 16:58             ` Andrew Lunn
2024-09-04 21:06               ` Nikunj Kela
2024-09-04 21:49                 ` Andrew Lunn
2024-09-05  8:04                 ` Krzysztof Kozlowski
2024-09-05 14:03                   ` Nikunj Kela
2024-09-05 14:09                     ` Krzysztof Kozlowski
2024-09-05 14:15                       ` Nikunj Kela
2024-09-05 14:39                         ` Krzysztof Kozlowski
2024-09-05 16:08                           ` Nikunj Kela
2024-09-05 16:23                             ` Andrew Lunn
2024-09-05 16:39                               ` Nikunj Kela
2024-09-05 17:35                                 ` Andrew Lunn
2024-09-05 16:56                             ` Krzysztof Kozlowski
2024-09-05 17:00                               ` Krzysztof Kozlowski
2024-09-05 14:46                         ` Andrew Lunn
2024-09-05 14:49                         ` Krzysztof Kozlowski
2024-09-05 15:43                           ` Nikunj Kela
2024-09-09 20:29           ` Nikunj Kela
2024-09-09 22:00             ` Mark Brown
2024-09-05 13:21         ` Dmitry Baryshkov
2024-09-04  7:48     ` Krzysztof Kozlowski
2024-09-04 12:49       ` Nikunj Kela
2024-09-05 13:22         ` Dmitry Baryshkov
2024-09-03 22:02   ` [PATCH v2 17/21] dt-bindings: serial: " Nikunj Kela
2024-09-04  6:36     ` Krzysztof Kozlowski
2024-09-04 12:54       ` Nikunj Kela
2024-09-04 13:24         ` Krzysztof Kozlowski
2024-09-04  7:47     ` Krzysztof Kozlowski
2024-09-04 12:56       ` Nikunj Kela
2024-09-04 13:16         ` Krzysztof Kozlowski
2024-09-04 17:05         ` Andrew Lunn
2024-09-04 21:10           ` Nikunj Kela
2024-09-04 21:54             ` Andrew Lunn
2024-09-05  8:08               ` Krzysztof Kozlowski
2024-09-03 22:02   ` [PATCH v2 18/21] dt-bindings: qcom: geni-se: document support for SA8255P Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 19/21] dt-bindings: firmware: arm,scmi: allow multiple virtual instances Nikunj Kela
2024-09-04  6:39     ` Krzysztof Kozlowski
2024-09-03 22:02   ` [PATCH v2 20/21] dt-bindings: arm: GIC: add ESPI and EPPI specifiers Nikunj Kela
2024-09-03 22:02   ` [PATCH v2 21/21] arm64: dts: qcom: Add reduced functional DT for SA8255p Ride platform Nikunj Kela
2024-09-04  5:54   ` [PATCH v2 00/21] arm64: qcom: Introduce " Krzysztof Kozlowski
2024-09-04 12:58     ` Nikunj Kela
2024-09-04 23:50   ` Nikunj Kela
2024-09-05 12:59   ` Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e391c0b3-079c-48be-b343-f4e893f910af@quicinc.com \
    --to=quic_nkela@quicinc.com \
    --cc=agross@kernel.org \
    --cc=amitk@kernel.org \
    --cc=andersson@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=arm-scmi@vger.kernel.org \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=iommu@lists.linux.dev \
    --cc=jassisinghbrar@gmail.com \
    --cc=joro@8bytes.org \
    --cc=kernel@quicinc.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=lukasz.luba@arm.com \
    --cc=quic_gurus@quicinc.com \
    --cc=quic_psodagud@quicinc.com \
    --cc=quic_ptalari@quicinc.com \
    --cc=quic_rjendra@quicinc.com \
    --cc=quic_shazhuss@quicinc.com \
    --cc=quic_tsoni@quicinc.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=robimarko@gmail.com \
    --cc=robin.murphy@arm.com \
    --cc=rui.zhang@intel.com \
    --cc=sudeep.holla@arm.com \
    --cc=tglx@linutronix.de \
    --cc=thara.gopinath@gmail.com \
    --cc=viresh.kumar@linaro.org \
    --cc=vkoul@kernel.org \
    --cc=will@kernel.org \
    --cc=wim@linux-watchdog.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox