arm64: dts: realtek: Initial RTD1319 and Pym Particles support
Subsystems (2)
v4 cover arm64: dts: realtek: Initial RTD1319 and Pym Particles support
Hello,
This patch series adds initial Device Trees for Realtek RTD1319 SoC and Realtek Pym Particles EVB.
This v4 is an update of James' v3, incorporating pending review comments.
Upstreaming progress being tracked at:
https://en.opensuse.org/HCL:Realtek_DHC
Latest experimental patches at:
https://github.com/afaerber/linux/commits/rtd1295-next
Have a lot of fun!
Cheers,
Andreas
v3 -> v4:
* Updated Realtek copyright for files changed in v3
* Updated PMU compatible (Robin)
* Changed compatible, renamed .dts
* Updated bindings schema and prepended refactoring
Andreas Färber (1):
dt-bindings: arm: realtek: Convert comments to descriptions
James Tai (2):
dt-bindings: arm: realtek: Document RTD1319 and Realtek Pym Particles
EVB
arm64: dts: realtek: Add RTD1319 SoC and Realtek Pym Particles EVB
.../devicetree/bindings/arm/realtek.yaml | 30 ++- arch/arm64/boot/dts/realtek/Makefile | 2 + .../boot/dts/realtek/rtd1319-pymparticles.dts | 43 ++++ arch/arm64/boot/dts/realtek/rtd1319.dtsi | 12 + arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 213 ++++++++++++++++++ 5 files changed, 288 insertions(+), 12 deletions(-) create mode 100644 arch/arm64/boot/dts/realtek/rtd1319-pymparticles.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1319.dtsi create mode 100644 arch/arm64/boot/dts/realtek/rtd13xx.dtsi
Signature · 1 line
2.26.2
PATCH v4 1/3 dt-bindings: arm: realtek: Convert comments to descriptions
Turn the SoC-level comments into description properties.
---
v4: New
.../devicetree/bindings/arm/realtek.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/arm/realtek.yaml +12 -12
@@ -14,21 +14,21 @@ properties: const: '/' compatible: oneOf: - # RTD1195 SoC based boards - - items: + - description: RTD1195 SoC based boards + items: - enum: - mele,x1000 # MeLE X1000 - realtek,horseradish # Realtek Horseradish EVB - const: realtek,rtd1195 - # RTD1293 SoC based boards - - items: + - description: RTD1293 SoC based boards + items: - enum: - synology,ds418j # Synology DiskStation DS418j - const: realtek,rtd1293 - # RTD1295 SoC based boards - - items: + - description: RTD1295 SoC based boards + items: - enum: - mele,v9 # MeLE V9 - probox2,ava # ProBox2 AVA
@@ -36,21 +36,21 @@ properties: - zidoo,x9s # Zidoo X9S - const: realtek,rtd1295 - # RTD1296 SoC based boards - - items: + - description: RTD1296 SoC based boards + items: - enum: - synology,ds418 # Synology DiskStation DS418 - const: realtek,rtd1296 - # RTD1395 SoC based boards - - items: + - description: RTD1395 SoC based boards + items: - enum: - bananapi,bpi-m4 # Banana Pi BPI-M4 - realtek,lion-skin # Realtek Lion Skin EVB - const: realtek,rtd1395 - # RTD1619 SoC based boards - - items: + - description: RTD1619 SoC based boards + items: - enum: - realtek,mjolnir # Realtek Mjolnir EVB - const: realtek,rtd1619
Signature · 1 line
2.26.2
PATCH v4 3/3 arm64: dts: realtek: Add RTD1319 SoC and Realtek Pym Particles EVB
In reply to Andreas FärberFrom: James Tai <[email protected]>
Add Device Trees for Realtek RTD1319 SoC family, RTD1319 SoC and Realtek Pym Particles EVB.
---
v3 -> v4:
* Updated Realtek copyright for 2 out of 3 files from v3
* Renamed from rtd1319-pymparticle.dts to rtd1319-pymparticles.dts
* Updated compatible from pymparticle to pym-particles
* Updated PMU compatible from armv8-pmuv3 to cortex-a55-pmu (Robin)
v2 -> v3:
* Add virtual maintenance interrupt for architecture timer
* Correct the GIC redistributor address range
v1 -> v2:
* Reserve the boot ROM address
* Reserve boot loader address
* Reserve audio/video FW address
* Reserve RPC and ring buffer address
* Reserve TEE address
* Support 1 GiB RAM by default
* Reduce rbus range to 2 MiB
* Apply the syscon for ISO,MISC,CRT,SB2,SCPU_WRAPPER
* Adjust compatible strings order in document
arch/arm64/boot/dts/realtek/Makefile | 2 + .../boot/dts/realtek/rtd1319-pymparticles.dts | 43 ++++ arch/arm64/boot/dts/realtek/rtd1319.dtsi | 12 + arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 213 ++++++++++++++++++ 4 files changed, 270 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1319-pymparticles.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1319.dtsi create mode 100644 arch/arm64/boot/dts/realtek/rtd13xx.dtsi
arch/arm64/boot/dts/realtek/Makefile +2 -0
@@ -9,6 +9,8 @@ dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1296-ds418.dtb +dtb-$(CONFIG_ARCH_REALTEK) += rtd1319-pymparticles.dtb + dtb-$(CONFIG_ARCH_REALTEK) += rtd1395-bpi-m4.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1395-lionskin.dtb
arch/arm64/boot/dts/realtek/rtd1319-pymparticles.dts new file +43 -0
43 lines not on this page · raw message
arch/arm64/boot/dts/realtek/rtd1319.dtsi new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Realtek RTD1319 SoC + * + * Copyright (c) 2019 Realtek Semiconductor Corp. + */ + +#include "rtd13xx.dtsi" + +/ { + compatible = "realtek,rtd1319"; +};
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +213 -0
213 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v4 2/3 dt-bindings: arm: realtek: Document RTD1319 and Realtek Pym Particles EVB
In reply to Andreas FärberFrom: James Tai <[email protected]>
Define compatible strings for Realtek RTD1319 SoC and Realtek Pym Particles EVB.
---
v3 -> v4:
* Renamed compatible from pymparticle to pym-particles
* Turned SoC comment into description
v2 -> v3: Unchanged
v1 -> v2:
* Put string in alphabetical order
Documentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/realtek.yaml +6 -0
@@ -42,6 +42,12 @@ properties: - synology,ds418 # Synology DiskStation DS418 - const: realtek,rtd1296 + - description: RTD1319 SoC based boards + items: + - enum: + - realtek,pym-particles # Realtek Pym Particles EVB + - const: realtek,rtd1319 + - description: RTD1395 SoC based boards items: - enum:
Signature · 1 line
2.26.2
Re: [PATCH v4 3/3] arm64: dts: realtek: Add RTD1319 SoC and Realtek Pym Particles EVB
In reply to Andreas FärberAm 21.06.20 um 01:32 schrieb Andreas Färber:
Quoted 5 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +0
-0
[...]
arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 182
Quoted 2 lines
+&iso {
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +1
-0+ uart0: serial0@800 {
Node name should be serial, not serial0.
arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 194
Quoted 12 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +12
-0+ compatible = "snps,dw-apb-uart"; + reg = <0x800 0x400>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <432000000>; + status = "disabled"; + }; +}; + +&misc { + uart1: serial1@200 {
Ditto, serial.
arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 204
Quoted 10 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +10
-0+ compatible = "snps,dw-apb-uart"; + reg = <0x200 0x400>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <432000000>; + status = "disabled"; + }; + + uart2: serial2@400 {
Ditto.
arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 213
Quoted 9 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +9
-0+ compatible = "snps,dw-apb-uart"; + reg = <0x400 0x400>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <432000000>; + status = "disabled"; + }; +};
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
Re: [PATCH v4 3/3] arm64: dts: realtek: Add RTD1319 SoC and Realtek Pym Particles EVB
In reply to Andreas FärberHi James,
Am 21.06.20 um 01:32 schrieb Andreas Färber:
Quoted 17 lines
From: James Tai <[email protected]>
Add Device Trees for Realtek RTD1319 SoC family, RTD1319 SoC and Realtek Pym Particles EVB.
Signed-off-by James Tai <[email protected]>Signed-off-by Andreas Färber <[email protected]>---
v3 -> v4:
* Updated Realtek copyright for 2 out of 3 files from v3
* Renamed fromrtd1319-pymparticle.dtstortd1319-pymparticles.dts
* Updated compatible from pymparticle to pym-particles
* Updated PMU compatible from armv8-pmuv3 to cortex-a55-pmu (Robin)v2 -> v3:
* Add virtual maintenance interrupt for architecture timer
* Correct the GIC redistributor address range
[...]
Quoted 5 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +0
-0
[...]
arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 174
Quoted 5 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +5
-0+ gic: interrupt-controller@ff100000 { + compatible = "arm,gic-v3"; + reg = <0xff100000 0x10000>, + <0xff140000 0x80000>; + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
In my testing this appears to cause the following error:
[ 2.239858] irq: type mismatch, failed to map hwirq-25 for interrupt-controller@ff100000! ... [ 3.505649] kvm [1]: IPA Size Limit: 40bits [ 3.506051] kvm [1]: GICv3: no GICV resource entry [ 3.506058] kvm [1]: disabling GICv2 emulation [ 3.506081] kvm [1]: GIC system register CPU interface enabled [ 3.506175] kvm [1]: vgic interrupt IRQ1 [ 3.506293] kvm [1]: Hyp mode initialized successfully
If I change it to IRQ_TYPE_LEVEL_LOW, that error goes away:
[ 3.506030] kvm [1]: IPA Size Limit: 40bits [ 3.506430] kvm [1]: GICv3: no GICV resource entry [ 3.506437] kvm [1]: disabling GICv2 emulation [ 3.506459] kvm [1]: GIC system register CPU interface enabled [ 3.506551] kvm [1]: vgic interrupt IRQ1 [ 3.506672] kvm [1]: Hyp mode initialized successfully
In-tree RTD1619 has it as HIGH, too, but doesn't show above error:
[ 2.918973] kvm [1]: IPA Size Limit: 40bits [ 2.919345] kvm [1]: GICv3: no GICV resource entry [ 2.919352] kvm [1]: disabling GICv2 emulation [ 2.919373] kvm [1]: GIC system register CPU interface enabled [ 2.919522] kvm [1]: vgic interrupt IRQ1 [ 2.919700] kvm [1]: Hyp mode initialized successfully
RTD1619 doesn't show an error either if I change it to LOW though:
[ 2.918843] kvm [1]: IPA Size Limit: 40bits [ 2.919212] kvm [1]: GICv3: no GICV resource entry [ 2.919218] kvm [1]: disabling GICv2 emulation [ 2.919240] kvm [1]: GIC system register CPU interface enabled [ 2.919390] kvm [1]: vgic interrupt IRQ1 [ 2.919567] kvm [1]: Hyp mode initialized successfully
The GICv3 bindings example does have it as 4 == HIGH, but so does the GICv2 binding example, and yet we used LOW == 8 for in-tree RTD139x, RTD129x and RTD1195. The downstream BSP uses value 4 == HIGH for both RTD16xx and RTD13xx - is it possible this was never actually tested?
Thanks in advance for clarifying the correct interrupt polarity.
arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 177
Quoted 3 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +3
-0+ interrupt-controller; + #interrupt-cells = <3>; + };
[snip]
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
RE: [PATCH v4 1/3] dt-bindings: arm: realtek: Convert comments to descriptions
In reply to Andreas FärberQuoted 82 lines
-----Original Message-----
From: linux-realtek-soc <[email protected]> On Behalf Of Andreas Farber
Sent: Sunday, June 21, 2020 7:32 AM
To: [email protected]
Cc: [email protected]; Rob Herring <[email protected]>; [email protected]; [email protected]; Andreas Färber <[email protected]>
Subject: [PATCH v4 1/3] dt-bindings: arm: realtek: Convert comments to descriptionsTurn the SoC-level comments into description properties.
Signed-off-by Andreas Färber <[email protected]>---
v4: New.../devicetree/bindings/arm/realtek.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-)Documentation/devicetree/bindings/arm/realtek.yaml +6
-6@@ -14,21 +14,21 @@ properties: const: '/' compatible: oneOf: - # RTD1195 SoC based boards - - items: + - description: RTD1195 SoC based boards + items: - enum: - mele,x1000 # MeLE X1000 - realtek,horseradish # Realtek Horseradish EVB - const: realtek,rtd1195 - # RTD1293 SoC based boards - - items: + - description: RTD1293 SoC based boards + items: - enum: - synology,ds418j # Synology DiskStation DS418j - const: realtek,rtd1293 - # RTD1295 SoC based boards - - items: + - description: RTD1295 SoC based boards + items: - enum: - mele,v9 # MeLE V9 - probox2,ava # ProBox2 AVA @@ -36,21 +36,21 @@properties:
- zidoo,x9s # Zidoo X9S
- const: realtek,rtd1295Documentation/devicetree/bindings/arm/realtek.yaml +6
-7- # RTD1296 SoC based boards - - items: + - description: RTD1296 SoC based boards + items: - enum: - synology,ds418 # Synology DiskStation DS418 - const: realtek,rtd1296 - # RTD1395 SoC based boards - - items: + - description: RTD1395 SoC based boards + items: - enum: - bananapi,bpi-m4 # Banana Pi BPI-M4 - realtek,lion-skin # Realtek Lion Skin EVB - const: realtek,rtd1395 - # RTD1619 SoC based boards - - items: + - description: RTD1619 SoC based boards + items: - enum: - realtek,mjolnir # Realtek Mjolnir EVB - const: realtek,rtd1619 --
Quoted 1 line
2.26.2
RE: [PATCH v4 2/3] dt-bindings: arm: realtek: Document RTD1319 and Realtek Pym Particles EVB
In reply to Andreas FärberQuoted 49 lines
-----Original Message-----
From: Andreas Färber <[email protected]>
Sent: Sunday, June 21, 2020 7:32 AM
To: [email protected]
Cc: [email protected]; [email protected]; James Tai [戴志峰] <[email protected]>; Andreas Färber <[email protected]>; Rob Herring <[email protected]>; [email protected]
Subject: [PATCH v4 2/3] dt-bindings: arm: realtek: Document RTD1319 and Realtek Pym Particles EVBFrom: James Tai <[email protected]>
Define compatible strings for Realtek RTD1319 SoC and Realtek Pym Particles EVB.
Signed-off-by James Tai <[email protected]>Signed-off-by Andreas Färber <[email protected]>---
v3 -> v4:
* Renamed compatible from pymparticle to pym-particles
* Turned SoC comment into descriptionv2 -> v3: Unchanged
v1 -> v2:
* Put string in alphabetical orderDocumentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)Documentation/devicetree/bindings/arm/realtek.yaml +6
-1@@ -42,6 +42,12 @@ properties: - synology,ds418 # Synology DiskStation DS418 - const: realtek,rtd1296 + - description: RTD1319 SoC based boards + items: + - enum: + - realtek,pym-particles # Realtek Pym Particles EVB + - const: realtek,rtd1319 + - description: RTD1395 SoC based boards items: - enum: --
Quoted 1 line
2.26.2