forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add board Alfred Smart Gateway GZ80X Linux support
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
- Loading branch information
Showing
2 changed files
with
174 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
patch/kernel/archive/meson64-6.10/dt/meson-axg-alfredsmart-gateway-gz80x.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = ðmac; | ||
}; | ||
|
||
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; | ||
}; |
87 changes: 87 additions & 0 deletions
87
patch/kernel/archive/meson64-6.6/dt/meson-axg-alfredsmart-gateway-gz80x.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = ðmac; | ||
}; | ||
|
||
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; | ||
}; |