Re: [PATCH v2 2/2] ARM: dts: aspeed: add device tree for YADRO VEGMAN BMC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On Nov 19, 2021, at 6:00 AM, Andrei Kartashev <a.kartashev@xxxxxxxxx> wrote:
> 
> YADRO VEGMAN is x86 based servers family with ASPEED AST2500-based BMC.
> Currently there are three models:
> * VEGMAN N110
> * VEGMAN S220/320
> * VEGMAN R120/220
> 
> The dts files provides configuration for BMC system.
> 
> Signed-off-by: Andrei Kartashev <a.kartashev@xxxxxxxxx>
> ---
> arch/arm/boot/dts/Makefile                   |   5 +-
> arch/arm/boot/dts/aspeed-bmc-vegman-n110.dts | 149 +++++++++
> arch/arm/boot/dts/aspeed-bmc-vegman-rx20.dts | 255 +++++++++++++++
> arch/arm/boot/dts/aspeed-bmc-vegman-sx20.dts | 154 +++++++++
> arch/arm/boot/dts/aspeed-bmc-vegman.dtsi     | 311 +++++++++++++++++++
> 5 files changed, 873 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/boot/dts/aspeed-bmc-vegman-n110.dts
> create mode 100644 arch/arm/boot/dts/aspeed-bmc-vegman-rx20.dts
> create mode 100644 arch/arm/boot/dts/aspeed-bmc-vegman-sx20.dts
> create mode 100644 arch/arm/boot/dts/aspeed-bmc-vegman.dtsi
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 0de64f237cd8..78b71e02624c 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -1519,4 +1519,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
> 	aspeed-bmc-quanta-q71l.dtb \
> 	aspeed-bmc-supermicro-x11spi.dtb \
> 	aspeed-bmc-inventec-transformers.dtb \
> -	aspeed-bmc-tyan-s7106.dtb
> +	aspeed-bmc-tyan-s7106.dtb \
> +	aspeed-bmc-vegman-n110.dtb \
> +	aspeed-bmc-vegman-rx20.dtb \
> +	aspeed-bmc-vegman-sx20.dtb
> diff --git a/arch/arm/boot/dts/aspeed-bmc-vegman-n110.dts b/arch/arm/boot/dts/aspeed-bmc-vegman-n110.dts
> new file mode 100644
> index 000000000000..24319267d550
> --- /dev/null
> +++ b/arch/arm/boot/dts/aspeed-bmc-vegman-n110.dts
> @@ -0,0 +1,149 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +// Copyright (C) 2021 YADRO
> +/dts-v1/;
> +
> +#include "aspeed-bmc-vegman.dtsi"
> +
> +/ {
> +	model = "YADRO VEGMAN N110 BMC";
> +	compatible = "yadro,vegman-n110-bmc", "aspeed,ast2500";
> +};
> +
> +&gpio {
> +	status = "okay";
> +	gpio-line-names =
> +	/*A0-A7*/	"CHASSIS_INTRUSION","CASE_OPEN_FAULT_RST","","","SPEAKER_BMC","FM_FORCE_BMC_UPDATE","","",
> +	/*B0-B7*/	"","","","","","","","",
> +	/*C0-C7*/	"","","","","","","","",
> +	/*D0-D7*/	"","","","","","","","",
> +	/*E0-E7*/	"RESET_BUTTON","RESET_OUT","POWER_BUTTON","POWER_OUT","","","","",
> +	/*F0-F7*/	"NMI_OUT","PCIE_NIC_ALERT","","","SKT0_FAULT_LED","","RST_RGMII_PHYRST_DNP","",
> +	/*G0-G7*/	"CPU_ERR2","CPU_CATERR","PCH_BMC_THERMTRIP","","IRQ_NMI_EVENT","","","",
> +	/*H0-H7*/	"PWRGD_P3V3_RISER1","PWRGD_P3V3_RISER2","PWRGD_P3V3_RISER3","","MIO_BIOS_SEL","_SPI_FLASH_HOLD","_SPI_FLASH_WP","FM_240VA_STATUS",
> +	/*I0-I7*/	"","","","","","","","",
> +	/*J0-J7*/	"","","","","","","","",
> +	/*K0-K7*/	"","","","","","","","",
> +	/*L0-L7*/	"","","","","","","","",
> +	/*M0-M7*/	"","","","","","","","",
> +	/*N0-N7*/	"","","","","","","","",
> +	/*O0-O7*/	"","","","","","","","_SPI2_BMC_CS_SEL",
> +	/*P0-P7*/	"","","","","","","","",
> +	/*Q0-Q7*/	"","","","","","","","",
> +	/*R0-R7*/	"_SPI_RMM4_LITE_CS","","","","","","","",
> +	/*S0-S7*/	"_SPI2_BMC_CS1","","","IRQ_SML0_ALERT_MUX","FP_LED_STATUS_GREEN","FP_LED_STATUS_AMBER","FP_ID_LED","",
> +	/*T0-T7*/	"","","","","","","","",
> +	/*U0-U7*/	"","","","","","","","",
> +	/*V0-V7*/	"","","","","","","","",
> +	/*W0-W7*/	"","","","","","","","",
> +	/*X0-X7*/	"","","","","","","","",
> +	/*Y0-Y7*/	"SIO_S3","SIO_S5","","SIO_ONCONTROL","","","","",
> +	/*Z0-Z7*/	"FM_BMC_PWR_BTN","SIO_POWER_GOOD","FM_BMC_PWRBTN_OUT","FM_BMC_PCH_SCI_LPC","","","","",
> +	/*AA0-AA7*/	"","IRQ_SML1_PMBUS_ALERT","FM_PVCCIN_CPU0_PWR_IN_ALERT","FM_PVCCIN_CPU1_PWR_IN_ALERT","BMC_SYS_PWR_FAULT","BMC_SYS_PWR_OK","SMI","POST_COMPLETE",
> +	/*AB0-AB7*/	"FM_CPU_BMCINIT","NMI_BUTTON","ID_BUTTON","PS_PWROK","","","","",
> +	/*AC0-AC7*/	"","","","","","","","";
> +};

Can we utilize https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md to get some consistent naming across the GPIO’s on OpenBMC machines?





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux