1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq8064-smb208.dtsi"
4 #include <dt-bindings/input/input.h>
7 model = "Fortinet FAP-421E";
8 compatible = "fortinet,fap-421e", "qcom,ipq8064";
11 device_type = "memory";
12 reg = <0x42000000 0xe000000>;
18 reg = <0x41200000 0x300000>;
22 reg = <0x44000000 0x600000>;
27 led-boot = &led_power_yellow;
28 led-failsafe = &led_power_yellow;
29 led-running = &led_power_yellow;
30 led-upgrade = &led_power_yellow;
31 label-mac-device = &gmac0;
35 bootargs-override = "console=ttyMSM0,9600n8";
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
45 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
51 compatible = "gpio-leds";
52 pinctrl-0 = <&led_pins>;
53 pinctrl-names = "default";
57 gpios = <&qcom_pinmux 27 GPIO_ACTIVE_LOW>;
61 label = "yellow:eth1";
62 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
67 gpios = <&qcom_pinmux 29 GPIO_ACTIVE_LOW>;
71 label = "yellow:eth2";
72 gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
76 label = "amber:power";
77 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
80 led_power_yellow: power_yellow {
81 label = "yellow:power";
82 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
87 gpios = <&qcom_pinmux 30 GPIO_ACTIVE_LOW>;
92 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
98 button_pins: button_pins {
101 drive-strength = <2>;
109 drive-strength = <2>;
116 rgmii2_pins: rgmii2-pins {
119 drive-strength = <16>;
127 pins = "gpio18", "gpio19", "gpio21";
133 pins = "gpio18", "gpio19";
134 drive-strength = <10>;
139 drive-strength = <10>;
145 drive-strength = <12>;
149 uart0_pins: uart0_pins {
152 drive-strength = <12>;
154 pins = "gpio6", "gpio7";
158 usb_pwr_en_pins: usb_pwr_en_pins {
162 drive-strength = <12>;
172 qcom,mode = <GSBI_PROT_I2C_UART>;
178 pinctrl-0 = <&uart0_pins>;
179 pinctrl-names = "default";
185 qcom,mode = <GSBI_PROT_SPI>;
190 pinctrl-0 = <&spi_pins>;
191 pinctrl-names = "default";
192 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
195 compatible = "jedec,spi-nor";
196 #address-cells = <1>;
198 spi-max-frequency = <50000000>;
210 reg = <0x20000 0x20000>;
216 reg = <0x40000 0x40000>;
222 reg = <0x80000 0x80000>;
228 reg = <0x100000 0x10000>;
234 reg = <0x110000 0x10000>;
240 reg = <0x120000 0x80000>;
246 reg = <0x1a0000 0x80000>;
252 reg = <0x220000 0x80000>;
256 compatible = "fixed-layout";
257 #address-cells = <1>;
260 macaddr_appsbl_7ff80: mac-address@7ff80 {
261 compatible = "mac-base";
263 #nvmem-cell-cells = <1>;
270 reg = <0x2a0000 0x40000>;
275 reg = <0x2e0000 0x40000>;
281 reg = <0x320000 0x600000>;
286 reg = <0x920000 0x1400000>;
291 reg = <0x1d20000 0x260000>;
297 reg = <0x1f80000 0x80000>;
315 pinctrl-0 = <&usb_pwr_en_pins>;
316 pinctrl-names = "default";
323 reg = <0x00000000 0 0 0 0>;
324 #address-cells = <3>;
329 compatible = "pci168c,0040";
330 reg = <0x00010000 0 0 0 0>;
332 nvmem-cells = <&macaddr_appsbl_7ff80 8>;
333 nvmem-cell-names = "mac-address";
341 max-link-speed = <1>;
344 reg = <0x00000000 0 0 0 0>;
345 #address-cells = <3>;
350 compatible = "pci168c,0040";
351 reg = <0x00010000 0 0 0 0>;
353 nvmem-cells = <&macaddr_appsbl_7ff80 16>;
354 nvmem-cell-names = "mac-address";
366 #address-cells = <0x1>;
368 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
369 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
370 pinctrl-0 = <&mdio0_pins>;
371 pinctrl-names = "default";
373 phy1: ethernet-phy@1 {
377 phy2: ethernet-phy@2 {
387 pinctrl-0 = <&rgmii2_pins>;
388 pinctrl-names = "default";
389 nvmem-cells = <&macaddr_appsbl_7ff80 0>;
390 nvmem-cell-names = "mac-address";
403 nvmem-cells = <&macaddr_appsbl_7ff80 1>;
404 nvmem-cell-names = "mac-address";