* [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board [not found] <20251110101110.948198-1-michael.opdenacker@rootcommit.com> @ 2025-11-10 10:11 ` michael.opdenacker 2025-11-10 13:10 ` Yixun Lan 2025-11-10 13:18 ` Yixun Lan 2025-11-10 10:11 ` [PATCH v2 2/2] riscv: dts: spacemit: Add OrangePi R2S board device tree michael.opdenacker 1 sibling, 2 replies; 5+ messages in thread From: michael.opdenacker @ 2025-11-10 10:11 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan, Yangyu Chen Cc: Michael Opdenacker, devicetree, linux-riscv, spacemit, linux-kernel From: Michael Opdenacker <michael.opdenacker@rootcommit.com> Document the compatible string for the OrangePi R2S board [1], which is marketed as using the Ky X1 SoC but is in fact identical to the SpacemiT K1 SoC [2]. Link: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-R2S.html [1] Link: https://www.spacemit.com/en/key-stone-k1 [2] Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> --- Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/spacemit.yaml b/Documentation/devicetree/bindings/riscv/spacemit.yaml index 52fe39296031..1b2f279d31f9 100644 --- a/Documentation/devicetree/bindings/riscv/spacemit.yaml +++ b/Documentation/devicetree/bindings/riscv/spacemit.yaml @@ -24,6 +24,7 @@ properties: - milkv,jupiter - spacemit,musepi-pro - xunlong,orangepi-rv2 + - xunlong,orangepi-r2s - const: spacemit,k1 additionalProperties: true ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board 2025-11-10 10:11 ` [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board michael.opdenacker @ 2025-11-10 13:10 ` Yixun Lan 2025-11-10 13:18 ` Yixun Lan 1 sibling, 0 replies; 5+ messages in thread From: Yixun Lan @ 2025-11-10 13:10 UTC (permalink / raw) To: michael.opdenacker Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yangyu Chen, devicetree, linux-riscv, spacemit, linux-kernel Hi Michael, On 10:11 Mon 10 Nov , michael.opdenacker@rootcommit.com wrote: > From: Michael Opdenacker <michael.opdenacker@rootcommit.com> > > Document the compatible string for the OrangePi R2S board [1], which > is marketed as using the Ky X1 SoC but is in fact identical to > the SpacemiT K1 SoC [2]. > > Link: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-R2S.html [1] > Link: https://www.spacemit.com/en/key-stone-k1 [2] > > Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> > --- > Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/riscv/spacemit.yaml b/Documentation/devicetree/bindings/riscv/spacemit.yaml > index 52fe39296031..1b2f279d31f9 100644 > --- a/Documentation/devicetree/bindings/riscv/spacemit.yaml > +++ b/Documentation/devicetree/bindings/riscv/spacemit.yaml > @@ -24,6 +24,7 @@ properties: > - milkv,jupiter > - spacemit,musepi-pro > - xunlong,orangepi-rv2 > + - xunlong,orangepi-r2s with Krzysztof's comment, you should put this new compatile before xunlong,orangepi-rv2, see https://lore.kernel.org/all/20251110-impressive-dalmatian-of-luck-4d1441@kuoka/ > - const: spacemit,k1 > > additionalProperties: true -- Yixun Lan (dlan) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board 2025-11-10 10:11 ` [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board michael.opdenacker 2025-11-10 13:10 ` Yixun Lan @ 2025-11-10 13:18 ` Yixun Lan 1 sibling, 0 replies; 5+ messages in thread From: Yixun Lan @ 2025-11-10 13:18 UTC (permalink / raw) To: michael.opdenacker Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yangyu Chen, devicetree, linux-riscv, spacemit, linux-kernel Hi Michael, On 10:11 Mon 10 Nov , michael.opdenacker@rootcommit.com wrote: > From: Michael Opdenacker <michael.opdenacker@rootcommit.com> > > Document the compatible string for the OrangePi R2S board [1], which > is marketed as using the Ky X1 SoC but is in fact identical to > the SpacemiT K1 SoC [2]. > > Link: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-R2S.html [1] > Link: https://www.spacemit.com/en/key-stone-k1 [2] .. > drop this blank line, it's not necessary > Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> -- Yixun Lan (dlan) ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] riscv: dts: spacemit: Add OrangePi R2S board device tree [not found] <20251110101110.948198-1-michael.opdenacker@rootcommit.com> 2025-11-10 10:11 ` [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board michael.opdenacker @ 2025-11-10 10:11 ` michael.opdenacker 2025-11-10 13:41 ` Yixun Lan 1 sibling, 1 reply; 5+ messages in thread From: michael.opdenacker @ 2025-11-10 10:11 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti Cc: Michael Opdenacker, devicetree, linux-riscv, spacemit, linux-kernel From: Michael Opdenacker <michael.opdenacker@rootcommit.com> Add initial device tree support for the OrangePi RV2 board [1], which is marketed as using the Ky X1 SoC but has been confirmed to be identical to the SpacemiT K1 [2]. The device tree is similar to the OrangePi RV2 device tree (k1-orangepi-rv2.dts). This minimal device tree enables: - booting into a serial console with UART. - the two RGMII ethernet ports supporting Gigabit Ethernet operation. They have an external Motorcomm YT8531C PHY attached, the PHY uses GPIO for reset pin control. Their description was reused from the DTS from the OrangePi RV2 board. - PDMA for the SpacemiT K1-based SoC. - the 8 GB eMMC chip for storage. It works fine with the same description as on the BananaPi F3 board DTS. Link: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-R2S.html [1] Link: https://www.spacemit.com/en/key-stone-k1 [2] Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> --- arch/riscv/boot/dts/spacemit/Makefile | 1 + .../boot/dts/spacemit/k1-orangepi-r2s.dts | 90 +++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts diff --git a/arch/riscv/boot/dts/spacemit/Makefile b/arch/riscv/boot/dts/spacemit/Makefile index 942ecb38bea0..96b3a13a3944 100644 --- a/arch/riscv/boot/dts/spacemit/Makefile +++ b/arch/riscv/boot/dts/spacemit/Makefile @@ -3,3 +3,4 @@ dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb +dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-r2s.dtb diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts new file mode 100644 index 000000000000..58098c4a2aab --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts @@ -0,0 +1,90 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2025 Michael Opdenacker <michael.opdenacker@rootcommit.com> + */ + +/dts-v1/; + +#include "k1.dtsi" +#include "k1-pinctrl.dtsi" + +/ { + model = "OrangePi R2S"; + compatible = "xunlong,orangepi-r2s", "spacemit,k1"; + + aliases { + serial0 = &uart0; + ethernet0 = ð0; + ethernet1 = ð1; + }; + + chosen { + stdout-path = "serial0"; + }; +}; + +&emmc { + bus-width = <8>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + non-removable; + no-sd; + no-sdio; + status = "okay"; +}; + +ð0 { + phy-handle = <&rgmii0>; + phy-mode = "rgmii-id"; + pinctrl-names = "default"; + pinctrl-0 = <&gmac0_cfg>; + rx-internal-delay-ps = <0>; + tx-internal-delay-ps = <0>; + status = "okay"; + + mdio-bus { + #address-cells = <0x1>; + #size-cells = <0x0>; + + reset-gpios = <&gpio K1_GPIO(110) GPIO_ACTIVE_LOW>; + reset-delay-us = <10000>; + reset-post-delay-us = <100000>; + + rgmii0: phy@1 { + reg = <0x1>; + }; + }; +}; + +ð1 { + phy-handle = <&rgmii1>; + phy-mode = "rgmii-id"; + pinctrl-names = "default"; + pinctrl-0 = <&gmac1_cfg>; + rx-internal-delay-ps = <0>; + tx-internal-delay-ps = <250>; + status = "okay"; + + mdio-bus { + #address-cells = <0x1>; + #size-cells = <0x0>; + + reset-gpios = <&gpio K1_GPIO(115) GPIO_ACTIVE_LOW>; + reset-delay-us = <10000>; + reset-post-delay-us = <100000>; + + rgmii1: phy@1 { + reg = <0x1>; + }; + }; +}; + +&pdma { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_2_cfg>; + status = "okay"; +}; ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] riscv: dts: spacemit: Add OrangePi R2S board device tree 2025-11-10 10:11 ` [PATCH v2 2/2] riscv: dts: spacemit: Add OrangePi R2S board device tree michael.opdenacker @ 2025-11-10 13:41 ` Yixun Lan 0 siblings, 0 replies; 5+ messages in thread From: Yixun Lan @ 2025-11-10 13:41 UTC (permalink / raw) To: michael.opdenacker Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, devicetree, linux-riscv, spacemit, linux-kernel Hi Michael, On 10:11 Mon 10 Nov , michael.opdenacker@rootcommit.com wrote: > From: Michael Opdenacker <michael.opdenacker@rootcommit.com> > > Add initial device tree support for the OrangePi RV2 board [1], which is > marketed as using the Ky X1 SoC but has been confirmed to be > identical to the SpacemiT K1 [2]. > .. > The device tree is similar to the OrangePi RV2 device tree > (k1-orangepi-rv2.dts). Drop above, this info is useless, will even bring more confusion > > This minimal device tree enables: > .. > - booting into a serial console with UART. Enable UART0, to boot into a serial console > > - the two RGMII ethernet ports > supporting Gigabit Ethernet operation. > > They have an external Motorcomm YT8531C PHY attached, > the PHY uses GPIO for reset pin control. .. > Their description > was reused from the DTS from the OrangePi RV2 board. As I commented in v1, please drop above which is not technical related, useless.. Two Gigabit ethernet ports with RGMII interface standard support are enabled, each port is connected to an external Motorcomm YT8531C PHY chip which uses the GPIO for reset control. (I'm no native english speaker, try to slightly rearrange above text) > > - PDMA for the SpacemiT K1-based SoC. > > - the 8 GB eMMC chip for storage. .. > It works fine with the same description as > on the BananaPi F3 board DTS. ditto, useless & drop > > Link: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-R2S.html [1] > Link: https://www.spacemit.com/en/key-stone-k1 [2] > ditto, no blank line > Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> > --- > arch/riscv/boot/dts/spacemit/Makefile | 1 + > .../boot/dts/spacemit/k1-orangepi-r2s.dts | 90 +++++++++++++++++++ > 2 files changed, 91 insertions(+) > create mode 100644 arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts > > diff --git a/arch/riscv/boot/dts/spacemit/Makefile b/arch/riscv/boot/dts/spacemit/Makefile > index 942ecb38bea0..96b3a13a3944 100644 > --- a/arch/riscv/boot/dts/spacemit/Makefile > +++ b/arch/riscv/boot/dts/spacemit/Makefile > @@ -3,3 +3,4 @@ dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb > dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb > dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb > dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb > +dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-r2s.dtb ditto, please sort > diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts > new file mode 100644 > index 000000000000..58098c4a2aab > --- /dev/null > +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts > @@ -0,0 +1,90 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright (C) 2025 Michael Opdenacker <michael.opdenacker@rootcommit.com> > + */ > + > +/dts-v1/; > + > +#include "k1.dtsi" > +#include "k1-pinctrl.dtsi" > + > +/ { > + model = "OrangePi R2S"; > + compatible = "xunlong,orangepi-r2s", "spacemit,k1"; > + > + aliases { > + serial0 = &uart0; > + ethernet0 = ð0; > + ethernet1 = ð1; > + }; > + > + chosen { > + stdout-path = "serial0"; > + }; > +}; > + > +&emmc { > + bus-width = <8>; > + mmc-hs400-1_8v; > + mmc-hs400-enhanced-strobe; > + non-removable; > + no-sd; > + no-sdio; > + status = "okay"; > +}; > + > +ð0 { > + phy-handle = <&rgmii0>; > + phy-mode = "rgmii-id"; > + pinctrl-names = "default"; > + pinctrl-0 = <&gmac0_cfg>; > + rx-internal-delay-ps = <0>; > + tx-internal-delay-ps = <0>; > + status = "okay"; > + > + mdio-bus { > + #address-cells = <0x1>; > + #size-cells = <0x0>; > + > + reset-gpios = <&gpio K1_GPIO(110) GPIO_ACTIVE_LOW>; > + reset-delay-us = <10000>; > + reset-post-delay-us = <100000>; > + > + rgmii0: phy@1 { > + reg = <0x1>; > + }; > + }; > +}; > + > +ð1 { > + phy-handle = <&rgmii1>; > + phy-mode = "rgmii-id"; > + pinctrl-names = "default"; > + pinctrl-0 = <&gmac1_cfg>; > + rx-internal-delay-ps = <0>; > + tx-internal-delay-ps = <250>; > + status = "okay"; > + > + mdio-bus { > + #address-cells = <0x1>; > + #size-cells = <0x0>; > + > + reset-gpios = <&gpio K1_GPIO(115) GPIO_ACTIVE_LOW>; > + reset-delay-us = <10000>; > + reset-post-delay-us = <100000>; > + > + rgmii1: phy@1 { > + reg = <0x1>; > + }; > + }; > +}; > + > +&pdma { > + status = "okay"; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_2_cfg>; > + status = "okay"; > +}; -- Yixun Lan (dlan) ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-10 13:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20251110101110.948198-1-michael.opdenacker@rootcommit.com>
2025-11-10 10:11 ` [PATCH v2 1/2] dt-bindings: riscv: spacemit: Add OrangePi R2S board michael.opdenacker
2025-11-10 13:10 ` Yixun Lan
2025-11-10 13:18 ` Yixun Lan
2025-11-10 10:11 ` [PATCH v2 2/2] riscv: dts: spacemit: Add OrangePi R2S board device tree michael.opdenacker
2025-11-10 13:41 ` Yixun Lan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).