Skip to content

Commit

Permalink
arm64: dts: amlogic: Add gxl x96w
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Feb 16, 2023
1 parent 29c263d commit f91670f
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/amlogic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
83 changes: 83 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96w.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
* 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 = &ethmac;
};
};

/* 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 */
&ethmac {
status = "okay";
phy-mode = "rmii";
phy-handle = <&internal_phy>;
};

&internal_phy {
status = "okay";
pinctrl-0 = <&eth_link_led_pins>, <&eth_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";
};
};

0 comments on commit f91670f

Please sign in to comment.