Skip to contentSkip to conversation

Initial RTD1319 SoC and Realtek PymParticle EVB support

PATCH In review James Tai 4 participants 12 messages Feb 4, 2020 – Apr 16, 2020

Subsystems (2)
lore
Share & tools
lore

James Tai

author maintainer
#0 lore raw

v3 cover Initial RTD1319 SoC and Realtek PymParticle EVB support

Hi Andreas,

This series adds Device Trees for the Realtek RTD1319 SoC and Realtek's PymParticle EVB.

The v3 correct the GIC redistributor address range and adding the virtual maintenance interrupt for architecture timer.

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

Cc Rob Herring <[email protected]>
Cc Andreas Färber <[email protected]>

James Tai (2):
dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle
EVB
arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB

 .../devicetree/bindings/arm/realtek.yaml      |   6 +
 arch/arm64/boot/dts/realtek/Makefile          |   2 +
 .../boot/dts/realtek/rtd1319-pymparticle.dts  |  43 ++++
 arch/arm64/boot/dts/realtek/rtd1319.dtsi      |  12 +
 arch/arm64/boot/dts/realtek/rtd13xx.dtsi      | 213 ++++++++++++++++++
 5 files changed, 276 insertions(+)
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1319-pymparticle.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.25.0
author maintainer
#1 lore raw

PATCH v3 1/2 dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle EVB

Define compatible strings for Realtek RTD1319 SoC and Realtek PymParticle EVB.

---
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
index 845f9c76d6f7..3b48ae71fdd8 100644
@@ -42,6 +42,12 @@ properties:
               - synology,ds418 # Synology DiskStation DS418
           - const: realtek,rtd1296
 
+      # RTD1319 SoC based boards
+      - items:
+          - enum:
+              - realtek,pymparticle # Realtek PymParticle EVB
+          - const: realtek,rtd1319
+
       # RTD1395 SoC based boards
       - items:
           - enum:
Signature · 7 lines
2.25.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle EVB

Quoted 4 lines · James Tai

Define compatible strings for Realtek RTD1319 SoC and Realtek PymParticle EVB.

Quoted 9 lines

---
v2 -> v3: Unchanged

v1 -> v2:
* Put string in alphabetical order

 Documentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply.

If a tag was not added on purpose, please state why and what changed.

author maintainer
#3 lore raw

RE: [PATCH v3 1/2] dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle EVB

Hi Rob,

Quoted 16 lines · James Tai
Quoted 4 lines

Define compatible strings for Realtek RTD1319 SoC and Realtek PymParticle EVB.

Quoted 9 lines

---
v2 -> v3: Unchanged

v1 -> v2:
* Put string in alphabetical order

 Documentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Quoted 6 lines

Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply.

If a tag was not added on purpose, please state why and what changed.

I will improve it.

Thank you for your reply.

Regards,
James

#4 lore raw

Re: [PATCH v3 1/2] dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle EVB

In reply to James Tai

Hi James,

Am 04.02.20 um 15:52 schrieb James Tai:

Quoted 18 lines

Define compatible strings for Realtek RTD1319 SoC and Realtek PymParticle EVB.

---
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 +0 -0
index 845f9c76d6f7..3b48ae71fdd8 100644

Documentation/devicetree/bindings/arm/realtek.yaml properties: · line 48

Quoted 7 lines
Documentation/devicetree/bindings/arm/realtek.yaml +4 -0
@@ -42,6 +42,12 @@ properties:
                - synology,ds418 # Synology DiskStation DS418
            - const: realtek,rtd1296
 
+      # RTD1319 SoC based boards
+      - items:
+          - enum:
+              - realtek,pymparticle # Realtek PymParticle EVB

The board seems labelled "PYM_PARTICLES".

While Wikipedia has nothing on that, I found this explanation:
https://marvel.fandom.com/wiki/Pym_Particles

So, are you sure it's PymParticle and not "Pym Particle" with space or "Pym Particles" with space and plural S? The S would affect also the .dts filename. For the compatible string the question is pymparticle or pym-particle.

By comparison, LION-SKIN was named lion-skin in the compatible and spelled Lion Skin in textual form. If you believe that should be fixed, now would be the time to revisit those patches that didn't make v5.7.

Thanks,
Andreas

Quoted 5 lines
Documentation/devicetree/bindings/arm/realtek.yaml +2 -0
+          - const: realtek,rtd1319
+
        # RTD1395 SoC based boards
        - items:
            - enum:
Signature · 4 lines
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)
author maintainer
#5 lore raw

RE: [PATCH v3 1/2] dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle EVB

Hi Andreas,

