summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gsj/recipes-phosphor/sensors
AgeCommit message (Collapse)AuthorFilesLines
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-2/+2
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-08-17meta-quanta: Fix incorrect change in Yocto syntax updateDavid Wang1-2/+2
'SYSTEMD_ENVIRONMENT_FILE', 'SYSTEMD_LINK', 'SYSTEMD_OVERRIDE' should stay underscore Signed-off-by: David Wang <davidwang@quantatw.com> Change-Id: Ia30f306857d1552b19ff5ed06664c8bd5360cb4c
2021-08-13meta-quanta: Cleanup for Yocto override syntax changeDavid Wang1-2/+2
- Cleanup subtree meta-f0b, meta-olympus-nuvoton, meta-q71l with convert-overrides.py meta-quanta/meta-f0b convert-overrides.py meta-quanta/meta-olympus-nuvoton convert-overrides.py meta-quanta/meta-q71l git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-f0b git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-olympus-nuvoton git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-q71l git grep -l _f0b -- meta-quanta/meta-f0b | xargs sed -i 's/_f0b/:f0b/' git grep -l _olympus-nuvoton -- meta-quanta/meta-olympus-nuvoton | xargs sed -i 's/_olympus-nuvoton/:olympus-nuvoton/' git grep -l _quanta-q71l -- meta-quanta/meta-q71l | xargs sed -i 's/_quanta-q71l/:quanta-q71l/' - Fix up a few by hand - Revert 'BBFILE_PATTERN' and 'LAYERSERIES_COMPAT' - Add honister to 'LAYERSERIES_COMPAT' - Update 'CONF_VERSION' - Fix up 'SYSTEMD_ENVIRONMENT_FILE', 'SYSTEMD_LINK' and 'SYSTEMD_OVERRIDE' in all subtree Signed-off-by: David Wang <davidwang@quantatw.com> Change-Id: Ic431624d09dc5899b1d84439559bea9efca08ad8
2021-08-11meta-quanta: meta-gsj: Cleanup for Yocto override syntax changeWilly Tu1-3/+3
Cleanup with ``` convert-overrides.py meta-quanta/meta-gsj git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gsj git grep -l _gsj -- meta-quanta/meta-gsj \ | xargs sed -i 's/_gsj/:gsj/' ``` Note: Need to revert the change to BBFILE_PATTERN and LAYERSERIES_COMPAT. After cleanup ``` $ git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gsj/ | grep '.bb' meta-quanta/meta-gsj/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton_%.bbappend:do_install:append:gsj () { meta-quanta/meta-gsj/recipes-google/ipmi/google-ipmi-sys_%.bbappend:do_install:append:gsj() { meta-quanta/meta-gsj/recipes-gsj/detect-fan-fail/detect-fan-fail.bb:do_install:append:gsj() { meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/quanta-nvme-powerctrl.bb:do_install () { meta-quanta/meta-gsj/recipes-phosphor/fans/phosphor-pid-control_%.bbappend:do_install:append:gsj() { meta-quanta/meta-gsj/recipes-quanta/network/mac-address_%.bbappend:do_install:append:gsj() { ``` Change-Id: I058371ed32214d665aaaf616a650c2efeaf5be66 Signed-off-by: Willy Tu <wltu@google.com>
2019-09-24meta-quanta: gsj: Set gain value for current and power of hotswapDuke Du1-6/+8
Set gain value to tune current and power value of hotswap and test on gsj board pass. (From meta-quanta rev: 1217b67bfd1f908a61602132014254bdc5a3c943) Signed-off-by: Duke Du <Duke.Du@quantatw.com> Change-Id: Ifde1dfe5f239ab9df0460cd8d2e557a0d6049c6e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-07-19meta-quanta: gsj: add overrides to phosphor-hwmon configBenjamin Fair1-2/+2
Add _append_gsj to the environment files variable in gsj's phosphor-hwmon bbappend in order to avoid affecting platforms. Tested: Built for gsj and conf files were installed (From meta-quanta rev: 79cabcb4faac7fe6a2f927ea5b9158ac432d8b58) Change-Id: I49ea81f98a4aadbbec47aa251cf4ffe4a44b243f Signed-off-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-07-09meta-quanta: gsj: Modify fan threshold to hwomnDuke Du1-19/+19
Modify fan threshold according to quanta thermal team data and test on gsj board pass. (From meta-quanta rev: faedc464d99c795be1805d280564709ee5c002f2) Signed-off-by: Duke Du <Duke.Du@quantatw.com> Change-Id: I7e93a25fe8ee79ab1f3fba879249ecf9043e5c97 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-23meta-quanta: gsj: Add sensor threshold to hwomnDuke Du8-47/+116
Add sensor ucd90160 to hwmon, modify exists sensor threshold and test on gsj board pass. (From meta-quanta rev: eb4958ddd1081f856c7876cac8a21b166fee28a7) Signed-off-by: Duke Du <Duke.Du@quantatw.com> Change-Id: I4a06978e081653ac27097342bc5cd2dd10816c7e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-23meta-quanta: gsj: add PWM targets for fansBenjamin Fair1-7/+7
Add a PWM_TARGET variable for each fan that describes which PWM channel controls that fan. (From meta-quanta rev: 55f0bad12ec1a677e155db82e9f23678488a9aa0) Change-Id: Ib4c94ba599017b24b475fcd680e642ad47f36007 Signed-off-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-16meta-quanta: gsj: rename sensor paths to match dtsBenjamin Fair7-6/+6
The names of the i2c bus nodes in the device tree changed from i2c-bus@xxxx to just i2c@xxx. Update the phosphor-hwmon sensor configuration paths to match. (From meta-quanta rev: 50c57e091989c4d3078147bfb42146ea22d273c5) Signed-off-by: Benjamin Fair <benjaminfair@google.com> Change-Id: I8bded436fc9707c063d15794f182bb9024f98889 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-03Quanta: phosphor hwmon sensorDuke Du8-0/+175
Define configuration files of sensors and fans for hwmon in project gsj and test pass. (From meta-quanta rev: b1247010c2e67d3050dc81cd46d3c2218fc1870d) Signed-off-by: Duke Du <Duke.Du@quantatw.com> Change-Id: I3db8d8d3b70cd949eb3f0a8774615f9fa8b59df0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>