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 label = "yellow:power";
84 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
89 gpios = <&qcom_pinmux 30 GPIO_ACTIVE_LOW>;
94 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
100 button_pins: button_pins {
103 drive-strength = <2>;
111 drive-strength = <2>;
118 rgmii2_pins: rgmii2-pins {
121 drive-strength = <16>;
129 pins = "gpio18", "gpio19", "gpio21";
135 pins = "gpio18", "gpio19";
136 drive-strength = <10>;
141 drive-strength = <10>;
147 drive-strength = <12>;
151 uart0_pins: uart0_pins {
154 drive-strength = <12>;
156 pins = "gpio6", "gpio7";
160 usb_pwr_en_pins: usb_pwr_en_pins {
164 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>;
192 pinctrl-0 = <&spi_pins>;
193 pinctrl-names = "default";
194 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
197 compatible = "jedec,spi-nor";
198 #address-cells = <1>;
200 spi-max-frequency = <50000000>;
212 reg = <0x20000 0x20000>;
218 reg = <0x40000 0x40000>;
224 reg = <0x80000 0x80000>;
230 reg = <0x100000 0x10000>;
236 reg = <0x110000 0x10000>;
242 reg = <0x120000 0x80000>;
248 reg = <0x1a0000 0x80000>;
254 reg = <0x220000 0x80000>;
258 compatible = "fixed-layout";
259 #address-cells = <1>;
262 macaddr_appsbl_7ff80: mac-address@7ff80 {
263 compatible = "mac-base";
265 #nvmem-cell-cells = <1>;
272 reg = <0x2a0000 0x40000>;
277 reg = <0x2e0000 0x40000>;
283 reg = <0x320000 0x600000>;
288 reg = <0x920000 0x1400000>;
293 reg = <0x1d20000 0x260000>;
299 reg = <0x1f80000 0x80000>;
317 pinctrl-0 = <&usb_pwr_en_pins>;
318 pinctrl-names = "default";
325 reg = <0x00000000 0 0 0 0>;
326 #address-cells = <3>;
331 compatible = "pci168c,0040";
332 reg = <0x00010000 0 0 0 0>;
334 nvmem-cells = <&macaddr_appsbl_7ff80 8>;
335 nvmem-cell-names = "mac-address";
343 max-link-speed = <1>;
346 reg = <0x00000000 0 0 0 0>;
347 #address-cells = <3>;
352 compatible = "pci168c,0040";
353 reg = <0x00010000 0 0 0 0>;
355 nvmem-cells = <&macaddr_appsbl_7ff80 16>;
356 nvmem-cell-names = "mac-address";
368 #address-cells = <0x1>;
370 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
371 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
372 pinctrl-0 = <&mdio0_pins>;
373 pinctrl-names = "default";
375 phy1: ethernet-phy@1 {
379 phy2: ethernet-phy@2 {
389 pinctrl-0 = <&rgmii2_pins>;
390 pinctrl-names = "default";
391 nvmem-cells = <&macaddr_appsbl_7ff80 0>;
392 nvmem-cell-names = "mac-address";
405 nvmem-cells = <&macaddr_appsbl_7ff80 1>;
406 nvmem-cell-names = "mac-address";