Skip to content

Commit

Permalink
Add board Alfred Smart Gateway GZ80X Linux support
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
  • Loading branch information
Patrick Yavitz authored and pyavitz committed Aug 13, 2024
1 parent c201068 commit aff22ad
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Patrick Yavitz <pyavitz@armbian.com>
* Copyright (c) 2024 Alfred Smart
*/

/dts-v1/;

#include "meson-axg-jethome-jethub-j1xx.dtsi"
#include <dt-bindings/leds/common.h>

/ {
compatible = "alfredsmart,gateway-gz80x", "amlogic,a113d", "amlogic,meson-axg";
model = "Alfred Smart Gateway (AM-GZ80X)";

aliases {
serial0 = &uart_AO;
serial1 = &uart_B;
serial2 = &uart_AO_B;
ethernet0 = &ethmac;
};

chosen {
stdout-path = "serial0:115200n8";
};

leds {
compatible = "gpio-leds";

led-blue {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
};

led-green {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc1";
};

led-red {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "usb-host";
};
};

/* 1024MB RAM */
memory@0 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x40000000>;
};
};

/delete-node/ &i2c1;

/* wifi module */
&sd_emmc_b {
non-removable;

rtl8189ftv: wifi@1 {
reg = <1>;
};
};

&uart_B {
status = "okay";
pinctrl-0 = <&uart_b_z_pins>;
pinctrl-names = "default";
};

/* UART Wireless module */
&uart_AO_B {
status = "okay";
pinctrl-0 = <&uart_ao_b_z_pins>;
pinctrl-names = "default";
reset-gpios = <&gpio GPIOZ_6 GPIO_ACTIVE_HIGH>;
};

&usb_pwr {
gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Patrick Yavitz <pyavitz@armbian.com>
* Copyright (c) 2024 Alfred Smart
*/

/dts-v1/;

#include "meson-axg-jethome-jethub-j1xx.dtsi"
#include <dt-bindings/leds/common.h>

/ {
compatible = "alfredsmart,gateway-gz80x", "amlogic,a113d", "amlogic,meson-axg";
model = "Alfred Smart Gateway (AM-GZ80X)";

aliases {
serial0 = &uart_AO;
serial1 = &uart_B;
serial2 = &uart_AO_B;
ethernet0 = &ethmac;
};

chosen {
stdout-path = "serial0:115200n8";
};

leds {
compatible = "gpio-leds";

led-blue {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
};

led-green {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc1";
};

led-red {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "usb-host";
};
};

/* 1024MB RAM */
memory@0 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x40000000>;
};
};

/delete-node/ &i2c1;

/* wifi module */
&sd_emmc_b {
non-removable;

rtl8189ftv: wifi@1 {
reg = <1>;
};
};

&uart_B {
status = "okay";
pinctrl-0 = <&uart_b_z_pins>;
pinctrl-names = "default";
};

/* UART Wireless module */
&uart_AO_B {
status = "okay";
pinctrl-0 = <&uart_ao_b_z_pins>;
pinctrl-names = "default";
reset-gpios = <&gpio GPIOZ_6 GPIO_ACTIVE_HIGH>;
};

&usb_pwr {
gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

0 comments on commit aff22ad

Please sign in to comment.