Thanks for your review!

Quoted 17 lines
Quoted 7 lines
Documentation/devicetree/bindings/arm/realtek.yaml +0 -0
index 845f9c76d6f7..3b48ae71fdd8 100644

Documentation/devicetree/bindings/arm/realtek.yaml properties: · line 48

Quoted 7 lines
Documentation/devicetree/bindings/arm/realtek.yaml +4 -0
@@ -42,6 +42,12 @@ properties:
                - synology,ds418 # Synology DiskStation DS418
            - const: realtek,rtd1296
 
+      # RTD1319 SoC based boards
+      - items:
+          - enum:
+              - realtek,pymparticle # Realtek PymParticle EVB

The board seems labelled "PYM_PARTICLES".

Quoted 6 lines

While Wikipedia has nothing on that, I found this explanation:
https://marvel.fandom.com/wiki/Pym_Particles

So, are you sure it's PymParticle and not "Pym Particle" with space or "Pym Particles" with space and plural S? The S would affect also the .dts filename.

I should change the string to "Pym Particles".

Quoted 2 lines

For the compatible string the question is pymparticle or pym-particle.

The compatible string is "pym-particles".

Quoted 4 lines

By comparison, LION-SKIN was named lion-skin in the compatible and spelled Lion Skin in textual form. If you believe that should be fixed, now would be the time to revisit those patches that didn't make v5.7.

I'll check those relevant patches.

Thank you.

Regards,
James

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#6 lore raw

Re: [PATCH v3 1/2] dt-bindings: arm: realtek: Document RTD1319 and Realtek PymParticle EVB

Hi James,

Am 15.04.20 um 10:58 schrieb James Tai [戴志峰]:

Quoted 16 lines
Quoted 16 lines

Documentation/devicetree/bindings/arm/realtek.yaml properties: · line 48

Quoted 13 lines
Documentation/devicetree/bindings/arm/realtek.yaml +4 -0
index 845f9c76d6f7..3b48ae71fdd8 100644
@@ -42,6 +42,12 @@ properties:
                 - synology,ds418 # Synology DiskStation DS418
             - const: realtek,rtd1296
 
+      # RTD1319 SoC based boards
+      - items:
+          - enum:
+              - realtek,pymparticle # Realtek PymParticle EVB

The board seems labelled "PYM_PARTICLES".

Quoted 7 lines
Quoted 6 lines

While Wikipedia has nothing on that, I found this explanation:
https://marvel.fandom.com/wiki/Pym_Particles

So, are you sure it's PymParticle and not "Pym Particle" with space or "Pym Particles" with space and plural S? The S would affect also the .dts filename.

I should change the string to "Pym Particles".

Okay, in that case I suggest rtd1319-pymparticles.dts for consistency. Unless you want to change rtd1395-lionskin.dts to rtd1395-lion-skin.dts.

Quoted 3 lines
Quoted 2 lines

For the compatible string the question is pymparticle or pym-particle.

The compatible string is "pym-particles".

Works for me. (always assuming we both imply the "realtek," prefix)

If you send a v4, please double-check the comments in patch 2/2.

Quoted 5 lines
Quoted 4 lines

By comparison, LION-SKIN was named lion-skin in the compatible and spelled Lion Skin in textual form. If you believe that should be fixed, now would be the time to revisit those patches that didn't make v5.7.

I'll check those relevant patches.

Thanks,
Andreas

Signature · 9 lines
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author maintainer
#7 lore raw

PATCH v3 2/2 arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB

In reply to James Tai

Add Device Trees for Realtek RTD1319 SoC family, RTD1319 SoC and Realtek PymParticle EVB.

---
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-pymparticle.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-pymparticle.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
index ef8d8fcbaa05..c0ae96f324eb 100644
@@ -9,6 +9,8 @@ dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb
 
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1296-ds418.dtb
 
+dtb-$(CONFIG_ARCH_REALTEK) += rtd1319-pymparticle.dtb
+
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1395-bpi-m4.dtb
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1395-lionskin.dtb
 
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +43 -0

43 lines not on this page · raw message

arch/arm64/boot/dts/realtek/rtd1319.dtsi new file +12 -0
new file mode 100644
index 000000000000..1dcee00009cd
@@ -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.25.0
#8 lore raw

Re: [PATCH v3 2/2] arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB

Hi James,

A couple more nits to consider for v4:

Am 04.02.20 um 15:52 schrieb James Tai:

arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts line 3

