forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ath79: add support for Ubiquiti NanoStation AC loco devices
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
- Loading branch information
1 parent
a129c27
commit 271e3a7
Showing
4 changed files
with
120 additions
and
0 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
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
111 changes: 111 additions & 0 deletions
111
target/linux/ath79/dts/ar9342_ubnt_nanostation-ac-loco.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,111 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/dts-v1/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
|
||
#include "ar9342.dtsi" | ||
|
||
/ { | ||
compatible = "ubnt,nanostation-ac-loco", "qca,ar9342"; | ||
model = "Ubiquiti Nanostation AC loco"; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
reset { | ||
label = "Reset button"; | ||
linux,code = <KEY_RESTART>; | ||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; | ||
debounce-interval = <60>; | ||
}; | ||
}; | ||
}; | ||
|
||
&ref { | ||
clock-frequency = <40000000>; | ||
}; | ||
|
||
&uart { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio { | ||
status = "okay"; | ||
}; | ||
|
||
&pcie { | ||
status = "okay"; | ||
}; | ||
|
||
&spi { | ||
status = "okay"; | ||
num-cs = <1>; | ||
|
||
flash@0 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <25000000>; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "u-boot"; | ||
reg = <0x000000 0x040000>; | ||
read-only; | ||
}; | ||
|
||
partition@40000 { | ||
label = "u-boot-env"; | ||
reg = <0x040000 0x010000>; | ||
read-only; | ||
}; | ||
|
||
partition@50000 { | ||
label = "firmware"; | ||
reg = <0x050000 0xf60000>; | ||
}; | ||
|
||
partition@fb0000 { | ||
label = "cfg"; | ||
reg = <0xfb0000 0x040000>; | ||
read-only; | ||
}; | ||
|
||
eeprom: partition@ff0000 { | ||
label = "EEPROM"; | ||
reg = <0xff0000 0x010000>; | ||
read-only; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&mdio0 { | ||
status = "okay"; | ||
|
||
phy-mask = <4>; | ||
phy4: ethernet-phy@4 { | ||
phy-mode = "rgmii"; | ||
reg = <4>; | ||
}; | ||
}; | ||
|
||
ð0 { | ||
status = "okay"; | ||
|
||
/* default for ar934x, except for 1000M and 10M */ | ||
pll-data = <0x06000000 0x00000101 0x00001313>; | ||
|
||
mtd-mac-address = <&eeprom 0x0>; | ||
|
||
phy-mode = "rgmii"; | ||
phy-handle = <&phy4>; | ||
}; |
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