* [PATCH linux dev-5.8 1/2] ARM: dts: aspeed: Add LEDs that are off 9551 on Operator Panel
@ 2020-08-13 8:52 Vishwanatha Subbanna
2020-08-14 4:17 ` Joel Stanley
0 siblings, 1 reply; 2+ messages in thread
From: Vishwanatha Subbanna @ 2020-08-13 8:52 UTC (permalink / raw)
To: joel; +Cc: openbmc, Vishwanatha Subbanna, Vishwanatha Subbanna
From: Vishwanatha Subbanna <vishwa@linux.ibm.com>
These are LEDs that are controlled by 9551
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
---
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 82 ++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index c3ff672..573fe1a 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -120,6 +120,38 @@
reg = <3>;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ /* System ID LED that is at front on Op Panel */
+ front-sys-id0 {
+ retain-state-shutdown;
+ default-state = "keep";
+ gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
+ };
+
+ /* System Attention Indicator ID LED that is at front on Op Panel */
+ front-check-log0 {
+ retain-state-shutdown;
+ default-state = "keep";
+ gpios = <&pca1 1 GPIO_ACTIVE_LOW>;
+ };
+
+ /* Enclosure Fault LED that is at front on Op Panel */
+ front-enc-fault1 {
+ retain-state-shutdown;
+ default-state = "keep";
+ gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
+ };
+
+ /* System PowerOn LED that is at front on Op Panel */
+ front-sys-pwron0 {
+ retain-state-shutdown;
+ default-state = "keep";
+ gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&ehci1 {
@@ -831,6 +863,56 @@
};
};
+ pca1: pca9551@60 {
+ compatible = "nxp,pca9551";
+ reg = <0x60>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ gpio-controller;
+ #gpio-cells = <2>;
+
+ gpio@0 {
+ reg = <0>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@1 {
+ reg = <1>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@2 {
+ reg = <2>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@3 {
+ reg = <3>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@4 {
+ reg = <4>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@5 {
+ reg = <5>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@6 {
+ reg = <6>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+
+ gpio@7 {
+ reg = <7>;
+ type = <PCA955X_TYPE_GPIO>;
+ };
+ };
+
dps: dps310@76 {
compatible = "infineon,dps310";
reg = <0x76>;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux dev-5.8 1/2] ARM: dts: aspeed: Add LEDs that are off 9551 on Operator Panel
2020-08-13 8:52 [PATCH linux dev-5.8 1/2] ARM: dts: aspeed: Add LEDs that are off 9551 on Operator Panel Vishwanatha Subbanna
@ 2020-08-14 4:17 ` Joel Stanley
0 siblings, 0 replies; 2+ messages in thread
From: Joel Stanley @ 2020-08-14 4:17 UTC (permalink / raw)
To: Vishwanatha Subbanna, Brad Bishop; +Cc: OpenBMC Maillist, Vishwanatha Subbanna
On Thu, 13 Aug 2020 at 08:52, Vishwanatha Subbanna
<vishwa@linux.vnet.ibm.com> wrote:
>
> From: Vishwanatha Subbanna <vishwa@linux.ibm.com>
>
> These are LEDs that are controlled by 9551
This patch does not build:
DTC arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dtb
../arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts:986.19-1073.4: ERROR
(duplicate_label): /ahb/apb/bus@1e78a000/i2c-bus@480/pca9552@61:
Duplicate label 'pca1' on /ahb/apb/bus@1e78a000/i2c-bus@480/pca9552@61
and /ahb/apb/bus@1e78a000/i2c-bus@400/pca9551@60
ERROR: Input tree has errors, aborting (use -f to force output)
>
> + pca1: pca9551@60 {
As I explained in the last email, this label is a duplicate.
$ git grep "pca1:" arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts: pca1: pca9551@60 {
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts: pca1: pca9552@61 {
You can only have one label called 'pca1' per device tree. You will
need to come up with a naming scheme for each. For example, this could
be called pca_oppanel.
> + compatible = "nxp,pca9551";
> + reg = <0x60>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + gpio-controller;
> + #gpio-cells = <2>;
> +
> + gpio@0 {
> + reg = <0>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@1 {
> + reg = <1>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@2 {
> + reg = <2>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@3 {
> + reg = <3>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@4 {
> + reg = <4>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@5 {
> + reg = <5>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@6 {
> + reg = <6>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> +
> + gpio@7 {
> + reg = <7>;
> + type = <PCA955X_TYPE_GPIO>;
> + };
> + };
> +
> dps: dps310@76 {
> compatible = "infineon,dps310";
> reg = <0x76>;
> --
> 1.8.3.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-14 4:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 8:52 [PATCH linux dev-5.8 1/2] ARM: dts: aspeed: Add LEDs that are off 9551 on Operator Panel Vishwanatha Subbanna
2020-08-14 4:17 ` Joel Stanley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.