linux-aspeed: Rename APB nodes, PT5161L support, Catalina updates
The notable change is to the phosphor-hwmon configuration paths for all
Aspeed-based platforms. The changes were generated with the following
incantations:
```
git ls-files -- :/:*/ahb/apb/bus@1e78* | while read -r S; do D="$(echo $S | sed -E 's|ahb/apb/bus@1e78a000/i2c-bus|ahb/apb@1e780000/bus@1e78a000/i2c|')"; mkdir -p "$(dirname "$D")"; git mv "$S" "$D"; done
git ls-files -- :/:*/ahb/apb/pwm-tacho-controller@1e786* | while read -r S; do D="$(echo "$S" | sed -E 's|ahb/apb/pwm-tacho-controller@1e786000|ahb/apb@1e780000/pwm-tacho-controller@1e786000|')"; mkdir -p "$(dirname "$D")"; git mv "$S" "$D"; done
sed -Ei 's|ahb/apb/|ahb/apb@1e780000/|g' meta-ibm/meta-palmetto/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-quanta/meta-f0b/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
sed -Ei 's/i2c-bus@/i2c@/g' meta-ibm/dynamic-layers/meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd_%.bbappend meta-ibm/meta-palmetto/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-ibm/meta-romulus/recipes-phosphor/logging/files/callouts.yaml meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-ibm/recipes-phosphor/chassis/vrm-control/ibm-ac-server/ir35221-unbind-bind.sh meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/swift/config.yaml meta-ibm/recipes-phosphor/logging/ibm-logging/ibm-ac-server/policyTable.json meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-quanta/meta-f0b/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
sed -Ei 's|/ahb:apb/|/1e780000.apb/|g' $(git grep -lE 'ahb:apb/.*1e78')
sed -Ei 's|ahb:apb:i2c@1e78a000|1e780000.apb:bus@1e78a000|g' $(git grep -l ahb:apb:i2c@1e78a000)
sed -Ei 's|ahb:apb|1e6e0000.apb|g' meta-phosphor/recipes-phosphor/video/uart-render-controller/uart-render-controller.service
git ls-files -- :/:meta-ibm/*/ahb--apb/* | while read -r S; do D="$(echo "$S" | sed -E 's/ahb--apb/1e780000.apb/g')"; mkdir -p "$(dirname "$D")"; git mv "$S" "$D"; done; sed -Ei 's/ahb--apb/1e780000.apb/g' $(git grep -l ahb--apb -- meta-ibm)
git ls-files -- :/:*i2c-bus* | while read -r S; do D="$(echo "$S" | sed -E 's/(1e78a..0).i2c-bus/\1.i2c/g')"; mkdir -p "$(dirname "$D")"; git mv "$S" "$D"; done; sed -Ei 's/(1e78a..0).i2c-bus/\1.i2c/g' $(git grep -lE '(1e78a..0).i2c-bus')
```
What couldn't be automated was cleaning up the ibm-logging policy table,
which had many duplicate keys that needed manual inspection to remove.
It's worth noting that even for the remaining, non-duplicate keys, the
sysfs paths are not correct: The physical address of the I2C controllers
needs to map to the assigned device index, but in the file they all have
address 1e78a100 despite changes to the device index.
From eslint in CI:
```
meta-ibm/recipes-phosphor/logging/ibm-logging/ibm-ac-server/policyTable.json
9999:10 error Duplicate object key json/*
10020:10 error Duplicate object key json/*
10041:10 error Duplicate object key json/*
10062:10 error Duplicate object key json/*
10083:10 error Duplicate object key json/*
10104:10 error Duplicate object key json/*
17097:10 error Duplicate object key json/*
17118:10 error Duplicate object key json/*
17139:10 error Duplicate object key json/*
17160:10 error Duplicate object key json/*
17181:10 error Duplicate object key json/*
17202:10 error Duplicate object key json/*
17223:10 error Duplicate object key json/*
17244:10 error Duplicate object key json/*
17265:10 error Duplicate object key json/*
17286:10 error Duplicate object key json/*
17307:10 error Duplicate object key json/*
17328:10 error Duplicate object key json/*
17349:10 error Duplicate object key json/*
17370:10 error Duplicate object key json/*
17391:10 error Duplicate object key json/*
17412:10 error Duplicate object key json/*
17433:10 error Duplicate object key json/*
17454:10 error Duplicate object key json/*
19575:10 error Duplicate object key json/*
19596:10 error Duplicate object key json/*
```
Andrew Jeffery (1):
ARM: dts: aspeed: Rework APB nodes
Cosmo Chou (3):
dt-bindings: vendor-prefixes: add asteralabs
dt-bindings: trivial-devices: add Astera Labs PT5161L
hwmon: Add driver for Astera Labs PT5161L retimer
Potin Lai (2):
ARM: dts: aspeed: catalina: add pdb cpld io expander
ARM: dts: aspeed: catalina: update io_expander7 & io_expander8 line name
Rob Herring (Arm) (1):
arm: dts: aspeed: Use standard 'i2c' bus node name
Change-Id: I32ca7579eabd59ed20da3f481da687589a361763
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/poweron.sh b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/poweron.sh
index 2ae70de..3b8c7d5 100755
--- a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/poweron.sh
+++ b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/poweron.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-GPIO_BASE=$(cat /sys/devices/platform/ahb/ahb:apb/1e780000.gpio/gpio/*/base)
+GPIO_BASE=$(cat /sys/devices/platform/ahb/1e780000.apb/1e780000.gpio/gpio/*/base)
GPIO_NUM=$((GPIO_BASE + 24 + 3))
echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value