Small clanup and fixup for DTS format for Fortinet FAP-421E.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
#include "qcom-ipq8064-smb208.dtsi"
#include <dt-bindings/input/input.h>
#include "qcom-ipq8064-smb208.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Fortinet FAP-421E";
compatible = "fortinet,fap-421e", "qcom,ipq8064";
/ {
model = "Fortinet FAP-421E";
compatible = "fortinet,fap-421e", "qcom,ipq8064";
device_type = "memory";
reg = <0x42000000 0xe000000>;
};
device_type = "memory";
reg = <0x42000000 0xe000000>;
};
pinctrl-0 = <&led_pins>;
pinctrl-names = "default";
pinctrl-0 = <&led_pins>;
pinctrl-names = "default";
label = "amber:eth1";
gpios = <&qcom_pinmux 27 GPIO_ACTIVE_LOW>;
};
label = "amber:eth1";
gpios = <&qcom_pinmux 27 GPIO_ACTIVE_LOW>;
};
label = "yellow:eth1";
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
};
label = "yellow:eth1";
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
};
label = "amber:eth2";
gpios = <&qcom_pinmux 29 GPIO_ACTIVE_LOW>;
};
label = "amber:eth2";
gpios = <&qcom_pinmux 29 GPIO_ACTIVE_LOW>;
};
label = "yellow:eth2";
gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
};
label = "yellow:eth2";
gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
};
- power_amber {
- label = "amber:power";
+ power-amber {
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
};
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
};
- led_power_yellow: power_yellow {
+ led_power_yellow: power-yellow {
label = "yellow:power";
gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
};
label = "yellow:power";
gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
};
label = "yellow:2g";
gpios = <&qcom_pinmux 30 GPIO_ACTIVE_LOW>;
};
label = "yellow:2g";
gpios = <&qcom_pinmux 30 GPIO_ACTIVE_LOW>;
};
label = "yellow:5g";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
};
label = "yellow:5g";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
};
qcom,mode = <GSBI_PROT_I2C_UART>;
qcom,mode = <GSBI_PROT_I2C_UART>;
pinctrl-0 = <&uart0_pins>;
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;
pinctrl-names = "default";
qcom,mode = <GSBI_PROT_SPI>;
qcom,mode = <GSBI_PROT_SPI>;
spi@1a280000 {
status = "okay";
spi@1a280000 {
status = "okay";