diff options
author | George Hung <george.hung@quantatw.com> | 2020-07-20 16:02:11 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-07-23 00:47:08 +0300 |
commit | fd8041ee5efccf77dacc13b3447e527fc57a53e5 (patch) | |
tree | c51904a24a14cbaca3cfd8e9b0ee45aa2bd1ae1e /meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor | |
parent | 5f2142ef7c0f94cb4c4874432071208c613101f5 (diff) | |
download | openbmc-fd8041ee5efccf77dacc13b3447e527fc57a53e5.tar.xz |
meta-quanta: gbs: expose more GPIO signals as IPMI SDR
1. monitor more GPIO signals
gpio_net_name / gpio_number:
['SATA0_PRSNT_N']=5
['HSBP_CABLE_PRSNT_BUF_N']=57
['FAN_BRD_CABLE_PRSNT_BUF']=58
['HSBP_P12V_STBY_CABLE_PRSNT']=69
['PE_SLOT0_PRSNT_N']=120
['PE_SLOT1_PRSNT_N']=121
2. add these GPIO signals to the sensor YAML config
(From meta-quanta rev: de864a90b91c72a9d31a36688d744a12926a57b3)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Ie39512763757e222ca386349a4c45af135500d65
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor')
11 files changed, 42 insertions, 8 deletions
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-0.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-0.conf index e26c8f50e..e6dfdac67 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-0.conf +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-0.conf @@ -1,6 +1,6 @@ #The gpio 70 is a real gpio, which is used to #store the sas cable 0 present signal -INVENTORY=/system/chassis/cable/ss_cab0_prsnt +INVENTORY=/system/chassis/gpios/ss_cab0_prsnt DEVPATH=/dev/input/event0 KEY=70 NAME=ss_cab0_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-1.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-1.conf index e6a18ee6c..2f3e5f5bc 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-1.conf +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-1.conf @@ -1,6 +1,6 @@ #The gpio 71 is a real gpio, which is used to #store the sas cable 1 present signal -INVENTORY=/system/chassis/cable/ss_cab1_prsnt +INVENTORY=/system/chassis/gpios/ss_cab1_prsnt DEVPATH=/dev/input/event0 KEY=71 NAME=ss_cab1_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-2.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-2.conf index 490f97f49..719311d5f 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-2.conf +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-2.conf @@ -1,6 +1,6 @@ #The gpio 72 is a real gpio, which is used to #store the sas cable 2 present signal -INVENTORY=/system/chassis/cable/ss_cab2_prsnt +INVENTORY=/system/chassis/gpios/ss_cab2_prsnt DEVPATH=/dev/input/event0 KEY=72 NAME=ss_cab2_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-3.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-3.conf index f3579ab97..2e1a82836 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/slimsas-cable-3.conf +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-3.conf @@ -1,6 +1,6 @@ #The gpio 73 is a real gpio, which is used to #store the sas cable 3 present signal -INVENTORY=/system/chassis/cable/ss_cab3_prsnt +INVENTORY=/system/chassis/gpios/ss_cab3_prsnt DEVPATH=/dev/input/event0 KEY=73 NAME=ss_cab3_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-4.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-4.conf new file mode 100644 index 000000000..ecd074791 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-4.conf @@ -0,0 +1,6 @@ +#The gpio 57 is a real gpio, which is used to +#store the HSBP cable present signal +INVENTORY=/system/chassis/gpios/hsbp_cab_prsnt +DEVPATH=/dev/input/event0 +KEY=57 +NAME=hsbp_cab_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-5.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-5.conf new file mode 100644 index 000000000..2838872f8 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-5.conf @@ -0,0 +1,6 @@ +#The gpio 58 is a real gpio, which is used to +#store the fan board cable present signal +INVENTORY=/system/chassis/gpios/fanbd_cab_prsnt +DEVPATH=/dev/input/event0 +KEY=58 +NAME=fanbd_cab_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-6.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-6.conf new file mode 100644 index 000000000..ca3fbd4b1 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-6.conf @@ -0,0 +1,6 @@ +#The gpio 69 is a real gpio, which is used to +#store the HSBP 12V standby cable present signal +INVENTORY=/system/chassis/gpios/bp12v_cab_prsnt +DEVPATH=/dev/input/event0 +KEY=69 +NAME=bp12v_cab_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-7.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-7.conf new file mode 100644 index 000000000..0a0aed7c7 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-7.conf @@ -0,0 +1,6 @@ +#The gpio 5 is a real gpio, which is used to +#store the SATA0 present signal +INVENTORY=/system/chassis/gpios/sata0_prsnt +DEVPATH=/dev/input/event0 +KEY=5 +NAME=sata0_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-8.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-8.conf new file mode 100644 index 000000000..342aaf0a9 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-8.conf @@ -0,0 +1,6 @@ +#The gpio 120 is a real gpio, which is used to +#store the PE0 present signal +INVENTORY=/system/chassis/gpios/pe_slot0_prsnt +DEVPATH=/dev/input/event0 +KEY=120 +NAME=pe_slot0_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-9.conf b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-9.conf new file mode 100644 index 000000000..10d3a2ee7 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/obmc/gpio/gpios-9.conf @@ -0,0 +1,6 @@ +#The gpio 121 is a real gpio, which is used to +#store the PE1 present signal +INVENTORY=/system/chassis/gpios/pe_slot1_prsnt +DEVPATH=/dev/input/event0 +KEY=121 +NAME=pe_slot1_prsnt diff --git a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace index 3ab99702f..fe782d60e 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace +++ b/meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-presence@.service.replace @@ -2,12 +2,10 @@ Description=Phosphor GPIO %I Presence Wants=mapper-wait@-xyz-openbmc_project-inventory.service After=mapper-wait@-xyz-openbmc_project-inventory.service -ConditionPathExists=/etc/default/obmc/gpio/slimsas-cable-%i.conf -StartLimitBurst=10 +ConditionPathExists=/etc/default/obmc/gpio/gpios-%i.conf [Service] -Restart=on-failure -EnvironmentFile=/etc/default/obmc/gpio/slimsas-cable-%i.conf +EnvironmentFile=/etc/default/obmc/gpio/gpios-%i.conf ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES} [Install] |