Quoted 9 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +3 -0
new file mode 100644
index 000000000000..2a36d220fef6
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
+/*
+ * Copyright (c) 2019 Realtek Semiconductor Corp.

2019-2020? (also elsewhere)

Quoted 22 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +22 -0
+ */
+
+/dts-v1/;
+
+#include "rtd1319.dtsi"
+
+/ {
+	compatible = "realtek,pymparticle", "realtek,rtd1319";
+	model = "Realtek PymParticle EVB";
+
+	memory@2e000 {
+		device_type = "memory";
+		reg = <0x2e000 0x3ffd2000>; /* boot ROM to 1 GiB or 2 GiB */
+	};
+
+	chosen {
+		stdout-path = "serial0:460800n8";
+	};
+
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;

arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts line 35

Quoted 10 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +10 -0
+		serial2 = &uart2;
+	};
+};
+
+/* debug console (J1) */
+&uart0 {
+	status = "okay";
+};
+
+/* M.2 slot (CON8) */

Also J14 and CON2 (unless the board is mislabeled?).

/* J14 and M.2 slots (CON2, CON8) */ ?

Quoted 32 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +8 -0
+&uart1 {
+	status = "disabled";
+};
+
+/* GPIO connector (T1) */
+&uart2 {
+	status = "disabled";
+};
arch/arm64/boot/dts/realtek/rtd1319.dtsi new file +12 -0
new file mode 100644
index 000000000000..1dcee00009cd
@@ -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 +0 -0
new file mode 100644
index 000000000000..f6d73f18345d

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 8

Quoted 8 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +8 -0
@@ -0,0 +1,213 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
+/*
+ * Realtek RTD13xx SoC family
+ *
+ * Copyright (c) 2019 Realtek Semiconductor Corp.
+ */
+
+/memreserve/	0x0000000000000000 0x000000000002e000; /* Boot ROM */

Can you check whether your U-Boot and LK respectively need this memreserve entry, here and for previous SoCs? Because for RTD16xx we don't seem to have any memreserve entries at all. We do have it in rtd139x.dtsi, rtd129x.dtsi and rtd1195.dtsi.

Unrelated: Since we're carving out the 2e000 or so from /memory node and mapping ranges for /soc, I've been wondering whether we should represent the Boot ROM as node somehow. But since it's a ROM with (I assume) binary code only, I didn't see any need to have it accessible as mtd-rom device, so it's way down my to-do list to research how other mainline platforms might model their boot ROMs... (maybe your team has time, or someone reading happens to know?)

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/mtd/mtd-physmap.txt

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 9

Quoted 1 line
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +1 -0
+/memreserve/	0x000000000002e000 0x0000000000100000; /* Boot loader */

Is this a) correctly sized (not 0xd2000?) and b) still needed? I thought the documented sub-0x100000 memory corruption were fixed in newer BSPs?

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 12

Quoted 3 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +3 -0
+/memreserve/	0x000000000f400000 0x0000000000500000; /* Video FW */
+/memreserve/	0x000000000f900000 0x0000000000500000; /* Audio FW */
+/memreserve/	0x0000000010000000 0x0000000000014000; /* Audio FW RAM */

[snip]

Are these needed for the bootloader not to overwrite preloaded firmware, or could these become /mem-reserve sub-nodes instead?

Long-term I'm assuming we would move the responsibility for loading these to the new kernel drivers (so that the bootloader doesn't need to take care anymore) and ship the needed blobs in linux-firmware.git?

Or is the video FW needed by the bootloader itself for HDMI/DP output?

Thanks,
Andreas

Signature · 9 lines
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author maintainer
#9 lore raw

RE: [PATCH v3 2/2] arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB

Hi Andreas,

Quoted 14 lines

Am 04.02.20 um 15:52 schrieb James Tai:

arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts line 3

Quoted 10 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +3 -0
new file mode 100644
index 000000000000..2a36d220fef6
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
+/*
+ * Copyright (c) 2019 Realtek Semiconductor Corp.

2019-2020? (also elsewhere)

Yes. It should be changed to "2019-2020".

Quoted 35 lines
Quoted 22 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +22 -0
+ */
+
+/dts-v1/;
+
+#include "rtd1319.dtsi"
+
+/ {
+	compatible = "realtek,pymparticle", "realtek,rtd1319";
+	model = "Realtek PymParticle EVB";
+
+	memory@2e000 {
+		device_type = "memory";
+		reg = <0x2e000 0x3ffd2000>; /* boot ROM to 1 GiB or 2 GiB */
+	};
+
+	chosen {
+		stdout-path = "serial0:460800n8";
+	};
+
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;

arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts line 35

Quoted 10 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +10 -0
+		serial2 = &uart2;
+	};
+};
+
+/* debug console (J1) */
+&uart0 {
+	status = "okay";
+};
+
+/* M.2 slot (CON8) */

