summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2019-09-12 11:12:10 -0500
committerNicholas E Bofferding <bofferdn@us.ibm.com>2019-11-14 08:27:53 -0600
commiteace166aa1ef265712798d84f10782f7bc430be7 (patch)
tree10678b057c02cfe810662f1af04370c3fb1293cd /src/usr/targeting/common
parent0247cc5fbda6733f8006e8cda36abb153f0c0227 (diff)
downloadtalos-hostboot-eace166aa1ef265712798d84f10782f7bc430be7.tar.gz
talos-hostboot-eace166aa1ef265712798d84f10782f7bc430be7.zip
Support GPIO Physical Presence Detect Devices
This commit makes the necessary changes to support the GPIO devices used for physical presence detection: - New attribute GPIO_INFO_PHYS_PRES - Enable GPIO Device Driver by default - GPIO Device Driver updated to support new device type - Added new GPIO PCA9551 layer to sit on top of GPIO Device Driver Change-Id: I952007503eb5d9fe873adea2eaaeccff21ae18a6 RTC:211220 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/84655 Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Christopher J Engel <cjengel@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/attribute_types_hb.xml72
-rw-r--r--src/usr/targeting/common/xmltohb/target_types_hb.xml3
2 files changed, 75 insertions, 0 deletions
diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
index 3e651b498..8be123d99 100755
--- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
@@ -325,6 +325,78 @@
<hbOnly/>
</attribute>
+ <attribute>
+ <id>GPIO_INFO_PHYS_PRES</id>
+ <description>Information needed to address GPIO device that corresponds
+ to the Physical Presence Detect circuit</description>
+ <complexType>
+ <description>Structure to define the addessing for an I2C
+ slave device.</description>
+ <field>
+ <name>i2cMasterPath</name>
+ <description>Entity path to the chip that contains the I2C
+ master</description>
+ <type>EntityPath</type>
+ <default>physical:sys-0/node-0/proc-0</default>
+ </field>
+ <field>
+ <name>port</name>
+ <description>Port from the I2C Master device. This is a 6-bit
+ value.</description>
+ <type>uint8_t</type>
+ <default>0</default>
+ </field>
+ <field>
+ <name>devAddr</name>
+ <description>Device address on the I2C bus. This is a 7-bit value,
+ but then shifted 1 bit left.</description>
+ <type>uint8_t</type>
+ <default>0xC0</default>
+ </field>
+ <field>
+ <name>engine</name>
+ <description>I2C master engine. This is a 2-bit
+ value.</description>
+ <type>uint8_t</type>
+ <default>2</default>
+ </field>
+ <field>
+ <name>windowOpenPin</name>
+ <description>Logical GPIO pin number used to open or close the physcial
+ presence window</description>
+ <type>uint8_t</type>
+ <default>0</default>
+ </field>
+ <field>
+ <name>physicalPresencePin</name>
+ <description>Logical GPIO pin number used to determine if physical
+ presence was asserted</description>
+ <type>uint8_t</type>
+ <default>1</default>
+ </field>
+ <!-- i2c Mux Bus Selector Definition -->
+ <field>
+ <default>0xFF</default>
+ <description>Determines which of the N selectable buses the mux
+ will connect to. OxFF indicates no mux present
+ or N/A.</description>
+ <name>i2cMuxBusSelector</name>
+ <type>uint8_t</type>
+ </field>
+ <!-- i2c Mux Path Definition -->
+ <field>
+ <!-- NOTE: physical:sys-0 implies that there is no mux in
+ the bus path for this part. -->
+ <default>physical:sys-0</default>
+ <description>Entity path to the I2C mux for this device.</description>
+ <name>i2cMuxPath</name>
+ <type>EntityPath</type>
+ </field>
+ </complexType>
+ <persistency>non-volatile</persistency>
+ <readable/>
+ </attribute>
+
<!-- TODO RTC 122856 When support for HB only volatile attributes with non-zero
default is implemented, update default value to match the description,
Until that happens, code must set the appropriate default if needed. -->
diff --git a/src/usr/targeting/common/xmltohb/target_types_hb.xml b/src/usr/targeting/common/xmltohb/target_types_hb.xml
index 26cf81f6f..080fbecae 100644
--- a/src/usr/targeting/common/xmltohb/target_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/target_types_hb.xml
@@ -116,6 +116,9 @@
<id>FSI_SCOM_MUTEX</id>
</attribute>
<attribute>
+ <id>GPIO_INFO_PHYS_PRES</id>
+ </attribute>
+ <attribute>
<id>HBRT_HYP_ID</id>
</attribute>
<attribute>
OpenPOWER on IntegriCloud