diff mbox series

[u-boot,v2019.04-aspeed-openbmc] ARM: dts: aspeed: add vegman machine dts

Message ID 20211124122214.19669-1-a.kartashev@yadro.com
State New
Headers show
Series [u-boot,v2019.04-aspeed-openbmc] ARM: dts: aspeed: add vegman machine dts | expand

Commit Message

Andrei Kartashev Nov. 24, 2021, 12:22 p.m. UTC
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
---
 arch/arm/dts/Makefile           |   1 +
 arch/arm/dts/ast2500-vegman.dts | 167 ++++++++++++++++++++++++++++++++
 2 files changed, 168 insertions(+)
 create mode 100644 arch/arm/dts/ast2500-vegman.dts

Comments

Jonathan Neuschäfer Nov. 24, 2021, 6:23 p.m. UTC | #1
Hello,

On Wed, Nov 24, 2021 at 03:22:14PM +0300, Andrei Kartashev wrote:
> Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
> ---
...
> +++ b/arch/arm/dts/ast2500-vegman.dts
> @@ -0,0 +1,167 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +// Copyright (C) 2021 YADRO
> +/dts-v1/;
> +
> +#include "ast2500-u-boot.dtsi"
> +
> +/ {
> +	model = "AST2500 VEGMAN";
> +	compatible = "aspeed,ast2500-vegman", "aspeed,ast2500";

The board-specific compatible string "aspeed,ast2500-vegman" seems
wrong, if the board is made by YADRO rather than ASPEED.


Best regards,
Jonathan Neuschäfer
Andrei Kartashev Nov. 25, 2021, 10:23 a.m. UTC | #2
On Wed, 2021-11-24 at 19:23 +0100, Jonathan Neuschäfer wrote:
> Hello,
> 
> On Wed, Nov 24, 2021 at 03:22:14PM +0300, Andrei Kartashev wrote:
> > Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
> > ---
> ...
> > +++ b/arch/arm/dts/ast2500-vegman.dts
> > @@ -0,0 +1,167 @@
> > +// SPDX-License-Identifier: GPL-2.0+
> > +// Copyright (C) 2021 YADRO
> > +/dts-v1/;
> > +
> > +#include "ast2500-u-boot.dtsi"
> > +
> > +/ {
> > +       model = "AST2500 VEGMAN";
> > +       compatible = "aspeed,ast2500-vegman", "aspeed,ast2500";
> 
> The board-specific compatible string "aspeed,ast2500-vegman" seems
> wrong, if the board is made by YADRO rather than ASPEED.
> 
> 

Right, my fault. Fixed, thanks.

> Best regards,
> Jonathan Neuschäfer
diff mbox series

Patch

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index df844065cd..5ce7ae2415 100755
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -677,6 +677,7 @@  dtb-$(CONFIG_ARCH_BCM6858) += \
 dtb-$(CONFIG_ARCH_ASPEED) += \
 	ast2400-evb.dtb \
 	ast2500-evb.dtb \
+	ast2500-vegman.dtb \
 	ast2600-evb.dtb \
 	ast2600-ncsi.dtb \
 	ast2600a0-evb.dtb \
diff --git a/arch/arm/dts/ast2500-vegman.dts b/arch/arm/dts/ast2500-vegman.dts
new file mode 100644
index 0000000000..9bbb7e0708
--- /dev/null
+++ b/arch/arm/dts/ast2500-vegman.dts
@@ -0,0 +1,167 @@ 
+// SPDX-License-Identifier: GPL-2.0+
+// Copyright (C) 2021 YADRO
+/dts-v1/;
+
+#include "ast2500-u-boot.dtsi"
+
+/ {
+	model = "AST2500 VEGMAN";
+	compatible = "aspeed,ast2500-vegman", "aspeed,ast2500";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x20000000>;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+	};
+
+	aliases {
+		spi0 = &fmc;
+		spi1 = &spi1;
+		ethernet0 = &mac1;
+		ethernet1 = &mac0;
+	};
+
+	leds {
+		u-boot,dm-pre-reloc;
+		compatible = "gpio-leds";
+
+		identify {
+			label = "platform:blue:indicator";
+			default-state = "on";
+			gpios = <&gpio 150 1>;
+		};
+
+		status_amber {
+			label = "platform:red:status";
+			default-state = "off";
+			gpios = <&gpio 149 1>;
+		};
+
+		status_green {
+			label = "platform:green:status";
+			default-state = "off";
+			gpios = <&gpio 148 1>;
+		};
+
+		power_fault {
+			label = "platform:red:power";
+			default-state = "off";
+			gpios = <&gpio 212 1>;
+		};
+
+		power_ok {
+			label = "platform:green:power";
+			default-state = "off";
+			gpios = <&gpio 213 1>;
+		};
+	};
+};
+
+&gpio {
+	status = "okay";
+};
+
+&uart5 {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};
+
+&sdrammc {
+	clock-frequency = <400000000>;
+};
+
+&wdt1 {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};
+
+&wdt2 {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};
+
+&wdt3 {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};
+
+&mac0 {
+	status = "okay";
+	phy-mode = "rgmii";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_mac1link_default &pinctrl_mdio1_default>;
+};
+
+&mac1 {
+	status = "okay";
+	phy-mode = "rgmii";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
+};
+
+&fmc {
+	status = "okay";
+	flash@0 {
+		compatible = "spi-flash", "sst,w25q256";
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+	};
+
+	flash@1 {
+		compatible = "spi-flash", "sst,w25q256";
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+	};
+};
+
+&spi1 {
+	status = "okay";
+	flash@0 {
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_spi1_default>;
+		compatible = "spi-flash", "sst,w25q256";
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+	};
+	flash@1 {
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_spi1_default &pinctrl_spi1cs1_default>;
+		compatible = "spi-flash", "sst,w25q256";
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+	};
+};
+
+&sdhci_slot0 {
+	status = "okay";
+	bus-width = <4>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sd1_default>;
+};
+
+&sdhci_slot1 {
+	status = "okay";
+	bus-width = <4>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sd2_default>;
+};
+
+&i2c3 {
+	status = "okay";
+};
+
+&i2c7 {
+	status = "okay";
+};