提交 2cc3b80c 编写于 作者: P Potin Lai 提交者: Joel Stanley

ARM: dts: aspeed: bletchley: Separate leds into multiple groups

Separate gpio-leds by each io expander chip.
To avoid entire gpio-leds bind failed due to single chip not available
Signed-off-by: NPotin Lai <potin.lai@quantatw.com>
Reviewed-by: NJoel Stanley <joel@jms.id.au>
Reviewed-by: NPatrick Williams <patrick@stwcx.xyz>
Link: https://lore.kernel.org/r/20220215163151.32252-3-potin.lai@quantatw.comSigned-off-by: NJoel Stanley <joel@jms.id.au>
上级 c98a3dcd
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "aspeed-g6.dtsi" #include "aspeed-g6.dtsi"
#include <dt-bindings/gpio/aspeed-gpio.h> #include <dt-bindings/gpio/aspeed-gpio.h>
#include <dt-bindings/usb/pd.h> #include <dt-bindings/usb/pd.h>
#include <dt-bindings/leds/leds-pca955x.h>
/ { / {
model = "Facebook Bletchley BMC"; model = "Facebook Bletchley BMC";
...@@ -53,112 +54,138 @@ ...@@ -53,112 +54,138 @@
// Fixed link // Fixed link
}; };
leds { front_gpio_leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
sys_log_id { sys_log_id {
retain-state-shutdown; default-state = "off";
default-state = "keep";
gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>; gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>;
}; };
};
fan_gpio_leds {
compatible = "gpio-leds";
fan0_blue { fan0_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "on"; default-state = "on";
gpios = <&fan_ioexp 8 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 8 GPIO_ACTIVE_HIGH>;
}; };
fan1_blue { fan1_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "on"; default-state = "on";
gpios = <&fan_ioexp 9 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 9 GPIO_ACTIVE_HIGH>;
}; };
fan2_blue { fan2_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "on"; default-state = "on";
gpios = <&fan_ioexp 10 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 10 GPIO_ACTIVE_HIGH>;
}; };
fan3_blue { fan3_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "on"; default-state = "on";
gpios = <&fan_ioexp 11 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 11 GPIO_ACTIVE_HIGH>;
}; };
fan0_amber { fan0_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "off";
gpios = <&fan_ioexp 12 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 12 GPIO_ACTIVE_HIGH>;
}; };
fan1_amber { fan1_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "off";
gpios = <&fan_ioexp 13 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 13 GPIO_ACTIVE_HIGH>;
}; };
fan2_amber { fan2_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "off";
gpios = <&fan_ioexp 14 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 14 GPIO_ACTIVE_HIGH>;
}; };
fan3_amber { fan3_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "off";
gpios = <&fan_ioexp 15 GPIO_ACTIVE_HIGH>; gpios = <&fan_leds 15 GPIO_ACTIVE_HIGH>;
}; };
};
sled1_gpio_leds {
compatible = "gpio-leds";
sled1_amber { sled1_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled1_leds 0 GPIO_ACTIVE_LOW>; gpios = <&sled1_leds 0 GPIO_ACTIVE_LOW>;
}; };
sled1_blue { sled1_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled1_leds 1 GPIO_ACTIVE_LOW>; gpios = <&sled1_leds 1 GPIO_ACTIVE_LOW>;
}; };
};
sled2_gpio_leds {
compatible = "gpio-leds";
sled2_amber { sled2_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled2_leds 0 GPIO_ACTIVE_LOW>; gpios = <&sled2_leds 0 GPIO_ACTIVE_LOW>;
}; };
sled2_blue { sled2_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled2_leds 1 GPIO_ACTIVE_LOW>; gpios = <&sled2_leds 1 GPIO_ACTIVE_LOW>;
}; };
};
sled3_gpio_leds {
compatible = "gpio-leds";
sled3_amber { sled3_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled3_leds 0 GPIO_ACTIVE_LOW>; gpios = <&sled3_leds 0 GPIO_ACTIVE_LOW>;
}; };
sled3_blue { sled3_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled3_leds 1 GPIO_ACTIVE_LOW>; gpios = <&sled3_leds 1 GPIO_ACTIVE_LOW>;
}; };
};
sled4_gpio_leds {
compatible = "gpio-leds";
sled4_amber { sled4_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled4_leds 0 GPIO_ACTIVE_LOW>; gpios = <&sled4_leds 0 GPIO_ACTIVE_LOW>;
}; };
sled4_blue { sled4_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled4_leds 1 GPIO_ACTIVE_LOW>; gpios = <&sled4_leds 1 GPIO_ACTIVE_LOW>;
}; };
};
sled5_gpio_leds {
compatible = "gpio-leds";
sled5_amber { sled5_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled5_leds 0 GPIO_ACTIVE_LOW>; gpios = <&sled5_leds 0 GPIO_ACTIVE_LOW>;
}; };
sled5_blue { sled5_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled5_leds 1 GPIO_ACTIVE_LOW>; gpios = <&sled5_leds 1 GPIO_ACTIVE_LOW>;
}; };
};
sled6_gpio_leds {
compatible = "gpio-leds";
sled6_amber { sled6_amber {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled6_leds 0 GPIO_ACTIVE_LOW>; gpios = <&sled6_leds 0 GPIO_ACTIVE_LOW>;
}; };
sled6_blue { sled6_blue {
retain-state-shutdown; retain-state-shutdown;
default-state = "off"; default-state = "keep";
gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>; gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -667,7 +694,7 @@ ...@@ -667,7 +694,7 @@
reg = <0x4d>; reg = <0x4d>;
}; };
fan_ioexp: pca9552@67 { fan_leds: pca9552@67 {
compatible = "nxp,pca9552"; compatible = "nxp,pca9552";
reg = <0x67>; reg = <0x67>;
#address-cells = <1>; #address-cells = <1>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册