* [patch v2 3/3] riscv: dts: starfive: add framework dts
@ 2024-09-24 8:06 Sandie Cao
2024-09-24 8:24 ` Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Sandie Cao @ 2024-09-24 8:06 UTC (permalink / raw)
To: Conor Dooley
Cc: Emil Renner Berthing, Rob Herring, Krzysztof Kozlowski,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Heiko Stuebner,
Neil Armstrong, rafal, Linus Walleij, Michael Zhu, Drew Fustini,
linux-riscv, devicetree, linux-kernel, dhs, ams, gregkh,
yuning.liang, huiming.qiu, Sandie Cao
Add framework dts to support RISC-V Framework Laptop 13 Mainboard.
Signed-off-by: Sandie Cao <sandie.cao@deepcomputing.io>
---
arch/riscv/boot/dts/starfive/Makefile | 1 +
.../boot/dts/starfive/jh7110-framework.dts | 34 +++++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 arch/riscv/boot/dts/starfive/jh7110-framework.dts
diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile
index 7a163a7d6ba3..3746f7122834 100644
--- a/arch/riscv/boot/dts/starfive/Makefile
+++ b/arch/riscv/boot/dts/starfive/Makefile
@@ -8,6 +8,7 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@
dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb
dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
+dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-framework.dtb
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-pine64-star64.dtb
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb
diff --git a/arch/riscv/boot/dts/starfive/jh7110-framework.dts b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
new file mode 100644
index 000000000000..ff12c24ebab3
--- /dev/null
+++ b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+/*
+ * Copyright (C) 2022 StarFive Technology Co., Ltd.
+ * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
+ */
+
+/dts-v1/;
+#include "jh7110-common.dtsi"
+
+/ {
+ model = "Framework FRANME0000";
+ compatible = "deepcomputing,fm7110", "starfive,jh7110";
+};
+
+&gmac0 {
+ status = "disabled";
+};
+
+&gmac1 {
+ status = "disabled";
+};
+
+&usb0 {
+ dr_mode = "host";
+ status = "okay";
+};
+
+&pwmdac {
+ status = "disabled";
+};
+
+&pcie0 {
+ status = "disabled";
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [patch v2 3/3] riscv: dts: starfive: add framework dts
2024-09-24 8:06 [patch v2 3/3] riscv: dts: starfive: add framework dts Sandie Cao
@ 2024-09-24 8:24 ` Krzysztof Kozlowski
[not found] ` <407ce3d77416bb2522b7906b0df3d5adf02c27ee.5065befe.6789.4275.a840.52c113c23eb9@feishu.cn>
2024-09-24 9:55 ` Rafał Miłecki
2024-09-25 1:56 ` Rob Herring (Arm)
2 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-24 8:24 UTC (permalink / raw)
To: Sandie Cao, Conor Dooley
Cc: Emil Renner Berthing, Rob Herring, Krzysztof Kozlowski,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Heiko Stuebner,
Neil Armstrong, rafal, Linus Walleij, Michael Zhu, Drew Fustini,
linux-riscv, devicetree, linux-kernel, dhs, ams, gregkh,
yuning.liang, huiming.qiu
On 24/09/2024 10:06, Sandie Cao wrote:
> Add framework dts to support RISC-V Framework Laptop 13 Mainboard.
>
> Signed-off-by: Sandie Cao <sandie.cao@deepcomputing.io>
> ---
> arch/riscv/boot/dts/starfive/Makefile | 1 +
> .../boot/dts/starfive/jh7110-framework.dts | 34 +++++++++++++++++++
> 2 files changed, 35 insertions(+)
> create mode 100644 arch/riscv/boot/dts/starfive/jh7110-framework.dts
Your threading is entirely broken making applying process more difficult.
>
> diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile
> index 7a163a7d6ba3..3746f7122834 100644
> --- a/arch/riscv/boot/dts/starfive/Makefile
> +++ b/arch/riscv/boot/dts/starfive/Makefile
> @@ -8,6 +8,7 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@
> dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb
> dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
>
> +dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-framework.dtb
> dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb
> dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-pine64-star64.dtb
> dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb
> diff --git a/arch/riscv/boot/dts/starfive/jh7110-framework.dts b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> new file mode 100644
> index 000000000000..ff12c24ebab3
> --- /dev/null
> +++ b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> @@ -0,0 +1,34 @@
> +// SPDX-License-Identifier: GPL-2.0 OR MIT
> +/*
> + * Copyright (C) 2022 StarFive Technology Co., Ltd.
> + * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
> + */
> +
> +/dts-v1/;
> +#include "jh7110-common.dtsi"
> +
> +/ {
> + model = "Framework FRANME0000";
> + compatible = "deepcomputing,fm7110", "starfive,jh7110";
> +};
> +
> +&gmac0 {
> + status = "disabled";
> +};
> +
> +&gmac1 {
> + status = "disabled";
> +};
> +
> +&usb0 {
> + dr_mode = "host";
> + status = "okay";
> +};
> +
> +&pwmdac {
> + status = "disabled";
> +};
> +
> +&pcie0 {
> + status = "disabled";
Why PCIE0 is enabled in the DTSI in the first place? The same questions
about MACs.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v2 3/3] riscv: dts: starfive: add framework dts
2024-09-24 8:06 [patch v2 3/3] riscv: dts: starfive: add framework dts Sandie Cao
2024-09-24 8:24 ` Krzysztof Kozlowski
@ 2024-09-24 9:55 ` Rafał Miłecki
2024-09-24 16:26 ` Conor Dooley
2024-09-25 1:56 ` Rob Herring (Arm)
2 siblings, 1 reply; 6+ messages in thread
From: Rafał Miłecki @ 2024-09-24 9:55 UTC (permalink / raw)
To: Sandie Cao
Cc: Conor Dooley, Emil Renner Berthing, Rob Herring,
Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Heiko Stuebner, Neil Armstrong, Linus Walleij, Michael Zhu,
Drew Fustini, linux-riscv, devicetree, linux-kernel, dhs, ams,
gregkh, yuning.liang, huiming.qiu
On 2024-09-24 10:06, Sandie Cao wrote:
> diff --git a/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> new file mode 100644
> index 000000000000..ff12c24ebab3
> --- /dev/null
> +++ b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> @@ -0,0 +1,34 @@
> +// SPDX-License-Identifier: GPL-2.0 OR MIT
> +/*
> + * Copyright (C) 2022 StarFive Technology Co., Ltd.
> + * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
> + */
> +
> +/dts-v1/;
> +#include "jh7110-common.dtsi"
> +
> +/ {
> + model = "Framework FRANME0000";
> + compatible = "deepcomputing,fm7110", "starfive,jh7110";
> +};
Nitpicking: property "compatible" should go first.
See Documentation/devicetree/bindings/dts-coding-style.rst
--
Rafał Miłecki
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v2 3/3] riscv: dts: starfive: add framework dts
2024-09-24 9:55 ` Rafał Miłecki
@ 2024-09-24 16:26 ` Conor Dooley
0 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2024-09-24 16:26 UTC (permalink / raw)
To: Rafał Miłecki
Cc: Sandie Cao, Emil Renner Berthing, Rob Herring,
Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Heiko Stuebner, Neil Armstrong, Linus Walleij, Michael Zhu,
Drew Fustini, linux-riscv, devicetree, linux-kernel, dhs, ams,
gregkh, yuning.liang, huiming.qiu
[-- Attachment #1: Type: text/plain, Size: 982 bytes --]
On Tue, Sep 24, 2024 at 11:55:44AM +0200, Rafał Miłecki wrote:
> On 2024-09-24 10:06, Sandie Cao wrote:
> > diff --git a/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> > b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> > new file mode 100644
> > index 000000000000..ff12c24ebab3
> > --- /dev/null
> > +++ b/arch/riscv/boot/dts/starfive/jh7110-framework.dts
> > @@ -0,0 +1,34 @@
> > +// SPDX-License-Identifier: GPL-2.0 OR MIT
> > +/*
> > + * Copyright (C) 2022 StarFive Technology Co., Ltd.
> > + * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
> > + */
> > +
> > +/dts-v1/;
> > +#include "jh7110-common.dtsi"
> > +
> > +/ {
> > + model = "Framework FRANME0000";
> > + compatible = "deepcomputing,fm7110", "starfive,jh7110";
> > +};
>
> Nitpicking: property "compatible" should go first.
>
> See Documentation/devicetree/bindings/dts-coding-style.rst
I think "model" usually goes before compatible, I wouldn't change it
here.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v2 3/3] riscv: dts: starfive: add framework dts
[not found] ` <407ce3d77416bb2522b7906b0df3d5adf02c27ee.5065befe.6789.4275.a840.52c113c23eb9@feishu.cn>
@ 2024-09-24 18:40 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-24 18:40 UTC (permalink / raw)
To: 曹珊珊
Cc: Conor Dooley, Emil Renner Berthing, Rob Herring,
Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Heiko Stuebner, Neil Armstrong, rafal, Linus Walleij, Michael Zhu,
Drew Fustini, linux-riscv, devicetree, linux-kernel, dhs, ams,
gregkh, yuning.liang, huiming.qiu
On 24/09/2024 10:52, 曹珊珊 wrote:
> Hi Krzysztof,
>
> Thanks for your time.
>
> A: jh7110-common.dtsi is also used by other boards. Likes: milkv-mars,
> pine64-star64. So I can only disable them in jh7110-framework.dts.
> Or I need to create a new common.dtsi.
>
> Q: Why PCIE0 is enabled in the DTSI in the first place? The same questions
> about MACs.
>
> Regards,
> Sandie
>
> On 24/09/2024 10:06, Sandie Cao wrote:
>> Add framework dts to support RISC-V Framework Laptop 13 Mainboard.
>>
>> Signed-off-by: Sandie Cao <sandie.cao@deepcomputing.io>
>> ---
>> arch/riscv/boot/dts/starfive/Makefile | 1 +
>> .../boot/dts/starfive/jh7110-framework.dts | 34 +++++++++++++++++++
>> 2 files changed, 35 insertions(+)
>> create mode 100644 arch/riscv/boot/dts/starfive/jh7110-framework.dts
>
> Your threading is entirely broken making applying process more difficult.
So I am talking with myself?
...
>> + status = "disabled";
>> +};
>> +
>> +&pcie0 {
>> + status = "disabled";
>
> Why PCIE0 is enabled in the DTSI in the first place? The same questions
> about MACs.
>
> Best regards,
> Krzysztof
And sending myself regards?
Sorry, no clue what's going on here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v2 3/3] riscv: dts: starfive: add framework dts
2024-09-24 8:06 [patch v2 3/3] riscv: dts: starfive: add framework dts Sandie Cao
2024-09-24 8:24 ` Krzysztof Kozlowski
2024-09-24 9:55 ` Rafał Miłecki
@ 2024-09-25 1:56 ` Rob Herring (Arm)
2 siblings, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2024-09-25 1:56 UTC (permalink / raw)
To: Sandie Cao
Cc: Palmer Dabbelt, dhs, Michael Zhu, gregkh, Neil Armstrong,
Krzysztof Kozlowski, rafal, devicetree, Drew Fustini, huiming.qiu,
linux-riscv, Heiko Stuebner, Albert Ou, Conor Dooley,
Paul Walmsley, linux-kernel, Emil Renner Berthing, ams,
yuning.liang, Linus Walleij
On Tue, 24 Sep 2024 16:06:50 +0800, Sandie Cao wrote:
> Add framework dts to support RISC-V Framework Laptop 13 Mainboard.
>
> Signed-off-by: Sandie Cao <sandie.cao@deepcomputing.io>
> ---
> arch/riscv/boot/dts/starfive/Makefile | 1 +
> .../boot/dts/starfive/jh7110-framework.dts | 34 +++++++++++++++++++
> 2 files changed, 35 insertions(+)
> create mode 100644 arch/riscv/boot/dts/starfive/jh7110-framework.dts
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y starfive/jh7110-framework.dtb' for 20240924080650.1345485-4-sandie.cao@deepcomputing.io:
arch/riscv/boot/dts/starfive/jh7110-framework.dtb: /: compatible: 'oneOf' conditional failed, one must be fixed:
'deepcomputing,fm7110' is not one of ['beagle,beaglev-starlight-jh7100-r0', 'starfive,visionfive-v1']
'deepcomputing,fm7110' is not one of ['milkv,mars', 'pine64,star64', 'starfive,visionfive-2-v1.2a', 'starfive,visionfive-2-v1.3b']
'starfive,jh7100' was expected
from schema $id: http://devicetree.org/schemas/riscv/starfive.yaml#
arch/riscv/boot/dts/starfive/jh7110-framework.dtb: /: failed to match any schema with compatible: ['deepcomputing,fm7110', 'starfive,jh7110']
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-25 1:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 8:06 [patch v2 3/3] riscv: dts: starfive: add framework dts Sandie Cao
2024-09-24 8:24 ` Krzysztof Kozlowski
[not found] ` <407ce3d77416bb2522b7906b0df3d5adf02c27ee.5065befe.6789.4275.a840.52c113c23eb9@feishu.cn>
2024-09-24 18:40 ` Krzysztof Kozlowski
2024-09-24 9:55 ` Rafał Miłecki
2024-09-24 16:26 ` Conor Dooley
2024-09-25 1:56 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox