From f91670fb790be80c6744cb9e4a982dce769ce9d3 Mon Sep 17 00:00:00 2001 From: ophub Date: Thu, 16 Feb 2023 00:43:43 +0000 Subject: [PATCH] arm64: dts: amlogic: Add gxl x96w --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-gxl-s905w-x96w.dts | 83 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96w.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 60096f465..4bcc28f22 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -69,6 +69,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-jethome-jethub-j80.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-x96-mini.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-x96w.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-b860h.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96w.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96w.dts new file mode 100644 index 000000000..3ab4f66d8 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96w.dts @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 Martin Blumenstingl . + * Based on meson-gxl-s905d-p231.dts: + * - Copyright (c) 2016 Endless Computers, Inc. + * - Copyright (c) unifreq + */ + +/dts-v1/; + +#include "meson-gxl-s905w-p281.dts" + +/ { + compatible = "amlogic,p281", "amlogic,s905w", "amlogic,meson-gxl"; + model = "X96W"; + + aliases { + serial0 = &uart_AO; /* Console */ + serial1 = &uart_A; /* Bluetooth */ + ethernet0 = ðmac; + }; +}; + +/* SDIO wifi: AP6255 */ +&sd_emmc_a { + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; +}; + +/* SD card */ +&sd_emmc_b { + status = "okay"; + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <50000000>; +}; + +/* eMMC */ +&sd_emmc_c { + status = "okay"; + max-frequency = <50000000>; +}; + +/* Console UART */ +&uart_AO { + status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; +}; + +/* S905W only has access to its internal PHY */ +ðmac { + status = "okay"; + phy-mode = "rmii"; + phy-handle = <&internal_phy>; +}; + +&internal_phy { + status = "okay"; + pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>; + pinctrl-names = "default"; + max-speed = <100>; +}; + +/* This is connected to the Bluetooth module: AP6255 */ +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; + + bluetooth { + compatible = "brcm,bcm4345c5"; + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + max-speed = <2000000>; + clocks = <&wifi32k>; + clock-names = "lpo"; + }; +};