Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,2 @@
SYSFS_PATH=/sys/bus/i2c/devices/8-0050/eeprom
FRUID=50
@@ -0,0 +1,2 @@
SYSFS_PATH=/sys/bus/i2c/devices/1-0057/eeprom
FRUID=57
@@ -0,0 +1,2 @@
SYSFS_PATH=/sys/bus/i2c/devices/1-0054/eeprom
FRUID=56
@@ -0,0 +1,2 @@
SYSFS_PATH=/sys/bus/i2c/devices/7-0052/eeprom
FRUID=52
@@ -0,0 +1,20 @@
inherit obmc-phosphor-systemd
FILESEXTRAPATHS:prepend:quanta-q71l := "${THISDIR}/${PN}:"
EEPROM_NAMES = "motherboard pdb fp bmc"
EEPROMFMT = "system/chassis/{0}"
EEPROM_ESCAPEDFMT = "system-chassis-{0}"
EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}"
EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}"
ENVFMT = "obmc/eeproms/{0}"
SYSTEMD_ENVIRONMENT_FILE:${PN}:append:quanta-q71l := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}"
TMPL = "obmc-read-eeprom@.service"
TGT = "multi-user.target"
INSTFMT = "obmc-read-eeprom@{0}.service"
FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
SYSTEMD_LINK:${PN}:append:quanta-q71l := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}"
@@ -0,0 +1,16 @@
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit native
DEPENDS += "virtual/phosphor-ipmi-fru-inventory"
PROVIDES += "virtual/phosphor-ipmi-fru-merge-config"
# Put the fru_config in the right place with the right name.
# Pull the IPMI FRU YAML config to use it in the IPMI HOST YAML.
do_install:append() {
IPMI_FRU_SRC=${datadir}/phosphor-ipmi-fru/config
IPMI_HOST_DEST=${D}${datadir}/phosphor-ipmi-host/config
install -d ${IPMI_HOST_DEST}
cat ${IPMI_FRU_SRC}/config.yaml > ${IPMI_HOST_DEST}/fru_config.yaml
}
@@ -0,0 +1,20 @@
SUMMARY = "Quanta-Q71l IPMI to DBus Inventory mapping."
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit phosphor-ipmi-fru
inherit native
SRC_URI += "file://config.yaml"
PROVIDES += "virtual/phosphor-ipmi-fru-inventory"
S = "${WORKDIR}"
do_install() {
DEST=${D}${config_datadir}
install -d ${DEST}
install config.yaml ${DEST}
}
@@ -0,0 +1,202 @@
0x56:
/system/chassis/motherboard:
entityID: 7
entityInstance: 1
interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruProperty: Mfg Date
IPMIFruSection: Board
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Board
Manufacturer:
IPMIFruProperty: Manufacturer
IPMIFruSection: Board
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruProperty: Name
IPMIFruSection: Board
/system:
entityID: 23
entityInstance: 1
interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Chassis
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Chassis
Model:
IPMIFruProperty: Type
IPMIFruSection: Chassis
0x50:
/system/chassis/motherboard/bmc:
entityID: 6
entityInstance: 1
interfaces:
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruProperty: Name
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruProperty: Mfg Date
IPMIFruSection: Board
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Board
Manufacturer:
IPMIFruProperty: Manufacturer
IPMIFruSection: Board
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruProperty: FRU File ID
IPMIFruSection: Board
0x52:
/system/chassis/pdb:
entityID: 21
entityInstance: 1
interfaces:
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruProperty: Name
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Asset:
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Board
Manufacturer:
IPMIFruProperty: Manufacturer
IPMIFruSection: Board
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Board
BuildDate:
IPMIFruProperty: Mfg Date
IPMIFruSection: Board
Model:
IPMIFruProperty: Model Number
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruProperty: FRU File ID
IPMIFruSection: Board
0x57:
/system/chassis/fp:
entityID: 2
entityInstance: 1
interfaces:
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruProperty: Name
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Asset:
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Board
Manufacturer:
IPMIFruProperty: Manufacturer
IPMIFruSection: Board
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Board
BuildDate:
IPMIFruProperty: Mfg Date
IPMIFruSection: Board
Model:
IPMIFruProperty: Model Number
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruProperty: FRU File ID
IPMIFruSection: Board
0x20:
/system/chassis/motherboard/mezzanine8/memory_riser:
entityID: 8
entityInstance: 1
interfaces: &riser
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruProperty: Name
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Asset:
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Board
Manufacturer:
IPMIFruProperty: Manufacturer
IPMIFruSection: Board
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Board
BuildDate:
IPMIFruProperty: Mfg Date
IPMIFruSection: Board
Model:
IPMIFruProperty: Model Number
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruProperty: FRU File ID
IPMIFruSection: Board
0x21:
/system/chassis/motherboard/mezzanine7/memory_riser:
entityID: 8
entityInstance: 2
interfaces:
<<: *riser
0x22:
/system/chassis/motherboard/mezzanine6/memory_riser:
entityID: 8
entityInstance: 3
interfaces:
<<: *riser
0x23:
/system/chassis/motherboard/mezzanine5/memory_riser:
entityID: 8
entityInstance: 4
interfaces:
<<: *riser
0x24:
/system/chassis/motherboard/mezzanine4/memory_riser:
entityID: 8
entityInstance: 5
interfaces:
<<: *riser
0x25:
/system/chassis/motherboard/mezzanine3/memory_riser:
entityID: 8
entityInstance: 6
interfaces:
<<: *riser
0x26:
/system/chassis/motherboard/mezzanine2/memory_riser:
entityID: 8
entityInstance: 7
interfaces:
<<: *riser
0x27:
/system/chassis/motherboard/mezzanine1/memory_riser:
entityID: 8
entityInstance: 8
interfaces:
<<: *riser
@@ -0,0 +1,19 @@
SUMMARY = "Quanta Q71l IPMI to DBus Sensor mapping."
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit phosphor-ipmi-host
inherit native
PROVIDES += "virtual/phosphor-ipmi-sensor-inventory"
SRC_URI += "file://config.yaml"
S = "${WORKDIR}"
do_install() {
DEST=${D}${sensor_datadir}
install -d ${DEST}
install config.yaml ${DEST}/sensor.yaml
}
@@ -0,0 +1,519 @@
0xD0:
sensorType: 0x01
path: /xyz/openbmc_project/extsensors/margin/fleeting0
sensorReadingType: 0x01
multiplierM: 511
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
rExp: -3
mutability: Mutability::Write|Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0xFF:
type: double
0xF0:
sensorType: 0x01
path: /xyz/openbmc_project/sensors/temperature/temp2_inlet
sensorReadingType: 0x01
multiplierM: 511
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xF1:
sensorType: 0x01
path: /xyz/openbmc_project/sensors/temperature/temp1
sensorReadingType: 0x01
multiplierM: 511
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xF2:
sensorType: 0x01
path: /xyz/openbmc_project/sensors/temperature/temp3
sensorReadingType: 0x01
multiplierM: 511
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xB0:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan1
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xC0:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan1
sensorReadingType: 0x01
multiplierM: 1
offsetB: 0
bExp: 0
mutability: Mutability::Write
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Control.FanPwm:
Target:
Offsets:
0xFF:
type: uint64_t
0xB1:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan2
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xC1:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan2
sensorReadingType: 0x01
multiplierM: 1
offsetB: 0
bExp: 0
mutability: Mutability::Write
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Control.FanPwm:
Target:
Offsets:
0xFF:
type: uint64_t
0xB2:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan3
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xC2:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan3
sensorReadingType: 0x01
multiplierM: 1
offsetB: 0
bExp: 0
mutability: Mutability::Write
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Control.FanPwm:
Target:
Offsets:
0xFF:
type: uint64_t
0xB3:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan4
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xC3:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan4
sensorReadingType: 0x01
multiplierM: 1
offsetB: 0
bExp: 0
mutability: Mutability::Write
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Control.FanPwm:
Target:
Offsets:
0xFF:
type: uint64_t
0xB4:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan5
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xB5:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan6
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xB6:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan7
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xB7:
sensorType: 0x04
path: /xyz/openbmc_project/sensors/fan_tach/fan8
sensorReadingType: 0x01
multiplierM: 100
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
rExp: 0
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE0:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p3v3_scaled
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE1:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p5v_scaled
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE2:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p12v_aux_scaled
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE3:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p1v1_ssb
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE4:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/pvcc_cpu0
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE5:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/pvcc_cpu1
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE6:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p3v3_aux_scaled
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE7:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p5v_aux_scaled
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE8:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/pvcc_cpu2
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xE9:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/pvcc_cpu3
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xEA:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p12v_scaled
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double
0xEB:
sensorType: 0x02
path: /xyz/openbmc_project/sensors/voltage/p3v_vbat
sensorReadingType: 0x01
multiplierM: 64
offsetB: 0
bExp: 0
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
rExp: -3
mutability: Mutability::Read
serviceInterface: org.freedesktop.DBus.Properties
readingType: readingData
interfaces:
xyz.openbmc_project.Sensor.Value:
Value:
Offsets:
0x0:
type: double