linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier
       [not found] ` <20240828203721.2751904-22-quic_nkela@quicinc.com>
@ 2024-08-29 18:52   ` Rob Herring
  2024-08-29 19:01     ` Nikunj Kela
  0 siblings, 1 reply; 82+ messages in thread
From: Rob Herring @ 2024-08-29 18:52 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, krzk+dt, conor+dt, rafael, viresh.kumar,
	herbert, davem, sudeep.holla, andi.shyti, tglx, will, joro,
	jassisinghbrar, lee, linus.walleij, amitk, thara.gopinath,
	broonie, wim, linux, robin.murphy, cristian.marussi, rui.zhang,
	lukasz.luba, vkoul, quic_gurus, agross, bartosz.golaszewski,
	quic_rjendra, robimarko, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, quic_tsoni, quic_shazhuss

On Wed, Aug 28, 2024 at 01:37:20PM -0700, Nikunj Kela wrote:
> Add interrupt specifier for extended SPI interrupts.

What's an "extended SPI"? Is this a GIC spec thing? If so, what version?

> 
> Qualcomm SA8255p platform uses extended SPI for SCMI 'a2p' doorbells.
> 
> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
> ---
>  include/dt-bindings/interrupt-controller/arm-gic.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/dt-bindings/interrupt-controller/arm-gic.h b/include/dt-bindings/interrupt-controller/arm-gic.h
> index 35b6f69b7db6..9c06248446b7 100644
> --- a/include/dt-bindings/interrupt-controller/arm-gic.h
> +++ b/include/dt-bindings/interrupt-controller/arm-gic.h
> @@ -12,6 +12,7 @@
>  
>  #define GIC_SPI 0
>  #define GIC_PPI 1
> +#define GIC_ESPI 2
>  
>  /*
>   * Interrupt specifier cell 2.
> -- 
> 2.34.1
> 


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier
  2024-08-29 18:52   ` [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier Rob Herring
@ 2024-08-29 19:01     ` Nikunj Kela
  2024-08-30 14:44       ` Rob Herring
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-08-29 19:01 UTC (permalink / raw)
  To: Rob Herring
  Cc: andersson, konradybcio, krzk+dt, conor+dt, rafael, viresh.kumar,
	herbert, davem, sudeep.holla, andi.shyti, tglx, will, joro,
	jassisinghbrar, lee, linus.walleij, amitk, thara.gopinath,
	broonie, wim, linux, robin.murphy, cristian.marussi, rui.zhang,
	lukasz.luba, vkoul, quic_gurus, agross, bartosz.golaszewski,
	quic_rjendra, robimarko, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, quic_tsoni, quic_shazhuss


On 8/29/2024 11:52 AM, Rob Herring wrote:
> On Wed, Aug 28, 2024 at 01:37:20PM -0700, Nikunj Kela wrote:
>> Add interrupt specifier for extended SPI interrupts.
> What's an "extended SPI"? Is this a GIC spec thing? If so, what version?

Extended SPI is an extended range of SPI interrupts supported by GIC.

Excerpt below from
Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml

"The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
interrupts, 2 for interrupts in the Extended SPI range, 3 for the
Extended PPI range. Other values are reserved for future use."

"The 2nd cell contains the interrupt number for the interrupt type. SPI
interrupts are in the range [0-987]. PPI interrupts are in the range
[0-15]. Extented SPI interrupts are in the range [0-1023]. Extended PPI
interrupts are in the range [0-127]."

>> Qualcomm SA8255p platform uses extended SPI for SCMI 'a2p' doorbells.
>>
>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>> ---
>>  include/dt-bindings/interrupt-controller/arm-gic.h | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/include/dt-bindings/interrupt-controller/arm-gic.h b/include/dt-bindings/interrupt-controller/arm-gic.h
>> index 35b6f69b7db6..9c06248446b7 100644
>> --- a/include/dt-bindings/interrupt-controller/arm-gic.h
>> +++ b/include/dt-bindings/interrupt-controller/arm-gic.h
>> @@ -12,6 +12,7 @@
>>  
>>  #define GIC_SPI 0
>>  #define GIC_PPI 1
>> +#define GIC_ESPI 2
>>  
>>  /*
>>   * Interrupt specifier cell 2.
>> -- 
>> 2.34.1
>>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier
  2024-08-29 19:01     ` Nikunj Kela
@ 2024-08-30 14:44       ` Rob Herring
  2024-08-30 14:51         ` Nikunj Kela
  0 siblings, 1 reply; 82+ messages in thread
From: Rob Herring @ 2024-08-30 14:44 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, krzk+dt, conor+dt, rafael, viresh.kumar,
	herbert, davem, sudeep.holla, andi.shyti, tglx, will, joro,
	jassisinghbrar, lee, linus.walleij, amitk, thara.gopinath,
	broonie, wim, linux, robin.murphy, cristian.marussi, rui.zhang,
	lukasz.luba, vkoul, quic_gurus, agross, bartosz.golaszewski,
	quic_rjendra, robimarko, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, quic_tsoni, quic_shazhuss

On Thu, Aug 29, 2024 at 2:02 PM Nikunj Kela <quic_nkela@quicinc.com> wrote:
>
>
> On 8/29/2024 11:52 AM, Rob Herring wrote:
> > On Wed, Aug 28, 2024 at 01:37:20PM -0700, Nikunj Kela wrote:
> >> Add interrupt specifier for extended SPI interrupts.
> > What's an "extended SPI"? Is this a GIC spec thing? If so, what version?
>
> Extended SPI is an extended range of SPI interrupts supported by GIC.
>
> Excerpt below from
> Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml
>
> "The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
> interrupts, 2 for interrupts in the Extended SPI range, 3 for the
> Extended PPI range. Other values are reserved for future use."
>
> "The 2nd cell contains the interrupt number for the interrupt type. SPI
> interrupts are in the range [0-987]. PPI interrupts are in the range
> [0-15]. Extented SPI interrupts are in the range [0-1023]. Extended PPI
> interrupts are in the range [0-127]."

Looks like you should add EPPI define too while you're here.

Rob


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier
  2024-08-30 14:44       ` Rob Herring
@ 2024-08-30 14:51         ` Nikunj Kela
  0 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-08-30 14:51 UTC (permalink / raw)
  To: Rob Herring
  Cc: andersson, konradybcio, krzk+dt, conor+dt, rafael, viresh.kumar,
	herbert, davem, sudeep.holla, andi.shyti, tglx, will, joro,
	jassisinghbrar, lee, linus.walleij, amitk, thara.gopinath,
	broonie, wim, linux, robin.murphy, cristian.marussi, rui.zhang,
	lukasz.luba, vkoul, quic_gurus, agross, bartosz.golaszewski,
	quic_rjendra, robimarko, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, quic_tsoni, quic_shazhuss


On 8/30/2024 7:44 AM, Rob Herring wrote:
> On Thu, Aug 29, 2024 at 2:02 PM Nikunj Kela <quic_nkela@quicinc.com> wrote:
>>
>> On 8/29/2024 11:52 AM, Rob Herring wrote:
>>> On Wed, Aug 28, 2024 at 01:37:20PM -0700, Nikunj Kela wrote:
>>>> Add interrupt specifier for extended SPI interrupts.
>>> What's an "extended SPI"? Is this a GIC spec thing? If so, what version?
>> Extended SPI is an extended range of SPI interrupts supported by GIC.
>>
>> Excerpt below from
>> Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml
>>
>> "The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
>> interrupts, 2 for interrupts in the Extended SPI range, 3 for the
>> Extended PPI range. Other values are reserved for future use."
>>
>> "The 2nd cell contains the interrupt number for the interrupt type. SPI
>> interrupts are in the range [0-987]. PPI interrupts are in the range
>> [0-15]. Extented SPI interrupts are in the range [0-1023]. Extended PPI
>> interrupts are in the range [0-127]."
> Looks like you should add EPPI define too while you're here.
>
> Rob

Sure Rob. I can add that. Generally, there is an ask for a usecase
before we push anything that is used in DT. I won't have any usecase to
show for EPPI.




^ permalink raw reply	[flat|nested] 82+ messages in thread

* [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform
       [not found] <20240828203721.2751904-1-quic_nkela@quicinc.com>
       [not found] ` <20240828203721.2751904-22-quic_nkela@quicinc.com>
@ 2024-09-03 22:02 ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 01/21] dt-bindings: arm: qcom: add the SoC ID for SA8255P Nikunj Kela
                     ` (22 more replies)
  1 sibling, 23 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

This series enables the support for SA8255p Qualcomm SoC and Ride
platform. This platform uses SCMI power, reset, performance, sensor
protocols for resources(e.g. clocks, regulator, interconnect, phy etc.)
management. SA8255p is a virtual platforms that uses Qualcomm smc/hvc
transport driver.

Multiple virtual SCMI instances are being used to achieve the parallelism.
SCMI platform stack runs in SMP enabled VM hence allows platform to service
multiple resource requests in parallel. Each device is assigned its own
dedicated SCMI channel and Tx/Rx doorbells.

Resource operations are grouped together to achieve better abstraction
and to reduce the number of requests being sent to SCMI platform(server)
thus improving boot time KPIs. This design approach was presented during
LinaroConnect 2024 conference[1].

Architecture:
------------
                                                          +--------------------+
                                                          |   Shared Memory    |
                                                          |                    |
                                                          | +----------------+ |                +----------------------------------+
     +----------------------------+                     +-+->  ufs-shmem     <-+---+            |            Linux VM              |
     |        Firmware VM         |                     | | +----------------+ |   |            |   +----------+   +----------+    |
     |                            |                     | |                    |   |            |   |   UFS    |   |   PCIe   |    |
     | +---------+ f +----------+ |                     | |                    |   |            |   |  Driver  |   |  Driver  |    |
     | |Drivers  <---+  SCMI    | |        e            | |         |          |   |            |   +--+----^--+   +----------+    |
     | | (clks,  | g | Server   +-+---------------------+ |                    |   |            |      |    |                      |
     | |  vreg,  +--->          | |        h              |         |          |  b|k           |     a|   l|                      |
     | |  gpio,  |   +--^-----+-+ |                       |                    |   |            |      |    |                      |
     | |  phy,   |      |     |   |                       |         |          |   |            |  +---v----+----+  +----------+   |
     | |  etc.)  |      |     |   |                       |                    |   +------------+--+  UFS SCMI   |  | PCIe SCMI|   |
     | +---------+      |     |   |                       |                    |                |  |  INSTANCE   |  | INSTANCE |   |
     |                  |     |   |                       |  +---------------+ |                |  +-^-----+-----+  +----------+   |
     |                  |     |   |                       |  |  pcie-shmem   | |                |    |     |                       |
     +------------------+-----+---+                       |  +---------------+ |                +----+-----+-----------------------+
                        |     |                           |                    |                     |     |
                        |     |                           +--------------------+                     |     |
                       d|IRQ i|HVC                                                                  j|IRQ c|HVC
                        |     |                                                                      |     |
                        |     |                                                                      |     |
+-----------------------+-----v----------------------------------------------------------------------+-----v------------------------------+
|                                                                                                                                         |
|                                                                                                                                         |
|                                                                                                                                         |
|                                                               HYPERVISOR                                                                |
|                                                                                                                                         |
|                                                                                                                                         |
+-----------------------------------------------------------------------------------------------------------------------------------------+

        +--------+   +--------+                                                                         +----------+  +-----------+
        | CLOCK  |   |  PHY   |                                                                         |   UFS    |  |   PCIe    |
        +--------+   +--------+                                                                         +----------+  +-----------+


This series is based on next-20240903.

[1]: https://resources.linaro.org/en/resource/wfnfEwBhRjLV1PEAJoDDte

---
Changes in v2:
  - Patch 1/21 - 11/21
    - Added Reviewed-by tag

  - Patch 12/21
    - Already applied in the maintainers tree

  - Patch 13/21
    - Modified subject line
    - Fixed schema to include fallback

  - Patch 14/21
    - Added constraints

  - Patch 15/21
    - Modified schema to remove useless text
   
  - Patch 16/21
    - Modified schema formatting
    - Amended schema definition as advised

  - Patch 17/21
    - Moved allOf block after required
    - Fixed formatting
    - Modified schema to remove useless text

  - Patch 18/21
    - Fixed clock property changes

  - Patch 19/21
    - Fixed scmi nodename pattern

  - Patch 20/21
    - Modified subject line and description
    - Added EPPI macro

  - Patch 21/21
    - Removed scmichannels label and alias
    - Modified scmi node name to conform to schema
    - Moved status property to be the last one in scmi instances
    - Changed to lower case for cpu labels
    - Added fallback compatible for tlmm node

Nikunj Kela (21):
  dt-bindings: arm: qcom: add the SoC ID for SA8255P
  soc: qcom: socinfo: add support for SA8255P
  dt-bindings: arm: qcom: add SA8255p Ride board
  dt-bindings: firmware: qcom,scm: document support for SA8255p
  dt-bindings: mailbox: qcom-ipcc: document the support for SA8255p
  dt-bindings: watchdog: qcom-wdt: document support on SA8255p
  dt-bindings: crypto: qcom,prng: document support for SA8255p
  dt-bindings: interrupt-controller: qcom-pdc: document support for
    SA8255p
  dt-bindings: soc: qcom: aoss-qmp: document support for SA8255p
  dt-bindings: arm-smmu: document the support on SA8255p
  dt-bindings: mfd: qcom,tcsr: document support for SA8255p
  dt-bindings: thermal: tsens: document support on SA8255p
  dt-bindings: pinctrl: Add SA8255p TLMM
  dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  dt-bindings: i2c: document support for SA8255p
  dt-bindings: spi: document support for SA8255p
  dt-bindings: serial: document support for SA8255p
  dt-bindings: qcom: geni-se: document support for SA8255P
  dt-bindings: firmware: arm,scmi: allow multiple virtual instances
  dt-bindings: arm: GIC: add ESPI and EPPI specifiers
  arm64: dts: qcom: Add reduced functional DT for SA8255p Ride platform

 .../devicetree/bindings/arm/qcom.yaml         |    6 +
 .../bindings/cpufreq/cpufreq-qcom-hw.yaml     |   16 +
 .../devicetree/bindings/crypto/qcom,prng.yaml |    1 +
 .../bindings/firmware/arm,scmi.yaml           |    2 +-
 .../bindings/firmware/qcom,scm.yaml           |    2 +
 .../bindings/i2c/qcom,i2c-geni-qcom.yaml      |   33 +-
 .../interrupt-controller/qcom,pdc.yaml        |    1 +
 .../devicetree/bindings/iommu/arm,smmu.yaml   |    3 +
 .../bindings/mailbox/qcom-ipcc.yaml           |    1 +
 .../devicetree/bindings/mfd/qcom,tcsr.yaml    |    1 +
 .../bindings/pinctrl/qcom,sa8775p-tlmm.yaml   |    8 +-
 .../serial/qcom,serial-geni-qcom.yaml         |   53 +-
 .../bindings/soc/qcom/qcom,aoss-qmp.yaml      |    1 +
 .../bindings/soc/qcom/qcom,geni-se.yaml       |   45 +-
 .../bindings/spi/qcom,spi-geni-qcom.yaml      |   60 +-
 .../bindings/thermal/qcom-tsens.yaml          |    1 +
 .../bindings/watchdog/qcom-wdt.yaml           |    1 +
 arch/arm64/boot/dts/qcom/Makefile             |    1 +
 arch/arm64/boot/dts/qcom/sa8255p-pmics.dtsi   |   80 +
 arch/arm64/boot/dts/qcom/sa8255p-ride.dts     |  148 +
 arch/arm64/boot/dts/qcom/sa8255p-scmi.dtsi    | 2312 ++++++++++++++++
 arch/arm64/boot/dts/qcom/sa8255p.dtsi         | 2405 +++++++++++++++++
 drivers/soc/qcom/socinfo.c                    |    1 +
 include/dt-bindings/arm/qcom,ids.h            |    1 +
 .../interrupt-controller/arm-gic.h            |    2 +
 25 files changed, 5169 insertions(+), 16 deletions(-)
 create mode 100644 arch/arm64/boot/dts/qcom/sa8255p-pmics.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/sa8255p-ride.dts
 create mode 100644 arch/arm64/boot/dts/qcom/sa8255p-scmi.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/sa8255p.dtsi


base-commit: 6804f0edbe7747774e6ae60f20cec4ee3ad7c187
-- 
2.34.1



^ permalink raw reply	[flat|nested] 82+ messages in thread

* [PATCH v2 01/21] dt-bindings: arm: qcom: add the SoC ID for SA8255P
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 02/21] soc: qcom: socinfo: add support " Nikunj Kela
                     ` (21 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add the SoC ID entry for SA8255P.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 include/dt-bindings/arm/qcom,ids.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/arm/qcom,ids.h b/include/dt-bindings/arm/qcom,ids.h
index 8332f8d82f96..16f00ecdcc09 100644
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -257,6 +257,7 @@
 #define QCOM_ID_QRB2210			524
 #define QCOM_ID_SM8475			530
 #define QCOM_ID_SM8475P			531
+#define QCOM_ID_SA8255P			532
 #define QCOM_ID_SA8775P			534
 #define QCOM_ID_QRU1000			539
 #define QCOM_ID_SM8475_2		540
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 02/21] soc: qcom: socinfo: add support for SA8255P
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform 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   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 03/21] dt-bindings: arm: qcom: add SA8255p Ride board Nikunj Kela
                     ` (20 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add SocInfo support for SA8255P.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 drivers/soc/qcom/socinfo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index 24c3971f2ef1..5c3bd59eaa69 100644
--- a/drivers/soc/qcom/socinfo.c
+++ b/drivers/soc/qcom/socinfo.c
@@ -424,6 +424,7 @@ static const struct soc_id soc_id[] = {
 	{ qcom_board_id(QRB2210) },
 	{ qcom_board_id(SM8475) },
 	{ qcom_board_id(SM8475P) },
+	{ qcom_board_id(SA8255P) },
 	{ qcom_board_id(SA8775P) },
 	{ qcom_board_id(QRU1000) },
 	{ qcom_board_id(SM8475_2) },
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 03/21] dt-bindings: arm: qcom: add SA8255p Ride board
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform 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   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 04/21] dt-bindings: firmware: qcom,scm: document support for SA8255p Nikunj Kela
                     ` (19 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Document the SA8255p SoC and its reference board: sa8255p-ride.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index 5cb54d69af0b..07dd68f07845 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -50,6 +50,7 @@ description: |
         qrb4210
         qru1000
         sa8155p
+        sa8255p
         sa8540p
         sa8775p
         sc7180
@@ -900,6 +901,11 @@ properties:
               - qcom,sa8155p-adp
           - const: qcom,sa8155p
 
+      - items:
+          - enum:
+              - qcom,sa8255p-ride
+          - const: qcom,sa8255p
+
       - items:
           - enum:
               - qcom,sa8295p-adp
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 04/21] dt-bindings: firmware: qcom,scm: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (2 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 03/21] dt-bindings: arm: qcom: add SA8255p Ride board Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 05/21] dt-bindings: mailbox: qcom-ipcc: document the " Nikunj Kela
                     ` (18 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add a compatible for the SA8255p platform's Secure Channel Manager
firmware interface.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
index 2cc83771d8e7..65057f5c8972 100644
--- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
+++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
@@ -43,6 +43,7 @@ properties:
           - qcom,scm-msm8998
           - qcom,scm-qcm2290
           - qcom,scm-qdu1000
+          - qcom,scm-sa8255p
           - qcom,scm-sa8775p
           - qcom,scm-sc7180
           - qcom,scm-sc7280
@@ -204,6 +205,7 @@ allOf:
           compatible:
             contains:
               enum:
+                - qcom,scm-sa8255p
                 - qcom,scm-sa8775p
     then:
       properties:
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 05/21] dt-bindings: mailbox: qcom-ipcc: document the support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (3 preceding siblings ...)
  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   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 06/21] dt-bindings: watchdog: qcom-wdt: document support on SA8255p Nikunj Kela
                     ` (17 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add a compatible for the ipcc on SA8255p platforms.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml
index 05e4e1d51713..bc108b8db9f4 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml
@@ -25,6 +25,7 @@ properties:
     items:
       - enum:
           - qcom,qdu1000-ipcc
+          - qcom,sa8255p-ipcc
           - qcom,sa8775p-ipcc
           - qcom,sc7280-ipcc
           - qcom,sc8280xp-ipcc
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 06/21] dt-bindings: watchdog: qcom-wdt: document support on SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (4 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 05/21] dt-bindings: mailbox: qcom-ipcc: document the " Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 07/21] dt-bindings: crypto: qcom,prng: document support for SA8255p Nikunj Kela
                     ` (16 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add a compatible for the SA8255p platform's KPSS watchdog.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
index 47587971fb0b..932393f8c649 100644
--- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
@@ -26,6 +26,7 @@ properties:
               - qcom,apss-wdt-msm8994
               - qcom,apss-wdt-qcm2290
               - qcom,apss-wdt-qcs404
+              - qcom,apss-wdt-sa8255p
               - qcom,apss-wdt-sa8775p
               - qcom,apss-wdt-sc7180
               - qcom,apss-wdt-sc7280
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 07/21] dt-bindings: crypto: qcom,prng: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (5 preceding siblings ...)
  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   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 08/21] dt-bindings: interrupt-controller: qcom-pdc: " Nikunj Kela
                     ` (15 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Document SA8255p compatible for the True Random Number Generator.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
index 89c88004b41b..048b769a73c0 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
@@ -17,6 +17,7 @@ properties:
           - qcom,prng-ee  # 8996 and later using EE
       - items:
           - enum:
+              - qcom,sa8255p-trng
               - qcom,sa8775p-trng
               - qcom,sc7280-trng
               - qcom,sm8450-trng
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 08/21] dt-bindings: interrupt-controller: qcom-pdc: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (6 preceding siblings ...)
  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   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 09/21] dt-bindings: soc: qcom: aoss-qmp: " Nikunj Kela
                     ` (14 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add compatible for pdc interrupt controller representing support on
SA8255p.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 .../devicetree/bindings/interrupt-controller/qcom,pdc.yaml       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml
index 985fa10abb99..b1ea08a41bb0 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml
@@ -27,6 +27,7 @@ properties:
     items:
       - enum:
           - qcom,qdu1000-pdc
+          - qcom,sa8255p-pdc
           - qcom,sa8775p-pdc
           - qcom,sc7180-pdc
           - qcom,sc7280-pdc
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 09/21] dt-bindings: soc: qcom: aoss-qmp: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (7 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 08/21] dt-bindings: interrupt-controller: qcom-pdc: " Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 10/21] dt-bindings: arm-smmu: document the support on SA8255p Nikunj Kela
                     ` (13 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add compatible for AOSS QMP representing support on SA8255p.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml
index 7afdb60edb22..bd873e7e4ae5 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml
@@ -26,6 +26,7 @@ properties:
     items:
       - enum:
           - qcom,qdu1000-aoss-qmp
+          - qcom,sa8255p-aoss-qmp
           - qcom,sa8775p-aoss-qmp
           - qcom,sc7180-aoss-qmp
           - qcom,sc7280-aoss-qmp
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 10/21] dt-bindings: arm-smmu: document the support on SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (8 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 09/21] dt-bindings: soc: qcom: aoss-qmp: " Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 11/21] dt-bindings: mfd: qcom,tcsr: document support for SA8255p Nikunj Kela
                     ` (12 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add compatible for smmu representing support on SA8255p.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
index 280b4e49f219..3353c2d37841 100644
--- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
+++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
@@ -37,6 +37,7 @@ properties:
           - enum:
               - qcom,qcm2290-smmu-500
               - qcom,qdu1000-smmu-500
+              - qcom,sa8255p-smmu-500
               - qcom,sa8775p-smmu-500
               - qcom,sc7180-smmu-500
               - qcom,sc7280-smmu-500
@@ -84,6 +85,7 @@ properties:
         items:
           - enum:
               - qcom,qcm2290-smmu-500
+              - qcom,sa8255p-smmu-500
               - qcom,sa8775p-smmu-500
               - qcom,sc7280-smmu-500
               - qcom,sc8180x-smmu-500
@@ -553,6 +555,7 @@ allOf:
               - marvell,ap806-smmu-500
               - nvidia,smmu-500
               - qcom,qdu1000-smmu-500
+              - qcom,sa8255p-smmu-500
               - qcom,sc7180-smmu-500
               - qcom,sdm670-smmu-500
               - qcom,sdm845-smmu-500
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 11/21] dt-bindings: mfd: qcom,tcsr: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (9 preceding siblings ...)
  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   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 12/21] dt-bindings: thermal: tsens: document support on SA8255p Nikunj Kela
                     ` (11 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski, Shazad Hussain

Add compatible for tcsr representing support on SA8255p SoC.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml
index c6bd14ec5aa0..88f804bd7581 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml
@@ -21,6 +21,7 @@ properties:
           - qcom,msm8998-tcsr
           - qcom,qcm2290-tcsr
           - qcom,qcs404-tcsr
+          - qcom,sa8255p-tcsr
           - qcom,sc7180-tcsr
           - qcom,sc7280-tcsr
           - qcom,sc8280xp-tcsr
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 12/21] dt-bindings: thermal: tsens: document support on SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (10 preceding siblings ...)
  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   ` 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
                     ` (10 subsequent siblings)
  22 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

Add compatible for sensors representing support on SA8255p.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
index 72048c5a0412..d45690d6a465 100644
--- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
+++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
@@ -51,6 +51,7 @@ properties:
               - qcom,msm8996-tsens
               - qcom,msm8998-tsens
               - qcom,qcm2290-tsens
+              - qcom,sa8255p-tsens
               - qcom,sa8775p-tsens
               - qcom,sc7180-tsens
               - qcom,sc7280-tsens
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 13/21] dt-bindings: pinctrl: Add SA8255p TLMM
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (11 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 12/21] dt-bindings: thermal: tsens: document support on SA8255p Nikunj Kela
@ 2024-09-03 22:02   ` 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
                     ` (9 subsequent siblings)
  22 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

Add compatible for TLMM block representing support on SA8255p.

SA8255p uses the same TLMM block as SA8775p however the ownership
of pins are split between Firmware VM and Linux VM on SA8255p. For
example, pins used by UART are owned and configured by Firmware VM
while pins used by ethernet are owned and configured by Linux VM.
Therefore, adding a sa8255p specific compatible to mark the difference.

Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 .../devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml    | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml
index e9abbf2c0689..b36b29dd3128 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml
@@ -17,7 +17,13 @@ allOf:
 
 properties:
   compatible:
-    const: qcom,sa8775p-tlmm
+    oneOf:
+      - items:
+        - enum:
+          - qcom,sa8255p-tlmm
+        - const: qcom,sa8775p-tlmm
+      - items:
+        - const: qcom,sa8775p-tlmm
 
   reg:
     maxItems: 1
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (12 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 13/21] dt-bindings: pinctrl: Add SA8255p TLMM Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-04  6:26     ` Krzysztof Kozlowski
  2024-09-03 22:02   ` [PATCH v2 15/21] dt-bindings: i2c: " Nikunj Kela
                     ` (8 subsequent siblings)
  22 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

Add compatible for the cpufreq engine representing support on SA8255p.

Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 .../bindings/cpufreq/cpufreq-qcom-hw.yaml        | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
index 1e9797f96410..84865e553c8b 100644
--- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
+++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
@@ -34,6 +34,7 @@ properties:
         items:
           - enum:
               - qcom,qdu1000-cpufreq-epss
+              - qcom,sa8255p-cpufreq-epss
               - qcom,sa8775p-cpufreq-epss
               - qcom,sc7280-cpufreq-epss
               - qcom,sc8280xp-cpufreq-epss
@@ -206,6 +207,21 @@ allOf:
         interrupt-names:
           minItems: 2
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,sa8255p-cpufreq-epss
+    then:
+      properties:
+        reg:
+          minItems: 2
+          maxItems: 2
+
+        reg-names:
+          minItems: 2
+          maxItems: 2
 
 examples:
   - |
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (13 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-04  6:31     ` Krzysztof Kozlowski
  2024-09-04  7:49     ` Krzysztof Kozlowski
  2024-09-03 22:02   ` [PATCH v2 16/21] dt-bindings: spi: " Nikunj Kela
                     ` (7 subsequent siblings)
  22 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

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(-)

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
+
       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
+
     else:
+      required:
+        - clocks
+        - clock-names
+
       properties:
         clocks:
           maxItems: 1
@@ -143,4 +160,16 @@ examples:
         power-domains = <&rpmhpd SC7180_CX>;
         required-opps = <&rpmhpd_opp_low_svs>;
     };
+
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    i2c@a90000 {
+        compatible = "qcom,sa8255p-geni-i2c";
+        reg = <0xa90000 0x4000>;
+        interrupts = <GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH>;
+        #address-cells = <1>;
+        #size-cells = <0>;
+        power-domains = <&scmi9_pd 11>;
+    };
 ...
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (14 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 15/21] dt-bindings: i2c: " Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-04  6:34     ` Krzysztof Kozlowski
  2024-09-04  7:48     ` Krzysztof Kozlowski
  2024-09-03 22:02   ` [PATCH v2 17/21] dt-bindings: serial: " Nikunj Kela
                     ` (6 subsequent siblings)
  22 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

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      | 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@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



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (15 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 16/21] dt-bindings: spi: " Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-04  6:36     ` Krzysztof Kozlowski
  2024-09-04  7:47     ` Krzysztof Kozlowski
  2024-09-03 22:02   ` [PATCH v2 18/21] dt-bindings: qcom: geni-se: document support for SA8255P Nikunj Kela
                     ` (5 subsequent siblings)
  22 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

Add compatibles representing UART support on SA8255p.

Clocks and interconnects are being configured in the 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>
---
 .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
 1 file changed, 47 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
index dd33794b3534..b63c984684f3 100644
--- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
+++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
@@ -10,14 +10,13 @@ maintainers:
   - Andy Gross <agross@kernel.org>
   - Bjorn Andersson <bjorn.andersson@linaro.org>
 
-allOf:
-  - $ref: /schemas/serial/serial.yaml#
-
 properties:
   compatible:
     enum:
       - qcom,geni-uart
       - qcom,geni-debug-uart
+      - qcom,sa8255p-geni-uart
+      - qcom,sa8255p-geni-debug-uart
 
   clocks:
     maxItems: 1
@@ -51,18 +50,49 @@ properties:
       - const: sleep
 
   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
 
+allOf:
+  - $ref: /schemas/serial/serial.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,sa8255p-geni-uart
+              - qcom,sa8255p-geni-debug-uart
+    then:
+      required:
+        - power-domains
+        - power-domain-names
+
+      properties:
+        power-domains:
+          minItems: 2
+
+    else:
+      required:
+        - clocks
+        - clock-names
+
+      properties:
+        power-domains:
+          maxItems: 1
+
 unevaluatedProperties: false
 
 examples:
@@ -83,4 +113,15 @@ examples:
                         <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>;
         interconnect-names = "qup-core", "qup-config";
     };
+
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    serial@990000 {
+        compatible = "qcom,sa8255p-geni-uart";
+        reg = <0x990000 0x4000>;
+        interrupts = <GIC_SPI 531 IRQ_TYPE_LEVEL_HIGH>;
+        power-domains = <&scmi11_pd 4>, <&scmi11_dvfs 4>;
+        power-domain-names = "power", "perf";
+    };
 ...
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 18/21] dt-bindings: qcom: geni-se: document support for SA8255P
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (16 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 17/21] dt-bindings: serial: " Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-03 22:02   ` [PATCH v2 19/21] dt-bindings: firmware: arm,scmi: allow multiple virtual instances Nikunj Kela
                     ` (4 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

Add "qcom,sa8255p-geni-se-qup" compatible for representing QUP on
SA8255p.

Clocks are being managed by the firmware VM and not required on
SA8255p Linux VM hence removing it from required list.

CC: Praveen Talari <quic_ptalari@quicinc.com>
Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 .../bindings/soc/qcom/qcom,geni-se.yaml       | 45 ++++++++++++++++++-
 1 file changed, 43 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml
index 7b031ef09669..86eb2b3832cb 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml
@@ -22,6 +22,7 @@ properties:
     enum:
       - qcom,geni-se-qup
       - qcom,geni-se-i2c-master-hub
+      - qcom,sa8255p-geni-se-qup
 
   reg:
     description: QUP wrapper common register address and length.
@@ -57,8 +58,6 @@ properties:
 required:
   - compatible
   - reg
-  - clock-names
-  - clocks
   - "#address-cells"
   - "#size-cells"
   - ranges
@@ -83,6 +82,17 @@ patternProperties:
     $ref: /schemas/serial/qcom,serial-geni-qcom.yaml#
 
 allOf:
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              const: qcom,sa8255p-geni-se-qup
+    then:
+      required:
+        - clocks
+        - clock-names
+
   - if:
       properties:
         compatible:
@@ -162,4 +172,35 @@ examples:
         };
     };
 
+  - |
+
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        geniqup@9c0000 {
+            compatible = "qcom,sa8255p-geni-se-qup";
+            reg = <0 0x9c0000 0 0x6000>;
+            #address-cells = <2>;
+            #size-cells = <2>;
+            ranges;
+
+            i2c1: i2c@984000 {
+                compatible = "qcom,sa8255p-geni-i2c";
+                reg = <0 0x984000 0 0x4000>;
+                interrupts = <GIC_SPI 551 IRQ_TYPE_LEVEL_HIGH>;
+                #address-cells = <1>;
+                #size-cells = <0>;
+                power-domains = <&scmi9_pd 1>;
+            };
+
+            uart4: serial@990000 {
+                compatible = "qcom,sa8255p-geni-uart";
+                reg = <0 0x990000 0 0x4000>;
+                interrupts = <GIC_SPI 531 IRQ_TYPE_LEVEL_HIGH>;
+                power-domains = <&scmi11_pd 4>, <&scmi11_dvfs 4>;
+                power-domain-names = "power", "perf";
+            };
+        };
+    };
 ...
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 19/21] dt-bindings: firmware: arm,scmi: allow multiple virtual instances
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (17 preceding siblings ...)
  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   ` 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
                     ` (3 subsequent siblings)
  22 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

This change extends scmi node name so as to allow multiple virtual
SCMI instances.

Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
index 54d7d11bfed4..5d79b15a1610 100644
--- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
+++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
@@ -27,7 +27,7 @@ anyOf:
 
 properties:
   $nodename:
-    const: scmi
+    pattern: '^scmi(-[0-9]+)?$'
 
   compatible:
     oneOf:
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* [PATCH v2 20/21] dt-bindings: arm: GIC: add ESPI and EPPI specifiers
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (18 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 19/21] dt-bindings: firmware: arm,scmi: allow multiple virtual instances Nikunj Kela
@ 2024-09-03 22:02   ` Nikunj Kela
  2024-09-04  5:54   ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Krzysztof Kozlowski
                     ` (2 subsequent siblings)
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-03 22:02 UTC (permalink / raw)
  To: quic_nkela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

Add interrupt specifier for extended SPI and extended PPI interrupts.

Qualcomm SA8255p platform uses extended SPI for SCMI 'a2p' doorbells.

Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
---
 include/dt-bindings/interrupt-controller/arm-gic.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/dt-bindings/interrupt-controller/arm-gic.h b/include/dt-bindings/interrupt-controller/arm-gic.h
index 35b6f69b7db6..887f53363e8a 100644
--- a/include/dt-bindings/interrupt-controller/arm-gic.h
+++ b/include/dt-bindings/interrupt-controller/arm-gic.h
@@ -12,6 +12,8 @@
 
 #define GIC_SPI 0
 #define GIC_PPI 1
+#define GIC_ESPI 2
+#define GIC_EPPI 3
 
 /*
  * Interrupt specifier cell 2.
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 13/21] dt-bindings: pinctrl: Add SA8255p TLMM
  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)
  0 siblings, 0 replies; 82+ messages in thread
From: Rob Herring (Arm) @ 2024-09-04  1:50 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: devicetree, cristian.marussi, rui.zhang, linux-spi, lee, krzk+dt,
	will, linux-arm-msm, linus.walleij, joro, linux-kernel,
	robin.murphy, quic_psodagud, conor+dt, kernel, sudeep.holla,
	linux-serial, linux-i2c, herbert, konradybcio, jassisinghbrar,
	linux-gpio, linux-pm, andersson, lukasz.luba, iommu,
	linux-watchdog, broonie, rafael, davem, arm-scmi, thara.gopinath,
	viresh.kumar, linux, amitk, wim, andi.shyti, linux-arm-kernel,
	tglx, linux-crypto


On Tue, 03 Sep 2024 15:02:32 -0700, Nikunj Kela wrote:
> Add compatible for TLMM block representing support on SA8255p.
> 
> SA8255p uses the same TLMM block as SA8775p however the ownership
> of pins are split between Firmware VM and Linux VM on SA8255p. For
> example, pins used by UART are owned and configured by Firmware VM
> while pins used by ethernet are owned and configured by Linux VM.
> Therefore, adding a sa8255p specific compatible to mark the difference.
> 
> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
> ---
>  .../devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml    | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:
./Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml:22:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
./Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml:23:11: [warning] wrong indentation: expected 12 but found 10 (indentation)
./Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml:26:9: [warning] wrong indentation: expected 10 but found 8 (indentation)

dtschema/dtc warnings/errors:

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240903220240.2594102-14-quic_nkela@quicinc.com

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (19 preceding siblings ...)
  2024-09-03 22:02   ` [PATCH v2 20/21] dt-bindings: arm: GIC: add ESPI and EPPI specifiers Nikunj Kela
@ 2024-09-04  5:54   ` Krzysztof Kozlowski
  2024-09-04 12:58     ` Nikunj Kela
  2024-09-04 23:50   ` Nikunj Kela
  2024-09-05 12:59   ` Dmitry Baryshkov
  22 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  5:54 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

On Tue, Sep 03, 2024 at 03:02:19PM -0700, Nikunj Kela wrote:
> This series enables the support for SA8255p Qualcomm SoC and Ride
> platform. This platform uses SCMI power, reset, performance, sensor
> protocols for resources(e.g. clocks, regulator, interconnect, phy etc.)
> management. SA8255p is a virtual platforms that uses Qualcomm smc/hvc
> transport driver.
> 
> Multiple virtual SCMI instances are being used to achieve the parallelism.
> SCMI platform stack runs in SMP enabled VM hence allows platform to service
> multiple resource requests in parallel. Each device is assigned its own
> dedicated SCMI channel and Tx/Rx doorbells.
> 

Do not attach (thread) your patchsets to some other threads (unrelated
or older versions). This buries them deep in the mailbox and might
interfere with applying entire sets.

It does not look like you tested the bindings, at least after quick
look. Please run  (see
Documentation/devicetree/bindings/writing-schema.rst for instructions).
Maybe you need to update your dtschema and yamllint.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  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
  0 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  6:26 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

On Tue, Sep 03, 2024 at 03:02:33PM -0700, Nikunj Kela wrote:
> Add compatible for the cpufreq engine representing support on SA8255p.
> 
> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
> ---
>  .../bindings/cpufreq/cpufreq-qcom-hw.yaml        | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
> index 1e9797f96410..84865e553c8b 100644
> --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
> +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
> @@ -34,6 +34,7 @@ properties:
>          items:
>            - enum:
>                - qcom,qdu1000-cpufreq-epss
> +              - qcom,sa8255p-cpufreq-epss
>                - qcom,sa8775p-cpufreq-epss
>                - qcom,sc7280-cpufreq-epss
>                - qcom,sc8280xp-cpufreq-epss
> @@ -206,6 +207,21 @@ allOf:
>          interrupt-names:
>            minItems: 2
>  
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - qcom,sa8255p-cpufreq-epss
> +    then:
> +      properties:
> +        reg:
> +          minItems: 2
> +          maxItems: 2
> +
> +        reg-names:
> +          minItems: 2
> +          maxItems: 2

What about interrupts? You need to constrain each of such lists.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  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  7:49     ` Krzysztof Kozlowski
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  6:31 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

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

You have entire commit msg to explain what and why.

> 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?

> +
>        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?

>      else:
> +      required:
> +        - clocks
> +        - clock-names

And clocks are required again?

> +
>        properties:
>          clocks:
>            maxItems: 1

Eeee? So now all other variants have max 1 clock?

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

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  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  7:48     ` Krzysztof Kozlowski
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  6:34 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On Tue, Sep 03, 2024 at 03:02:35PM -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.
> 

Please use standard email subjects, so with the PATCH keyword in the
title.  helps here to create proper versioned patches.
Another useful tool is b4. Skipping the PATCH keyword makes filtering of
emails more difficult thus making the review process less convenient.


> CC: Praveen Talari <quic_ptalari@quicinc.com>
> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.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

Not much improved. All my previous (v1) and other patch (i2c) comments
apply.

> +    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

You have entire commit msg to explain why this device's programming
model is not compatible with existing generic compatible which must
cover all variants (because it is crazy generic).

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  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  7:47     ` Krzysztof Kozlowski
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  6:36 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On Tue, Sep 03, 2024 at 03:02:36PM -0700, Nikunj Kela wrote:
> Add compatibles representing UART support on SA8255p.
> 
> Clocks and interconnects are being configured in the 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>
> ---
>  .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
>  1 file changed, 47 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
> index dd33794b3534..b63c984684f3 100644
> --- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
> +++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
> @@ -10,14 +10,13 @@ maintainers:
>    - Andy Gross <agross@kernel.org>
>    - Bjorn Andersson <bjorn.andersson@linaro.org>
>  
> -allOf:
> -  - $ref: /schemas/serial/serial.yaml#
> -
>  properties:
>    compatible:
>      enum:
>        - qcom,geni-uart
>        - qcom,geni-debug-uart
> +      - qcom,sa8255p-geni-uart
> +      - qcom,sa8255p-geni-debug-uart

Why devices are not compatible? What changed in programming model?

>  
>    clocks:
>      maxItems: 1
> @@ -51,18 +50,49 @@ properties:
>        - const: sleep
>  
>    power-domains:
> -    maxItems: 1
> +    minItems: 1
> +    maxItems: 2
> +
> +  power-domain-names:

This does not match power-domains anymore.

> +    items:
> +      - const: power
> +      - const: perf
>  
>    reg:
>      maxItems: 1
>  
>  required:
>    - compatible
> -  - clocks
> -  - clock-names
>    - interrupts
>    - reg
>  
> +allOf:
> +  - $ref: /schemas/serial/serial.yaml#
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - qcom,sa8255p-geni-uart
> +              - qcom,sa8255p-geni-debug-uart
> +    then:
> +      required:
> +        - power-domains
> +        - power-domain-names
> +
> +      properties:
> +        power-domains:
> +          minItems: 2
> +
> +    else:
> +      required:
> +        - clocks
> +        - clock-names
> +
> +      properties:
> +        power-domains:
> +          maxItems: 1
> +
>  unevaluatedProperties: false
>  
>  examples:
> @@ -83,4 +113,15 @@ examples:
>                          <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>;
>          interconnect-names = "qup-core", "qup-config";
>      };
> +
> +  - |
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +    serial@990000 {
> +        compatible = "qcom,sa8255p-geni-uart";
> +        reg = <0x990000 0x4000>;
> +        interrupts = <GIC_SPI 531 IRQ_TYPE_LEVEL_HIGH>;
> +        power-domains = <&scmi11_pd 4>, <&scmi11_dvfs 4>;
> +        power-domain-names = "power", "perf";
> +    };
>  ...
> -- 
> 2.34.1
> 


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 19/21] dt-bindings: firmware: arm,scmi: allow multiple virtual instances
  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
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  6:39 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

On Tue, Sep 03, 2024 at 03:02:38PM -0700, Nikunj Kela wrote:
> This change extends scmi node name so as to allow multiple virtual
> SCMI instances.
> 
> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
> ---
>  Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-03 22:02   ` [PATCH v2 17/21] dt-bindings: serial: " Nikunj Kela
  2024-09-04  6:36     ` Krzysztof Kozlowski
@ 2024-09-04  7:47     ` Krzysztof Kozlowski
  2024-09-04 12:56       ` Nikunj Kela
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  7:47 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 00:02, Nikunj Kela wrote:
> Add compatibles representing UART support on SA8255p.
> 
> Clocks and interconnects are being configured in the 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>
> ---
>  .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
>  1 file changed, 47 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
> index dd33794b3534..b63c984684f3 100644
> --- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
> +++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
> @@ -10,14 +10,13 @@ maintainers:
>    - Andy Gross <agross@kernel.org>
>    - Bjorn Andersson <bjorn.andersson@linaro.org>
>  
> -allOf:
> -  - $ref: /schemas/serial/serial.yaml#
> -
>  properties:
>    compatible:
>      enum:
>        - qcom,geni-uart
>        - qcom,geni-debug-uart
> +      - qcom,sa8255p-geni-uart
> +      - qcom,sa8255p-geni-debug-uart


Anyway, the entire patchset is organized wrong. Or you sent only subset.

Where is the driver change? This cannot work. To remind bindings go with
the driver (nothing new here).

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-03 22:02   ` [PATCH v2 16/21] dt-bindings: spi: " Nikunj Kela
  2024-09-04  6:34     ` Krzysztof Kozlowski
@ 2024-09-04  7:48     ` Krzysztof Kozlowski
  2024-09-04 12:49       ` Nikunj Kela
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  7:48 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 00:02, 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>

Also this is incomplete - adding compatible without driver change is not
expected. It cannot even work.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-03 22:02   ` [PATCH v2 15/21] dt-bindings: i2c: " Nikunj Kela
  2024-09-04  6:31     ` Krzysztof Kozlowski
@ 2024-09-04  7:49     ` Krzysztof Kozlowski
  2024-09-04  7:55       ` Wolfram Sang
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04  7:49 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 00:02, 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(-)
> 

Just to clarify to I2C maintainers:
This is incomplete. Missing driver changes.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-04  7:49     ` Krzysztof Kozlowski
@ 2024-09-04  7:55       ` Wolfram Sang
  2024-09-04 12:45         ` Nikunj Kela
  0 siblings, 1 reply; 82+ messages in thread
From: Wolfram Sang @ 2024-09-04  7:55 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Nikunj Kela, andersson, konradybcio, robh, krzk+dt, conor+dt,
	rafael, viresh.kumar, herbert, davem, sudeep.holla, andi.shyti,
	tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

[-- Attachment #1: Type: text/plain, Size: 106 bytes --]


> Just to clarify to I2C maintainers:
> This is incomplete. Missing driver changes.

Thanks, Krzysztof!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  2024-09-04  6:26     ` Krzysztof Kozlowski
@ 2024-09-04 12:27       ` Nikunj Kela
  2024-09-04 13:17         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:27 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud


On 9/3/2024 11:26 PM, Krzysztof Kozlowski wrote:
> On Tue, Sep 03, 2024 at 03:02:33PM -0700, Nikunj Kela wrote:
>> Add compatible for the cpufreq engine representing support on SA8255p.
>>
>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>> ---
>>  .../bindings/cpufreq/cpufreq-qcom-hw.yaml        | 16 ++++++++++++++++
>>  1 file changed, 16 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>> index 1e9797f96410..84865e553c8b 100644
>> --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>> +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>> @@ -34,6 +34,7 @@ properties:
>>          items:
>>            - enum:
>>                - qcom,qdu1000-cpufreq-epss
>> +              - qcom,sa8255p-cpufreq-epss
>>                - qcom,sa8775p-cpufreq-epss
>>                - qcom,sc7280-cpufreq-epss
>>                - qcom,sc8280xp-cpufreq-epss
>> @@ -206,6 +207,21 @@ allOf:
>>          interrupt-names:
>>            minItems: 2
>>  
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            enum:
>> +              - qcom,sa8255p-cpufreq-epss
>> +    then:
>> +      properties:
>> +        reg:
>> +          minItems: 2
>> +          maxItems: 2
>> +
>> +        reg-names:
>> +          minItems: 2
>> +          maxItems: 2
> What about interrupts? You need to constrain each of such lists.
>
> Best regards,
> Krzysztof

Interrupts are not required, I still need to put constraints for
interrupts? BTW, there is no if block for SA8775p binding in this file.

Thanks,

-Nikunj



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-04  6:31     ` Krzysztof Kozlowski
@ 2024-09-04 12:41       ` Nikunj Kela
  2024-09-04 13:20         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:41 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


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
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  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
  0 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:45 UTC (permalink / raw)
  To: Wolfram Sang, Krzysztof Kozlowski, andersson, konradybcio, robh,
	krzk+dt, conor+dt, rafael, viresh.kumar, herbert, davem,
	sudeep.holla, andi.shyti, tglx, will, robin.murphy, joro,
	jassisinghbrar, lee, linus.walleij, amitk, thara.gopinath,
	broonie, cristian.marussi, rui.zhang, lukasz.luba, wim, linux,
	linux-arm-msm, devicetree, linux-kernel, linux-pm, linux-crypto,
	arm-scmi, linux-arm-kernel, linux-i2c, iommu, linux-gpio,
	linux-serial, linux-spi, linux-watchdog, kernel, quic_psodagud,
	Praveen Talari


On 9/4/2024 12:55 AM, Wolfram Sang wrote:
>> Just to clarify to I2C maintainers:
>> This is incomplete. Missing driver changes.
> Thanks, Krzysztof!

Driver changes are going through internal review and will soon be
posted. For your reference, we have pushed driver changes in CodeLinaro
git branch(nkela/sa8255p_v6_11_rc2)  in kernel-qcom repo [1]. You can
take a look at the changes that are in pipeline and will follow soon.

[1]:
https://git.codelinaro.org/clo/linux-kernel/kernel-qcom/-/tree/nkela/sa8255p_v6_11_rc2?ref_type=heads



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04  6:34     ` Krzysztof Kozlowski
@ 2024-09-04 12:48       ` Nikunj Kela
  2024-09-04 13:21         ` Krzysztof Kozlowski
  2024-09-05 13:21         ` Dmitry Baryshkov
  0 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/3/2024 11:34 PM, Krzysztof Kozlowski wrote:
> On Tue, Sep 03, 2024 at 03:02:35PM -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.
>>
> Please use standard email subjects, so with the PATCH keyword in the
> title.  helps here to create proper versioned patches.
Where did I miss PATCH keyword in the subject here? It says "[PATCH v2
16/21] dt-bindings: spi: document support for SA8255p"
> Another useful tool is b4. Skipping the PATCH keyword makes filtering of
> emails more difficult thus making the review process less convenient.
>
>
>> CC: Praveen Talari <quic_ptalari@quicinc.com>
>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.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
> Not much improved. All my previous (v1) and other patch (i2c) comments
> apply.
>> +    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
> You have entire commit msg to explain why this device's programming
> model is not compatible with existing generic compatible which must
> cover all variants (because it is crazy generic).
>
> Best regards,
> Krzysztof

I will put more details in the description of the patch, though, I had
put the description in the cover letter for this entire series.


>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04  7:48     ` Krzysztof Kozlowski
@ 2024-09-04 12:49       ` Nikunj Kela
  2024-09-05 13:22         ` Dmitry Baryshkov
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:49 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/4/2024 12:48 AM, Krzysztof Kozlowski wrote:
> On 04/09/2024 00:02, 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>
> Also this is incomplete - adding compatible without driver change is not
> expected. It cannot even work.
>
> Best regards,
> Krzysztof

Link for CLO branch is provided in I2C patch series. The driver changes
will soon follow.




^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-04  6:36     ` Krzysztof Kozlowski
@ 2024-09-04 12:54       ` Nikunj Kela
  2024-09-04 13:24         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:54 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/3/2024 11:36 PM, Krzysztof Kozlowski wrote:
> On Tue, Sep 03, 2024 at 03:02:36PM -0700, Nikunj Kela wrote:
>> Add compatibles representing UART support on SA8255p.
>>
>> Clocks and interconnects are being configured in the 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>
>> ---
>>  .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
>>  1 file changed, 47 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>> index dd33794b3534..b63c984684f3 100644
>> --- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>> +++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>> @@ -10,14 +10,13 @@ maintainers:
>>    - Andy Gross <agross@kernel.org>
>>    - Bjorn Andersson <bjorn.andersson@linaro.org>
>>  
>> -allOf:
>> -  - $ref: /schemas/serial/serial.yaml#
>> -
>>  properties:
>>    compatible:
>>      enum:
>>        - qcom,geni-uart
>>        - qcom,geni-debug-uart
>> +      - qcom,sa8255p-geni-uart
>> +      - qcom,sa8255p-geni-debug-uart
> Why devices are not compatible? What changed in programming model?

The cover-letter explains what is changed for devices in this platform.
I will add the description in this patch too.


>
>>  
>>    clocks:
>>      maxItems: 1
>> @@ -51,18 +50,49 @@ properties:
>>        - const: sleep
>>  
>>    power-domains:
>> -    maxItems: 1
>> +    minItems: 1
>> +    maxItems: 2
>> +
>> +  power-domain-names:
> This does not match power-domains anymore.

Single power domain doesn't need to use power-domain-names binding as it
is not needed however for multiple(in this case 2), you need to provide
names. I will add this property to if block and only keep maxItems here.


>
>> +    items:
>> +      - const: power
>> +      - const: perf
>>  
>>    reg:
>>      maxItems: 1
>>  
>>  required:
>>    - compatible
>> -  - clocks
>> -  - clock-names
>>    - interrupts
>>    - reg
>>  
>> +allOf:
>> +  - $ref: /schemas/serial/serial.yaml#
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            enum:
>> +              - qcom,sa8255p-geni-uart
>> +              - qcom,sa8255p-geni-debug-uart
>> +    then:
>> +      required:
>> +        - power-domains
>> +        - power-domain-names
>> +
>> +      properties:
>> +        power-domains:
>> +          minItems: 2
>> +
>> +    else:
>> +      required:
>> +        - clocks
>> +        - clock-names
>> +
>> +      properties:
>> +        power-domains:
>> +          maxItems: 1
>> +
>>  unevaluatedProperties: false
>>  
>>  examples:
>> @@ -83,4 +113,15 @@ examples:
>>                          <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>;
>>          interconnect-names = "qup-core", "qup-config";
>>      };
>> +
>> +  - |
>> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
>> +
>> +    serial@990000 {
>> +        compatible = "qcom,sa8255p-geni-uart";
>> +        reg = <0x990000 0x4000>;
>> +        interrupts = <GIC_SPI 531 IRQ_TYPE_LEVEL_HIGH>;
>> +        power-domains = <&scmi11_pd 4>, <&scmi11_dvfs 4>;
>> +        power-domain-names = "power", "perf";
>> +    };
>>  ...
>> -- 
>> 2.34.1
>>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  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
  0 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:56 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/4/2024 12:47 AM, Krzysztof Kozlowski wrote:
> On 04/09/2024 00:02, Nikunj Kela wrote:
>> Add compatibles representing UART support on SA8255p.
>>
>> Clocks and interconnects are being configured in the 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>
>> ---
>>  .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
>>  1 file changed, 47 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>> index dd33794b3534..b63c984684f3 100644
>> --- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>> +++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>> @@ -10,14 +10,13 @@ maintainers:
>>    - Andy Gross <agross@kernel.org>
>>    - Bjorn Andersson <bjorn.andersson@linaro.org>
>>  
>> -allOf:
>> -  - $ref: /schemas/serial/serial.yaml#
>> -
>>  properties:
>>    compatible:
>>      enum:
>>        - qcom,geni-uart
>>        - qcom,geni-debug-uart
>> +      - qcom,sa8255p-geni-uart
>> +      - qcom,sa8255p-geni-debug-uart
>
> Anyway, the entire patchset is organized wrong. Or you sent only subset.
>
> Where is the driver change? This cannot work. To remind bindings go with
> the driver (nothing new here).
>
> Best regards,
> Krzysztof

The driver changes will soon be posted. They are being reviewed
internally. For a quick look on what is coming next, you can refer to
CodeLinaro git repo[1]

[1]:
https://git.codelinaro.org/clo/linux-kernel/kernel-qcom/-/tree/nkela/sa8255p_v6_11_rc2?ref_type=heads




^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform
  2024-09-04  5:54   ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Krzysztof Kozlowski
@ 2024-09-04 12:58     ` Nikunj Kela
  0 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 12:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud


On 9/3/2024 10:54 PM, Krzysztof Kozlowski wrote:
> On Tue, Sep 03, 2024 at 03:02:19PM -0700, Nikunj Kela wrote:
>> This series enables the support for SA8255p Qualcomm SoC and Ride
>> platform. This platform uses SCMI power, reset, performance, sensor
>> protocols for resources(e.g. clocks, regulator, interconnect, phy etc.)
>> management. SA8255p is a virtual platforms that uses Qualcomm smc/hvc
>> transport driver.
>>
>> Multiple virtual SCMI instances are being used to achieve the parallelism.
>> SCMI platform stack runs in SMP enabled VM hence allows platform to service
>> multiple resource requests in parallel. Each device is assigned its own
>> dedicated SCMI channel and Tx/Rx doorbells.
>>
> Do not attach (thread) your patchsets to some other threads (unrelated
> or older versions). This buries them deep in the mailbox and might
> interfere with applying entire sets.
>
> It does not look like you tested the bindings, at least after quick
> look. Please run  (see
> Documentation/devicetree/bindings/writing-schema.rst for instructions).
> Maybe you need to update your dtschema and yamllint.
>
> Best regards,
> Krzysztof

Will fix spaces and send v3 in separate thread. Thanks




^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-04 12:56       ` Nikunj Kela
@ 2024-09-04 13:16         ` Krzysztof Kozlowski
  2024-09-04 17:05         ` Andrew Lunn
  1 sibling, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 13:16 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 14:56, Nikunj Kela wrote:
> 
> On 9/4/2024 12:47 AM, Krzysztof Kozlowski wrote:
>> On 04/09/2024 00:02, Nikunj Kela wrote:
>>> Add compatibles representing UART support on SA8255p.
>>>
>>> Clocks and interconnects are being configured in the 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>
>>> ---
>>>  .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
>>>  1 file changed, 47 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>>> index dd33794b3534..b63c984684f3 100644
>>> --- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>>> +++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>>> @@ -10,14 +10,13 @@ maintainers:
>>>    - Andy Gross <agross@kernel.org>
>>>    - Bjorn Andersson <bjorn.andersson@linaro.org>
>>>  
>>> -allOf:
>>> -  - $ref: /schemas/serial/serial.yaml#
>>> -
>>>  properties:
>>>    compatible:
>>>      enum:
>>>        - qcom,geni-uart
>>>        - qcom,geni-debug-uart
>>> +      - qcom,sa8255p-geni-uart
>>> +      - qcom,sa8255p-geni-debug-uart
>>
>> Anyway, the entire patchset is organized wrong. Or you sent only subset.
>>
>> Where is the driver change? This cannot work. To remind bindings go with
>> the driver (nothing new here).
>>
>> Best regards,
>> Krzysztof
> 
> The driver changes will soon be posted. They are being reviewed
> internally. For a quick look on what is coming next, you can refer to
> CodeLinaro git repo[1]

Upstream does not work like that. This patch is just wrong and pointless
without driver change. Never send such stuff separately from the driver.
Or fix the binding, if the intention was there is no driver.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  2024-09-04 12:27       ` Nikunj Kela
@ 2024-09-04 13:17         ` Krzysztof Kozlowski
  2024-09-04 14:19           ` Nikunj Kela
  0 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 13:17 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

On 04/09/2024 14:27, Nikunj Kela wrote:
> 
> On 9/3/2024 11:26 PM, Krzysztof Kozlowski wrote:
>> On Tue, Sep 03, 2024 at 03:02:33PM -0700, Nikunj Kela wrote:
>>> Add compatible for the cpufreq engine representing support on SA8255p.
>>>
>>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>>> ---
>>>  .../bindings/cpufreq/cpufreq-qcom-hw.yaml        | 16 ++++++++++++++++
>>>  1 file changed, 16 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>> index 1e9797f96410..84865e553c8b 100644
>>> --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>> +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>> @@ -34,6 +34,7 @@ properties:
>>>          items:
>>>            - enum:
>>>                - qcom,qdu1000-cpufreq-epss
>>> +              - qcom,sa8255p-cpufreq-epss
>>>                - qcom,sa8775p-cpufreq-epss
>>>                - qcom,sc7280-cpufreq-epss
>>>                - qcom,sc8280xp-cpufreq-epss
>>> @@ -206,6 +207,21 @@ allOf:
>>>          interrupt-names:
>>>            minItems: 2
>>>  
>>> +  - if:
>>> +      properties:
>>> +        compatible:
>>> +          contains:
>>> +            enum:
>>> +              - qcom,sa8255p-cpufreq-epss
>>> +    then:
>>> +      properties:
>>> +        reg:
>>> +          minItems: 2
>>> +          maxItems: 2
>>> +
>>> +        reg-names:
>>> +          minItems: 2
>>> +          maxItems: 2
>> What about interrupts? You need to constrain each of such lists.
>>
>> Best regards,
>> Krzysztof
> 
> Interrupts are not required, I still need to put constraints for

It's irrelevant whether they are required or not. Each property should
be narrowed.

> interrupts? BTW, there is no if block for SA8775p binding in this file.



Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-04 12:41       ` Nikunj Kela
@ 2024-09-04 13:20         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 13:20 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 14:41, Nikunj Kela wrote:
> 
> 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.

It is not obvious to me. I doubt it is obvious to others. Commit msg
does not say they are compatible and usually difference in
clocks/interconnects is not reason of incompatibility. So why suddenly
here we would understand it differently?


> 
> 
>>  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?

I proposed separate binding file. But your commit msg suggested these
are compatible. Lack of driver change is also proof of that.

I don't want to keep discussing this because it does not lead to
anywhere. We keep repeating the same.

> 
> 
>>
>> 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.

You just affected all the DTS everywhere. It's your task to check all
DTS everywhere. Not ours.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-04 12:45         ` Nikunj Kela
@ 2024-09-04 13:20           ` Krzysztof Kozlowski
  2024-09-05 19:28           ` Andi Shyti
  1 sibling, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 13:20 UTC (permalink / raw)
  To: Nikunj Kela, Wolfram Sang, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

On 04/09/2024 14:45, Nikunj Kela wrote:
> 
> On 9/4/2024 12:55 AM, Wolfram Sang wrote:
>>> Just to clarify to I2C maintainers:
>>> This is incomplete. Missing driver changes.
>> Thanks, Krzysztof!
> 
> Driver changes are going through internal review and will soon be
> posted. For your reference, we have pushed driver changes in CodeLinaro
> git branch(nkela/sa8255p_v6_11_rc2)  in kernel-qcom repo [1]. You can
> take a look at the changes that are in pipeline and will follow soon.
> 

Sorry, we are not reviewing other repos. Post patches ONLY when they are
ready. Sending one piece without driver is not correct and it does not
make any, absolutely any sense.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 12:48       ` Nikunj Kela
@ 2024-09-04 13:21         ` Krzysztof Kozlowski
  2024-09-04 16:14           ` Nikunj Kela
  2024-09-09 20:29           ` Nikunj Kela
  2024-09-05 13:21         ` Dmitry Baryshkov
  1 sibling, 2 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 13:21 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 14:48, Nikunj Kela wrote:
> 
> On 9/3/2024 11:34 PM, Krzysztof Kozlowski wrote:
>> On Tue, Sep 03, 2024 at 03:02:35PM -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.
>>>
>> Please use standard email subjects, so with the PATCH keyword in the
>> title.  helps here to create proper versioned patches.
> Where did I miss PATCH keyword in the subject here? It says "[PATCH v2
> 16/21] dt-bindings: spi: document support for SA8255p"

Oh, wrong template. It was about spi prefix, should be this one:

Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters

>>

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-04 12:54       ` Nikunj Kela
@ 2024-09-04 13:24         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 13:24 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 14:54, Nikunj Kela wrote:
> 
> On 9/3/2024 11:36 PM, Krzysztof Kozlowski wrote:
>> On Tue, Sep 03, 2024 at 03:02:36PM -0700, Nikunj Kela wrote:
>>> Add compatibles representing UART support on SA8255p.
>>>
>>> Clocks and interconnects are being configured in the 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>
>>> ---
>>>  .../serial/qcom,serial-geni-qcom.yaml         | 53 ++++++++++++++++---
>>>  1 file changed, 47 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>>> index dd33794b3534..b63c984684f3 100644
>>> --- a/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>>> +++ b/Documentation/devicetree/bindings/serial/qcom,serial-geni-qcom.yaml
>>> @@ -10,14 +10,13 @@ maintainers:
>>>    - Andy Gross <agross@kernel.org>
>>>    - Bjorn Andersson <bjorn.andersson@linaro.org>
>>>  
>>> -allOf:
>>> -  - $ref: /schemas/serial/serial.yaml#
>>> -
>>>  properties:
>>>    compatible:
>>>      enum:
>>>        - qcom,geni-uart
>>>        - qcom,geni-debug-uart
>>> +      - qcom,sa8255p-geni-uart
>>> +      - qcom,sa8255p-geni-debug-uart
>> Why devices are not compatible? What changed in programming model?
> 
> The cover-letter explains what is changed for devices in this platform.
> I will add the description in this patch too.

Many of us do not read cover letters. They don't really matter,
especially that serial tree will not include it. Each commit must stand
on its own.

> 
> 
>>
>>>  
>>>    clocks:
>>>      maxItems: 1
>>> @@ -51,18 +50,49 @@ properties:
>>>        - const: sleep
>>>  
>>>    power-domains:
>>> -    maxItems: 1
>>> +    minItems: 1
>>> +    maxItems: 2
>>> +
>>> +  power-domain-names:
>> This does not match power-domains anymore.
> 
> Single power domain doesn't need to use power-domain-names binding as it
> is not needed however for multiple(in this case 2), you need to provide
> names. I will add this property to if block and only keep maxItems here.

The xxx and xxx-names properties always go in sync. Otherwise we do not
really know what is the power domain for other variants.

You are allowed to be unspecific about power domain (so maxItems: 1) if
it is obvious. You now made it non-obvious, so above flexibility does
not apply anymore.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  2024-09-04 13:17         ` Krzysztof Kozlowski
@ 2024-09-04 14:19           ` Nikunj Kela
  2024-09-04 14:29             ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 14:19 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud


On 9/4/2024 6:17 AM, Krzysztof Kozlowski wrote:
> On 04/09/2024 14:27, Nikunj Kela wrote:
>> On 9/3/2024 11:26 PM, Krzysztof Kozlowski wrote:
>>> On Tue, Sep 03, 2024 at 03:02:33PM -0700, Nikunj Kela wrote:
>>>> Add compatible for the cpufreq engine representing support on SA8255p.
>>>>
>>>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>>>> ---
>>>>  .../bindings/cpufreq/cpufreq-qcom-hw.yaml        | 16 ++++++++++++++++
>>>>  1 file changed, 16 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>>> index 1e9797f96410..84865e553c8b 100644
>>>> --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>>> +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>>> @@ -34,6 +34,7 @@ properties:
>>>>          items:
>>>>            - enum:
>>>>                - qcom,qdu1000-cpufreq-epss
>>>> +              - qcom,sa8255p-cpufreq-epss
>>>>                - qcom,sa8775p-cpufreq-epss
>>>>                - qcom,sc7280-cpufreq-epss
>>>>                - qcom,sc8280xp-cpufreq-epss
>>>> @@ -206,6 +207,21 @@ allOf:
>>>>          interrupt-names:
>>>>            minItems: 2
>>>>  
>>>> +  - if:
>>>> +      properties:
>>>> +        compatible:
>>>> +          contains:
>>>> +            enum:
>>>> +              - qcom,sa8255p-cpufreq-epss
>>>> +    then:
>>>> +      properties:
>>>> +        reg:
>>>> +          minItems: 2
>>>> +          maxItems: 2
>>>> +
>>>> +        reg-names:
>>>> +          minItems: 2
>>>> +          maxItems: 2
>>> What about interrupts? You need to constrain each of such lists.
>>>
>>> Best regards,
>>> Krzysztof
>> Interrupts are not required, I still need to put constraints for
> It's irrelevant whether they are required or not. Each property should
> be narrowed.

So evenif we don't use interrupts property in our DT(patch#21), we need
to mention interrupts here? You suggest we put interrupts with maxItems: 0?

I wonder why SA8775p compatible is not in constraint list..

>> interrupts? BTW, there is no if block for SA8775p binding in this file.
>
>
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 14/21] dt-bindings: cpufreq: qcom-hw: document support for SA8255p
  2024-09-04 14:19           ` Nikunj Kela
@ 2024-09-04 14:29             ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-04 14:29 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

On 04/09/2024 16:19, Nikunj Kela wrote:
> 
> On 9/4/2024 6:17 AM, Krzysztof Kozlowski wrote:
>> On 04/09/2024 14:27, Nikunj Kela wrote:
>>> On 9/3/2024 11:26 PM, Krzysztof Kozlowski wrote:
>>>> On Tue, Sep 03, 2024 at 03:02:33PM -0700, Nikunj Kela wrote:
>>>>> Add compatible for the cpufreq engine representing support on SA8255p.
>>>>>
>>>>> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
>>>>> ---
>>>>>  .../bindings/cpufreq/cpufreq-qcom-hw.yaml        | 16 ++++++++++++++++
>>>>>  1 file changed, 16 insertions(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>>>> index 1e9797f96410..84865e553c8b 100644
>>>>> --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>>>> +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>>>>> @@ -34,6 +34,7 @@ properties:
>>>>>          items:
>>>>>            - enum:
>>>>>                - qcom,qdu1000-cpufreq-epss
>>>>> +              - qcom,sa8255p-cpufreq-epss
>>>>>                - qcom,sa8775p-cpufreq-epss
>>>>>                - qcom,sc7280-cpufreq-epss
>>>>>                - qcom,sc8280xp-cpufreq-epss
>>>>> @@ -206,6 +207,21 @@ allOf:
>>>>>          interrupt-names:
>>>>>            minItems: 2
>>>>>  
>>>>> +  - if:
>>>>> +      properties:
>>>>> +        compatible:
>>>>> +          contains:
>>>>> +            enum:
>>>>> +              - qcom,sa8255p-cpufreq-epss
>>>>> +    then:
>>>>> +      properties:
>>>>> +        reg:
>>>>> +          minItems: 2
>>>>> +          maxItems: 2
>>>>> +
>>>>> +        reg-names:
>>>>> +          minItems: 2
>>>>> +          maxItems: 2
>>>> What about interrupts? You need to constrain each of such lists.
>>>>
>>>> Best regards,
>>>> Krzysztof
>>> Interrupts are not required, I still need to put constraints for
>> It's irrelevant whether they are required or not. Each property should
>> be narrowed.
> 
> So evenif we don't use interrupts property in our DT(patch#21), we need
> to mention interrupts here? You suggest we put interrupts with maxItems: 0?

I don't understand. You use three quite separate statements. "Not
required", "don't use" and here "maxItems: 0" which means not allowed.

All of these mean something else and I keep guessing and responding
according to what you write. Probably half of my advises are just trash,
because it turns out it is something entirely else than what I read.

Make a decision how the hardware looks like.

> 
> I wonder why SA8775p compatible is not in constraint list..
> 
>>> interrupts? BTW, there is no if block for SA8775p binding in this file.
>>
>>
>> Best regards,
>> Krzysztof
>>

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 13:21         ` Krzysztof Kozlowski
@ 2024-09-04 16:14           ` Nikunj Kela
  2024-09-04 16:58             ` Andrew Lunn
  2024-09-09 20:29           ` Nikunj Kela
  1 sibling, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 16:14 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/4/2024 6:21 AM, Krzysztof Kozlowski wrote:
> On 04/09/2024 14:48, Nikunj Kela wrote:
>> On 9/3/2024 11:34 PM, Krzysztof Kozlowski wrote:
>>> On Tue, Sep 03, 2024 at 03:02:35PM -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.
>>>>
>>> Please use standard email subjects, so with the PATCH keyword in the
>>> title.  helps here to create proper versioned patches.
>> Where did I miss PATCH keyword in the subject here? It says "[PATCH v2
>> 16/21] dt-bindings: spi: document support for SA8255p"
> Oh, wrong template. It was about spi prefix, should be this one:

Sorry, didn't realize SPI uses different subject format than other
subsystems. Will fix in v3. Thanks


> Please use subject prefixes matching the subsystem. You can get them for
> example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
> your patch is touching. For bindings, the preferred subjects are
> explained here:
> https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
>
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 16:14           ` Nikunj Kela
@ 2024-09-04 16:58             ` Andrew Lunn
  2024-09-04 21:06               ` Nikunj Kela
  0 siblings, 1 reply; 82+ messages in thread
From: Andrew Lunn @ 2024-09-04 16:58 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

> Sorry, didn't realize SPI uses different subject format than other
> subsystems. Will fix in v3. Thanks

Each subsystem is free to use its own form. e.g for netdev you will
want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:

This is another reason why you should be splitting these patches per
subsystem, and submitting both the DT bindings and the code changes as
a two patch patchset. You can then learn how each subsystem names its
patches.

Please pick one victim subsystem and work on the patches for just that
subsystem. Once you have them correct, you can use everything you
learned to fixup all your other patches, one by one.

	Andrew      	 


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  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
  1 sibling, 1 reply; 82+ messages in thread
From: Andrew Lunn @ 2024-09-04 17:05 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

> The driver changes will soon be posted. They are being reviewed
> internally.

And what do you do when internal reviewers tell you that everything is
wrong and you need to change the binding? You just wasted a lot of
peoples time.

Please don't post patches until you know they are correct, complete,
build W=1, and pass all the standard static analysers.

I suggest you try to find an experience Mainline developer who can
mentor you.

	Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  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
  0 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 21:06 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari


On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>> Sorry, didn't realize SPI uses different subject format than other
>> subsystems. Will fix in v3. Thanks
> Each subsystem is free to use its own form. e.g for netdev you will
> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
of course they are! No one is disputing that.
>
> This is another reason why you should be splitting these patches per
> subsystem, and submitting both the DT bindings and the code changes as
> a two patch patchset. You can then learn how each subsystem names its
> patches.

Qualcomm QUPs chips have serial engines that can be configured as
UART/I2C/SPI so QUPs changes require to be pushed in one series for all
3 subsystems as they all are dependent.


>
> Please pick one victim subsystem and work on the patches for just that
> subsystem. Once you have them correct, you can use everything you
> learned to fixup all your other patches, one by one.
>
> 	Andrew      	 


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-04 17:05         ` Andrew Lunn
@ 2024-09-04 21:10           ` Nikunj Kela
  2024-09-04 21:54             ` Andrew Lunn
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 21:10 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari


On 9/4/2024 10:05 AM, Andrew Lunn wrote:
>> The driver changes will soon be posted. They are being reviewed
>> internally.
> And what do you do when internal reviewers tell you that everything is
> wrong and you need to change the binding? You just wasted a lot of
> peoples time.

Let me clarify here, the patches have already been through multiple
rounds of review and since this is new architecture that we are using,
we want to make sure this gets reviewed internally as much as possible.
While, we will be posting them soon, they are available on public git
repo for anyone to take a feel of the amount of changes. Let's not be
judgemental here.


> Please don't post patches until you know they are correct, complete,
> build W=1, and pass all the standard static analysers.
>
> I suggest you try to find an experience Mainline developer who can
> mentor you.

No one is born with experience. You learn as you go. Please note that
this series has gone through internal review before I posted it in
upstream.


> 	Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 21:06               ` Nikunj Kela
@ 2024-09-04 21:49                 ` Andrew Lunn
  2024-09-05  8:04                 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 82+ messages in thread
From: Andrew Lunn @ 2024-09-04 21:49 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

> Qualcomm QUPs chips have serial engines that can be configured as
> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
> 3 subsystems as they all are dependent.

So leave that until later. And when you do, explicit mention why you
are cross posting to three subsystems, because the hardware is
designed like that. And suggest a way it could be merged, which
subsystem should take the lead, and the others just need to provide
Acked-by. The Maintainers might disagree, want to do it differently,
but i find it always helps to state this from the beginning, otherwise
sometimes no Maintainer take the lead role.

But this patchset appears to be much more than QUPs. You should be
able the break the rest up into smaller patchsets, one per subsystem.

	Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-04 21:10           ` Nikunj Kela
@ 2024-09-04 21:54             ` Andrew Lunn
  2024-09-05  8:08               ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Andrew Lunn @ 2024-09-04 21:54 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

> No one is born with experience. You learn as you go. Please note that
> this series has gone through internal review before I posted it in
> upstream.

Then i'm surprise you were not told to submit lots of smaller
patchsets, one per subsystem, which are complete.

I get nobody is born with experience, but for a company the size of
Qualcomm, they can easily hire a few experienced mainline developers
who can mentor you, rather than having overloaded Maintainers teach
you the basics, and getting frustrated in the process.

	Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (20 preceding siblings ...)
  2024-09-04  5:54   ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Krzysztof Kozlowski
@ 2024-09-04 23:50   ` Nikunj Kela
  2024-09-05 12:59   ` Dmitry Baryshkov
  22 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-04 23:50 UTC (permalink / raw)
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

Hi All,

I have decided to split this series into multiple smaller ones as follows:

- Patches 1/21 - 11/21, 13/21 - 14/21, 19/21: will split them to each
subsystem specific patch sets.

- Patches 15/21 - 18/21: will come in separate series along with QUPs
driver changes.

- Patches 20/21 - 21/21: will come in separate series after above two
sets are accepted.

Thanks,

-Nikunj


On 9/3/2024 3:02 PM, Nikunj Kela wrote:
> This series enables the support for SA8255p Qualcomm SoC and Ride
> platform. This platform uses SCMI power, reset, performance, sensor
> protocols for resources(e.g. clocks, regulator, interconnect, phy etc.)
> management. SA8255p is a virtual platforms that uses Qualcomm smc/hvc
> transport driver.
>
> Multiple virtual SCMI instances are being used to achieve the parallelism.
> SCMI platform stack runs in SMP enabled VM hence allows platform to service
> multiple resource requests in parallel. Each device is assigned its own
> dedicated SCMI channel and Tx/Rx doorbells.
>
> Resource operations are grouped together to achieve better abstraction
> and to reduce the number of requests being sent to SCMI platform(server)
> thus improving boot time KPIs. This design approach was presented during
> LinaroConnect 2024 conference[1].
>
> Architecture:
> ------------
>                                                           +--------------------+
>                                                           |   Shared Memory    |
>                                                           |                    |
>                                                           | +----------------+ |                +----------------------------------+
>      +----------------------------+                     +-+->  ufs-shmem     <-+---+            |            Linux VM              |
>      |        Firmware VM         |                     | | +----------------+ |   |            |   +----------+   +----------+    |
>      |                            |                     | |                    |   |            |   |   UFS    |   |   PCIe   |    |
>      | +---------+ f +----------+ |                     | |                    |   |            |   |  Driver  |   |  Driver  |    |
>      | |Drivers  <---+  SCMI    | |        e            | |         |          |   |            |   +--+----^--+   +----------+    |
>      | | (clks,  | g | Server   +-+---------------------+ |                    |   |            |      |    |                      |
>      | |  vreg,  +--->          | |        h              |         |          |  b|k           |     a|   l|                      |
>      | |  gpio,  |   +--^-----+-+ |                       |                    |   |            |      |    |                      |
>      | |  phy,   |      |     |   |                       |         |          |   |            |  +---v----+----+  +----------+   |
>      | |  etc.)  |      |     |   |                       |                    |   +------------+--+  UFS SCMI   |  | PCIe SCMI|   |
>      | +---------+      |     |   |                       |                    |                |  |  INSTANCE   |  | INSTANCE |   |
>      |                  |     |   |                       |  +---------------+ |                |  +-^-----+-----+  +----------+   |
>      |                  |     |   |                       |  |  pcie-shmem   | |                |    |     |                       |
>      +------------------+-----+---+                       |  +---------------+ |                +----+-----+-----------------------+
>                         |     |                           |                    |                     |     |
>                         |     |                           +--------------------+                     |     |
>                        d|IRQ i|HVC                                                                  j|IRQ c|HVC
>                         |     |                                                                      |     |
>                         |     |                                                                      |     |
> +-----------------------+-----v----------------------------------------------------------------------+-----v------------------------------+
> |                                                                                                                                         |
> |                                                                                                                                         |
> |                                                                                                                                         |
> |                                                               HYPERVISOR                                                                |
> |                                                                                                                                         |
> |                                                                                                                                         |
> +-----------------------------------------------------------------------------------------------------------------------------------------+
>
>         +--------+   +--------+                                                                         +----------+  +-----------+
>         | CLOCK  |   |  PHY   |                                                                         |   UFS    |  |   PCIe    |
>         +--------+   +--------+                                                                         +----------+  +-----------+
>
>
> This series is based on next-20240903.
>
> [1]: https://resources.linaro.org/en/resource/wfnfEwBhRjLV1PEAJoDDte
>
> ---
> Changes in v2:
>   - Patch 1/21 - 11/21
>     - Added Reviewed-by tag
>
>   - Patch 12/21
>     - Already applied in the maintainers tree
>
>   - Patch 13/21
>     - Modified subject line
>     - Fixed schema to include fallback
>
>   - Patch 14/21
>     - Added constraints
>
>   - Patch 15/21
>     - Modified schema to remove useless text
>    
>   - Patch 16/21
>     - Modified schema formatting
>     - Amended schema definition as advised
>
>   - Patch 17/21
>     - Moved allOf block after required
>     - Fixed formatting
>     - Modified schema to remove useless text
>
>   - Patch 18/21
>     - Fixed clock property changes
>
>   - Patch 19/21
>     - Fixed scmi nodename pattern
>
>   - Patch 20/21
>     - Modified subject line and description
>     - Added EPPI macro
>
>   - Patch 21/21
>     - Removed scmichannels label and alias
>     - Modified scmi node name to conform to schema
>     - Moved status property to be the last one in scmi instances
>     - Changed to lower case for cpu labels
>     - Added fallback compatible for tlmm node
>
> Nikunj Kela (21):
>   dt-bindings: arm: qcom: add the SoC ID for SA8255P
>   soc: qcom: socinfo: add support for SA8255P
>   dt-bindings: arm: qcom: add SA8255p Ride board
>   dt-bindings: firmware: qcom,scm: document support for SA8255p
>   dt-bindings: mailbox: qcom-ipcc: document the support for SA8255p
>   dt-bindings: watchdog: qcom-wdt: document support on SA8255p
>   dt-bindings: crypto: qcom,prng: document support for SA8255p
>   dt-bindings: interrupt-controller: qcom-pdc: document support for
>     SA8255p
>   dt-bindings: soc: qcom: aoss-qmp: document support for SA8255p
>   dt-bindings: arm-smmu: document the support on SA8255p
>   dt-bindings: mfd: qcom,tcsr: document support for SA8255p
>   dt-bindings: thermal: tsens: document support on SA8255p
>   dt-bindings: pinctrl: Add SA8255p TLMM
>   dt-bindings: cpufreq: qcom-hw: document support for SA8255p
>   dt-bindings: i2c: document support for SA8255p
>   dt-bindings: spi: document support for SA8255p
>   dt-bindings: serial: document support for SA8255p
>   dt-bindings: qcom: geni-se: document support for SA8255P
>   dt-bindings: firmware: arm,scmi: allow multiple virtual instances
>   dt-bindings: arm: GIC: add ESPI and EPPI specifiers
>   arm64: dts: qcom: Add reduced functional DT for SA8255p Ride platform
>
>  .../devicetree/bindings/arm/qcom.yaml         |    6 +
>  .../bindings/cpufreq/cpufreq-qcom-hw.yaml     |   16 +
>  .../devicetree/bindings/crypto/qcom,prng.yaml |    1 +
>  .../bindings/firmware/arm,scmi.yaml           |    2 +-
>  .../bindings/firmware/qcom,scm.yaml           |    2 +
>  .../bindings/i2c/qcom,i2c-geni-qcom.yaml      |   33 +-
>  .../interrupt-controller/qcom,pdc.yaml        |    1 +
>  .../devicetree/bindings/iommu/arm,smmu.yaml   |    3 +
>  .../bindings/mailbox/qcom-ipcc.yaml           |    1 +
>  .../devicetree/bindings/mfd/qcom,tcsr.yaml    |    1 +
>  .../bindings/pinctrl/qcom,sa8775p-tlmm.yaml   |    8 +-
>  .../serial/qcom,serial-geni-qcom.yaml         |   53 +-
>  .../bindings/soc/qcom/qcom,aoss-qmp.yaml      |    1 +
>  .../bindings/soc/qcom/qcom,geni-se.yaml       |   45 +-
>  .../bindings/spi/qcom,spi-geni-qcom.yaml      |   60 +-
>  .../bindings/thermal/qcom-tsens.yaml          |    1 +
>  .../bindings/watchdog/qcom-wdt.yaml           |    1 +
>  arch/arm64/boot/dts/qcom/Makefile             |    1 +
>  arch/arm64/boot/dts/qcom/sa8255p-pmics.dtsi   |   80 +
>  arch/arm64/boot/dts/qcom/sa8255p-ride.dts     |  148 +
>  arch/arm64/boot/dts/qcom/sa8255p-scmi.dtsi    | 2312 ++++++++++++++++
>  arch/arm64/boot/dts/qcom/sa8255p.dtsi         | 2405 +++++++++++++++++
>  drivers/soc/qcom/socinfo.c                    |    1 +
>  include/dt-bindings/arm/qcom,ids.h            |    1 +
>  .../interrupt-controller/arm-gic.h            |    2 +
>  25 files changed, 5169 insertions(+), 16 deletions(-)
>  create mode 100644 arch/arm64/boot/dts/qcom/sa8255p-pmics.dtsi
>  create mode 100644 arch/arm64/boot/dts/qcom/sa8255p-ride.dts
>  create mode 100644 arch/arm64/boot/dts/qcom/sa8255p-scmi.dtsi
>  create mode 100644 arch/arm64/boot/dts/qcom/sa8255p.dtsi
>
>
> base-commit: 6804f0edbe7747774e6ae60f20cec4ee3ad7c187


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  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
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05  8:04 UTC (permalink / raw)
  To: Nikunj Kela, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 23:06, Nikunj Kela wrote:
> 
> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>> Sorry, didn't realize SPI uses different subject format than other
>>> subsystems. Will fix in v3. Thanks
>> Each subsystem is free to use its own form. e.g for netdev you will
>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
> of course they are! No one is disputing that.
>>
>> This is another reason why you should be splitting these patches per
>> subsystem, and submitting both the DT bindings and the code changes as
>> a two patch patchset. You can then learn how each subsystem names its
>> patches.
> 
> Qualcomm QUPs chips have serial engines that can be configured as
> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
> 3 subsystems as they all are dependent.

No, they are not dependent. They have never been. Look how all other
upstreaming process worked in the past.


Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 17/21] dt-bindings: serial: document support for SA8255p
  2024-09-04 21:54             ` Andrew Lunn
@ 2024-09-05  8:08               ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05  8:08 UTC (permalink / raw)
  To: Andrew Lunn, Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 04/09/2024 23:54, Andrew Lunn wrote:
>> No one is born with experience. You learn as you go. Please note that
>> this series has gone through internal review before I posted it in
>> upstream.
> 
> Then i'm surprise you were not told to submit lots of smaller
> patchsets, one per subsystem, which are complete.

We did... multiple times. We gave examples how entire new Qualcomm SoC
should be upstreamed, how this process should be organized. We gave
trainings. Some listen, some not. Sometimes people do not even come to a
training (for free). But there will be always an excuse for patchset
doing something entirely different than community expects...

The patchset here is a result of some misconceptions and not
understanding what is the dependency (claiming there is while there is
no) and what are the maintainer trees.

> 
> I get nobody is born with experience, but for a company the size of
> Qualcomm, they can easily hire a few experienced mainline developers
> who can mentor you, rather than having overloaded Maintainers teach
> you the basics, and getting frustrated in the process.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform
  2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Nikunj Kela
                     ` (21 preceding siblings ...)
  2024-09-04 23:50   ` Nikunj Kela
@ 2024-09-05 12:59   ` Dmitry Baryshkov
  22 siblings, 0 replies; 82+ messages in thread
From: Dmitry Baryshkov @ 2024-09-05 12:59 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud

On Tue, Sep 03, 2024 at 03:02:19PM GMT, Nikunj Kela wrote:
> This series enables the support for SA8255p Qualcomm SoC and Ride
> platform. This platform uses SCMI power, reset, performance, sensor
> protocols for resources(e.g. clocks, regulator, interconnect, phy etc.)
> management. SA8255p is a virtual platforms that uses Qualcomm smc/hvc
> transport driver.
> 
> Multiple virtual SCMI instances are being used to achieve the parallelism.
> SCMI platform stack runs in SMP enabled VM hence allows platform to service
> multiple resource requests in parallel. Each device is assigned its own
> dedicated SCMI channel and Tx/Rx doorbells.
> 
> Resource operations are grouped together to achieve better abstraction
> and to reduce the number of requests being sent to SCMI platform(server)
> thus improving boot time KPIs. This design approach was presented during
> LinaroConnect 2024 conference[1].

Please don't send new revisions as a reply to the previous patchset.
Always start new thread for new submission. This is documented in your
internal 'upstreaming' documents. If it is not, please update them.

-- 
With best wishes
Dmitry


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 12:48       ` Nikunj Kela
  2024-09-04 13:21         ` Krzysztof Kozlowski
@ 2024-09-05 13:21         ` Dmitry Baryshkov
  1 sibling, 0 replies; 82+ messages in thread
From: Dmitry Baryshkov @ 2024-09-05 13:21 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

On Wed, Sep 04, 2024 at 05:48:35AM GMT, Nikunj Kela wrote:
> 
> On 9/3/2024 11:34 PM, Krzysztof Kozlowski wrote:
> > On Tue, Sep 03, 2024 at 03:02:35PM -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.
> >>
> > Please use standard email subjects, so with the PATCH keyword in the
> > title.  helps here to create proper versioned patches.
> Where did I miss PATCH keyword in the subject here? It says "[PATCH v2
> 16/21] dt-bindings: spi: document support for SA8255p"
> > Another useful tool is b4. Skipping the PATCH keyword makes filtering of
> > emails more difficult thus making the review process less convenient.
> >
> >
> >> CC: Praveen Talari <quic_ptalari@quicinc.com>
> >> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
> >> ---
> >>  .../bindings/spi/qcom,spi-geni-qcom.yaml      | 60 +++++++++++++++++--
> >>  1 file changed, 56 insertions(+), 4 deletions(-)

> >>  
> >>  properties:
> >>    compatible:
> >> -    const: qcom,geni-spi
> >> +    enum:
> >> +      - qcom,geni-spi
> >> +      - qcom,sa8255p-geni-spi
> > You have entire commit msg to explain why this device's programming
> > model is not compatible with existing generic compatible which must
> > cover all variants (because it is crazy generic).
> >
> > Best regards,
> > Krzysztof
> 
> I will put more details in the description of the patch, though, I had
> put the description in the cover letter for this entire series.

Cover letters do not land in the git repo, so the next person coming to
perform modifications can not understand what was so special about this
platform. Please always provide all reasoning for a change in the commit
message.

-- 
With best wishes
Dmitry


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 12:49       ` Nikunj Kela
@ 2024-09-05 13:22         ` Dmitry Baryshkov
  0 siblings, 0 replies; 82+ messages in thread
From: Dmitry Baryshkov @ 2024-09-05 13:22 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

On Wed, Sep 04, 2024 at 05:49:40AM GMT, Nikunj Kela wrote:
> 
> On 9/4/2024 12:48 AM, Krzysztof Kozlowski wrote:
> > On 04/09/2024 00:02, 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>
> > Also this is incomplete - adding compatible without driver change is not
> > expected. It cannot even work.
> >
> > Best regards,
> > Krzysztof
> 
> Link for CLO branch is provided in I2C patch series. The driver changes
> will soon follow.

So, what's the point of posting the dt-bindings without corresponding
driver changes?

-- 
With best wishes
Dmitry


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05  8:04                 ` Krzysztof Kozlowski
@ 2024-09-05 14:03                   ` Nikunj Kela
  2024-09-05 14:09                     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-05 14:03 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
> On 04/09/2024 23:06, Nikunj Kela wrote:
>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>> Sorry, didn't realize SPI uses different subject format than other
>>>> subsystems. Will fix in v3. Thanks
>>> Each subsystem is free to use its own form. e.g for netdev you will
>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>> of course they are! No one is disputing that.
>>> This is another reason why you should be splitting these patches per
>>> subsystem, and submitting both the DT bindings and the code changes as
>>> a two patch patchset. You can then learn how each subsystem names its
>>> patches.
>> Qualcomm QUPs chips have serial engines that can be configured as
>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>> 3 subsystems as they all are dependent.
> No, they are not dependent. They have never been. Look how all other
> upstreaming process worked in the past.

Top level QUP node(patch#18) includes i2c,spi,uart nodes.
soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
yaml. The example that is added in YAML file for QUP node will not find
sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
included in the same series.


>
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 14:03                   ` Nikunj Kela
@ 2024-09-05 14:09                     ` Krzysztof Kozlowski
  2024-09-05 14:15                       ` Nikunj Kela
  0 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 14:09 UTC (permalink / raw)
  To: Nikunj Kela, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 05/09/2024 16:03, Nikunj Kela wrote:
> 
> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>> subsystems. Will fix in v3. Thanks
>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>> of course they are! No one is disputing that.
>>>> This is another reason why you should be splitting these patches per
>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>> a two patch patchset. You can then learn how each subsystem names its
>>>> patches.
>>> Qualcomm QUPs chips have serial engines that can be configured as
>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>> 3 subsystems as they all are dependent.
>> No, they are not dependent. They have never been. Look how all other
>> upstreaming process worked in the past.
> 
> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
> yaml. The example that is added in YAML file for QUP node will not find
> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
> included in the same series.
> 

So where is the dependency? I don't see it. Anyway, if you insist,
provide reasons why this should be the only one patchset - from all
SoCs, all companies, all developers - getting an exception from standard
merging practice and from explicit rule about driver change. See
submitting bindings.

This was re-iterated over and over, but you keep claiming you need some
sort of special treatment. If so, please provide arguments WHY this
requires special treatment and *all* other contributions are fine with it.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 14:09                     ` Krzysztof Kozlowski
@ 2024-09-05 14:15                       ` Nikunj Kela
  2024-09-05 14:39                         ` Krzysztof Kozlowski
                                           ` (2 more replies)
  0 siblings, 3 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-05 14:15 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
> On 05/09/2024 16:03, Nikunj Kela wrote:
>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>> subsystems. Will fix in v3. Thanks
>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>> of course they are! No one is disputing that.
>>>>> This is another reason why you should be splitting these patches per
>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>> patches.
>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>> 3 subsystems as they all are dependent.
>>> No, they are not dependent. They have never been. Look how all other
>>> upstreaming process worked in the past.
>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>> yaml. The example that is added in YAML file for QUP node will not find
>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>> included in the same series.
>>
> So where is the dependency? I don't see it. 

Ok, what is your suggestion on dt-schema check failure in that case as I
mentioned above? Shall we remove examples from yaml that we added?


> Anyway, if you insist,
> provide reasons why this should be the only one patchset - from all
> SoCs, all companies, all developers - getting an exception from standard
> merging practice and from explicit rule about driver change. See
> submitting bindings.
>
> This was re-iterated over and over, but you keep claiming you need some
> sort of special treatment. If so, please provide arguments WHY this
> requires special treatment and *all* other contributions are fine with it.
>
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 14:15                       ` Nikunj Kela
@ 2024-09-05 14:39                         ` Krzysztof Kozlowski
  2024-09-05 16:08                           ` Nikunj Kela
  2024-09-05 14:46                         ` Andrew Lunn
  2024-09-05 14:49                         ` Krzysztof Kozlowski
  2 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 14:39 UTC (permalink / raw)
  To: Nikunj Kela, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 05/09/2024 16:15, Nikunj Kela wrote:
> 
> On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
>> On 05/09/2024 16:03, Nikunj Kela wrote:
>>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>>> subsystems. Will fix in v3. Thanks
>>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>>> of course they are! No one is disputing that.
>>>>>> This is another reason why you should be splitting these patches per
>>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>>> patches.
>>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>>> 3 subsystems as they all are dependent.
>>>> No, they are not dependent. They have never been. Look how all other
>>>> upstreaming process worked in the past.
>>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>>> yaml. The example that is added in YAML file for QUP node will not find
>>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>>> included in the same series.
>>>
>> So where is the dependency? I don't see it. 
> 
> Ok, what is your suggestion on dt-schema check failure in that case as I
> mentioned above? Shall we remove examples from yaml that we added?

I don't understand what sort of failure you want to fix and why examples
have any problem here. I said it multiple times already but I think you
never confirmed. Do you understand how patches are merged? That they go
via different trees but everything must be 100% bisectable?

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 14:15                       ` Nikunj Kela
  2024-09-05 14:39                         ` Krzysztof Kozlowski
@ 2024-09-05 14:46                         ` Andrew Lunn
  2024-09-05 14:49                         ` Krzysztof Kozlowski
  2 siblings, 0 replies; 82+ messages in thread
From: Andrew Lunn @ 2024-09-05 14:46 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

> Ok, what is your suggestion on dt-schema check failure in that case as I
> mentioned above? Shall we remove examples from yaml that we added?

As Krzysztof keeps saying, Commit message. You have an unlimited
amount of space to document why this SoC is special, how it is
special, maybe include some ASCII art showing how it is special.
Justify it being special. Once it is clear it is special, has
dependencies which are real, we are likely to accept the patches. We
know SoC vendors do weird things, and sometimes mainline processes
just don't work. But you need to clear, upfront, and state, the
process does not work because... in your commit message. Maybe put it
below the ---.

Something i often say to Mainline newbies. The code is easy, it is the
processes which are hard. The commit message is part of the
process. You want to try to anticipate all the questions Reviewers are
going to ask and answer them in the commit message, before they ask
them. It is process that you split patches by subsystem. It is process
that binding changes and driver changes go together in the
patchset. Your 'code review' should include all this, not just the
lines of actual code. And to begin with, process is probably a lot
more important than the actual code. So please concentrate on
processes, get them right.

	Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 14:15                       ` Nikunj Kela
  2024-09-05 14:39                         ` Krzysztof Kozlowski
  2024-09-05 14:46                         ` Andrew Lunn
@ 2024-09-05 14:49                         ` Krzysztof Kozlowski
  2024-09-05 15:43                           ` Nikunj Kela
  2 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 14:49 UTC (permalink / raw)
  To: Nikunj Kela, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 05/09/2024 16:15, Nikunj Kela wrote:
> 
> On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
>> On 05/09/2024 16:03, Nikunj Kela wrote:
>>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>>> subsystems. Will fix in v3. Thanks
>>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>>> of course they are! No one is disputing that.
>>>>>> This is another reason why you should be splitting these patches per
>>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>>> patches.
>>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>>> 3 subsystems as they all are dependent.
>>>> No, they are not dependent. They have never been. Look how all other
>>>> upstreaming process worked in the past.
>>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>>> yaml. The example that is added in YAML file for QUP node will not find
>>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>>> included in the same series.
>>>
>> So where is the dependency? I don't see it. 
> 
> Ok, what is your suggestion on dt-schema check failure in that case as I
> mentioned above? Shall we remove examples from yaml that we added?
> 
> 
>> Anyway, if you insist,
>> provide reasons why this should be the only one patchset - from all
>> SoCs, all companies, all developers - getting an exception from standard
>> merging practice and from explicit rule about driver change. See
>> submitting bindings.
>>
>> This was re-iterated over and over, but you keep claiming you need some
>> sort of special treatment. If so, please provide arguments WHY this
>> requires special treatment and *all* other contributions are fine with it.

You did not respond to above about explaining why this patchset needs
special treatment, so I assume there is no exception here to be granted
so any new version will follow standard process (see submitting bindings
/ writing bindings).

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 14:49                         ` Krzysztof Kozlowski
@ 2024-09-05 15:43                           ` Nikunj Kela
  0 siblings, 0 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-05 15:43 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/5/2024 7:49 AM, Krzysztof Kozlowski wrote:
> On 05/09/2024 16:15, Nikunj Kela wrote:
>> On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
>>> On 05/09/2024 16:03, Nikunj Kela wrote:
>>>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>>>> subsystems. Will fix in v3. Thanks
>>>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>>>> of course they are! No one is disputing that.
>>>>>>> This is another reason why you should be splitting these patches per
>>>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>>>> patches.
>>>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>>>> 3 subsystems as they all are dependent.
>>>>> No, they are not dependent. They have never been. Look how all other
>>>>> upstreaming process worked in the past.
>>>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>>>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>>>> yaml. The example that is added in YAML file for QUP node will not find
>>>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>>>> included in the same series.
>>>>
>>> So where is the dependency? I don't see it. 
>> Ok, what is your suggestion on dt-schema check failure in that case as I
>> mentioned above? Shall we remove examples from yaml that we added?
>>
>>
>>> Anyway, if you insist,
>>> provide reasons why this should be the only one patchset - from all
>>> SoCs, all companies, all developers - getting an exception from standard
>>> merging practice and from explicit rule about driver change. See
>>> submitting bindings.
>>>
>>> This was re-iterated over and over, but you keep claiming you need some
>>> sort of special treatment. If so, please provide arguments WHY this
>>> requires special treatment and *all* other contributions are fine with it.
> You did not respond to above about explaining why this patchset needs
> special treatment, so I assume there is no exception here to be granted
> so any new version will follow standard process (see submitting bindings
> / writing bindings).
>
> Best regards,
> Krzysztof

Things will be clear after you see the driver changes. Without looking
at the code, this discussion won't lead to anything constructive. So I
deferred the QUP related discussion until driver patches are posted.

Thanks,

-Nikunj


>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  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:56                             ` Krzysztof Kozlowski
  0 siblings, 2 replies; 82+ messages in thread
From: Nikunj Kela @ 2024-09-05 16:08 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/5/2024 7:39 AM, Krzysztof Kozlowski wrote:
> On 05/09/2024 16:15, Nikunj Kela wrote:
>> On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
>>> On 05/09/2024 16:03, Nikunj Kela wrote:
>>>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>>>> subsystems. Will fix in v3. Thanks
>>>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>>>> of course they are! No one is disputing that.
>>>>>>> This is another reason why you should be splitting these patches per
>>>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>>>> patches.
>>>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>>>> 3 subsystems as they all are dependent.
>>>>> No, they are not dependent. They have never been. Look how all other
>>>>> upstreaming process worked in the past.
>>>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>>>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>>>> yaml. The example that is added in YAML file for QUP node will not find
>>>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>>>> included in the same series.
>>>>
>>> So where is the dependency? I don't see it. 
>> Ok, what is your suggestion on dt-schema check failure in that case as I
>> mentioned above? Shall we remove examples from yaml that we added?
> I don't understand what sort of failure you want to fix and why examples
> have any problem here. 

If the QUPs yaml changes are not included in the same series with
i2c,serial yaml changes, you see these errors:

/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: serial@990000:compatible:0: 'qcom,sa8255p-geni-uart' is not one of ['qcom,geni-uart', 'qcom,geni-debug-uart']
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: i2c@984000:compatible:0: 'qcom,sa8255p-geni-i2c' is not one of ['qcom,geni-i2c', 'qcom,geni-i2c-master-hub']

> I said it multiple times already but I think you
> never confirmed. Do you understand how patches are merged? That they go
> via different trees but everything must be 100% bisectable?
>
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 16:08                           ` Nikunj Kela
@ 2024-09-05 16:23                             ` Andrew Lunn
  2024-09-05 16:39                               ` Nikunj Kela
  2024-09-05 16:56                             ` Krzysztof Kozlowski
  1 sibling, 1 reply; 82+ messages in thread
From: Andrew Lunn @ 2024-09-05 16:23 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

> If the QUPs yaml changes are not included in the same series with
> i2c,serial yaml changes, you see these errors:
> 
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: serial@990000:compatible:0: 'qcom,sa8255p-geni-uart' is not one of ['qcom,geni-uart', 'qcom,geni-debug-uart']
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: i2c@984000:compatible:0: 'qcom,sa8255p-geni-i2c' is not one of ['qcom,geni-i2c', 'qcom,geni-i2c-master-hub']

So you have a couple of options:

1) It sounds like you should get the QUP changes merged first. Then
   submit the i2c,serial changes. Is there a reason you cannot do
   this? Is there a mutual dependency between these two series, or
   just a one way dependency?

2) Explain in the commit message that following errors are expected
   because ... And explain in detail why the dependency cannot be
   broken to avoid the errors.

Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 16:23                             ` Andrew Lunn
@ 2024-09-05 16:39                               ` Nikunj Kela
  2024-09-05 17:35                                 ` Andrew Lunn
  0 siblings, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-05 16:39 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari


On 9/5/2024 9:23 AM, Andrew Lunn wrote:
>> If the QUPs yaml changes are not included in the same series with
>> i2c,serial yaml changes, you see these errors:
>>
>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: serial@990000:compatible:0: 'qcom,sa8255p-geni-uart' is not one of ['qcom,geni-uart', 'qcom,geni-debug-uart']
>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: i2c@984000:compatible:0: 'qcom,sa8255p-geni-i2c' is not one of ['qcom,geni-i2c', 'qcom,geni-i2c-master-hub']
> So you have a couple of options:
>
> 1) It sounds like you should get the QUP changes merged first. Then
>    submit the i2c,serial changes. Is there a reason you cannot do
>    this? Is there a mutual dependency between these two series, or
>    just a one way dependency?

The ask in this thread is to create new yaml files since existing one is
using generic compatibles. With new yaml, we would need to provide
example and can't avoid it. If we have to provide example of QUP node,
IMO, we should provide a few subnodes as well since just QUP node
without subnodes(i2c/serial/spi)  will not be very useful.

We can possibly skip all 3 subnode and only keep one subsystem(e.g.
serial) so QUP and UART yaml can go together(still need two subsystems)
while SPI and I2C can go independently after QUP series is accepted. Not
sure if that is acceptable to maintainers though. QUP node in actual DT
will have all 3 types of subnodes(i2c,spi, serial) so example in this
case won't be complete.

>
> 2) Explain in the commit message that following errors are expected
>    because ... And explain in detail why the dependency cannot be
>    broken to avoid the errors.
>
> Andrew


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 16:08                           ` Nikunj Kela
  2024-09-05 16:23                             ` Andrew Lunn
@ 2024-09-05 16:56                             ` Krzysztof Kozlowski
  2024-09-05 17:00                               ` Krzysztof Kozlowski
  1 sibling, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 16:56 UTC (permalink / raw)
  To: Nikunj Kela, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 05/09/2024 18:08, Nikunj Kela wrote:
> 
> On 9/5/2024 7:39 AM, Krzysztof Kozlowski wrote:
>> On 05/09/2024 16:15, Nikunj Kela wrote:
>>> On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
>>>> On 05/09/2024 16:03, Nikunj Kela wrote:
>>>>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>>>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>>>>> subsystems. Will fix in v3. Thanks
>>>>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>>>>> of course they are! No one is disputing that.
>>>>>>>> This is another reason why you should be splitting these patches per
>>>>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>>>>> patches.
>>>>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>>>>> 3 subsystems as they all are dependent.
>>>>>> No, they are not dependent. They have never been. Look how all other
>>>>>> upstreaming process worked in the past.
>>>>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>>>>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>>>>> yaml. The example that is added in YAML file for QUP node will not find
>>>>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>>>>> included in the same series.
>>>>>
>>>> So where is the dependency? I don't see it. 
>>> Ok, what is your suggestion on dt-schema check failure in that case as I
>>> mentioned above? Shall we remove examples from yaml that we added?
>> I don't understand what sort of failure you want to fix and why examples
>> have any problem here. 
> 
> If the QUPs yaml changes are not included in the same series with

They cannot be included in the same series. You just think that
including here solves the problem so go ahead, simulate the merging:
1. Bjorn applies soc/qcom/qcom,geni-se.yaml patch and tests. His tree
MUST build, so it also must pass dt_binding_check.
Does it pass? No.

2. SPI maintainer... ah, no point even going there.

> i2c,serial yaml changes, you see these errors:
> 
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: serial@990000:compatible:0: 'qcom,sa8255p-geni-uart' is not one of ['qcom,geni-uart', 'qcom,geni-debug-uart']
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: i2c@984000:compatible:0: 'qcom,sa8255p-geni-i2c' is not one of ['qcom,geni-i2c', 'qcom,geni-i2c-master-hub']

Don't grow examples if not needed. Or create dependencies and ask
maintainers to cross-merge.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 16:56                             ` Krzysztof Kozlowski
@ 2024-09-05 17:00                               ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 17:00 UTC (permalink / raw)
  To: Nikunj Kela, Andrew Lunn
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

On 05/09/2024 18:56, Krzysztof Kozlowski wrote:
> On 05/09/2024 18:08, Nikunj Kela wrote:
>>
>> On 9/5/2024 7:39 AM, Krzysztof Kozlowski wrote:
>>> On 05/09/2024 16:15, Nikunj Kela wrote:
>>>> On 9/5/2024 7:09 AM, Krzysztof Kozlowski wrote:
>>>>> On 05/09/2024 16:03, Nikunj Kela wrote:
>>>>>> On 9/5/2024 1:04 AM, Krzysztof Kozlowski wrote:
>>>>>>> On 04/09/2024 23:06, Nikunj Kela wrote:
>>>>>>>> On 9/4/2024 9:58 AM, Andrew Lunn wrote:
>>>>>>>>>> Sorry, didn't realize SPI uses different subject format than other
>>>>>>>>>> subsystems. Will fix in v3. Thanks
>>>>>>>>> Each subsystem is free to use its own form. e.g for netdev you will
>>>>>>>>> want the prefix [PATCH net-next v42] net: stmmac: dwmac-qcom-ethqos:
>>>>>>>> of course they are! No one is disputing that.
>>>>>>>>> This is another reason why you should be splitting these patches per
>>>>>>>>> subsystem, and submitting both the DT bindings and the code changes as
>>>>>>>>> a two patch patchset. You can then learn how each subsystem names its
>>>>>>>>> patches.
>>>>>>>> Qualcomm QUPs chips have serial engines that can be configured as
>>>>>>>> UART/I2C/SPI so QUPs changes require to be pushed in one series for all
>>>>>>>> 3 subsystems as they all are dependent.
>>>>>>> No, they are not dependent. They have never been. Look how all other
>>>>>>> upstreaming process worked in the past.
>>>>>> Top level QUP node(patch#18) includes i2c,spi,uart nodes.
>>>>>> soc/qcom/qcom,geni-se.yaml validate those subnodes against respective
>>>>>> yaml. The example that is added in YAML file for QUP node will not find
>>>>>> sa8255p compatibles if all 4 yaml(qup, i2c, spi, serial nodes) are not
>>>>>> included in the same series.
>>>>>>
>>>>> So where is the dependency? I don't see it. 
>>>> Ok, what is your suggestion on dt-schema check failure in that case as I
>>>> mentioned above? Shall we remove examples from yaml that we added?
>>> I don't understand what sort of failure you want to fix and why examples
>>> have any problem here. 
>>
>> If the QUPs yaml changes are not included in the same series with
> 
> They cannot be included in the same series. You just think that
> including here solves the problem so go ahead, simulate the merging:
> 1. Bjorn applies soc/qcom/qcom,geni-se.yaml patch and tests. His tree
> MUST build, so it also must pass dt_binding_check.
> Does it pass? No.
> 
> 2. SPI maintainer... ah, no point even going there.
> 
>> i2c,serial yaml changes, you see these errors:
>>
>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: serial@990000:compatible:0: 'qcom,sa8255p-geni-uart' is not one of ['qcom,geni-uart', 'qcom,geni-debug-uart']
>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: i2c@984000:compatible:0: 'qcom,sa8255p-geni-i2c' is not one of ['qcom,geni-i2c', 'qcom,geni-i2c-master-hub']
> 
> Don't grow examples if not needed. Or create dependencies and ask
> maintainers to cross-merge.

Or soc/geni-se binding could be also converted to just list compatibles
instead of referencing other schema, just like MDSS.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-05 16:39                               ` Nikunj Kela
@ 2024-09-05 17:35                                 ` Andrew Lunn
  0 siblings, 0 replies; 82+ messages in thread
From: Andrew Lunn @ 2024-09-05 17:35 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

On Thu, Sep 05, 2024 at 09:39:54AM -0700, Nikunj Kela wrote:
> 
> On 9/5/2024 9:23 AM, Andrew Lunn wrote:
> >> If the QUPs yaml changes are not included in the same series with
> >> i2c,serial yaml changes, you see these errors:
> >>
> >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: serial@990000:compatible:0: 'qcom,sa8255p-geni-uart' is not one of ['qcom,geni-uart', 'qcom,geni-debug-uart']
> >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@9c0000: i2c@984000:compatible:0: 'qcom,sa8255p-geni-i2c' is not one of ['qcom,geni-i2c', 'qcom,geni-i2c-master-hub']
> > So you have a couple of options:
> >
> > 1) It sounds like you should get the QUP changes merged first. Then
> >    submit the i2c,serial changes. Is there a reason you cannot do
> >    this? Is there a mutual dependency between these two series, or
> >    just a one way dependency?
> 
> The ask in this thread is to create new yaml files since existing one is
> using generic compatibles. With new yaml, we would need to provide
> example and can't avoid it. If we have to provide example of QUP node,
> IMO, we should provide a few subnodes as well since just QUP node
> without subnodes(i2c/serial/spi)  will not be very useful.

Does it need to be useful, at the beginning? Was the development done
all at once, i2c, serial and spi all mixed together, inseparable? More
likely, you have a set of patches adding some sort of base, and
hopefully a DT binding patch for that base. Then you add a driver in
drivers/tty/serial, with patches which extend the DT binding with the
serial port. You then add a driver in driver/i2c/busses and extend the
DT binding for I2C. And then add a driver for SPI in drivers/spi,
which again extends the DT binding?

This would be typical for how an MFD would be posted. Please go search
the lists for examples of MFDs you might be able to follow.

	Andrew



^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p
  2024-09-04 12:45         ` Nikunj Kela
  2024-09-04 13:20           ` Krzysztof Kozlowski
@ 2024-09-05 19:28           ` Andi Shyti
  1 sibling, 0 replies; 82+ messages in thread
From: Andi Shyti @ 2024-09-05 19:28 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Wolfram Sang, Krzysztof Kozlowski, andersson, konradybcio, robh,
	krzk+dt, conor+dt, rafael, viresh.kumar, herbert, davem,
	sudeep.holla, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, broonie, cristian.marussi,
	rui.zhang, lukasz.luba, wim, linux, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, linux-crypto, arm-scmi, linux-arm-kernel,
	linux-i2c, iommu, linux-gpio, linux-serial, linux-spi,
	linux-watchdog, kernel, quic_psodagud, Praveen Talari

Hi Nikunj,

On Wed, Sep 04, 2024 at 05:45:05AM GMT, Nikunj Kela wrote:
> 
> On 9/4/2024 12:55 AM, Wolfram Sang wrote:
> >> Just to clarify to I2C maintainers:
> >> This is incomplete. Missing driver changes.
> > Thanks, Krzysztof!
> 
> Driver changes are going through internal review and will soon be
> posted. For your reference, we have pushed driver changes in CodeLinaro
> git branch(nkela/sa8255p_v6_11_rc2)  in kernel-qcom repo [1]. You can
> take a look at the changes that are in pipeline and will follow soon.

Please post here driver changes along with the DTS updates.

Thanks Krzysztof for being active here!

Andi


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 12/21] dt-bindings: thermal: tsens: document support on SA8255p
  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
  0 siblings, 0 replies; 82+ messages in thread
From: Daniel Lezcano @ 2024-09-06  7:38 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Krzysztof Kozlowski

On 04/09/2024 00:02, Nikunj Kela wrote:
> Add compatible for sensors representing support on SA8255p.
> 
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Nikunj Kela <quic_nkela@quicinc.com>
> ---

Applied, thanks


-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-04 13:21         ` Krzysztof Kozlowski
  2024-09-04 16:14           ` Nikunj Kela
@ 2024-09-09 20:29           ` Nikunj Kela
  2024-09-09 22:00             ` Mark Brown
  1 sibling, 1 reply; 82+ messages in thread
From: Nikunj Kela @ 2024-09-09 20:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, rafael,
	viresh.kumar, herbert, davem, sudeep.holla, andi.shyti, tglx,
	will, robin.murphy, joro, jassisinghbrar, lee, linus.walleij,
	amitk, thara.gopinath, broonie, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari


On 9/4/2024 6:21 AM, Krzysztof Kozlowski wrote:
> On 04/09/2024 14:48, Nikunj Kela wrote:
>> On 9/3/2024 11:34 PM, Krzysztof Kozlowski wrote:
>>> On Tue, Sep 03, 2024 at 03:02:35PM -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.
>>>>
>>> Please use standard email subjects, so with the PATCH keyword in the
>>> title.  helps here to create proper versioned patches.
>> Where did I miss PATCH keyword in the subject here? It says "[PATCH v2
>> 16/21] dt-bindings: spi: document support for SA8255p"
> Oh, wrong template. It was about spi prefix, 

These are the latest 4 commits in linux-next for spi:

12736adc43b7 dt-bindings: spi: nxp-fspi: add imx8ulp support
b0cdf9cc0895 spi: dt-bindings: Add rockchip,rk3576-spi compatible
d6d0af1b9eff dt-bindings: spi: add PIC64GX SPI/QSPI compatibility to
MPFS SPI/QSPI bindings
1c4d834e4e81 spi: dt-bindings: convert spi-sc18is602.txt to yaml format

Now I am confused which prefix format shall I use? first spi or first
dt-bindings?


> should be this one:
>
> Please use subject prefixes matching the subsystem. You can get them for
> example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
> your patch is touching. For bindings, the preferred subjects are
> explained here:
> https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
>
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 82+ messages in thread

* Re: [PATCH v2 16/21] dt-bindings: spi: document support for SA8255p
  2024-09-09 20:29           ` Nikunj Kela
@ 2024-09-09 22:00             ` Mark Brown
  0 siblings, 0 replies; 82+ messages in thread
From: Mark Brown @ 2024-09-09 22:00 UTC (permalink / raw)
  To: Nikunj Kela
  Cc: Krzysztof Kozlowski, andersson, konradybcio, robh, krzk+dt,
	conor+dt, rafael, viresh.kumar, herbert, davem, sudeep.holla,
	andi.shyti, tglx, will, robin.murphy, joro, jassisinghbrar, lee,
	linus.walleij, amitk, thara.gopinath, cristian.marussi, rui.zhang,
	lukasz.luba, wim, linux, linux-arm-msm, devicetree, linux-kernel,
	linux-pm, linux-crypto, arm-scmi, linux-arm-kernel, linux-i2c,
	iommu, linux-gpio, linux-serial, linux-spi, linux-watchdog,
	kernel, quic_psodagud, Praveen Talari

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

On Mon, Sep 09, 2024 at 01:29:37PM -0700, Nikunj Kela wrote:

> Now I am confused which prefix format shall I use? first spi or first
> dt-bindings?

spi: first.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 82+ messages in thread

end of thread, other threads:[~2024-09-09 22:01 UTC | newest]

Thread overview: 82+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20240828203721.2751904-1-quic_nkela@quicinc.com>
     [not found] ` <20240828203721.2751904-22-quic_nkela@quicinc.com>
2024-08-29 18:52   ` [PATCH 21/22] ARM: dt: GIC: add extended SPI specifier Rob Herring
2024-08-29 19:01     ` Nikunj Kela
2024-08-30 14:44       ` Rob Herring
2024-08-30 14:51         ` Nikunj Kela
2024-09-03 22:02 ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform 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-04  5:54   ` [PATCH v2 00/21] arm64: qcom: Introduce SA8255p Ride platform Krzysztof Kozlowski
2024-09-04 12:58     ` Nikunj Kela
2024-09-04 23:50   ` Nikunj Kela
2024-09-05 12:59   ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).