Also J14 and CON2 (unless the board is mislabeled?).

Quoted 2 lines

/* J14 and M.2 slots (CON2, CON8) */ ?

Yes. It should be changed to "M.2 slots (CON2, CON8)".

Quoted 44 lines
Quoted 34 lines
arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts new file +8 -0
+&uart1 {
+	status = "disabled";
+};
+
+/* GPIO connector (T1) */
+&uart2 {
+	status = "disabled";
+};
arch/arm64/boot/dts/realtek/rtd1319.dtsi new file +12 -0
new file mode 100644
index 000000000000..1dcee00009cd
@@ -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 +0 -0
new file mode 100644
index 000000000000..f6d73f18345d

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 8

Quoted 8 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +8 -0
@@ -0,0 +1,213 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
+/*
+ * Realtek RTD13xx SoC family
+ *
+ * Copyright (c) 2019 Realtek Semiconductor Corp.
+ */
+
+/memreserve/	0x0000000000000000 0x000000000002e000; /* Boot ROM

*/

Quoted 5 lines

Can you check whether your U-Boot and LK respectively need this memreserve entry, here and for previous SoCs? Because for RTD16xx we don't seem to have any memreserve entries at all. We do have it in rtd139x.dtsi, rtd129x.dtsi and rtd1195.dtsi.

I've checked that the boot code doesn't need this memreserve entry. Therefore, I will remove it.

Quoted 8 lines

Unrelated: Since we're carving out the 2e000 or so from /memory node and mapping ranges for /soc, I've been wondering whether we should represent the Boot ROM as node somehow. But since it's a ROM with (I assume) binary code only, I didn't see any need to have it accessible as mtd-rom device, so it's way down my to-do list to research how other mainline platforms might model their boot ROMs... (maybe your team has time, or someone reading happens to know?)

I'll add it to my to-do list.

Quoted 9 lines

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Docum
entation/devicetree/bindings/mtd/mtd-physmap.txt

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 9

Quoted 1 line
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +1 -0
+/memreserve/	0x000000000002e000 0x0000000000100000; /* Boot

loader */

Is this a) correctly sized (not 0xd2000?) and b) still needed? I thought the documented sub-0x100000 memory corruption were fixed in newer BSPs?

We're in the process of re-planning the memory layout, so that address will move to new address.

Quoted 11 lines

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 10

Quoted 1 line
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +1 -0
+/memreserve/	0x000000000f400000 0x0000000000500000; /* Video FW

*/

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 11

Quoted 1 line
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +1 -0
+/memreserve/	0x000000000f900000 0x0000000000500000; /* Audio FW

*/

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 12

Quoted 1 line
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +1 -0
+/memreserve/	0x0000000010000000 0x0000000000014000; /* Audio FW

RAM */
[snip]

Are these needed for the bootloader not to overwrite preloaded firmware, or could these become /mem-reserve sub-nodes instead?

Yes. These could become /mem-reserve sub-nodes instead.

Quoted 6 lines

Long-term I'm assuming we would move the responsibility for loading these to the new kernel drivers (so that the bootloader doesn't need to take care anymore) and ship the needed blobs in linux-firmware.git?

Or is the video FW needed by the bootloader itself for HDMI/DP output?

I agree with you. The video FW can be loaded into memory through this mechanism. But the audio FW needed by the bootloader itself for HDMI/DP output. Therefore, the audio FW can't be loaded into memory through it.

Thank you.

Regards,
James

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#10 lore raw

Re: [PATCH v3 2/2] arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB

In reply to James Tai

On 2020-02-04 2:52 pm, James Tai wrote:
[...]

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 92

Quoted 2 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +2 -0
+	arm_pmu: pmu {
+		compatible = "arm,armv8-pmuv3";

The binding updates have landed now, so you can use "arm,cortex-a55-pmu" here.

Robin.

Quoted 3 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +3 -0
+		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
+	};
author maintainer
#11 lore raw

RE: [PATCH v3 2/2] arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB

Hi Robin,

Quoted 8 lines · James Tai

[...]

arch/arm64/boot/dts/realtek/rtd13xx.dtsi line 92

Quoted 2 lines
arch/arm64/boot/dts/realtek/rtd13xx.dtsi new file +2 -0
+	arm_pmu: pmu {
+		compatible = "arm,armv8-pmuv3";

The binding updates have landed now, so you can use "arm,cortex-a55-pmu" here.

Okay. I'll modify it in v4.

Thank you.

Regards,
James