* [PATCH v2 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles [not found] <20240410052518.2945789-1-michael.opdenacker@bootlin.com> @ 2024-04-10 5:25 ` michael.opdenacker 2024-04-10 6:12 ` Krzysztof Kozlowski 2024-04-10 5:25 ` [PATCH v2 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support michael.opdenacker 1 sibling, 1 reply; 3+ messages in thread From: michael.opdenacker @ 2024-04-10 5:25 UTC (permalink / raw) To: Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou, Chen Wang, Inochi Amaoto, Chao Wei Cc: Michael Opdenacker, linux-riscv, devicetree, linux-kernel From: Michael Opdenacker <michael.opdenacker@bootlin.com> Document the compatible strings for the Milk-V Duo S board[1] which uses the SOPHGO SG2000 SoC, compatible with the SOPHGO CV1800B SoC[2]. Link: https://milkv.io/duo-s [1] Link: https://en.sophgo.com/product/introduce/cv180xB.html [2] Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> --- Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/sophgo.yaml b/Documentation/devicetree/bindings/riscv/sophgo.yaml index 9bc813dad098..2bf58bd6f3a0 100644 --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml @@ -22,6 +22,10 @@ properties: - enum: - milkv,duo - const: sophgo,cv1800b + - items: + - enum: + - milkv,duos + - const: sophgo,cv1800b - items: - enum: - sophgo,huashan-pi -- 2.34.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles 2024-04-10 5:25 ` [PATCH v2 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles michael.opdenacker @ 2024-04-10 6:12 ` Krzysztof Kozlowski 0 siblings, 0 replies; 3+ messages in thread From: Krzysztof Kozlowski @ 2024-04-10 6:12 UTC (permalink / raw) To: michael.opdenacker, Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou, Chen Wang, Inochi Amaoto, Chao Wei Cc: linux-riscv, devicetree, linux-kernel On 10/04/2024 07:25, michael.opdenacker@bootlin.com wrote: > From: Michael Opdenacker <michael.opdenacker@bootlin.com> > > Document the compatible strings for the Milk-V Duo S board[1] which uses > the SOPHGO SG2000 SoC, compatible with the SOPHGO CV1800B SoC[2]. > > Link: https://milkv.io/duo-s [1] > Link: https://en.sophgo.com/product/introduce/cv180xB.html [2] > > Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> > --- > Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/sophgo.yaml b/Documentation/devicetree/bindings/riscv/sophgo.yaml > index 9bc813dad098..2bf58bd6f3a0 100644 > --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml > +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml > @@ -22,6 +22,10 @@ properties: > - enum: > - milkv,duo > - const: sophgo,cv1800b > + - items: > + - enum: > + - milkv,duos This should be just part of previous enum. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support [not found] <20240410052518.2945789-1-michael.opdenacker@bootlin.com> 2024-04-10 5:25 ` [PATCH v2 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles michael.opdenacker @ 2024-04-10 5:25 ` michael.opdenacker 1 sibling, 0 replies; 3+ messages in thread From: michael.opdenacker @ 2024-04-10 5:25 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Chen Wang, Inochi Amaoto Cc: Michael Opdenacker, devicetree, linux-riscv, linux-kernel From: Michael Opdenacker <michael.opdenacker@bootlin.com> This adds initial support for the Milk-V Duo S board (https://milkv.io/duo-s), enabling the serial port and SD card support, allowing to boot Linux to the command line. Link: https://lore.kernel.org/linux-riscv/171266958507.1032617.9460749136730849811.robh@kernel.org/T/#t Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 57ad82a61ea6..e008acb5240f 100644 --- a/arch/riscv/boot/dts/sophgo/Makefile +++ b/arch/riscv/boot/dts/sophgo/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duos.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts new file mode 100644 index 000000000000..679d2854938a --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Michael Opdenacker <michael.opdenacker@bootlin.com> + */ + +/dts-v1/; + +#include "cv1800b.dtsi" + +/ { + model = "Milk-V Duo S"; + compatible = "milkv,duos", "sophgo,cv1800b"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; + disable-wp; +}; + +&uart0 { + status = "okay"; +}; -- 2.34.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-10 6:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240410052518.2945789-1-michael.opdenacker@bootlin.com>
2024-04-10 5:25 ` [PATCH v2 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles michael.opdenacker
2024-04-10 6:12 ` Krzysztof Kozlowski
2024-04-10 5:25 ` [PATCH v2 2/2] riscv: dts: sophgo: add initial Milk-V Duo S board support michael.opdenacker
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox