aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/ar9344_fortinet_ap-dual.dtsi67
-rw-r--r--target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts75
-rw-r--r--target/linux/ath79/dts/ar934x_fortinet_loader.dtsi72
3 files changed, 214 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar9344_fortinet_ap-dual.dtsi b/target/linux/ath79/dts/ar9344_fortinet_ap-dual.dtsi
new file mode 100644
index 0000000000..d5275c496e
--- /dev/null
+++ b/target/linux/ath79/dts/ar9344_fortinet_ap-dual.dtsi
@@ -0,0 +1,67 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9344.dtsi"
+#include "ar934x_fortinet_loader.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,9600";
+ };
+
+ keys {
+ compatible = "gpio-keys";
+
+ reset {
+ label = "reset";
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+ debounce-interval = <60>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+};
+
+&ref {
+ clock-frequency = <25000000>;
+};
+
+&mdio0 {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ eee-broken-100tx;
+ eee-broken-1000t;
+ };
+};
+
+&eth0 {
+ status = "okay";
+
+ phy-handle = <&phy0>;
+ phy-mode = "rgmii-txid";
+
+ pll-data = <0x02000000 0x00000101 0x00001313>;
+};
+
+&pcie {
+ status = "okay";
+
+ ath9k: wifi@0,0,0 {
+ compatible = "pci168c,0030";
+ reg = <0x0 0 0 0 0>;
+ };
+};
+
+&wmac {
+ status = "okay";
+};
diff --git a/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts b/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts
new file mode 100644
index 0000000000..b78a588f5c
--- /dev/null
+++ b/target/linux/ath79/dts/ar9344_fortinet_fap-221-b.dts
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9344_fortinet_ap-dual.dtsi"
+
+/ {
+ compatible = "fortinet,fap-221-b", "qca,ar9344";
+ model = "Fortinet FAP-221-B";
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power_green {
+ label = "green:power";
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
+ power_amber {
+ label = "amber:power";
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ };
+
+ eth_green {
+ label = "green:eth";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+ };
+
+ eth_amber {
+ label = "amber:eth";
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi5g {
+ label = "green:wifi5g";
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
+ };
+
+ wifi2g {
+ label = "amber:wifi2g";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy1tpt";
+ };
+ };
+
+ virtual_flash {
+ devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
+ };
+};
+
+&ath9k {
+ ieee80211-freq-limit = <2402000 2482000>;
+
+ nvmem-cells = <&calibration_pcie>;
+ nvmem-cell-names = "calibration";
+};
+
+&wmac {
+ ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
+
+ nvmem-cells = <&calibration_wmac>;
+ nvmem-cell-names = "calibration";
+};
+
+&art {
+ compatible = "nvmem-cells";
+
+ calibration_wmac: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ calibration_pcie: calibration@5000 {
+ reg = <0x5000 0x440>;
+ };
+};
diff --git a/target/linux/ath79/dts/ar934x_fortinet_loader.dtsi b/target/linux/ath79/dts/ar934x_fortinet_loader.dtsi
new file mode 100644
index 0000000000..d7cbf2e737
--- /dev/null
+++ b/target/linux/ath79/dts/ar934x_fortinet_loader.dtsi
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include <dt-bindings/mtd/partitions/uimage.h>
+
+/ {
+ virtual_flash {
+ compatible = "mtd-concat";
+
+ devices = <&fwconcat0 &fwconcat1>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ compatible = "openwrt,uimage", "denx,uimage";
+ openwrt,ih-magic = <0x73714f4b>;
+ label = "firmware";
+ reg = <0x0 0x0>;
+ };
+ };
+ };
+};
+
+&spi {
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <40000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ read-only;
+ };
+
+ fwconcat0: partition@40000 {
+ label = "fwconcat0";
+ reg = <0x040000 0x900000>;
+ };
+
+ partition@940000 {
+ label = "loader";
+ reg = <0x940000 0x010000>;
+ };
+
+ fwconcat1: partition@950000 {
+ label = "fwconcat1";
+ reg = <0x950000 0x1a0000>;
+ };
+
+ fwconcat2: partition@af0000 {
+ label = "reserved";
+ reg = <0xaf0000 0x500000>;
+ };
+
+ art: partition@ff0000 {
+ label = "art";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
+ };
+ };
+};