1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq8064-smb208.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 model = "Fortinet FAP-421E";
9 compatible = "fortinet,fap-421e", "qcom,ipq8064";
12 device_type = "memory";
13 reg = <0x42000000 0xe000000>;
19 reg = <0x41200000 0x300000>;
23 reg = <0x44000000 0x600000>;
28 led-boot = &led_power_yellow;
29 led-failsafe = &led_power_yellow;
30 led-running = &led_power_yellow;
31 led-upgrade = &led_power_yellow;
32 label-mac-device = &gmac0;
36 bootargs-override = "console=ttyMSM0,9600n8";
40 compatible = "gpio-keys";
41 pinctrl-0 = <&button_pins>;
42 pinctrl-names = "default";
46 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 compatible = "gpio-leds";
53 pinctrl-0 = <&led_pins>;
54 pinctrl-names = "default";
58 gpios = <&qcom_pinmux 27 GPIO_ACTIVE_LOW>;
62 label = "yellow:eth1";
63 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
68 gpios = <&qcom_pinmux 29 GPIO_ACTIVE_LOW>;
72 label = "yellow:eth2";
73 gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
77 function = LED_FUNCTION_POWER;
78 color = <LED_COLOR_ID_AMBER>;
79 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
82 led_power_yellow: power-yellow {
83 function = LED_FUNCTION_POWER;
84 color = <LED_COLOR_ID_YELLOW>;
85 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
90 gpios = <&qcom_pinmux 30 GPIO_ACTIVE_LOW>;
95 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
101 button_pins: button_pins {
104 drive-strength = <2>;
112 drive-strength = <2>;
119 rgmii2_pins: rgmii2-pins {
122 drive-strength = <16>;
130 pins = "gpio18", "gpio19", "gpio21";
136 pins = "gpio18", "gpio19";
137 drive-strength = <10>;
142 drive-strength = <10>;
148 drive-strength = <12>;
152 uart0_pins: uart0_pins {
155 drive-strength = <12>;
157 pins = "gpio6", "gpio7";
161 usb_pwr_en_pins: usb_pwr_en_pins {
165 drive-strength = <12>;
173 qcom,mode = <GSBI_PROT_I2C_UART>;
179 pinctrl-0 = <&uart0_pins>;
180 pinctrl-names = "default";
186 qcom,mode = <GSBI_PROT_SPI>;
193 pinctrl-0 = <&spi_pins>;
194 pinctrl-names = "default";
195 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
198 compatible = "jedec,spi-nor";
199 #address-cells = <1>;
201 spi-max-frequency = <50000000>;
213 reg = <0x20000 0x20000>;
219 reg = <0x40000 0x40000>;
225 reg = <0x80000 0x80000>;
231 reg = <0x100000 0x10000>;
237 reg = <0x110000 0x10000>;
243 reg = <0x120000 0x80000>;
249 reg = <0x1a0000 0x80000>;
255 reg = <0x220000 0x80000>;
259 compatible = "fixed-layout";
260 #address-cells = <1>;
263 macaddr_appsbl_7ff80: mac-address@7ff80 {
264 compatible = "mac-base";
266 #nvmem-cell-cells = <1>;
273 reg = <0x2a0000 0x40000>;
278 reg = <0x2e0000 0x40000>;
284 reg = <0x320000 0x600000>;
289 reg = <0x920000 0x1400000>;
294 reg = <0x1d20000 0x260000>;
300 reg = <0x1f80000 0x80000>;
318 pinctrl-0 = <&usb_pwr_en_pins>;
319 pinctrl-names = "default";
326 reg = <0x00000000 0 0 0 0>;
327 #address-cells = <3>;
332 compatible = "pci168c,0040";
333 reg = <0x00010000 0 0 0 0>;
335 nvmem-cells = <&macaddr_appsbl_7ff80 8>;
336 nvmem-cell-names = "mac-address";
344 max-link-speed = <1>;
347 reg = <0x00000000 0 0 0 0>;
348 #address-cells = <3>;
353 compatible = "pci168c,0040";
354 reg = <0x00010000 0 0 0 0>;
356 nvmem-cells = <&macaddr_appsbl_7ff80 16>;
357 nvmem-cell-names = "mac-address";
369 #address-cells = <0x1>;
371 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
372 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
373 pinctrl-0 = <&mdio0_pins>;
374 pinctrl-names = "default";
376 phy1: ethernet-phy@1 {
380 phy2: ethernet-phy@2 {
390 pinctrl-0 = <&rgmii2_pins>;
391 pinctrl-names = "default";
392 nvmem-cells = <&macaddr_appsbl_7ff80 0>;
393 nvmem-cell-names = "mac-address";
406 nvmem-cells = <&macaddr_appsbl_7ff80 1>;
407 nvmem-cell-names = "mac-address";