mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
175c24ea94
1. add bolt_bl201 LED aliases 2. fix bolt_bl201 restart key gpio 3. make bolt_bl201 bootloader read-only 4. add bolt_bl201 partition settings 5. fix bolt_bl201 wrong gpio group 6. update bolt_bl201 LED and network switch settings (cherry picked from commit 35751576f31aaf493a77436b879131f03fc15c82)
200 lines
3.0 KiB
Plaintext
200 lines
3.0 KiB
Plaintext
#include "mt7620a.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
compatible = "bolt,bl201", "ralink,mt7620a-soc";
|
|
model = "Bolt BL201";
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
led-boot = &power_red;
|
|
led-failsafe = &power_red;
|
|
led-running = &power_blue;
|
|
led-upgrade = &power_red;
|
|
label-mac-device = ðernet;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
wan {
|
|
label = "blue:wan";
|
|
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
power_red: power_red {
|
|
label = "red:power";
|
|
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
power_blue: power_blue {
|
|
label = "blue:power";
|
|
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lte_s1_blue {
|
|
label = "blue:lte_s1";
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lte_s2_blue {
|
|
label = "blue:lte_s2";
|
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lte_s3_blue {
|
|
label = "blue:lte_s3";
|
|
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lte_s4_blue {
|
|
label = "blue:lte_s4";
|
|
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wps_blue {
|
|
label = "blue:wps";
|
|
gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lte_s1s2_red {
|
|
label = "red:lte_s1s2";
|
|
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lte_s3s4_red {
|
|
label = "red:lte_s3s4";
|
|
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wlan_blue {
|
|
label = "blue:wlan";
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <10000000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x0 0x30000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@30000 {
|
|
label = "u-boot-env";
|
|
reg = <0x30000 0x10000>;
|
|
};
|
|
|
|
factory: partition@40000 {
|
|
label = "factory";
|
|
reg = <0x40000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@50000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x50000 0xf80000>;
|
|
};
|
|
|
|
partition@fd0000 {
|
|
label = "crash";
|
|
reg = <0xfd0000 0x10000>;
|
|
};
|
|
|
|
partition@fe0000 {
|
|
label = "reserved";
|
|
reg = <0xfe0000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@ff0000 {
|
|
label = "Bdata";
|
|
reg = <0xff0000 0x10000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
ðernet {
|
|
pinctrl-names = "default";
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
mediatek,portmap = "llllw";
|
|
};
|
|
|
|
&wmac {
|
|
ralink,mtd-eeprom = <&factory 0x0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pa_pins>;
|
|
};
|
|
|
|
&pcie {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
mt76@0,0 {
|
|
reg = <0x0000 0 0 0 0>;
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
|
};
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
|
|
function = "gpio";
|
|
};
|
|
};
|