-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: add support for Huasifei WHF283
- Loading branch information
1 parent
817dfb5
commit f2815ef
Showing
4 changed files
with
152 additions
and
5 deletions.
There are no files selected for viewing
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,136 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
/* | ||
* Copyright(c) 2017 Kristian Evensen <[email protected]>. | ||
* Copyright(c) 2017 Piotr Dymacz <[email protected]>. | ||
* All rights reserved. | ||
*/ | ||
|
||
#include "mt7628an.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
|
||
/ { | ||
model = "Huasifei SHF283"; | ||
compatible = "huasifei,shf283", "mediatek,mt7628an-soc"; | ||
|
||
aliases { | ||
led-boot = &led_power; | ||
led-failsafe = &led_power; | ||
led-running = &led_power; | ||
led-upgrade = &led_power; | ||
}; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200"; | ||
}; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
gpios = <&gpio 38 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_RESTART>; | ||
}; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_power: power { | ||
label = "green:power"; | ||
gpios = <&gpio 37 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wlan { | ||
label = "green:wlan"; | ||
gpios = <&gpio 35 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wan { | ||
label = "green:wan"; | ||
gpios = <&gpio 43 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
sys { | ||
label = "green:sys"; | ||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
}; | ||
|
||
gpio-export { | ||
compatible = "gpio-export"; | ||
#size-cells = <0>; | ||
|
||
modem_reset { | ||
gpio-export,name = "modem_reset"; | ||
gpio-export,output = <0>; | ||
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pcie { | ||
status = "okay"; | ||
}; | ||
|
||
ðernet { | ||
mtd-mac-address = <&factory 0x28>; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
}; | ||
|
||
&state_default { | ||
gpio { | ||
groups = "i2c"; | ||
function = "gpio"; | ||
}; | ||
}; | ||
|
||
&uart1 { | ||
status = "okay"; | ||
}; | ||
|
||
&spi0 { | ||
status = "okay"; | ||
|
||
flash@0 { | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <12000000>; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "bootloader"; | ||
reg = <0x0 0x30000>; | ||
read-only; | ||
}; | ||
|
||
partition@30000 { | ||
label = "config"; | ||
reg = <0x30000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
factory: partition@40000 { | ||
label = "factory"; | ||
reg = <0x40000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
partition@50000 { | ||
compatible = "denx,uimage"; | ||
label = "firmware"; | ||
reg = <0x50000 0xfb0000>; | ||
}; | ||
}; | ||
}; | ||
}; |
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
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
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