diff options
author | Artem Senichev <a.senichev@yadro.com> | 2020-02-21 14:06:35 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2020-02-28 16:52:45 +0300 |
commit | 6befe13f267b05a8e7873e07737610c172fd1ae9 (patch) | |
tree | 9a38a08a0af068b13f1aaa5c02a7e5bba051718f /meta-yadro/meta-nicole | |
parent | dfbdbbdf97183b0b9f8d73cc7334ad66853db043 (diff) | |
download | openbmc-6befe13f267b05a8e7873e07737610c172fd1ae9.tar.xz |
nicole: Add LED support
Changed to be consistent with the schematics.
(From meta-yadro rev: 19d9cb67b24396fabbe7160a3f04a71d775c166c)
Signed-off-by: Artem Senichev <a.senichev@yadro.com>
Change-Id: I46a3f1dde090bd247ddbf72a3a0c1310d6fafdd2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-yadro/meta-nicole')
4 files changed, 146 insertions, 1 deletions
diff --git a/meta-yadro/meta-nicole/conf/machine/nicole.conf b/meta-yadro/meta-nicole/conf/machine/nicole.conf index 35d94e4d00..11b35417da 100644 --- a/meta-yadro/meta-nicole/conf/machine/nicole.conf +++ b/meta-yadro/meta-nicole/conf/machine/nicole.conf @@ -10,8 +10,9 @@ require conf/machine/include/obmc-bsp-common.inc require conf/machine/include/openpower.inc require conf/machine/include/p9.inc -IMAGE_FEATURES_remove = " obmc-fan-control obmc-fan-mgmt obmc-leds" +IMAGE_FEATURES_remove = " obmc-fan-control obmc-fan-mgmt" PREFERRED_PROVIDER_virtual/openpower-fru-vpd-layout = "nicole-openpower-fru-vpd-layout-native" PREFERRED_PROVIDER_virtual/openpower-fru-inventory = "nicole-openpower-fru-inventory-native" PREFERRED_PROVIDER_virtual/openpower-fru-properties = "nicole-openpower-fru-properties-native" +PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "nicole-led-manager-config-native" diff --git a/meta-yadro/meta-nicole/recipes-kernel/linux/linux-aspeed/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts b/meta-yadro/meta-nicole/recipes-kernel/linux/linux-aspeed/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts index 0b146e3c83..0c8a9e7838 100644 --- a/meta-yadro/meta-nicole/recipes-kernel/linux/linux-aspeed/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts +++ b/meta-yadro/meta-nicole/recipes-kernel/linux/linux-aspeed/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts @@ -54,6 +54,22 @@ leds { compatible = "gpio-leds"; + + power { + gpios = <&gpio ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>; + }; + + identify { + gpios = <&gpio ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>; + }; + + alarm_red { + gpios = <&gpio ASPEED_GPIO(AA, 3) GPIO_ACTIVE_HIGH>; + }; + + alarm_yellow { + gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_HIGH>; + }; }; fsi: gpio-fsi { diff --git a/meta-yadro/meta-nicole/recipes-phosphor/leds/nicole-led-manager-config-native.bb b/meta-yadro/meta-nicole/recipes-phosphor/leds/nicole-led-manager-config-native.bb new file mode 100644 index 0000000000..da34c8bf7e --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-phosphor/leds/nicole-led-manager-config-native.bb @@ -0,0 +1,18 @@ +SUMMARY = "Phosphor LED Group Management for Nicole" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit native + +PROVIDES += "virtual/phosphor-led-manager-config-native" + +SRC_URI += "file://led.yaml" + +S = "${WORKDIR}" + +do_install() { + SRC=${S} + DEST=${D}${datadir}/phosphor-led-manager + install -D ${SRC}/led.yaml ${DEST}/led.yaml +} diff --git a/meta-yadro/meta-nicole/recipes-phosphor/leds/nicole-led-manager-config/led.yaml b/meta-yadro/meta-nicole/recipes-phosphor/leds/nicole-led-manager-config/led.yaml new file mode 100644 index 0000000000..9ce2e2989b --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-phosphor/leds/nicole-led-manager-config/led.yaml @@ -0,0 +1,110 @@ +power_on: + power: + Action: 'On' + Priority: 'On' +enclosure_identify: + identify: + Action: 'Blink' + Priority: 'Blink' +enclosure_fault: &SYS_FAULT + alarm_red: + Action: 'Blink' + Priority: 'Blink' +enclosure_warning: &FRU_FAULT + alarm_yellow: + Action: 'Blink' + Priority: 'Blink' + +bmc_fault: + <<: *SYS_FAULT +motherboard_fault: + <<: *SYS_FAULT +system_fault: + <<: *SYS_FAULT + +cpu0_fault: + <<: *FRU_FAULT +cpu1_fault: + <<: *FRU_FAULT + +core0_fault: + <<: *FRU_FAULT +core1_fault: + <<: *FRU_FAULT +core2_fault: + <<: *FRU_FAULT +core3_fault: + <<: *FRU_FAULT +core4_fault: + <<: *FRU_FAULT +core5_fault: + <<: *FRU_FAULT +core6_fault: + <<: *FRU_FAULT +core7_fault: + <<: *FRU_FAULT +core8_fault: + <<: *FRU_FAULT +core9_fault: + <<: *FRU_FAULT +core10_fault: + <<: *FRU_FAULT +core11_fault: + <<: *FRU_FAULT +core12_fault: + <<: *FRU_FAULT +core13_fault: + <<: *FRU_FAULT +core14_fault: + <<: *FRU_FAULT +core15_fault: + <<: *FRU_FAULT +core16_fault: + <<: *FRU_FAULT +core17_fault: + <<: *FRU_FAULT +core18_fault: + <<: *FRU_FAULT +core19_fault: + <<: *FRU_FAULT +core20_fault: + <<: *FRU_FAULT +core21_fault: + <<: *FRU_FAULT +core22_fault: + <<: *FRU_FAULT +core23_fault: + <<: *FRU_FAULT + +dimm0_fault: + <<: *FRU_FAULT +dimm1_fault: + <<: *FRU_FAULT +dimm2_fault: + <<: *FRU_FAULT +dimm3_fault: + <<: *FRU_FAULT +dimm4_fault: + <<: *FRU_FAULT +dimm5_fault: + <<: *FRU_FAULT +dimm6_fault: + <<: *FRU_FAULT +dimm7_fault: + <<: *FRU_FAULT +dimm8_fault: + <<: *FRU_FAULT +dimm9_fault: + <<: *FRU_FAULT +dimm10_fault: + <<: *FRU_FAULT +dimm11_fault: + <<: *FRU_FAULT +dimm12_fault: + <<: *FRU_FAULT +dimm13_fault: + <<: *FRU_FAULT +dimm14_fault: + <<: *FRU_FAULT +dimm15_fault: + <<: *FRU_FAULT |