Linux SPI subsystem development
 help / color / mirror / Atom feed
From: Nikunj Kela <quic_nkela@quicinc.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: <andersson@kernel.org>, <konradybcio@kernel.org>,
	<robh@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>, <robin.murphy@arm.com>,
	<joro@8bytes.org>, <jassisinghbrar@gmail.com>, <lee@kernel.org>,
	<linus.walleij@linaro.org>, <amitk@kernel.org>,
	<thara.gopinath@gmail.com>, <broonie@kernel.org>,
	<cristian.marussi@arm.com>, <rui.zhang@intel.com>,
	<lukasz.luba@arm.com>, <wim@linux-watchdog.org>,
	<linux@roeck-us.net>, <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>,
	Praveen Talari <quic_ptalari@quicinc.com>
Subject: Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
Date: Wed, 4 Sep 2024 05:41:01 -0700	[thread overview]
Message-ID: <06968d9d-0428-4fe8-8526-c91db3d9f0e7@quicinc.com> (raw)
In-Reply-To: <xtguaoof7iblrtd2idsa2k4ml64qkttgliyijbeqw5thkdcbx3@jnm75a4wmbqd>


On 9/3/2024 11:31 PM, Krzysztof Kozlowski wrote:
> On Tue, Sep 03, 2024 at 03:02:34PM -0700, Nikunj Kela wrote:
>> Add compatible representing i2c support on SA8255p.
>>
>> Clocks and interconnects are being configured in Firmware VM
>> on SA8255p, therefore making them optional.
>>
>> CC: Praveen Talari <quic_ptalari@quicinc.com>
>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>> ---
>>  .../bindings/i2c/qcom,i2c-geni-qcom.yaml      | 33 +++++++++++++++++--
>>  1 file changed, 31 insertions(+), 2 deletions(-)
>>
> I don't know what to do with this patch. Using specific compatibles next
> to generic compatible is just wrong, although mistake was probably
> allowing generic compatible. The patch does not explain the differences
> in interface which would explain why devices are not compatible.

I mentioned in the description that clocks and interconnects on this
platform are configured in Firmware VM(over SCMI using power and perf
domains) therefore this is not compatible with existing generic compatible.


>  In the
> same time my advice of separate binding was not followed, because maybe
> these devices are compatible? But then it should be expressed...

Sorry, I missed that. You want me to use 'oneOf' expression with this
compatible?


>
> You have entire commit msg to explain what and why.

Will put more details in description.


>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml
>> index 9f66a3bb1f80..b477fae734b6 100644
>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml
>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml
>> @@ -15,6 +15,7 @@ properties:
>>      enum:
>>        - qcom,geni-i2c
>>        - qcom,geni-i2c-master-hub
>> +      - qcom,sa8255p-geni-i2c
>>  
>>    clocks:
>>      minItems: 1
>> @@ -69,8 +70,6 @@ properties:
>>  required:
>>    - compatible
>>    - interrupts
>> -  - clocks
>> -  - clock-names
>>    - reg
>>  
>>  allOf:
>> @@ -81,6 +80,10 @@ allOf:
>>            contains:
>>              const: qcom,geni-i2c-master-hub
>>      then:
>> +      required:
>> +        - clocks
>> +        - clock-names
>
> So it is required here?

We are removing clocks from generic required list and enforcing rules
for all compatibles other than sa8255p.


>> +
>>        properties:
>>          clocks:
>>            minItems: 2
>> @@ -100,7 +103,21 @@ allOf:
>>            items:
>>              - const: qup-core
>>              - const: qup-config
>> +
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            const: qcom,sa8255p-geni-i2c
>> +    then:
>> +      required:
>> +        - power-domains
>> +
> And possible here? I assume with the same clocks? The same for
> interconnects - same values are valid?

I guess I need to put here the same description as in the cover letter
to make it more clear. We are not using clocks and interconnects in this
platform in Linux. Instead, sending request to Firmware VM over
SCMI(using power and perf protocols)


>
>>      else:
>> +      required:
>> +        - clocks
>> +        - clock-names
> And clocks are required again?
Explained above.
>> +
>>        properties:
>>          clocks:
>>            maxItems: 1
> Eeee? So now all other variants have max 1 clock?

I will make if block for sa8255p up so else is not applied to rest of
the platforms.


>
> Nope, this wasn't ever tested on real DTS.

This is tested on SA8255p DTS and I ran DT schema check on SA8775p DT as
well.


>
> Best regards,
> Krzysztof
>

  reply	other threads:[~2024-09-04 12:41 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
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 [this message]
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=06968d9d-0428-4fe8-8526-c91db3d9f0e7@quicinc.com \
    --to=quic_nkela@quicinc.com \
    --cc=amitk@kernel.org \
    --cc=andersson@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=arm-scmi@vger.kernel.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=krzk@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_psodagud@quicinc.com \
    --cc=quic_ptalari@quicinc.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --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=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