aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorXuefu Lin <xuefulin@gmail.com>2016-09-30 19:41:12 +0800
committerJohn Crispin <john@phrozen.org>2016-10-04 11:50:46 +0200
commitdce5c4f5c8629af13bdb7cb5803a349cb8305d70 (patch)
tree91a59fce0b0af0641a2c1c9f3c11e60f3379c655 /target/linux/ramips/dts
parenta51a11931bbca510d035432f6b496b3678db05b1 (diff)
downloadupstream-dce5c4f5c8629af13bdb7cb5803a349cb8305d70.tar.gz
upstream-dce5c4f5c8629af13bdb7cb5803a349cb8305d70.tar.bz2
upstream-dce5c4f5c8629af13bdb7cb5803a349cb8305d70.zip
ramips: Add support for Phicomm K2 PSG1218
- CPU: MT7620A 580MHz - Flash: 8MB - RAM: 64MB - External PA+LNA on both WLAN2.4 and WLAN5 - 4x LAN ethernet and 1x WAN ethernet Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/PSG1218.dts118
1 files changed, 118 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/PSG1218.dts b/target/linux/ramips/dts/PSG1218.dts
new file mode 100644
index 0000000000..e477ee5038
--- /dev/null
+++ b/target/linux/ramips/dts/PSG1218.dts
@@ -0,0 +1,118 @@
+/dts-v1/;
+
+#include "mt7620a.dtsi"
+
+/ {
+ compatible = "PSG1218", "ralink,mt7620a-soc";
+ model = "Phicomm PSG1218";
+
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ blue {
+ label = "psg1218:blue:status";
+ gpios = <&gpio0 10 0>;
+ };
+
+ yellow {
+ label = "psg1218:yellow:status";
+ gpios = <&gpio0 11 0>;
+ };
+
+ red {
+ label = "psg1218:red:status";
+ gpios = <&gpio0 8 1>;
+ };
+ };
+
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 1 1>;
+ linux,code = <0x198>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&spi0 {
+ status = "okay";
+
+ m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ linux,modalias = "m25p80", "en25q64";
+ spi-max-frequency = <10000000>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@20000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@30000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@40000 {
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
+ };
+ };
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
+ ralink,function = "gpio";
+ };
+
+ pa {
+ ralink,group = "pa";
+ ralink,function = "pa";
+ };
+ };
+};
+
+&ethernet {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ephy_pins>;
+ mtd-mac-address = <&factory 0x28>;
+ mediatek,portmap = "llllw";
+};
+
+&pcie {
+ status = "okay";
+
+ pcie-bridge {
+ mt76@0,0 {
+ reg = <0x0000 0 0 0 0>;
+ device_type = "pci";
+ mediatek,mtd-eeprom = <&factory 0x8000>;
+ mediatek,2ghz = <0>;
+ };
+ };
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};