]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: dts: aspeed: everest: Add vrm and other indicator leds
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Mon, 7 Jun 2021 03:12:58 +0000 (12:42 +0930)
committerJoel Stanley <joel@jms.id.au>
Mon, 7 Jun 2021 04:08:54 +0000 (13:38 +0930)
This commit adds indicator leds for vrms, processors, opencapi
connectors, tpm, planar, power distribution card and dasd
backplane and are driven by PIC16F882.

Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210607031259.475020-6-joel@jms.id.au
arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts

index db8555e7abf98286130392c9f6a0d23dd7332820..2bac7d1f8a03b7bcd308124a63fbd678351d3622 100644 (file)
                        type = <PCA955X_TYPE_LED>;
                };
        };
+
+       pic0_vrm_misc: pca9552@34 {
+               compatible = "ibm,pca9552";
+               reg = <0x34>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               led@0 {
+                       label = "planar";
+                       reg = <0>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@1 {
+                       label = "tpm";
+                       reg = <1>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@2 {
+                       label = "cpu3-c61";
+                       reg = <2>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@3 {
+                       label = "cpu0-c14";
+                       reg = <3>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@4 {
+                       label = "opencapi-connector3";
+                       reg = <4>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@5 {
+                       label = "opencapi-connector4";
+                       reg = <5>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@6 {
+                       label = "opencapi-connector5";
+                       reg = <6>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               gpio@7 {
+                       reg = <7>;
+                       type = <PCA955X_TYPE_GPIO>;
+               };
+
+               led@8 {
+                       label = "vrm4";
+                       reg = <8>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@9 {
+                       label = "vrm5";
+                       reg = <9>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@10 {
+                       label = "vrm6";
+                       reg = <10>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@11 {
+                       label = "vrm7";
+                       reg = <11>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@12 {
+                       label = "vrm12";
+                       reg = <12>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@13 {
+                       label = "vrm13";
+                       reg = <13>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@14 {
+                       label = "vrm14";
+                       reg = <14>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@15 {
+                       label = "vrm15";
+                       reg = <15>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+       };
+
+       pic1_vrm_misc: pca9552@35 {
+               compatible = "ibm,pca9552";
+               reg = <0x35>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               led@0 {
+                       label = "dasd-backplane";
+                       reg = <0>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@1 {
+                       label = "power-distribution";
+                       reg = <1>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@2 {
+                       label = "cpu1-c19";
+                       reg = <2>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@3 {
+                       label = "cpu2-c56";
+                       reg = <3>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@4 {
+                       label = "opencapi-connector0";
+                       reg = <4>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@5 {
+                       label = "opencapi-connector1";
+                       reg = <5>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@6 {
+                       label = "opencapi-connector2";
+                       reg = <6>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               gpio@7 {
+                       reg = <7>;
+                       type = <PCA955X_TYPE_GPIO>;
+               };
+
+               led@8 {
+                       label = "vrm0";
+                       reg = <8>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@9 {
+                       label = "vrm1";
+                       reg = <9>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@10 {
+                       label = "vrm2";
+                       reg = <10>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@11 {
+                       label = "vrm3";
+                       reg = <11>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@12 {
+                       label = "vrm8";
+                       reg = <12>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@13 {
+                       label = "vrm9";
+                       reg = <13>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@14 {
+                       label = "vrm10";
+                       reg = <14>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+
+               led@15 {
+                       label = "vrm11";
+                       reg = <15>;
+                       retain-state-shutdown;
+                       default-state = "keep";
+                       type = <PCA955X_TYPE_LED>;
+               };
+       };
 };
 
 &i2c8 {