summaryrefslogtreecommitdiff
path: root/meta-bytedance
diff options
context:
space:
mode:
Diffstat (limited to 'meta-bytedance')
-rw-r--r--meta-bytedance/OWNERS2
-rw-r--r--meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0001-bytedance-g220a-Enable-ipmb.patch30
-rw-r--r--meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0003-misc-aspeed-Add-Aspeed-UART-routing-control-driver.patch521
-rw-r--r--meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0004-ARM-dts-aspeed-Add-uart-routing-node.patch48
-rw-r--r--meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0005-ARM-dts-aspeed-Enable-g220a-uart-route.patch25
-rw-r--r--meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/g220a.cfg9
-rw-r--r--meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed_%.bbappend4
-rw-r--r--meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr.bb24
-rw-r--r--meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/mac-check130
-rw-r--r--meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/static-mac-addr.service11
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager/g220a_baseboard.json2519
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager_%.bbappend7
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config.bb35
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru-properties.yaml21
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru.yaml12
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml5
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml396
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console.conf3
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service20
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console_%.bbappend14
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync.bb20
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service11
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh25
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service14
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend5
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/images/obmc-phosphor-image.bbappend4
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend6
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend9
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-channels.json10
-rw-r--r--meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend8
30 files changed, 3948 insertions, 0 deletions
diff --git a/meta-bytedance/OWNERS b/meta-bytedance/OWNERS
new file mode 100644
index 000000000..9f1d2334b
--- /dev/null
+++ b/meta-bytedance/OWNERS
@@ -0,0 +1,2 @@
+owners:
+- yulei.sh@bytedance.com
diff --git a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0001-bytedance-g220a-Enable-ipmb.patch b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0001-bytedance-g220a-Enable-ipmb.patch
new file mode 100644
index 000000000..de9f2a350
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0001-bytedance-g220a-Enable-ipmb.patch
@@ -0,0 +1,30 @@
+From 0604e82e69c673c3ce75fa1d856a54ab10611015 Mon Sep 17 00:00:00 2001
+From: Lotus Xu <xuxiaohan@bytrdance.com>
+Date: Wed, 21 Oct 2020 12:42:45 +0800
+Subject: [PATCH] bytedance: g220a:Enable ipmb
+
+Signed-off-by: Lotus Xu <xuxiaohan@bytrdance.com>
+---
+ arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts b/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
+index b66854fa9ade..124b885b03ec 100644
+--- a/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
++++ b/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
+@@ -453,7 +453,11 @@ channel_3_3: i2c@3 {
+
+ &i2c4 {
+ status = "okay";
+-
++ ipmb0@10 {
++ compatible = "ipmb-dev";
++ reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
++ i2c-protocol;
++ };
+ };
+
+ &i2c5 {
+--
+2.25.1
+
diff --git a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0003-misc-aspeed-Add-Aspeed-UART-routing-control-driver.patch b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0003-misc-aspeed-Add-Aspeed-UART-routing-control-driver.patch
new file mode 100644
index 000000000..7076ede20
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0003-misc-aspeed-Add-Aspeed-UART-routing-control-driver.patch
@@ -0,0 +1,521 @@
+From dc37d698586a7ca4e4381ef7726249fa70d14c89 Mon Sep 17 00:00:00 2001
+From: Oskar Senft <osk@google.com>
+Date: Wed, 8 Aug 2018 10:15:05 -0400
+Subject: [PATCH 3/5] misc: aspeed: Add Aspeed UART routing control driver.
+
+This driver adds sysfs files that allow the BMC userspace to configure
+how UARTs and physical serial I/O ports are routed.
+
+Tested: Checked correct behavior (both read & write) on TYAN S7106
+board by manually changing routing settings and confirming that bits
+flow as expected. Tested for UART1 and UART3 as this board doesn't have
+the other UARTs wired up in a testable way.
+
+Signed-off-by: Oskar Senft <osk@google.com>
+Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
+Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
+Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
+---
+ .../stable/sysfs-driver-aspeed-uart-routing | 14 +
+ .../misc-devices/aspeed-uart-routing.txt | 49 +++
+ drivers/misc/Kconfig | 6 +
+ drivers/misc/Makefile | 1 +
+ drivers/misc/aspeed-uart-routing.c | 383 ++++++++++++++++++
+ 5 files changed, 453 insertions(+)
+ create mode 100644 Documentation/ABI/stable/sysfs-driver-aspeed-uart-routing
+ create mode 100644 Documentation/misc-devices/aspeed-uart-routing.txt
+ create mode 100644 drivers/misc/aspeed-uart-routing.c
+
+diff --git a/Documentation/ABI/stable/sysfs-driver-aspeed-uart-routing b/Documentation/ABI/stable/sysfs-driver-aspeed-uart-routing
+new file mode 100644
+index 000000000000..5068737d9c12
+--- /dev/null
++++ b/Documentation/ABI/stable/sysfs-driver-aspeed-uart-routing
+@@ -0,0 +1,14 @@
++What: /sys/bus/platform/drivers/aspeed-uart-routing/*/io*
++Date: August 2018
++Contact: Oskar Senft <osk@google.com>
++Description: Configures the input source for the specific physical
++ serial I/O port.
++Users: OpenBMC. Proposed changes should be mailed to
++ openbmc@lists.ozlabs.org
++
++What: /sys/bus/platform/drivers/aspeed-uart-routing/*/uart*
++Date: August 2018
++Contact: Oskar Senft <osk@google.com>
++Description: Configures the input source for the specific UART.
++Users: OpenBMC. Proposed changes should be mailed to
++ openbmc@lists.ozlabs.org
+diff --git a/Documentation/misc-devices/aspeed-uart-routing.txt b/Documentation/misc-devices/aspeed-uart-routing.txt
+new file mode 100644
+index 000000000000..cf1c2a466875
+--- /dev/null
++++ b/Documentation/misc-devices/aspeed-uart-routing.txt
+@@ -0,0 +1,49 @@
++Kernel driver aspeed-uart-routing
++=================================
++
++Supported chips:
++ASPEED AST2500/AST2600
++
++Author:
++Google LLC
++
++Description
++-----------
++
++The Aspeed AST2500/AST2600 allows to dynamically route the inputs for the
++built-in UARTS and physical serial I/O ports.
++
++This allows, for example, to connect the output of UART to another UART.
++This can be used to enable host<->BMC communication via UARTs, e.g. to allow
++access to the host's serial console.
++
++This driver is for the BMC side. The sysfs files allow the BMC userspace
++which owns the system configuration policy, to configure how UARTs and
++physical serial I/O ports are routed.
++
++The driver provides the following files in sysfs:
++uart1 Configure the input signal to UART1.
++uart2 Configure the input signal to UART2.
++uart3 Configure the input signal to UART3.
++uart4 Configure the input signal to UART4.
++uart5 Configure the input signal to UART5.
++io1 Configure the input signal to physical serial port 1.
++io2 Configure the input signal to physical serial port 2.
++io3 Configure the input signal to physical serial port 3.
++io4 Configure the input signal to physical serial port 4.
++io5 Configure the input signal to physical serial port 5.
++
++When read, each file shows the list of available options with the currently
++selected option marked by square brackets "[]". The list of available options
++depends on the selected file.
++
++Example:
++$ cat /sys/bus/platform/drivers/aspeed-uart-routing/*.uart_routing/uart1
++[io1] io2 io3 io4 uart2 uart3 uart4 io6
++
++In this case, UART1 gets its input signal from IO1 (physical serial port 1).
++
++$ echo -n "uart3" \
++ >/sys/bus/platform/drivers/aspeed-uart-routing/*.uart_routing/uart1
++$ cat /sys/bus/platform/drivers/aspeed-uart-routing/*.uart_routing/uart1
++io1 io2 io3 io4 uart2 [uart3] uart4 io6
+diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
+index d8626a0d3e31..48a519c59bdf 100644
+--- a/drivers/misc/Kconfig
++++ b/drivers/misc/Kconfig
+@@ -451,6 +451,12 @@ config MCTP_LPC
+ Implements the MCTP LPC binding via KCS LPC IO cycles for control and
+ LPC FWH cycles for data
+
++config ASPEED_UART_ROUTING
++ tristate "Aspeed ast2500 UART routing control"
++ help
++ If you want to configure UART routing on Aspeed BMC platforms, enable
++ this option.
++
+ config MISC_RTSX
+ tristate
+ default MISC_RTSX_PCI || MISC_RTSX_USB
+diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
+index 183970192ced..4e67e21c2e65 100644
+--- a/drivers/misc/Makefile
++++ b/drivers/misc/Makefile
+@@ -60,3 +60,4 @@ obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o
+ obj-$(CONFIG_NPCM7XX_LPC_BPC) += npcm7xx-lpc-bpc.o
+ obj-$(CONFIG_NPCM7XX_PCI_MBOX) += npcm7xx-pci-mbox.o
+ obj-$(CONFIG_MCTP_LPC) += mctp-lpc.o
++obj-$(CONFIG_ASPEED_UART_ROUTING) += aspeed-uart-routing.o
+diff --git a/drivers/misc/aspeed-uart-routing.c b/drivers/misc/aspeed-uart-routing.c
+new file mode 100644
+index 000000000000..21ef5d98c317
+--- /dev/null
++++ b/drivers/misc/aspeed-uart-routing.c
+@@ -0,0 +1,383 @@
++/*
++ * UART Routing driver for Aspeed AST2500
++ *
++ * Copyright (c) 2018 Google LLC
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * version 2 as published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ */
++#include <linux/device.h>
++#include <linux/module.h>
++#include <linux/of_address.h>
++#include <linux/of_platform.h>
++
++/* The Aspeed AST2500 allows to dynamically route the inputs for the built-in
++ * UARTS and physical serial I/O ports.
++ *
++ * This allows, for example, to connect the output of UART to another UART.
++ * This can be used to enable host<->BMC communication via UARTs, e.g. to allow
++ * access to the host's serial console.
++ *
++ * This driver is for the BMC side. The sysfs files allow the BMC userspace
++ * which owns the system configuration policy, to configure how UARTs and
++ * physical serial I/O ports are routed.
++ */
++
++#define ASPEED_HICRA_IO1 "io1"
++#define ASPEED_HICRA_IO2 "io2"
++#define ASPEED_HICRA_IO3 "io3"
++#define ASPEED_HICRA_IO4 "io4"
++#define ASPEED_HICRA_IO5 "io5"
++#define ASPEED_HICRA_IO6 "io6"
++#define ASPEED_HICRA_UART1 "uart1"
++#define ASPEED_HICRA_UART2 "uart2"
++#define ASPEED_HICRA_UART3 "uart3"
++#define ASPEED_HICRA_UART4 "uart4"
++#define ASPEED_HICRA_UART5 "uart5"
++
++struct aspeed_uart_routing {
++ struct device *dev;
++ void __iomem *regs;
++ spinlock_t lock;
++};
++
++struct aspeed_uart_routing_selector {
++ struct device_attribute dev_attr;
++ int shift;
++ int mask;
++ const char * const options[];
++};
++
++#define to_routing_selector(_dev_attr) \
++ container_of(_dev_attr, struct aspeed_uart_routing_selector, dev_attr)
++
++
++static ssize_t aspeed_uart_routing_show(struct device *dev,
++ struct device_attribute *attr,
++ char *buf);
++
++static ssize_t aspeed_uart_routing_store(struct device *dev,
++ struct device_attribute *attr,
++ const char *buf, size_t count);
++
++#define ROUTING_ATTR(_name) { \
++ .attr = {.name = _name, \
++ .mode = VERIFY_OCTAL_PERMISSIONS(S_IWUSR | S_IRUGO) }, \
++ .show = aspeed_uart_routing_show, \
++ .store = aspeed_uart_routing_store, \
++}
++
++static struct aspeed_uart_routing_selector uart5_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_UART5),
++ .shift = 28,
++ .mask = 0xf,
++ .options = {
++ ASPEED_HICRA_IO5, // 0
++ ASPEED_HICRA_IO1, // 1
++ ASPEED_HICRA_IO2, // 2
++ ASPEED_HICRA_IO3, // 3
++ ASPEED_HICRA_IO4, // 4
++ ASPEED_HICRA_UART1, // 5
++ ASPEED_HICRA_UART2, // 6
++ ASPEED_HICRA_UART3, // 7
++ ASPEED_HICRA_UART4, // 8
++ ASPEED_HICRA_IO6, // 9
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector uart4_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_UART4),
++ .shift = 25,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_IO4, // 0
++ ASPEED_HICRA_IO1, // 1
++ ASPEED_HICRA_IO2, // 2
++ ASPEED_HICRA_IO3, // 3
++ ASPEED_HICRA_UART1, // 4
++ ASPEED_HICRA_UART2, // 5
++ ASPEED_HICRA_UART3, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector uart3_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_UART3),
++ .shift = 22,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_IO3, // 0
++ ASPEED_HICRA_IO4, // 1
++ ASPEED_HICRA_IO1, // 2
++ ASPEED_HICRA_IO2, // 3
++ ASPEED_HICRA_UART4, // 4
++ ASPEED_HICRA_UART1, // 5
++ ASPEED_HICRA_UART2, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector uart2_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_UART2),
++ .shift = 19,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_IO2, // 0
++ ASPEED_HICRA_IO3, // 1
++ ASPEED_HICRA_IO4, // 2
++ ASPEED_HICRA_IO1, // 3
++ ASPEED_HICRA_UART3, // 4
++ ASPEED_HICRA_UART4, // 5
++ ASPEED_HICRA_UART1, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector uart1_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_UART1),
++ .shift = 16,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_IO1, // 0
++ ASPEED_HICRA_IO2, // 1
++ ASPEED_HICRA_IO3, // 2
++ ASPEED_HICRA_IO4, // 3
++ ASPEED_HICRA_UART2, // 4
++ ASPEED_HICRA_UART3, // 5
++ ASPEED_HICRA_UART4, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector io5_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_IO5),
++ .shift = 12,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_UART5, // 0
++ ASPEED_HICRA_UART1, // 1
++ ASPEED_HICRA_UART2, // 2
++ ASPEED_HICRA_UART3, // 3
++ ASPEED_HICRA_UART4, // 4
++ ASPEED_HICRA_IO1, // 5
++ ASPEED_HICRA_IO3, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector io4_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_IO4),
++ .shift = 9,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_UART4, // 0
++ ASPEED_HICRA_UART5, // 1
++ ASPEED_HICRA_UART1, // 2
++ ASPEED_HICRA_UART2, // 3
++ ASPEED_HICRA_UART3, // 4
++ ASPEED_HICRA_IO1, // 5
++ ASPEED_HICRA_IO2, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector io3_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_IO3),
++ .shift = 6,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_UART3, // 0
++ ASPEED_HICRA_UART4, // 1
++ ASPEED_HICRA_UART5, // 2
++ ASPEED_HICRA_UART1, // 3
++ ASPEED_HICRA_UART2, // 4
++ ASPEED_HICRA_IO1, // 5
++ ASPEED_HICRA_IO2, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector io2_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_IO2),
++ .shift = 3,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_UART2, // 0
++ ASPEED_HICRA_UART3, // 1
++ ASPEED_HICRA_UART4, // 2
++ ASPEED_HICRA_UART5, // 3
++ ASPEED_HICRA_UART1, // 4
++ ASPEED_HICRA_IO3, // 5
++ ASPEED_HICRA_IO4, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++static struct aspeed_uart_routing_selector io1_sel = {
++ .dev_attr = ROUTING_ATTR(ASPEED_HICRA_IO1),
++ .shift = 0,
++ .mask = 0x7,
++ .options = {
++ ASPEED_HICRA_UART1, // 0
++ ASPEED_HICRA_UART2, // 1
++ ASPEED_HICRA_UART3, // 2
++ ASPEED_HICRA_UART4, // 3
++ ASPEED_HICRA_UART5, // 4
++ ASPEED_HICRA_IO3, // 5
++ ASPEED_HICRA_IO4, // 6
++ ASPEED_HICRA_IO6, // 7
++ NULL, // NULL termination
++ },
++};
++
++
++static struct attribute *aspeed_uart_routing_attrs[] = {
++ &uart1_sel.dev_attr.attr,
++ &uart2_sel.dev_attr.attr,
++ &uart3_sel.dev_attr.attr,
++ &uart4_sel.dev_attr.attr,
++ &uart5_sel.dev_attr.attr,
++ &io1_sel.dev_attr.attr,
++ &io2_sel.dev_attr.attr,
++ &io3_sel.dev_attr.attr,
++ &io4_sel.dev_attr.attr,
++ &io5_sel.dev_attr.attr,
++ NULL,
++};
++
++static const struct attribute_group aspeed_uart_routing_attr_group = {
++ .attrs = aspeed_uart_routing_attrs,
++};
++
++static ssize_t aspeed_uart_routing_show(struct device *dev,
++ struct device_attribute *attr,
++ char *buf)
++{
++ struct aspeed_uart_routing *uart_routing = dev_get_drvdata(dev);
++ struct aspeed_uart_routing_selector *sel = to_routing_selector(attr);
++ int val, pos, len;
++
++ val = (readl(uart_routing->regs) >> sel->shift) & sel->mask;
++
++ len = 0;
++ for (pos = 0; sel->options[pos] != NULL; ++pos) {
++ if (pos == val) {
++ len += snprintf(buf + len, PAGE_SIZE - 1 - len,
++ "[%s] ", sel->options[pos]);
++ } else {
++ len += snprintf(buf + len, PAGE_SIZE - 1 - len,
++ "%s ", sel->options[pos]);
++ }
++ }
++
++ if (val >= pos) {
++ len += snprintf(buf + len, PAGE_SIZE - 1 - len,
++ "[unknown(%d)]", val);
++ }
++
++ len += snprintf(buf + len, PAGE_SIZE - 1 - len, "\n");
++
++ return len;
++}
++
++static ssize_t aspeed_uart_routing_store(struct device *dev,
++ struct device_attribute *attr,
++ const char *buf, size_t count)
++{
++ struct aspeed_uart_routing *uart_routing = dev_get_drvdata(dev);
++ struct aspeed_uart_routing_selector *sel = to_routing_selector(attr);
++ int val;
++ u32 reg;
++
++ val = match_string(sel->options, -1, buf);
++ if (val < 0) {
++ dev_err(dev, "invalid value \"%s\"\n", buf);
++ return -EINVAL;
++ }
++
++ spin_lock(&uart_routing->lock);
++ reg = readl(uart_routing->regs);
++ // Zero out existing value in specified bits.
++ reg &= ~(sel->mask << sel->shift);
++ // Set new value in specified bits.
++ reg |= (val & sel->mask) << sel->shift;
++ writel(reg, uart_routing->regs);
++ spin_unlock(&uart_routing->lock);
++
++ return count;
++}
++
++static int aspeed_uart_routing_probe(struct platform_device *pdev)
++{
++ struct aspeed_uart_routing *uart_routing;
++ struct resource *res;
++ int rc;
++
++ uart_routing = devm_kzalloc(&pdev->dev,
++ sizeof(*uart_routing),
++ GFP_KERNEL);
++ if (!uart_routing)
++ return -ENOMEM;
++
++ spin_lock_init(&uart_routing->lock);
++ uart_routing->dev = &pdev->dev;
++
++ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
++ uart_routing->regs = devm_ioremap_resource(&pdev->dev, res);
++ if (IS_ERR(uart_routing->regs))
++ return PTR_ERR(uart_routing->regs);
++
++ rc = sysfs_create_group(&uart_routing->dev->kobj,
++ &aspeed_uart_routing_attr_group);
++ if (rc < 0)
++ return rc;
++
++ platform_set_drvdata(pdev, uart_routing);
++
++ return 0;
++}
++
++static int aspeed_uart_routing_remove(struct platform_device *pdev)
++{
++ struct aspeed_uart_routing *uart_routing = platform_get_drvdata(pdev);
++
++ sysfs_remove_group(&uart_routing->dev->kobj,
++ &aspeed_uart_routing_attr_group);
++
++ return 0;
++}
++
++static const struct of_device_id aspeed_uart_routing_table[] = {
++ { .compatible = "aspeed,ast2500-uart-routing" },
++ { },
++};
++
++static struct platform_driver aspeed_uart_routing_driver = {
++ .driver = {
++ .name = "aspeed-uart-routing",
++ .of_match_table = aspeed_uart_routing_table,
++ },
++ .probe = aspeed_uart_routing_probe,
++ .remove = aspeed_uart_routing_remove,
++};
++
++module_platform_driver(aspeed_uart_routing_driver);
++
++MODULE_AUTHOR("Oskar Senft <osk@google.com>");
++MODULE_LICENSE("GPL v2");
++MODULE_DESCRIPTION("Driver to configure Aspeed UART routing");
+--
+2.25.1
+
diff --git a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0004-ARM-dts-aspeed-Add-uart-routing-node.patch b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0004-ARM-dts-aspeed-Add-uart-routing-node.patch
new file mode 100644
index 000000000..645a09385
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0004-ARM-dts-aspeed-Add-uart-routing-node.patch
@@ -0,0 +1,48 @@
+From c12fc8a0f748358f76ff5a883a390301f86f079f Mon Sep 17 00:00:00 2001
+From: John Wang <wangzhiqiang.bj@bytedance.com>
+Date: Wed, 30 Sep 2020 12:41:30 +0800
+Subject: [PATCH 4/5] ARM: dts: aspeed: Add uart-routing node
+
+Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
+---
+ arch/arm/boot/dts/aspeed-g5.dtsi | 6 ++++++
+ arch/arm/boot/dts/aspeed-g6.dtsi | 6 ++++++
+ 2 files changed, 12 insertions(+)
+
+diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi
+index 19288495f41a..de9a8fd3933f 100644
+--- a/arch/arm/boot/dts/aspeed-g5.dtsi
++++ b/arch/arm/boot/dts/aspeed-g5.dtsi
+@@ -522,6 +522,12 @@ sio_regs: regs {
+ compatible = "aspeed,bmc-misc";
+ };
+ };
++
++ uart_routing: uart_routing@9c {
++ compatible = "aspeed,ast2500-uart-routing";
++ reg = <0x9c 0x4>;
++ status = "disabled";
++ };
+ };
+
+ peci: bus@1e78b000 {
+diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi
+index 97ca743363d7..9938b8f224f6 100644
+--- a/arch/arm/boot/dts/aspeed-g6.dtsi
++++ b/arch/arm/boot/dts/aspeed-g6.dtsi
+@@ -311,6 +311,12 @@ pinctrl: pinctrl {
+ compatible = "aspeed,ast2600-pinctrl";
+ };
+
++ uart_routing: uart_routing@9c {
++ compatible = "aspeed,ast2500-uart-routing";
++ reg = <0x9c 0x4>;
++ status = "disabled";
++ };
++
+ smp-memram@180 {
+ compatible = "aspeed,ast2600-smpmem";
+ reg = <0x180 0x40>;
+--
+2.25.1
+
diff --git a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0005-ARM-dts-aspeed-Enable-g220a-uart-route.patch b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0005-ARM-dts-aspeed-Enable-g220a-uart-route.patch
new file mode 100644
index 000000000..fb26499b5
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/0005-ARM-dts-aspeed-Enable-g220a-uart-route.patch
@@ -0,0 +1,25 @@
+From 6901c1fb9c8fbf33461811b9f1667bcaf876b747 Mon Sep 17 00:00:00 2001
+From: John Wang <wangzhiqiang.bj@bytedance.com>
+Date: Wed, 30 Sep 2020 13:02:22 +0800
+Subject: [PATCH 5/5] ARM: dts: aspeed: Enable g220a uart route
+
+Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
+---
+ arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts b/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
+index 2ae2684c115c..c18ca23f57ac 100644
+--- a/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
++++ b/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
+@@ -929,3 +929,7 @@ &video {
+ &vhub {
+ status = "okay";
+ };
++
++&uart_routing {
++ status = "okay";
++};
+--
+2.25.1
+
diff --git a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/g220a.cfg b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/g220a.cfg
index 799a7170d..7efe900b0 100644
--- a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/g220a.cfg
+++ b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed/g220a.cfg
@@ -1 +1,10 @@
CONFIG_SENSORS_EMC1403=y
+CONFIG_ASPEED_UART_ROUTING=y
+CONFIG_PECI=y
+CONFIG_PECI_CHARDEV=y
+CONFIG_PECI_ASPEED=y
+CONFIG_SENSORS_PECI_CPUTEMP=y
+CONFIG_SENSORS_PECI_DIMMTEMP=y
+CONFIG_SENSORS_PECI_CPUPOWER=y
+CONFIG_SENSORS_PECI_DIMMPOWER=y
+CONFIG_IPMB_DEVICE_INTERFACE=y
diff --git a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed_%.bbappend b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed_%.bbappend
index ab351eb77..db7f7f726 100644
--- a/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed_%.bbappend
+++ b/meta-bytedance/meta-g220a/recipes-kernel/linux/linux-aspeed_%.bbappend
@@ -1,4 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append_g220a = " file://g220a.cfg \
+ file://0003-misc-aspeed-Add-Aspeed-UART-routing-control-driver.patch \
+ file://0004-ARM-dts-aspeed-Add-uart-routing-node.patch \
+ file://0005-ARM-dts-aspeed-Enable-g220a-uart-route.patch \
+ file://0001-bytedance-g220a-Enable-ipmb.patch \
"
diff --git a/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr.bb b/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr.bb
new file mode 100644
index 000000000..130187dd8
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr.bb
@@ -0,0 +1,24 @@
+SUMMARY = "Enforce static MAC addresses"
+DESCRIPTION = "Set a priority on MAC addresses to run with: \
+ factory-specified > u-boot-specified > random"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit allarch
+SRC_URI = "\
+ file://mac-check \
+ file://${PN}.service \
+ "
+
+inherit obmc-phosphor-systemd
+
+SYSTEMD_SERVICE_${PN} += "${PN}.service"
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 ${WORKDIR}/mac-check ${D}${bindir}
+}
diff --git a/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/mac-check b/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/mac-check
new file mode 100644
index 000000000..258000762
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/mac-check
@@ -0,0 +1,130 @@
+#!/bin/sh
+# Copyright 2018 Intel Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+SOFS_MNT=/var/sofs
+SOFS_MACDIR=${SOFS_MNT}/factory-settings/network/mac
+
+read_hw_mac() {
+ local iface="$1"
+ cat /sys/class/net/"$iface"/address 2>/dev/null
+}
+
+set_hw_mac() {
+ local iface="$1"
+ local mac="$2"
+ ip link show dev "$iface" | grep -q "${iface}:.*\<UP\>" 2>/dev/null
+ local up=$?
+ [[ $up -eq 0 ]] && ip link set dev "$iface" down
+ ip link set dev "$iface" address "$mac"
+ [[ $up -eq 0 ]] && ip link set dev "$iface" up
+}
+
+read_sofs_mac() {
+ local iface="$1"
+ cat "${SOFS_MACDIR}/${iface}" 2>/dev/null
+}
+
+read_fw_env_mac() {
+ local envname="$1"
+ fw_printenv "$envname" 2>/dev/null | sed "s/^$envname=//"
+}
+
+set_fw_env_mac() {
+ local envname="$1"
+ local mac="$2"
+ fw_setenv "$envname" "$mac"
+}
+read_eeprom_mac() {
+ local iface="$1"
+ a=0
+ if [ $iface = "eth1" ];then
+ a=8
+ fi
+ for ((i=a;i <= ((7+a));i++));do
+ i2cset -y 1 0x50 0x00 $i
+ tmp=`i2cget -y 1 0x50`
+ local mac[$i]=${tmp:2}
+ local mac_str=$mac_str:${mac[$i]}
+ done
+ mac_str=${mac_str:1:17}
+ echo $mac_str 2>/dev/null
+}
+
+create_macdir() {
+if [ -a ${SOFS_MACDIR} ]; then
+ if [ ! -d ${SOFS_MACDIR} ]; then
+ rm -rf ${SOFS_MACDIR}
+ mkdir -p ${SOFS_MACDIR}
+ fi
+else
+ mkdir -p ${SOFS_MACDIR}
+fi
+return 0
+}
+
+mac_check() {
+ local iface="$1"
+ local envname="$2"
+
+ # Read the MAC address in use by the NIC
+ local hw_mac=$(read_hw_mac "$iface")
+
+ # Read the MAC address stored in the non-volatile file provisioned in
+ # manufacturing.
+ local sofs_mac=$(read_sofs_mac "$iface")
+
+ local eeprom_mac=$(read_eeprom_mac "$iface")
+ if [ -n "$eeprom_mac" ] && [ -z "$sofs_mac"]; then
+ set_hw_mac "$iface" "$eeprom_mac"
+ set_fw_env_mac "$envname" "$eeprom_mac"
+ return $?
+ elif [ -n "$sofs_mac" ] && [ "$hw_mac" != "$sofs_mac" ]; then
+ # A factory assigned address was found, and it is newly assigned.
+ # Update the active interface and save the new value to the u-boot
+ # environment.
+ set_hw_mac "$iface" "$sofs_mac"
+ set_fw_env_mac "$envname" "$sofs_mac"
+ return $?
+ elif [ -n "$hw_mac" ]; then
+ # Read the MAC address stored by U-Boot
+ local fw_env_mac=$(read_fw_env_mac "$envname")
+ if [ -z "$fw_env_mac" ] || [ "$fw_env_mac" != "$hw_mac" ]; then
+ set_fw_env_mac "$envname" "$hw_mac"
+ return $?
+ fi
+ else
+ # Could not identify a MAC address
+ return 255
+ fi
+
+ return 0
+}
+
+create_macdir
+
+error=0
+first_error_seen=0
+
+while read IFACE UBDEV; do
+ mac_check "$IFACE" "$UBDEV"
+ error=$?
+ if [ $error -ne 0 ] && [ $first_error_seen -eq 0 ]; then
+ first_error_seen=$error
+ fi
+done <<-END_CONF
+ eth0 eth1addr
+ eth1 ethaddr
+END_CONF
+exit $first_error_seen
diff --git a/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/static-mac-addr.service b/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/static-mac-addr.service
new file mode 100644
index 000000000..86371db11
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/static-mac-addr.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Enforce Static MAC addr mapping
+
+[Service]
+Type=oneshot
+Restart=no
+ExecStart=/usr/bin/mac-check
+
+[Install]
+WantedBy=network.target
+
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager/g220a_baseboard.json b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager/g220a_baseboard.json
new file mode 100644
index 000000000..ae008da53
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager/g220a_baseboard.json
@@ -0,0 +1,2519 @@
+{
+ "Exposes": [
+ {
+ "Index": 0,
+ "Name": "P3V3",
+ "PowerState": "On",
+ "ScaleFactor": 0.5,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 3.63
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 3.531
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 3.069
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 2.97
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 1,
+ "Name": "P5V",
+ "PowerState": "On",
+ "ScaleFactor": 0.27027,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 5.5
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 5.35
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 4.65
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 4.5
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 2,
+ "Name": "P3V3_STBY",
+ "ScaleFactor": 0.5,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 3.63
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 3.531
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 3.069
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 2.97
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 3,
+ "Name": "P1V15_STBY",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.265
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 1.2305
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 1.0695
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1.035
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 4,
+ "Name": "P1V2_STBY",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.32
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 1.284
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 1.116
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1.08
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "CPURequired": 1,
+ "Index": 5,
+ "Name": "PVTT_ABCD_CPU0",
+ "PowerState": "On",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 0.66
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 0.642
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 0.558
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.54
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "CPURequired": 1,
+ "Index": 6,
+ "Name": "PVTT_EFGH_CPU0",
+ "PowerState": "On",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 0.66
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 0.642
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 0.558
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.54
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 7,
+ "Name": "PCH_P1V8_STBY",
+ "ScaleFactor": 0.75188,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.98
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 1.926
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 1.674
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1.62
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 8,
+ "Name": "P12V_STBY",
+ "ScaleFactor": 0.108696,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 13.2
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 12.84
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 11.16
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 10.8
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 9,
+ "Name": "P2V5_STBY",
+ "ScaleFactor": 0.5,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.75
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.675
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 2.325
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 2.25
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "CPURequired": 2,
+ "Index": 10,
+ "Name": "PVTT_ABCD_CPU1",
+ "PowerState": "On",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 0.66
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 0.642
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 0.558
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.54
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "CPURequired": 2,
+ "Index": 11,
+ "Name": "PVTT_EFGH_CPU1",
+ "PowerState": "On",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 0.66
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 0.642
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 0.558
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.54
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 12,
+ "Name": "P5V_STBY",
+ "ScaleFactor": 0.27027,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 5.5
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 5.35
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 4.65
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 4.5
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 13,
+ "Name": "P12V",
+ "PowerState": "On",
+ "ScaleFactor": 0.108696,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 13.2
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 12.84
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 11.16
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 10.8
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 14,
+ "Name": "P5V_HDD",
+ "PowerState": "On",
+ "ScaleFactor": 0.27027,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 5.5
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 5.35
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 4.65
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 4.5
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "BridgeGpio": [
+ {
+ "Name": "STRAP_BMC_BATTERY_GPIOS5",
+ "Polarity": "High"
+ }
+ ],
+ "Index": 15,
+ "Name": "BATTERY",
+ "ScaleFactor": 0.33333,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 3.3
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 3.21
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 2.79
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 2.7
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "BindConnector": "System Fan connector 1",
+ "Index": 0,
+ "Name": "Fan1_0",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 1",
+ "Index": 1,
+ "Name": "Fan1_1",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 2",
+ "Index": 2,
+ "Name": "Fan2_0",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 2",
+ "Index": 3,
+ "Name": "Fan2_1",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 3",
+ "Index": 4,
+ "Name": "Fan3_0",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 3",
+ "Index": 5,
+ "Name": "Fan3_1",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 4",
+ "Index": 6,
+ "Name": "Fan4_0",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 4",
+ "Index": 7,
+ "Name": "Fan4_1",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 5",
+ "Index": 8,
+ "Name": "Fan5_0",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 5",
+ "Index": 9,
+ "Name": "Fan5_1",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 6",
+ "Index": 10,
+ "Name": "Fan6_0",
+ "Type": "AspeedFan"
+ },
+ {
+ "BindConnector": "System Fan connector 6",
+ "Index": 11,
+ "Name": "Fan6_1",
+ "Type": "AspeedFan"
+ },
+ {
+ "C1": 92.16,
+ "C2": 107.52,
+ "MaxCFM": 17.5,
+ "Name": "System Airflow",
+ "TachMaxPercent": 100,
+ "TachMinPercent": 20,
+ "Tachs": [
+ "Fan1_0",
+ "Fan1_1",
+ "Fan2_0",
+ "Fan2_1",
+ "Fan3_0",
+ "Fan3_1",
+ "Fan4_0",
+ "Fan4_1",
+ "Fan5_0",
+ "Fan5_1",
+ "Fan6_0",
+ "Fan6_1"
+ ],
+ "Type": "CFMSensor"
+ },
+ {
+ "Class": "Gpio",
+ "GpioPolarity": "Low",
+ "Name": "Chassis Intrusion Sensor",
+ "Type": "ChassisIntrusionSensor"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 3,
+ "Name": "OCP_BP_Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 105
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 95
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 26,
+ "Name": "NVMe_Front_BP0_Temp",
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 27,
+ "Name": "NVMe_Front_BP1_Temp",
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 28,
+ "Name": "NVMe_Rear_BP_Temp",
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 29,
+ "Name": "M2_Riser_Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 70
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 67
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 44,
+ "Name": "MB_Inlet1_Temp",
+ "Name1": "MB_Inlet2_Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 43
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 38
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 45,
+ "Name": "MB_Outlet1_Temp",
+ "Name1": "PSU_Inlet_Zone_Temp",
+ "Name2": "MB_Outlet2_Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 60
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 57
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x7C",
+ "Bus": 45,
+ "Name": "Outlet_Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 60
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 57
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 12,
+ "Name": "Riser_Rear_BP_Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 70
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 67
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "EMC1413"
+ },
+ {
+ "Address": "0x4C",
+ "Bus": 13,
+ "Name": "Rear_Riser_Temp",
+ "Type": "EMC1413"
+ },
+ {
+ "Name": "System Fan connector 1",
+ "Pwm": 0,
+ "Tachs": [
+ 0,
+ 1
+ ],
+ "Type": "IntelFanConnector"
+ },
+ {
+ "Name": "System Fan connector 2",
+ "Pwm": 1,
+ "Tachs": [
+ 2,
+ 3
+ ],
+ "Type": "IntelFanConnector"
+ },
+ {
+ "Name": "System Fan connector 3",
+ "Pwm": 2,
+ "Tachs": [
+ 4,
+ 5
+ ],
+ "Type": "IntelFanConnector"
+ },
+ {
+ "Name": "System Fan connector 4",
+ "Pwm": 3,
+ "Tachs": [
+ 6,
+ 7
+ ],
+ "Type": "IntelFanConnector"
+ },
+ {
+ "Name": "System Fan connector 5",
+ "Pwm": 4,
+ "Tachs": [
+ 8,
+ 9
+ ],
+ "Type": "IntelFanConnector"
+ },
+ {
+ "Name": "System Fan connector 6",
+ "Pwm": 5,
+ "Tachs": [
+ 10,
+ 11
+ ],
+ "Type": "IntelFanConnector"
+ },
+ {
+ "EthIndex": 0,
+ "Name": "Dedicated Management NIC",
+ "Type": "NIC"
+ },
+ {
+ "EthIndex": 1,
+ "Name": "Host/BMC Shared NIC",
+ "Type": "NIC"
+ },
+ {
+ "Address": "0x70",
+ "Bus": 3,
+ "ChannelNames": [
+ "Front_Riser_Slot0",
+ "Front_Riser_Slot1",
+ "OCP_4C_Plus",
+ "OCP_4C"
+ ],
+ "Name": "Front Riser Mux 1",
+ "Type": "PCA9546Mux"
+ },
+ {
+ "Address": "0x70",
+ "Bus": 6,
+ "ChannelNames": [
+ "Front_BP0",
+ "Front_BP1",
+ "Rear_BP",
+ "M2_Riser"
+ ],
+ "Name": "Front Riser Mux 2",
+ "Type": "PCA9546Mux"
+ },
+ {
+ "Interface": [
+ "i2c",
+ "peci"
+ ],
+ "Name": "PMEM",
+ "Pmem": [
+ {
+ "Channel": 0,
+ "DeviceID": 1,
+ "I2cAddress": "0xB0",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 0,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 2,
+ "I2cAddress": "0xB2",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 0,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 3,
+ "I2cAddress": "0xB4",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 0,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 4,
+ "I2cAddress": "0xB6",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 0,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 5,
+ "I2cAddress": "0xB8",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 1,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 6,
+ "I2cAddress": "0xBA",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 1,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 7,
+ "I2cAddress": "0xBC",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 1,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 8,
+ "I2cAddress": "0xBE",
+ "I2cbus": "MemoryChannel1",
+ "Imc": 1,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 9,
+ "I2cAddress": "0xB0",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 2,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 10,
+ "I2cAddress": "0xB2",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 2,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 11,
+ "I2cAddress": "0xB4",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 2,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 12,
+ "I2cAddress": "0xB6",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 2,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 13,
+ "I2cAddress": "0xB8",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 3,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 14,
+ "I2cAddress": "0xBA",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 3,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 15,
+ "I2cAddress": "0xBC",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 3,
+ "Pecibus": "0x30",
+ "Slot": 0,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 16,
+ "I2cAddress": "0xBE",
+ "I2cbus": "MemoryChannel2",
+ "Imc": 3,
+ "Pecibus": "0x30",
+ "Slot": 1,
+ "Socket": 0,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 17,
+ "I2cAddress": "0xB0",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 0,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 18,
+ "I2cAddress": "0xB2",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 0,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 19,
+ "I2cAddress": "0xB4",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 0,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 20,
+ "I2cAddress": "0xB6",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 0,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 21,
+ "I2cAddress": "0xB8",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 1,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 22,
+ "I2cAddress": "0xBA",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 1,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 23,
+ "I2cAddress": "0xBC",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 1,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 24,
+ "I2cAddress": "0xBE",
+ "I2cbus": "MemoryChannel3",
+ "Imc": 1,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 0,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 25,
+ "I2cAddress": "0xB0",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 2,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 26,
+ "I2cAddress": "0xB2",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 2,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 27,
+ "I2cAddress": "0xB4",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 2,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 28,
+ "I2cAddress": "0xB6",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 2,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 29,
+ "I2cAddress": "0xB8",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 3,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 0,
+ "DeviceID": 30,
+ "I2cAddress": "0xBA",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 3,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 31,
+ "I2cAddress": "0xBC",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 3,
+ "Pecibus": "0x31",
+ "Slot": 0,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ },
+ {
+ "Channel": 1,
+ "DeviceID": 32,
+ "I2cAddress": "0xBE",
+ "I2cbus": "MemoryChannel4",
+ "Imc": 3,
+ "Pecibus": "0x31",
+ "Slot": 1,
+ "Socket": 1,
+ "Spdpcibus": "0x7E",
+ "Spdpcicmdregister": "0x80",
+ "Spdpcidataregister": "0x88",
+ "Spdpcidevice": 11,
+ "Spdpcifunction": 1,
+ "Spdpcistatusregister": "0x84"
+ }
+ ],
+ "Type": "PMEM"
+ },
+ {
+ "Address": [
+ "0x58",
+ "0x59"
+ ],
+ "Bus": 11,
+ "Name": "PSU address",
+ "Type": "PSUPresence"
+ },
+ {
+ "Class": "fan",
+ "FFGainCoefficient": 1.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": 0.0,
+ "ILimitMax": 0.0,
+ "ILimitMin": 0.0,
+ "Inputs": [
+ "Fan1_0",
+ "Fan1_1"
+ ],
+ "Name": "Fan_1",
+ "NegativeHysteresis": 0.0,
+ "OutLimitMax": 100.0,
+ "OutLimitMin": 10.0,
+ "Outputs": [
+ "Pwm_1"
+ ],
+ "PCoefficient": 0.0,
+ "PositiveHysteresis": 0.0,
+ "SlewNeg": 0.0,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan1Zone"
+ ]
+ },
+ {
+ "Class": "fan",
+ "FFGainCoefficient": 1.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": 0.0,
+ "ILimitMax": 0.0,
+ "ILimitMin": 0.0,
+ "Inputs": [
+ "Fan2_0",
+ "Fan2_1"
+ ],
+ "Name": "Fan_2",
+ "NegativeHysteresis": 0.0,
+ "OutLimitMax": 100.0,
+ "OutLimitMin": 10.0,
+ "Outputs": [
+ "Pwm_2"
+ ],
+ "PCoefficient": 0.0,
+ "PositiveHysteresis": 0.0,
+ "SlewNeg": 0.0,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan2Zone"
+ ]
+ },
+ {
+ "Class": "fan",
+ "FFGainCoefficient": 1.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": 0.0,
+ "ILimitMax": 0.0,
+ "ILimitMin": 0.0,
+ "Inputs": [
+ "Fan3_0",
+ "Fan3_1"
+ ],
+ "Name": "Fan_3",
+ "NegativeHysteresis": 0.0,
+ "OutLimitMax": 100.0,
+ "OutLimitMin": 10.0,
+ "Outputs": [
+ "Pwm_3"
+ ],
+ "PCoefficient": 0.0,
+ "PositiveHysteresis": 0.0,
+ "SlewNeg": 0.0,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan3Zone"
+ ]
+ },
+ {
+ "Class": "fan",
+ "FFGainCoefficient": 1.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": 0.0,
+ "ILimitMax": 0.0,
+ "ILimitMin": 0.0,
+ "Inputs": [
+ "Fan4_0",
+ "Fan4_1"
+ ],
+ "Name": "Fan_4",
+ "NegativeHysteresis": 0.0,
+ "OutLimitMax": 100.0,
+ "OutLimitMin": 10.0,
+ "Outputs": [
+ "Pwm_4"
+ ],
+ "PCoefficient": 0.0,
+ "PositiveHysteresis": 0.0,
+ "SlewNeg": 0.0,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan4Zone"
+ ]
+ },
+ {
+ "Class": "fan",
+ "FFGainCoefficient": 1.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": 0.0,
+ "ILimitMax": 0.0,
+ "ILimitMin": 0.0,
+ "Inputs": [
+ "Fan5_0",
+ "Fan5_1"
+ ],
+ "Name": "Fan_5",
+ "NegativeHysteresis": 0.0,
+ "OutLimitMax": 100.0,
+ "OutLimitMin": 10.0,
+ "Outputs": [
+ "Pwm_5"
+ ],
+ "PCoefficient": 0.0,
+ "PositiveHysteresis": 0.0,
+ "SlewNeg": 0.0,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan5Zone"
+ ]
+ },
+ {
+ "Class": "fan",
+ "FFGainCoefficient": 1.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": 0.0,
+ "ILimitMax": 0.0,
+ "ILimitMin": 0.0,
+ "Inputs": [
+ "Fan6_0",
+ "Fan6_1"
+ ],
+ "Name": "Fan_6",
+ "NegativeHysteresis": 0.0,
+ "OutLimitMax": 100.0,
+ "OutLimitMin": 10.0,
+ "Outputs": [
+ "Pwm_6"
+ ],
+ "PCoefficient": 0.0,
+ "PositiveHysteresis": 0.0,
+ "SlewNeg": 0.0,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 30,
+ "Inputs": [
+ "DTS CPU1"
+ ],
+ "Name": "DTS_CPU1_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 30,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 75.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan1Zone",
+ "Fan2Zone",
+ "Fan3Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 30,
+ "Inputs": [
+ "DTS CPU2"
+ ],
+ "Name": "DTS_CPU2_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 30,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 75.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan4Zone",
+ "Fan5Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "CPU0_VR_0_Temperature",
+ "CPU0_VR_1_Temperature",
+ "CPU0_VR_2_Temperature"
+ ],
+ "Name": "CPU0_VR_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 85.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan2Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "CPU0_VR_0_Temperature",
+ "CPU0_VR_1_Temperature",
+ "CPU0_VR_2_Temperature"
+ ],
+ "Name": "CPU0_VR_TEMP1",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 80,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 85.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan1Zone",
+ "Fan3Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "CPU1_VR_0_Temperature",
+ "CPU1_VR_1_Temperature",
+ "CPU1_VR_2_Temperature"
+ ],
+ "Name": "CPU1_VR_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 85.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan5Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "CPU1_VR_0_Temperature",
+ "CPU1_VR_1_Temperature",
+ "CPU1_VR_2_Temperature"
+ ],
+ "Name": "CPU1_VR_TEMP1",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 80,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 85.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan4Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "CPU0_DIMM_VR_0_Temperature",
+ "CPU0_DIMM_VR_1_Temperature",
+ "CPU1_DIMM_VR_0_Temperature",
+ "CPU1_DIMM_VR_1_Temperature"
+ ],
+ "Name": "CPU_DIMM_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 85.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan1Zone",
+ "Fan2Zone",
+ "Fan3Zone",
+ "Fan4Zone",
+ "Fan5Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "NVMe_Front_BP0_Temp",
+ "NVMe_Front_BP1_Temp"
+ ],
+ "Name": "NVME_FRONT_BP_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 50.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan3Zone",
+ "Fan4Zone",
+ "Fan5Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "NVMe_Rear_BP_Temp"
+ ],
+ "Name": "NVME_REAR_BP_TEMP1",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 80,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 54.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan3Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "NVMe_Rear_BP_Temp"
+ ],
+ "Name": "NVME_REAR_BP_TEMP2",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 54.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan4Zone",
+ "Fan5Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "M2_Riser_Temp"
+ ],
+ "Name": "M2_RISER_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 50.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan3Zone",
+ "Fan4Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "OCP_BP_Temp"
+ ],
+ "Name": "OCP_BP_TEMP",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 45.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan1Zone",
+ "Fan2Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 80,
+ "ILimitMin": 10,
+ "Inputs": [
+ "PSU0_Temperature",
+ "PSU1_Temperature"
+ ],
+ "Name": "PSU_TEMP1",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 48.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan4Zone"
+ ]
+ },
+ {
+ "Class": "temp",
+ "FFGainCoefficient": 0.0,
+ "FFOffCoefficient": 0.0,
+ "ICoefficient": -1.0,
+ "ILimitMax": 100,
+ "ILimitMin": 10,
+ "Inputs": [
+ "PSU0_Temperature",
+ "PSU1_Temperature"
+ ],
+ "Name": "PSU_TEMP2",
+ "NegativeHysteresis": 5.0,
+ "OutLimitMax": 100,
+ "OutLimitMin": 10,
+ "Outputs": [],
+ "PCoefficient": -5,
+ "PositiveHysteresis": 0.0,
+ "SetPoint": 48.0,
+ "SlewNeg": -1,
+ "SlewPos": 0.0,
+ "Type": "Pid",
+ "Zones": [
+ "Fan5Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "FailSafePercent": 100,
+ "MinThermalOutput": 10,
+ "Name": "Fan1Zone",
+ "Type": "Pid.Zone"
+ },
+ {
+ "FailSafePercent": 100,
+ "MinThermalOutput": 10,
+ "Name": "Fan2Zone",
+ "Type": "Pid.Zone"
+ },
+ {
+ "FailSafePercent": 100,
+ "MinThermalOutput": 10,
+ "Name": "Fan3Zone",
+ "Type": "Pid.Zone"
+ },
+ {
+ "FailSafePercent": 100,
+ "MinThermalOutput": 10,
+ "Name": "Fan4Zone",
+ "Type": "Pid.Zone"
+ },
+ {
+ "FailSafePercent": 100,
+ "MinThermalOutput": 10,
+ "Name": "Fan5Zone",
+ "Type": "Pid.Zone"
+ },
+ {
+ "FailSafePercent": 100,
+ "MinThermalOutput": 10,
+ "Name": "Fan6Zone",
+ "Type": "Pid.Zone"
+ },
+ {
+ "Class": "temp",
+ "Inputs": [
+ "Inlet"
+ ],
+ "Name": "INLET_TEMP",
+ "NegativeHysteresis": 0,
+ "Output": [
+ 20.0,
+ 35.0,
+ 50.0,
+ 65.0,
+ 80.0,
+ 100.0
+ ],
+ "PositiveHysteresis": 0,
+ "Reading": [
+ 15.0,
+ 20.0,
+ 25.0,
+ 30.0,
+ 35.0,
+ 40.0
+ ],
+ "Type": "Stepwise",
+ "Zones": [
+ "Fan1Zone",
+ "Fan2Zone",
+ "Fan3Zone",
+ "Fan4Zone",
+ "Fan5Zone",
+ "Fan6Zone"
+ ]
+ },
+ {
+ "Address": "0x48",
+ "Bus": 46,
+ "Name": "Inlet",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 43
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 38
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "TMP112"
+ },
+ {
+ "Address": "0x30",
+ "Bus": 0,
+ "CpuID": 1,
+ "Name": "CPU 1",
+ "PresenceGpio": [
+ {
+ "Name": "FM_CPU0_SKTOCC_N",
+ "Polarity": "Low"
+ }
+ ],
+ "Type": "XeonCPU"
+ },
+ {
+ "Address": "0x31",
+ "Bus": 0,
+ "CpuID": 2,
+ "Name": "CPU 2",
+ "PresenceGpio": [
+ {
+ "Name": "FM_CPU1_SKTOCC_N",
+ "Polarity": "Low"
+ }
+ ],
+ "Type": "XeonCPU"
+ },
+ {
+ "Address": "0x76",
+ "Bus": 5,
+ "Name": "CPU0_VR_0",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x6A",
+ "Bus": 5,
+ "Name": "CPU0_VR_1",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x58",
+ "Bus": 5,
+ "Name": "CPU0_VR_2",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x70",
+ "Bus": 5,
+ "Name": "CPU1_VR_0",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x6C",
+ "Bus": 5,
+ "Name": "CPU1_VR_1",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x5E",
+ "Bus": 5,
+ "Name": "CPU1_VR_2",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x5A",
+ "Bus": 5,
+ "Name": "CPU0_DIMM_VR_0",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x62",
+ "Bus": 5,
+ "Name": "CPU0_DIMM_VR_1",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x5C",
+ "Bus": 5,
+ "Name": "CPU1_DIMM_VR_0",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x64",
+ "Bus": 5,
+ "Name": "CPU1_DIMM_VR_1",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 125
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x68",
+ "Bus": 5,
+ "Name": "PCH_VR",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 105
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 100
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x58",
+ "Bus": 11,
+ "Name": "PSU0",
+ "Type": "pmbus"
+ },
+ {
+ "Address": "0x59",
+ "Bus": 11,
+ "Name": "PSU1",
+ "Type": "pmbus"
+ }
+ ],
+ "Name": "G220A",
+ "Probe": [
+ "xyz.openbmc_project.FruDevice({'PRODUCT_PRODUCT_NAME': 'G220*'})"
+ ],
+ "Type": "Board",
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "Manufacturer": "$PRODUCT_MANUFACTURER",
+ "Model": "$PRODUCT_PRODUCT_NAME",
+ "PartNumber": "$PRODUCT_PART_NUMBER",
+ "SerialNumber": "$PRODUCT_SERIAL_NUMBER"
+ },
+ "xyz.openbmc_project.Inventory.Decorator.AssetTag": {
+ "AssetTag": "$PRODUCT_ASSET_TAG"
+ },
+ "xyz.openbmc_project.Inventory.Item.System": {}
+} \ No newline at end of file
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager_%.bbappend
new file mode 100644
index 000000000..64ce5cff1
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/entity-manager_%.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+SRC_URI_append = " file://g220a_baseboard.json \
+ "
+do_install_append() {
+ install -d ${D}/usr/share/entity-manager/configurations
+ install -m 0444 ${WORKDIR}/*.json ${D}/usr/share/entity-manager/configurations
+}
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config.bb b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config.bb
new file mode 100644
index 000000000..62fe8fe6d
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config.bb
@@ -0,0 +1,35 @@
+SUMMARY = "YAML configuration for G220A"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit allarch
+
+SRC_URI = " \
+ file://g220a-ipmi-fru.yaml \
+ file://g220a-ipmi-fru-properties.yaml \
+ file://g220a-ipmi-inventory-sensors.yaml \
+ file://g220a-ipmi-sensors.yaml \
+ "
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -m 0644 -D g220a-ipmi-fru-properties.yaml \
+ ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
+ install -m 0644 -D g220a-ipmi-fru.yaml \
+ ${D}${datadir}/${BPN}/ipmi-fru-read.yaml
+ install -m 0644 -D g220a-ipmi-inventory-sensors.yaml \
+ ${D}${datadir}/${BPN}/ipmi-inventory-sensors.yaml
+ install -m 0644 -D g220a-ipmi-sensors.yaml \
+ ${D}${datadir}/${BPN}/ipmi-sensors.yaml
+}
+
+FILES_${PN}-dev = " \
+ ${datadir}/${BPN}/ipmi-extra-properties.yaml \
+ ${datadir}/${BPN}/ipmi-fru-read.yaml \
+ ${datadir}/${BPN}/ipmi-inventory-sensors.yaml \
+ ${datadir}/${BPN}/ipmi-sensors.yaml \
+ "
+
+ALLOW_EMPTY_${PN} = "1"
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru-properties.yaml b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru-properties.yaml
new file mode 100644
index 000000000..0076b0dc5
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru-properties.yaml
@@ -0,0 +1,21 @@
+/system:
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
+/system/board:
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
+/system/board/G220A:
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru.yaml b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru.yaml
new file mode 100644
index 000000000..87817d2e0
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-fru.yaml
@@ -0,0 +1,12 @@
+0:
+ /xyz/openbmc_project/FruDevice/G220A:
+ entityID: 7
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.FruDevice:
+ PRODUCT_MANUFACTURER:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Product
+ PRODUCT_PRODUCT_NAME:
+ IPMIFruProperty: Name
+ IPMIFruSection: Product
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml
new file mode 100644
index 000000000..bb2502d1f
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-inventory-sensors.yaml
@@ -0,0 +1,5 @@
+/xyz/openbmc_project/inventory/system/board/G220A:
+ eventReadingType: 111
+ offset: 2
+ sensorID: 144
+ sensorType: 18
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml
new file mode 100644
index 000000000..af7aea46b
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/g220a-ipmi-sensors.yaml
@@ -0,0 +1,396 @@
+1:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 1
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/temperature/Outlet_Temp
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 1
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
+4:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 1
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/temperature/DTS_CPU1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 1
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
+5:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 1
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/temperature/DTS_CPU2
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 1
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
+38:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 1
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/voltage/P3V3
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 2
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
+39:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 1
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/voltage/P5V
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 2
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
+40:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 1
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/voltage/P12V
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 2
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
+67:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan1_0
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+68:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan1_1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+69:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan2_0
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+70:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan2_1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+71:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan3_0
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+72:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan3_1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+73:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan4_0
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+74:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan4_1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+75:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan5_0
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+76:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan5_1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+77:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan6_0
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
+78:
+ bExp: 0
+ entityID: 50
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double
+ multiplierM: 96
+ mutability: Mutability::Read
+ path: /xyz/openbmc_project/sensors/fan_tach/Fan6_1
+ offsetB: 0
+ rExp: 0
+ readingType: readingData
+ scale: 0
+ sensorNamePattern: nameLeaf
+ sensorReadingType: 1
+ sensorType: 4
+ serviceInterface: org.freedesktop.DBus.Properties
+ unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console.conf b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console.conf
new file mode 100644
index 000000000..8491f5365
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console.conf
@@ -0,0 +1,3 @@
+baud = 115200
+local-tty = ttyS3
+local-tty-baud = 115200
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service
new file mode 100644
index 000000000..1a1dfffa1
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/obmc-console@.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Phosphor Console Muxer listening on device /dev/%I
+BindsTo=dev-%i.device
+After=dev-%i.device
+
+[Service]
+ExecStartPre=/bin/sh -c 'echo -n "uart3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart1'
+ExecStartPre=/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart3'
+ExecStartPre=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart4'
+ExecStartPre=/bin/sh -c 'echo -n "uart4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/io1'
+ExecStart=/usr/bin/env obmc-console-server --config {sysconfdir}/obmc-console.conf %i
+ExecStopPost=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart1'
+ExecStopPost=/bin/sh -c 'echo -n "io3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart3'
+ExecStopPost=/bin/sh -c 'echo -n "io4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/uart4'
+ExecStopPost=/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart_routing/io1'
+SyslogIdentifier=obmc-console-server
+Restart=always
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console_%.bbappend
new file mode 100644
index 000000000..a5d722fda
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console_%.bbappend
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+OBMC_CONSOLE_HOST_TTY = "ttyS2"
+SRC_URI += "file://obmc-console@.service \
+ "
+inherit obmc-phosphor-systemd
+
+SYSTEMD_SERVICE_${PN} += " \
+ ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \
+ "
+
+do_install_append() {
+ rm -rf ${D}${base_libdir}/udev/rules.d/80-obmc-console-uart.rules
+ install -m 0644 ${WORKDIR}/${PN}@.service ${D}${systemd_system_unitdir}
+}
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync.bb b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync.bb
new file mode 100644
index 000000000..776bccfd0
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync.bb
@@ -0,0 +1,20 @@
+SUMMARY = "ME time sync"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit allarch
+inherit obmc-phosphor-systemd
+
+RDEPENDS_${PN} += "bash"
+
+S = "${WORKDIR}"
+
+SRC_URI += "file://me-time-sync.sh"
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/me-time-sync.sh ${D}${bindir}/me-time-sync.sh
+}
+
+SYSTEMD_SERVICE_${PN} += "me-time-sync.service"
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service
new file mode 100644
index 000000000..e0ee717c5
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Sync time from ME
+Wants=ipmb.service
+After=ipmb.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/me-time-sync.sh
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh
new file mode 100644
index 000000000..833b97d70
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+set -e
+
+# Get time from ME via ipmb
+# The last 4 bytes are the epoch time, e.g.
+# (iyyyyay) 0 11 0 72 0 4 18 169 82 95
+ret=$(busctl call xyz.openbmc_project.Ipmi.Channel.Ipmb "/xyz/openbmc_project/Ipmi/Channel/Ipmb" org.openbmc.Ipmb sendRequest yyyyay 0x01 0x0a 0x00 0x48 0)
+
+IFS=' ' read -r -a a <<< "${ret}"
+
+if [ "${a[1]}" -ne 0 ]
+then
+ echo "Failed to get time from ME: ${ret}"
+ exit 1
+fi
+
+t0=$((${a[7]}))
+t1=$((${a[8]}*256))
+t2=$((${a[9]}*256*256))
+t3=$((${a[10]}*256*256*256))
+t=$((${t0}+${t1}+${t2}+${t3}))
+echo "Setting date to ${t}"
+
+date -s @${t}
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
new file mode 100644
index 000000000..659ff3e1e
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Phosphor-Pid-Control Margin-based Fan Control Daemon
+After=xyz.openbmc_project.EntityManager.service
+After=xyz.openbmc_project.ObjectMapper.service
+
+[Service]
+Restart=always
+ExecStart={bindir}/swampd -t
+RestartSec=5
+StartLimitInterval=0
+Type=simple
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
new file mode 100644
index 000000000..66646996c
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+inherit obmc-phosphor-systemd
+
+SYSTEMD_SERVICE_${PN} = "phosphor-pid-control.service"
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/images/obmc-phosphor-image.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/images/obmc-phosphor-image.bbappend
new file mode 100644
index 000000000..e38c2721b
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/images/obmc-phosphor-image.bbappend
@@ -0,0 +1,4 @@
+OBMC_IMAGE_EXTRA_INSTALL_append_g220a = " webui-vue \
+ me-time-sync \
+ static-mac-addr \
+ "
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend
new file mode 100644
index 000000000..3658c6f85
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend
@@ -0,0 +1,6 @@
+DEPENDS_append_g220a= " g220a-yaml-config"
+
+EXTRA_OECONF_g220a= " \
+ YAML_GEN=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-fru-read.yaml \
+ PROP_YAML=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-extra-properties.yaml \
+ "
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend
new file mode 100644
index 000000000..4b5cc5e30
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend
@@ -0,0 +1,9 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+DEPENDS_append_g220a= " g220a-yaml-config"
+
+EXTRA_OECONF_g220a= " \
+ SENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-sensors.yaml \
+ INVSENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-inventory-sensors.yaml \
+ FRU_YAML_GEN=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-fru-read.yaml \
+ "
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-channels.json b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-channels.json
new file mode 100644
index 000000000..3d901aee0
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-channels.json
@@ -0,0 +1,10 @@
+{
+ "channels": [
+ {
+ "type": "me",
+ "slave-path": "/dev/ipmb-4",
+ "bmc-addr": 32,
+ "remote-addr": 44
+ }
+ ]
+}
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend
new file mode 100644
index 000000000..03c685d1d
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append = " file://ipmb-channels.json"
+
+do_install_append(){
+ install -m 0644 -D ${WORKDIR}/ipmb-channels.json \
+ ${D}/usr/share/ipmbbridge/
+}