Initial device tree support for StarFive JH8100 SoC
Subsystems (8)
cover Initial device tree support for StarFive JH8100 SoC
StarFive JH8100 SoC consists of 4 RISC-V performance Cores (Dubhe-90) and 2 RISC-V energy efficient cores (Dubhe-80). It also features various interfaces such as DDR4, Gbit-Ether, CAN, USB 3.2, SD/MMC, etc., making it ideal for high-performance computing scenarios.
This patch series introduces initial SoC DTSI support for the StarFive JH8100 SoC. The relevant dt-binding documentation has been updated accordingly. Below is the list of IP blocks added in the initial SoC DTSI, which can be used for booting via initramfs on FPGA:
- StarFive Dubhe-80 CPU
- StarFive Dubhe-90 CPU
- PLIC
- CLINT
- UART
The primary goal is to include foundational patches so that additional drivers can be built on top of this framework.
Sia Jee Heng (7):
dt-bindings: riscv: Add StarFive Dubhe compatibles
dt-bindings: riscv: Add StarFive JH8100 SoC
dt-bindings: timer: Add StarFive JH8100 clint
dt-bindings: interrupt-controller: Add StarFive JH8100 plic
dt-bindings: xilinx: Add StarFive compatible string
serial: xilinx_uartps: Add new compatible string for StarFive
riscv: dts: starfive: Add initial StarFive JH8100 device tree
.../sifive,plic-1.0.0.yaml | 1 + .../devicetree/bindings/riscv/cpus.yaml | 2 + .../devicetree/bindings/riscv/starfive.yaml | 5 +- .../devicetree/bindings/serial/cdns,uart.yaml | 3 + .../bindings/timer/sifive,clint.yaml | 1 + arch/riscv/boot/dts/starfive/Makefile | 1 + arch/riscv/boot/dts/starfive/jh8100-evb.dts | 42 ++ arch/riscv/boot/dts/starfive/jh8100.dtsi | 365 ++++++++++++++++++ drivers/tty/serial/xilinx_uartps.c | 3 +- 9 files changed, 421 insertions(+), 2 deletions(-) create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi
base-commit: d2da77f431ac49b5763b88751a75f70daa46296c
Signature · 1 line
2.34.1
PATCH 1/7 dt-bindings: riscv: Add StarFive Dubhe compatibles
Dubhe-80 and Dubhe-90 are RISC-V cpu core from StarFive Technology.
--- Documentation/devicetree/bindings/riscv/cpus.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/riscv/cpus.yaml +2 -0
@@ -48,6 +48,8 @@ properties: - thead,c906 - thead,c910 - thead,c920 + - starfive,dubhe-80 + - starfive,dubhe-90 - const: riscv - items: - enum:
Signature · 1 line
2.34.1
Re: [PATCH 1/7] dt-bindings: riscv: Add StarFive Dubhe compatibles
Quoted 4 lines · Sia Jee Heng
Dubhe-80 and Dubhe-90 are RISC-V cpu core from StarFive Technology.
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Best regards,
Krzysztof
PATCH 2/7 dt-bindings: riscv: Add StarFive JH8100 SoC
In reply to Sia Jee HengAdd device tree bindings for the StarFive JH8100 RISC-V SoC
--- Documentation/devicetree/bindings/riscv/starfive.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/riscv/starfive.yaml +4 -1
@@ -29,7 +29,10 @@ properties: - starfive,visionfive-2-v1.2a - starfive,visionfive-2-v1.3b - const: starfive,jh7110 - + - items: + - enum: + - starfive,jh8100-evb + - const: starfive,jh8100 additionalProperties: true ...
Signature · 1 line
2.34.1
PATCH 3/7 dt-bindings: timer: Add StarFive JH8100 clint
In reply to Sia Jee HengAdd compatible string for the StarFive JH8100 clint
--- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/sifive,clint.yaml +1 -0
@@ -33,6 +33,7 @@ properties: - sifive,fu540-c000-clint # SiFive FU540 - starfive,jh7100-clint # StarFive JH7100 - starfive,jh7110-clint # StarFive JH7110 + - starfive,jh8100-clint # StarFive JH8100 - const: sifive,clint0 # SiFive CLINT v0 IP block - items: - enum:
Signature · 1 line
2.34.1
Re: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clint
Quoted 5 lines · Sia Jee Heng
Add compatible string for the StarFive JH8100 clint
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Best regards,
Krzysztof
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
RE: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clint
Quoted 22 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:48 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clintQuoted 5 lines · Sia Jee Heng
Add compatible string for the StarFive JH8100 clint
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use
scripts/get_maintainers.plto get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Quoted 6 lines
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Noted. Should I resend the patches with the V1 tag and with addressed comments?
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clint
Quoted 22 lines · JeeHeng Sia
Quoted 22 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:48 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clintQuoted 5 lines · Sia Jee Heng
Add compatible string for the StarFive JH8100 clint
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use
scripts/get_maintainers.plto get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Quoted 7 lines
Quoted 6 lines
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Noted. Should I resend the patches with the V1 tag and with addressed comments?
This was v1. Next one is v2.
Best regards,
Krzysztof
RE: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clint
Quoted 38 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, November 28, 2023 3:20 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clintQuoted 27 lines · JeeHeng Sia
Quoted 27 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:48 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 3/7] dt-bindings: timer: Add StarFive JH8100 clintQuoted 5 lines · Sia Jee Heng
Add compatible string for the StarFive JH8100 clint
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use
scripts/get_maintainers.plto get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
Please kindly resend and include all necessary To/Cc entries.
Noted. Should I resend the patches with the V1 tag and with addressed comments?
This was v1. Next one is v2.
Noted with thanks.
Quoted 3 lines
Best regards,
Krzysztof
PATCH 4/7 dt-bindings: interrupt-controller: Add StarFive JH8100 plic
In reply to Sia Jee HengAdd compatible string for StarFive JH8100 plic
--- .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml +1 -0
@@ -61,6 +61,7 @@ properties: - sifive,fu540-c000-plic - starfive,jh7100-plic - starfive,jh7110-plic + - starfive,jh8100-plic - const: sifive,plic-1.0.0 - items: - enum:
Signature · 1 line
2.34.1
Re: [PATCH 4/7] dt-bindings: interrupt-controller: Add StarFive JH8100 plic
Quoted 5 lines · Sia Jee Heng
Add compatible string for StarFive JH8100 plic
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Best regards,
Krzysztof
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 5/7 dt-bindings: xilinx: Add StarFive compatible string
In reply to Sia Jee HengAdd starfive,jh8100-uart compatible string
--- Documentation/devicetree/bindings/serial/cdns,uart.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/serial/cdns,uart.yaml +3 -0
@@ -20,6 +20,9 @@ properties: items: - const: xlnx,zynqmp-uart - const: cdns,uart-r1p12 + - description: UART controller for StarFive JH8100 SoC + items: + - const: starfive,jh8100-uart reg: maxItems: 1
Signature · 1 line
2.34.1
Re: [PATCH 5/7] dt-bindings: xilinx: Add StarFive compatible string
Quoted 1 line · Sia Jee Heng
Add starfive,jh8100-uart compatible string
Describe the hardware. Why is it in xilinx?
Also, missing full stop in each commit msg.
Quoted 4 lines
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Best regards,
Krzysztof
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
RE: [PATCH 5/7] dt-bindings: xilinx: Add StarFive compatible string
Quoted 10 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:49 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 5/7] dt-bindings: xilinx: Add StarFive compatible string
Quoted 4 lines
Quoted 1 line · Sia Jee Heng
Add starfive,jh8100-uart compatible string
Describe the hardware. Why is it in xilinx?
My bad. It should CDNS UART driver. Will fix it.
Quoted 2 lines
Also, missing full stop in each commit msg.
Noted.
Quoted 11 lines
Quoted 5 lines
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>---
Please use
scripts/get_maintainers.plto get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Quoted 6 lines
You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Noted. Should I resend the patches with the V1 tag and with addressed comments?
Quoted 3 lines
Best regards,
Krzysztof
PATCH 6/7 serial: xilinx_uartps: Add new compatible string for StarFive
In reply to Sia Jee HengThis patch adds the new compatible string for StarFive JH8100 SoC
--- drivers/tty/serial/xilinx_uartps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/serial/xilinx_uartps.c +2 -1
@@ -1210,7 +1210,7 @@ OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p8" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p12" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"xlnx,zynqmp-uart" , cdns_early_console_setup); - +OF_EARLYCON_DECLARE (cdns,"starfive,jh8100-uart" , cdns_early_console_setup);/* Static pointer to console port */ static struct uart_port *console_port;
@@ -1448,6 +1448,7 @@ static const struct of_device_id cdns_uart_of_match[] = { { .compatible = "cdns,uart-r1p8", }, { .compatible = "cdns,uart-r1p12", .data = &zynqmp_uart_def }, { .compatible = "xlnx,zynqmp-uart", .data = &zynqmp_uart_def }, + { .compatible = "starfive,jh8100-uart", }, {} };MODULE_DEVICE_TABLE (of, cdns_uart_of_match);
Signature · 1 line
2.34.1
Re: [PATCH 6/7] serial: xilinx_uartps: Add new compatible string for StarFive
Quoted 22 lines · Sia Jee Heng
This patch adds the new compatible string for StarFive JH8100 SoC
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>--- drivers/tty/serial/xilinx_uartps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/tty/serial/xilinx_uartps.c +1
-1@@ -1210,7 +1210,7 @@ OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p8" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p12" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"xlnx,zynqmp-uart" , cdns_early_console_setup); - +OF_EARLYCON_DECLARE (cdns,"starfive,jh8100-uart" , cdns_early_console_setup);/* Static pointer to console port */ static struct uart_port *console_port;
drivers/tty/serial/xilinx_uartps.c static const struct of_device_id cdns_uart_of_match[] = { · line 1451
Quoted 4 lines
drivers/tty/serial/xilinx_uartps.c +1
-0@@ -1448,6 +1448,7 @@ static const struct of_device_id cdns_uart_of_match[] = { { .compatible = "cdns,uart-r1p8", }, { .compatible = "cdns,uart-r1p12", .data = &zynqmp_uart_def }, { .compatible = "xlnx,zynqmp-uart", .data = &zynqmp_uart_def }, + { .compatible = "starfive,jh8100-uart", },
Why you do not express compatibility in your bindings? Skip this driver change.
Best regards,
Krzysztof
RE: [PATCH 6/7] serial: xilinx_uartps: Add new compatible string for StarFive
Quoted 30 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:49 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 6/7] serial:xilinx_uartps: Add new compatible string for StarFiveQuoted 19 lines · Sia Jee Heng
This patch adds the new compatible string for StarFive JH8100 SoC
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>--- drivers/tty/serial/xilinx_uartps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/tty/serial/xilinx_uartps.c +1
-1@@ -1210,7 +1210,7 @@ OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p8" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p12" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"xlnx,zynqmp-uart" , cdns_early_console_setup); - +OF_EARLYCON_DECLARE (cdns,"starfive,jh8100-uart" , cdns_early_console_setup);
Quoted 10 lines
drivers/tty/serial/xilinx_uartps.c static const struct of_device_id cdns_uart_of_match[] = { · line 1451
Quoted 7 lines
drivers/tty/serial/xilinx_uartps.c +1
-0/* Static pointer to console port */ static struct uart_port *console_port;@@ -1448,6 +1448,7 @@ static const struct of_device_id cdns_uart_of_match[] = { { .compatible = "cdns,uart-r1p8", }, { .compatible = "cdns,uart-r1p12", .data = &zynqmp_uart_def }, { .compatible = "xlnx,zynqmp-uart", .data = &zynqmp_uart_def }, + { .compatible = "starfive,jh8100-uart", },Why you do not express compatibility in your bindings? Skip this driver change.
The compatibility string was added to the binding in the 5th patch. We need to add this compatibility string to the driver, as the other compatibilities were used for other SoCs.
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 6/7] serial: xilinx_uartps: Add new compatible string for StarFive
Quoted 40 lines · JeeHeng Sia
Quoted 30 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:49 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 6/7] serial:xilinx_uartps: Add new compatible string for StarFiveQuoted 19 lines · Sia Jee Heng
This patch adds the new compatible string for StarFive JH8100 SoC
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>--- drivers/tty/serial/xilinx_uartps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/tty/serial/xilinx_uartps.c +1
-1@@ -1210,7 +1210,7 @@ OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p8" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p12" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"xlnx,zynqmp-uart" , cdns_early_console_setup); - +OF_EARLYCON_DECLARE (cdns,"starfive,jh8100-uart" , cdns_early_console_setup);Quoted 10 lines
drivers/tty/serial/xilinx_uartps.c static const struct of_device_id cdns_uart_of_match[] = { · line 1451
Quoted 7 lines
drivers/tty/serial/xilinx_uartps.c +1
-0/* Static pointer to console port */ static struct uart_port *console_port;@@ -1448,6 +1448,7 @@ static const struct of_device_id cdns_uart_of_match[] = { { .compatible = "cdns,uart-r1p8", }, { .compatible = "cdns,uart-r1p12", .data = &zynqmp_uart_def }, { .compatible = "xlnx,zynqmp-uart", .data = &zynqmp_uart_def }, + { .compatible = "starfive,jh8100-uart", },Why you do not express compatibility in your bindings? Skip this driver change.
Quoted 1 line
The compatibility string was added to the binding in the 5th patch. We need to add this compatibility string to the driver, as the other compatibilities were used for other SoCs.
You did not add "compatibility string" but compatible. I am asking why you are not expressing in your bindings the compatibility between this and other devices.
And no, you do not need driver change for compatible devices, so again:
skip this driver change.
Best regards,
Krzysztof
RE: [PATCH 6/7] serial: xilinx_uartps: Add new compatible string for StarFive
Quoted 52 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, November 28, 2023 3:21 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 6/7] serial:xilinx_uartps: Add new compatible string for StarFiveQuoted 40 lines · JeeHeng Sia
Quoted 30 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:49 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 6/7] serial:xilinx_uartps: Add new compatible string for StarFiveQuoted 19 lines · Sia Jee Heng
This patch adds the new compatible string for StarFive JH8100 SoC
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>--- drivers/tty/serial/xilinx_uartps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/tty/serial/xilinx_uartps.c +1
-1@@ -1210,7 +1210,7 @@ OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p8" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"cdns,uart-r1p12" , cdns_early_console_setup);OF_EARLYCON_DECLARE (cdns,"xlnx,zynqmp-uart" , cdns_early_console_setup); - +OF_EARLYCON_DECLARE (cdns,"starfive,jh8100-uart" , cdns_early_console_setup);Quoted 10 lines
drivers/tty/serial/xilinx_uartps.c static const struct of_device_id cdns_uart_of_match[] = { · line 1451
Quoted 7 lines
drivers/tty/serial/xilinx_uartps.c +1
-0/* Static pointer to console port */ static struct uart_port *console_port;@@ -1448,6 +1448,7 @@ static const struct of_device_id cdns_uart_of_match[] = { { .compatible = "cdns,uart-r1p8", }, { .compatible = "cdns,uart-r1p12", .data = &zynqmp_uart_def }, { .compatible = "xlnx,zynqmp-uart", .data = &zynqmp_uart_def }, + { .compatible = "starfive,jh8100-uart", },Why you do not express compatibility in your bindings? Skip this driver change.
Quoted 1 line
The compatibility string was added to the binding in the 5th patch. We need to add this compatibility string to the driver, as the
Quoted 8 lines
other compatibilities were used for other SoCs.
You did not add "compatibility string" but compatible. I am asking why you are not expressing in your bindings the compatibility between this and other devices.
And no, you do not need driver change for compatible devices, so again:
skip this driver change.
Alright, I will skip this driver change. Thanks.
Quoted 4 lines
Best regards,
Krzysztof
PATCH 7/7 riscv: dts: starfive: Add initial StarFive JH8100 device tree
In reply to Sia Jee HengAdd initial device tree for the StarFive JH8100 RISC-V SoC
--- arch/riscv/boot/dts/starfive/Makefile | 1 + arch/riscv/boot/dts/starfive/jh8100-evb.dts | 42 +++ arch/riscv/boot/dts/starfive/jh8100.dtsi | 365 ++++++++++++++++++++ 3 files changed, 408 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi
arch/riscv/boot/dts/starfive/Makefile +1 -0
@@ -10,3 +10,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb +dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtb
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +42 -0
42 lines not on this page · raw message
arch/riscv/boot/dts/starfive/jh8100.dtsi new file +365 -0
365 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH 7/7] riscv: dts: starfive: Add initial StarFive JH8100 device tree
Quoted 38 lines · Sia Jee Heng
Add initial device tree for the StarFive JH8100 RISC-V SoC
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>--- arch/riscv/boot/dts/starfive/Makefile | 1 + arch/riscv/boot/dts/starfive/jh8100-evb.dts | 42 +++ arch/riscv/boot/dts/starfive/jh8100.dtsi | 365 ++++++++++++++++++++ 3 files changed, 408 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsiarch/riscv/boot/dts/starfive/Makefile +1
-0@@ -10,3 +10,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb +dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtbarch/riscv/boot/dts/starfive/jh8100-evb.dts new file +11
-0@@ -0,0 +1,42 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (c) 2021-2023 StarFive Technology Co., Ltd. + */ + +#include "jh8100.dtsi" + +/ { + model = "StarFive JH8100 EVB"; + compatible = "starfive,jh8100-evb", "starfive,jh8100"; +
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 21
Quoted 10 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +10
-0+ aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + cpus { + timebase-frequency = <4000000>;
This was fixed recently on the mailing lists.
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 31
Quoted 10 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +10
-0+ + }; + + memory { + device_type = "memory"; + reg = <0x0 0x40000000 0x2 0x00000000>; /* 8GB */ + }; + + soc { + clk_uart: clk_uart {
Undercores are not allowed in node names. Use hyphen.
Also, boards must not add nodes to the soc. This is board, not SoC DTS.
...
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 40
Quoted 9 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +9
-0+ + uart6: serial@127e0000 { + compatible = "starfive,jh8100-uart"; + reg = <0x0 0x127e0000 0x0 0x10000>; + clock-names = "uart_clk", "pclk"; + interrupts = <73>; + status = "disabled"; + }; +
Stray blank line. In other places as well.
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 42
Quoted 2 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +2
-0+ }; +};
Best regards,
Krzysztof
Re: [PATCH 7/7] riscv: dts: starfive: Add initial StarFive JH8100 device tree
Quoted 10 lines · Krzysztof Kozlowski
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 21
Quoted 6 lines · Sia Jee Heng
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +6
-0+ chosen { + stdout-path = "serial0:115200n8"; + }; + + cpus { + timebase-frequency = <4000000>;This was fixed recently on the mailing lists.
Actually, I only fixed this for the microchip stuff, as I don't know whether or not having this in $board.dts is valid for other cases.
As far as I understand it, this works just like regular clock nodes, so if the clock is provided by an off-chip crystal it is okay to have it in $board.dts, but otherwise it should go in $soc.dts.
The same applies to the jh7100/jh7110, so if you could clarify it for that platform too, that'd be great. Doing it in response to
https://lore.kernel.org/all/20231126-attractor-swampland-b1b95bd1322b@spud/
would be great.
Thanks,
Conor.
Re: [PATCH 7/7] riscv: dts: starfive: Add initial StarFive JH8100 device tree
Quoted 15 lines · Conor Dooley
Quoted 10 lines · Krzysztof Kozlowski
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 21
Quoted 6 lines · Sia Jee Heng
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +6
-0+ chosen { + stdout-path = "serial0:115200n8"; + }; + + cpus { + timebase-frequency = <4000000>;This was fixed recently on the mailing lists.
Actually, I only fixed this for the microchip stuff, as I don't know whether or not having this in $board.dts is valid for other cases.
Quoted 8 lines
As far as I understand it, this works just like regular clock nodes, so if the clock is provided by an off-chip crystal it is okay to have it in $board.dts, but otherwise it should go in $soc.dts.
The same applies to the jh7100/jh7110, so if you could clarify it for that platform too, that'd be great. Doing it in response to
https://lore.kernel.org/all/20231126-attractor-swampland-b1b95bd1322b@spud/
would be great.
OK, then it should be added via label syntax, not by full node path.
Best regards,
Krzysztof
RE: [PATCH 7/7] riscv: dts: starfive: Add initial StarFive JH8100 device tree
In reply to Krzysztof KozlowskiQuoted 53 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, November 27, 2023 4:51 PM
To: JeeHeng Sia <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Leyfoon Tan <[email protected]>
Subject: Re: [PATCH 7/7] riscv: dts: starfive: Add initial StarFive JH8100 device treeQuoted 42 lines · Sia Jee Heng
Add initial device tree for the StarFive JH8100 RISC-V SoC
Signed-off-by Sia Jee Heng <[email protected]>Reviewed-by Ley Foon Tan <[email protected]>--- arch/riscv/boot/dts/starfive/Makefile | 1 + arch/riscv/boot/dts/starfive/jh8100-evb.dts | 42 +++ arch/riscv/boot/dts/starfive/jh8100.dtsi | 365 ++++++++++++++++++++ 3 files changed, 408 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsiarch/riscv/boot/dts/starfive/Makefile +1
-0@@ -10,3 +10,4 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb +dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtbarch/riscv/boot/dts/starfive/jh8100-evb.dts new file +15
-0@@ -0,0 +1,42 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (c) 2021-2023 StarFive Technology Co., Ltd. + */ + +#include "jh8100.dtsi" + +/ { + model = "StarFive JH8100 EVB"; + compatible = "starfive,jh8100-evb", "starfive,jh8100"; + + aliases { + serial0 = &uart0; + }; +
Quoted 8 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 21
Quoted 6 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +6
-0+ chosen { + stdout-path = "serial0:115200n8"; + }; + + cpus { + timebase-frequency = <4000000>;This was fixed recently on the mailing lists.
The timebase-frequency on StarFive JH8100 SoC is set by an internal clk divider, will move the property to jh8100.dtsi. Thanks.
Quoted 14 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts line 31
Quoted 12 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +10
-0+ + }; + + memory { + device_type = "memory"; + reg = <0x0 0x40000000 0x2 0x00000000>; /* 8GB */ + }; + + soc { + clk_uart: clk_uart {Undercores are not allowed in node names. Use hyphen.
Noted.
Quoted 2 lines
Also, boards must not add nodes to the soc. This is board, not SoC DTS.
Noted. Will move it to dtsi.
Quoted 14 lines
...
arch/riscv/boot/dts/starfive/jh8100-evb.dts
Quoted 9 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +9
-0+ + uart6: serial@127e0000 { + compatible = "starfive,jh8100-uart"; + reg = <0x0 0x127e0000 0x0 0x10000>; + clock-names = "uart_clk", "pclk"; + interrupts = <73>; + status = "disabled"; + }; +Stray blank line. In other places as well.
Noted.
Quoted 6 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts
Quoted 3 lines
arch/riscv/boot/dts/starfive/jh8100-evb.dts new file +2
-0+ }; +};Best regards,
Krzysztof