On 18/09/2024 18:50, Jianfeng Liu wrote: > W3 is the carrier board for LM7 System on Module. > > W3 features: > - 1x 2.5GbE Realtek RTL8125 Ethernet > - 2x HDMI Type A out > - 1x HDMI Type A in > - 1x USB 3.1 Type C > - 2x USB 2.0 Type A > - 2x USB 3.0 Type A > - 1x PCIE 2.0 M.2 E Key (1 lane) > - 1x PCIE 3.0 PCIe (4 lanes) > - 1x TF scard slot > - 1x MIPI CSI > - 1x MIPI DSI > - 1x ES8316 audio jack > - 1x FAN connector > - 1x RTC > - 40-pin expansion header > > Add support for ArmSoM LM7 board. > > Signed-off-by: Jianfeng Liu <liujianfeng1994@xxxxxxxxx> > --- > > arch/arm64/boot/dts/rockchip/Makefile | 1 + > .../boot/dts/rockchip/rk3588-armsom-w3.dts | 408 ++++++++++++++++++ > 2 files changed, 409 insertions(+) > create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts > > diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile > index 09423070c99..b0ed12f41f0 100644 > --- a/arch/arm64/boot/dts/rockchip/Makefile > +++ b/arch/arm64/boot/dts/rockchip/Makefile > @@ -125,6 +125,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-display-vz.dtbo > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-io-expander.dtbo > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-armsom-sige7.dtb > +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-armsom-w3.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-coolpi-cm5-evb.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-coolpi-cm5-genbook.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-io.dtb > diff --git a/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts b/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts > new file mode 100644 > index 00000000000..321a44f081c > --- /dev/null > +++ b/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts > @@ -0,0 +1,408 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +/dts-v1/; > + > +#include <dt-bindings/gpio/gpio.h> > +#include <dt-bindings/leds/common.h> > +#include "rk3588-armsom-lm7.dtsi" > + > +/ { > + model = "ArmSoM W3"; > + compatible = "armsom,w3", "armsom,lm7", "rockchip,rk3588"; > + > + aliases { > + mmc1 = &sdmmc; > + mmc2 = &sdio; > + }; > + > + analog-sound { > + compatible = "audio-graph-card"; > + label = "rk3588-es8316"; > + > + widgets = "Microphone", "Mic Jack", > + "Headphone", "Headphones"; > + > + routing = "MIC2", "Mic Jack", > + "Headphones", "HPOL", > + "Headphones", "HPOR"; > + > + dais = <&i2s0_8ch_p0>; > + hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&hp_detect>; > + }; > + > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&led_rgb_b>; > + > + led_rgb_b { Please no underscores in node names. > + function = LED_FUNCTION_STATUS; > + color = <LED_COLOR_ID_BLUE>; > + gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + }; > + Best regards, Krzysztof