ipq50xx: CIG-WF-186W - LEDs are not configurable

Signed-off-by: Ken <xshi@actiontec.com>
This commit is contained in:
Ken
2023-11-10 14:38:43 +08:00
committed by John Crispin
parent 6d4788c26f
commit f7f913ab14
2 changed files with 96 additions and 12 deletions

View File

@@ -29,6 +29,10 @@
serial1 = &blsp1_uart2;
ethernet0 = "/soc/dp1";
ethernet1 = "/soc/dp2";
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
chosen {
@@ -682,6 +686,27 @@
};
};
leds_pins: leds_pins {
led_pwr_g {
pins = "gpio0";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
led_pwr_b {
pins = "gpio1";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
led_pwr_r {
pins = "gpio46";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
};
i2c_pins: i2c_pins {
i2c_scl {
pins = "gpio25";
@@ -758,14 +783,31 @@
};
&soc {
leds {
compatible = "gpio-leds";
pinctrl-0 = <&leds_pins>;
pinctrl-names = "default";
pwm: pwm@0x1941010 {
pinctrl-0 = <&pwm_pins>;
pinctrl-names = "default";
used-pwm-indices = <1>, <1>, <1>, <1>;
dft-pwm-status = <1>, <0>, <0>, <0>;
status = "ok";
led3 {
label = "blue:status";
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "blue-on";
default-state = "off";
};
led2 {
label = "red:status";
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "red-on";
default-state = "off";
};
led_power: led1 {
label = "green:status";
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
default-state = "on";
};
};
};
&usb3 {

View File

@@ -29,6 +29,10 @@
serial1 = &blsp1_uart2;
ethernet0 = "/soc/dp1";
ethernet1 = "/soc/dp2";
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
chosen {
@@ -682,6 +686,27 @@
};
};
leds_pins: leds_pins {
led_pwr_g {
pins = "gpio0";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
led_pwr_b {
pins = "gpio1";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
led_pwr_r {
pins = "gpio46";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
};
i2c_pins: i2c_pins {
i2c_scl {
pins = "gpio25";
@@ -758,14 +783,31 @@
};
&soc {
leds {
compatible = "gpio-leds";
pinctrl-0 = <&leds_pins>;
pinctrl-names = "default";
pwm: pwm@0x1941010 {
pinctrl-0 = <&pwm_pins>;
pinctrl-names = "default";
used-pwm-indices = <1>, <1>, <1>, <1>;
dft-pwm-status = <1>, <0>, <0>, <0>;
status = "ok";
led3 {
label = "blue:status";
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "blue-on";
default-state = "off";
};
led2 {
label = "red:status";
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "red-on";
default-state = "off";
};
led_power: led1 {
label = "green:status";
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
default-state = "on";
};
};
};
&usb3 {