public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board
@ 2025-01-07  7:49 Kever Yang
  2025-01-07  7:49 ` [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support Kever Yang
  2025-01-08 10:57 ` (subset) [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board Heiko Stuebner
  0 siblings, 2 replies; 6+ messages in thread
From: Kever Yang @ 2025-01-07  7:49 UTC (permalink / raw)
  To: heiko
  Cc: linux-rockchip, Kever Yang, Simon Xue, Chris Morgan, Frank Wang,
	Liang Chen, linux-pci, Yifeng Zhao, Shawn Lin, Elaine Zhang,
	Conor Dooley, Finley Xiao, Alexey Charkov,
	Krzysztof Wilczyński, FUKAUMI Naoki, Krzysztof Kozlowski,
	Andy Yan, Michael Riesch, devicetree, Rob Herring, Jonas Karlman,
	Bjorn Helgaas, Lorenzo Pieralisi, linux-arm-kernel, Tim Lunn,
	Detlev Casanova, Dragan Simic, linux-kernel,
	Manivannan Sadhasivam

This patch set is for rockchip rk3576 evb1.
Based on the naneng combphy patch from Frank Wang.

This version including the patch adding usb nodes from Frank Wang.

Changes in v4:
- Fix wrong indentation in dt_binding_check report by Rob
- Update the commit msg with sort rule per required by Krzysztof.

Changes in v3:
- Update the subject
- Fix dtb check broken on rk3588
- Update commit message
- Update the subject
- sort for all the board entries instead of two rockchip boards
which suggested by Diederik
- update some properties order

Changes in v2:
- Update the clock and reset names to pass the DTB CHECK
- remove required 'msi-map'
- add interrupt name 'msi'
- Update clock and reset names and sequence to pass DTB check
- collect acked-by tag
- collect acked-by tag
- Enable USB nodes

Frank Wang (1):
  arm64: dts: rockchip: add usb related nodes for rk3576

Kever Yang (6):
  arm64: dts: rockchip: Add rk3576 naneng combphy nodes
  dt-bindings: PCI: dw: rockchip: Add rk3576 support
  arm64: dts: rockchip: Add rk3576 pcie nodes
  dt-bindings: arm: rockchip: Sort for boards not in correct order
  dt-bindings: arm: rockchip: Add rk3576 evb1 board
  arm64: dts: rockchip: Add rk3576 evb1 board

 .../devicetree/bindings/arm/rockchip.yaml     |  59 +-
 .../bindings/pci/rockchip-dw-pcie-common.yaml |   4 +-
 .../bindings/pci/rockchip-dw-pcie.yaml        |   4 +-
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3576-evb1-v10.dts     | 722 ++++++++++++++++++
 arch/arm64/boot/dts/rockchip/rk3576.dtsi      | 278 +++++++
 6 files changed, 1037 insertions(+), 31 deletions(-)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts

-- 
2.25.1


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

* [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support
  2025-01-07  7:49 [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board Kever Yang
@ 2025-01-07  7:49 ` Kever Yang
  2025-01-08  8:16   ` Krzysztof Kozlowski
  2025-01-08 10:57 ` (subset) [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board Heiko Stuebner
  1 sibling, 1 reply; 6+ messages in thread
From: Kever Yang @ 2025-01-07  7:49 UTC (permalink / raw)
  To: heiko
  Cc: linux-rockchip, Kever Yang, Simon Xue, Conor Dooley, Rob Herring,
	Bjorn Helgaas, linux-pci, Krzysztof Wilczyński, linux-kernel,
	Krzysztof Kozlowski, devicetree, Lorenzo Pieralisi, Shawn Lin,
	Manivannan Sadhasivam, linux-arm-kernel

rk3576 is using dwc controller, with msi interrupt directly to gic instead
of to gic its, so
- no its support is required and the 'msi-map' is not need anymore,
- a new 'msi' interrupt is needed.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

Changes in v4:
- Fix wrong indentation in dt_binding_check report by Rob

Changes in v3:
- Fix dtb check broken on rk3588
- Update commit message

Changes in v2:
- remove required 'msi-map'
- add interrupt name 'msi'

 .../devicetree/bindings/pci/rockchip-dw-pcie-common.yaml      | 4 +++-
 Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml   | 4 +---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
index cc9adfc7611c..e4fcc2dff413 100644
--- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
+++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
@@ -81,7 +81,9 @@ properties:
       - const: msg
       - const: legacy
       - const: err
-      - const: dma0
+      - enum:
+          - msi
+          - dma0
       - const: dma1
       - const: dma2
       - const: dma3
diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml
index 550d8a684af3..9a464731fa4a 100644
--- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml
@@ -26,6 +26,7 @@ properties:
       - const: rockchip,rk3568-pcie
       - items:
           - enum:
+              - rockchip,rk3576-pcie
               - rockchip,rk3588-pcie
           - const: rockchip,rk3568-pcie
 
@@ -71,9 +72,6 @@ properties:
 
   vpcie3v3-supply: true
 
-required:
-  - msi-map
-
 unevaluatedProperties: false
 
 examples:
-- 
2.25.1


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

* Re: [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support
  2025-01-07  7:49 ` [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support Kever Yang
@ 2025-01-08  8:16   ` Krzysztof Kozlowski
  2025-01-10  7:33     ` Kever Yang
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-08  8:16 UTC (permalink / raw)
  To: Kever Yang
  Cc: heiko, linux-rockchip, Simon Xue, Conor Dooley, Rob Herring,
	Bjorn Helgaas, linux-pci, Krzysztof Wilczyński, linux-kernel,
	Krzysztof Kozlowski, devicetree, Lorenzo Pieralisi, Shawn Lin,
	Manivannan Sadhasivam, linux-arm-kernel

On Tue, Jan 07, 2025 at 03:49:06PM +0800, Kever Yang wrote:
> rk3576 is using dwc controller, with msi interrupt directly to gic instead
> of to gic its, so
> - no its support is required and the 'msi-map' is not need anymore,
> - a new 'msi' interrupt is needed.
> 
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> ---
> 
> Changes in v4:
> - Fix wrong indentation in dt_binding_check report by Rob
> 
> Changes in v3:
> - Fix dtb check broken on rk3588
> - Update commit message
> 
> Changes in v2:
> - remove required 'msi-map'
> - add interrupt name 'msi'
> 
>  .../devicetree/bindings/pci/rockchip-dw-pcie-common.yaml      | 4 +++-
>  Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml   | 4 +---
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
> index cc9adfc7611c..e4fcc2dff413 100644
> --- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
> +++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
> @@ -81,7 +81,9 @@ properties:
>        - const: msg
>        - const: legacy
>        - const: err
> -      - const: dma0
> +      - enum:
> +          - msi
> +          - dma0

Commit msg said new interrupt, but this basically replaces existing DMA0
interrupt. Maybe that's the problem with this common binding and you
just miss constraining in each device binding. If so: fix also them.

Also: your interrupts property does not match this anymore.

Best regards,
Krzysztof


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

* Re: (subset) [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board
  2025-01-07  7:49 [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board Kever Yang
  2025-01-07  7:49 ` [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support Kever Yang
@ 2025-01-08 10:57 ` Heiko Stuebner
  1 sibling, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2025-01-08 10:57 UTC (permalink / raw)
  To: Kever Yang
  Cc: Heiko Stuebner, linux-rockchip, Simon Xue, Chris Morgan,
	Frank Wang, Liang Chen, linux-pci, Yifeng Zhao, Shawn Lin,
	Elaine Zhang, Conor Dooley, Finley Xiao, Alexey Charkov,
	Krzysztof Wilczyński, FUKAUMI Naoki, Krzysztof Kozlowski,
	Andy Yan, Michael Riesch, devicetree, Rob Herring, Jonas Karlman,
	Bjorn Helgaas, Lorenzo Pieralisi, linux-arm-kernel, Tim Lunn,
	Detlev Casanova, Dragan Simic, linux-kernel,
	Manivannan Sadhasivam


On Tue, 07 Jan 2025 15:49:04 +0800, Kever Yang wrote:
> This patch set is for rockchip rk3576 evb1.
> Based on the naneng combphy patch from Frank Wang.
> 
> This version including the patch adding usb nodes from Frank Wang.
> 
> Changes in v4:
> - Fix wrong indentation in dt_binding_check report by Rob
> - Update the commit msg with sort rule per required by Krzysztof.
> 
> [...]

Applied, thanks!

[1/7] arm64: dts: rockchip: Add rk3576 naneng combphy nodes
      commit: ddbf63b25866a4a58222d763f9f2d29c309e00e8
[4/7] arm64: dts: rockchip: add usb related nodes for rk3576
      commit: 23ec57a32da448cb3415d6abad3457b14c69af25
[5/7] dt-bindings: arm: rockchip: Sort for boards not in correct order
      commit: ffd07673f08a03ff5532212ebbd98fbfd0dac00e
[6/7] dt-bindings: arm: rockchip: Add rk3576 evb1 board
      commit: 88dc3756ece1d19ab0aa85ceb6ffb4e5f9318ae1
[7/7] arm64: dts: rockchip: Add rk3576 evb1 board
      commit: f135a1a07352b848d3d39557413dd1cd3716d930

I've dropped the PCIe patches (and pcie nodes from the board)
to be handled separately and also sorted some things
(regulator nodes, button nodes) and fixed some empty-lines things

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

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

* Re: [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support
  2025-01-08  8:16   ` Krzysztof Kozlowski
@ 2025-01-10  7:33     ` Kever Yang
  2025-01-10 12:34       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Kever Yang @ 2025-01-10  7:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: heiko, linux-rockchip, Simon Xue, Conor Dooley, Rob Herring,
	Bjorn Helgaas, linux-pci, Krzysztof Wilczyński, linux-kernel,
	Krzysztof Kozlowski, devicetree, Lorenzo Pieralisi, Shawn Lin,
	Manivannan Sadhasivam, linux-arm-kernel

Hi Krzysztof,

On 2025/1/8 16:16, Krzysztof Kozlowski wrote:
> On Tue, Jan 07, 2025 at 03:49:06PM +0800, Kever Yang wrote:
>> rk3576 is using dwc controller, with msi interrupt directly to gic instead
>> of to gic its, so
>> - no its support is required and the 'msi-map' is not need anymore,
>> - a new 'msi' interrupt is needed.
>>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> ---
>>
>> Changes in v4:
>> - Fix wrong indentation in dt_binding_check report by Rob
>>
>> Changes in v3:
>> - Fix dtb check broken on rk3588
>> - Update commit message
>>
>> Changes in v2:
>> - remove required 'msi-map'
>> - add interrupt name 'msi'
>>
>>   .../devicetree/bindings/pci/rockchip-dw-pcie-common.yaml      | 4 +++-
>>   Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml   | 4 +---
>>   2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
>> index cc9adfc7611c..e4fcc2dff413 100644
>> --- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
>> +++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
>> @@ -81,7 +81,9 @@ properties:
>>         - const: msg
>>         - const: legacy
>>         - const: err
>> -      - const: dma0
>> +      - enum:
>> +          - msi
>> +          - dma0
> Commit msg said new interrupt, but this basically replaces existing DMA0
> interrupt. Maybe that's the problem with this common binding and you
> just miss constraining in each device binding. If so: fix also them.
rk3588 has 9 interrupt, and the 6th-9th is dma0-3;
rk3568 only has 5 interrupts, no dma0-3;
rk3576 add one more "msi" interrupt which is the 6th interrupt;
The upcomming rk3562 is the same as rk3576.
I'm sorry I'm not so good at this yaml grammar, how should I take care 
of this case?


Thanks,
- Kever
>
> Also: your interrupts property does not match this anymore.
>
> Best regards,
> Krzysztof
>
>

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

* Re: [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support
  2025-01-10  7:33     ` Kever Yang
@ 2025-01-10 12:34       ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-10 12:34 UTC (permalink / raw)
  To: Kever Yang
  Cc: heiko, linux-rockchip, Simon Xue, Conor Dooley, Rob Herring,
	Bjorn Helgaas, linux-pci, Krzysztof Wilczyński, linux-kernel,
	Krzysztof Kozlowski, devicetree, Lorenzo Pieralisi, Shawn Lin,
	Manivannan Sadhasivam, linux-arm-kernel

On 10/01/2025 08:33, Kever Yang wrote:
>>>
>>>   .../devicetree/bindings/pci/rockchip-dw-pcie-common.yaml      | 4 +++-
>>>   Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml   | 4 +---
>>>   2 files changed, 4 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
>>> index cc9adfc7611c..e4fcc2dff413 100644
>>> --- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
>>> +++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml
>>> @@ -81,7 +81,9 @@ properties:
>>>         - const: msg
>>>         - const: legacy
>>>         - const: err
>>> -      - const: dma0
>>> +      - enum:
>>> +          - msi
>>> +          - dma0
>> Commit msg said new interrupt, but this basically replaces existing DMA0
>> interrupt. Maybe that's the problem with this common binding and you
>> just miss constraining in each device binding. If so: fix also them.
> rk3588 has 9 interrupt, and the 6th-9th is dma0-3;
> rk3568 only has 5 interrupts, no dma0-3;
> rk3576 add one more "msi" interrupt which is the 6th interrupt;
> The upcomming rk3562 is the same as rk3576.
> I'm sorry I'm not so good at this yaml grammar, how should I take care 
> of this case?

Explain this in commit msg and add proper constraints per device, e.g.:
https://elixir.bootlin.com/linux/v6.11-rc6/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L127

This change for interrupts in top-level could stay.

Best regards,
Krzysztof

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

end of thread, other threads:[~2025-01-10 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07  7:49 [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board Kever Yang
2025-01-07  7:49 ` [PATCH v4 2/7] dt-bindings: PCI: dw: rockchip: Add rk3576 support Kever Yang
2025-01-08  8:16   ` Krzysztof Kozlowski
2025-01-10  7:33     ` Kever Yang
2025-01-10 12:34       ` Krzysztof Kozlowski
2025-01-08 10:57 ` (subset) [PATCH v4 0/7] Rockchip: add Rockchip rk3576 EVB1 board Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox