summaryrefslogtreecommitdiff
path: root/meta-yadro
AgeCommit message (Collapse)AuthorFilesLines
2020-10-02meta-nicole: phosphor-ipmi-host: Fix sensorsAlexander Filippov1-4/+4
Since the commit 022da0dd the value type of sensors was changed from `int64_t` with scale to `double`. This brings the same replacement for `phosphor-ipmi-host`. (From meta-yadro rev: fe84801b413deef4185337a117098f62fca4dbc6) Change-Id: I3de00a101a0633658292131c5d255080ab24f64c End-User-Impact: `ipmitool sensor` will now show actual sensor's values. Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-02obmc-yadro-lssensors: bump srcrev 4f55f0e..f76bf42Alexander Filippov1-1/+1
This brings: - Change sensor Value to double - Add new sensors unit (From meta-yadro rev: 87fdf4e74c24d8f8be20ae67ce85e65ff2040e92) Change-Id: Ia1b172df682c75e9b94e5520d16718085a17d00d Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-30meta-nicole: ipmi-config: Remove AUX fieldAlexander Amelkin1-2/+1
Remove the `aux` field from `dev_id.json` in order to enable parsing of the AUX info from the version string. (From meta-yadro rev: 10a64bde2de34a34bcd015bfb1f8d4183f51321f) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Change-Id: I74fd12967b19d900f3cdffcd5163242a13efde0f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-30meta-yadro: Fix version parsing, update AUX revAlexander Amelkin2-1/+331
AUX Revision info was always taken from the dev_id.json file if it exists, overriding the value calculated from the active firmware version string. Also, when AUX info was calculated, it only properly parsed the dirtyness of the build. With this commit the AUX info calculation will properly parse the git hash part and will include it as higher 3 bytes of the AUX info. For officially released versions the lower byte will be zero. For development versions, bits [7:1] of the fourth byte will all be 1 as an indicator of non-release branch. For unofficial builds from release branches those bits will contain a number from 1 to 126 indicating a patch level since the release tag. In any case the bit 0 of byte 4 is a dirtyness indicator. If the sources used to build the firmware were modified compared to the git hash, this bit will be 1. WARNING: For the AUX decoding from version string to work properly, the dev_id.json file must NOT contain the `aux` property. (From meta-yadro rev: 468784ebfd8009e34207018c44858e2b6bc28762) End-user-impact: Version info is properly represented in the AUX Revision Info fields in response to the IPMI Get Device ID command (ipmitool mc info) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Change-Id: Iec376659ab108283e224618e3f6afed24a86b199 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-25obmc-yadro-fwupdate: srcrev bump 9ec0aee..8338fb9Alexander Filippov1-4/+9
This brings: - Support for VEGMAN - reboot-guard-support is enabled by default - Some code refactoring - Using the PACKAGECONIFG instead of OEMESON to enable configure options. (From meta-yadro rev: a01e7828feac74f9ae65877b5fe352395cab8736) Change-Id: Iff6566c7988722604735f6a43806e5485d1092f2 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-23nicole: Remove obsolete vlan-4004 package.Alexander Filippov7-93/+0
The functionality of this package was added as a part of `systemd-conf` package. This package is no longer required. (From meta-yadro rev: e5fb11c84f7455acff17efb79373e954afef1780) Change-Id: Iee5368e0bcc60ccdb745323937ec5506ce3c1c4d Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-23nicole: Add predefined network settingsAlexander Filippov7-2/+70
This brings the default network settings for Tatlin as a part of `systemd-conf` package. These settings contain a predefined IPv4 address for eth0 interface, keep the possibility of getting an additional IP address from DHCP. VALN4004 with predefined IPv6 address is also kept. (From meta-yadro rev: 56e7efa11a0b281f39d160cd99c84b7a95632205) Change-Id: Ibb025a1ae519f0843bfcb8ec71e009e2bc97141f End-User-Impact: - BMC now has predefined IPv4 address on the eth0. - VLAN4004 also present and has predefined IPv6 address - BMC is able to get a dynamic IP address on eth0. Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-23meta-nicole: phosphor-ipmi-config: Fix product IDAlexander Amelkin1-1/+1
Use TATLIN Storage Controller BMC product ID End-user-impact: The BMC is now properly identified via IPMI using the Get Device ID command. Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Change-Id: I51d2da6c844effa6478df87dd55609a976f48abd (From meta-yadro rev: 59d7d9823b9e77b81f24d93cc5fb5b7e6e2e5187) Change-Id: I70f17380aa3f87c3670cae2dbd1e5cb2980f7dde Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-09meta-nicole: Add the channel configuration fileKirill Pakhomov1-0/+178
Added the channel configuration file for the NICOLE hardware. (From meta-yadro rev: 47e0014171e94b3a9188473f0e81a69ffe67e4d0) Signed-off-by: Kirill Pakhomov <k.pakhomov@yadro.com> Change-Id: Ie95c491a41086e7e7461ebc0098cff90d120646a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-20meta-nicole: opt out of obmc-user-mgmt-ldapBrad Bishop2-2/+1
Upstream is in the process of reworking how ldap user management is included (or not) - moving from a distro feature to an image feature. Opt out from the new image feature to avoid picking up the ldap user management packages when upstream makes the switch. There is no longer any need to remove ldap from DISTRO_FEATURES, so remove that. (From meta-yadro rev: 8675f543d73843d5d4fe185134d8edc72ef22246) Change-Id: I5071152dfa9c2d71286d76d72d10a4e4569eea2d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-14meta-nicole: Remove local copy of DTSAlexander Filippov2-335/+0
DTS for Nicole present in the kernel source since 5.7. This commit removes the local copy of DTS from yocto. (From meta-yadro rev: 9b2cfd0597cb1c3aa8b451e94712b7a0e383a184) Change-Id: Iaaf90287ce5ddcfedc883936b36fdf102356f049 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-08-14obmc-yadro-fwupdate: srcrev bump b922eb4..9ec0aeeAlexander Filippov1-1/+1
This brings: * Revert "Change install dir to /usr/sbin" * Remove colors usage * Allow any compression method (From meta-yadro rev: c486c2566329b1c51d0284cc476b5ec6a376a442) Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Change-Id: Ia75149647e78e44d4576b0b413aae8ebce59f333 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-08-05obmc-yadro-cli: srcrev bump 406688be90..5408881b37Artem Senichev1-1/+1
Artem Senichev (3): sel: Show event list by default user: Using primary group as role nmi: Use D-Bus instead of direct pdbg call (From meta-yadro rev: 3434293378d7ce0ac9d0db440ec5dabc6b016fb6) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: Ic78d82a344c94e207cd9b80cbae1cbaf730a4025 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-05meta-nicole: Disable group restriction for SSHArtem Senichev2-0/+2
By default, OpenBMC allows SSH connection only for members of priv-admin group. This patch removes this restriction. (From meta-yadro rev: 840348016139393f61482ee95f2dcb07187d589b) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I9bf5c2950a25715ad814b1d4247a882359a26249 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-31meta-nicole: Fix SRESET over NMI callArtem Senichev2-0/+62
Current implementation by IBM supports only witherspoon platform. This patch makes it possible to use a D-Bus call for initiating kernel crash (System Reset vector) on the Nicole host system. (From meta-yadro rev: 5f76189ed4eb64e20191fe460f00f803b37ed88c) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I8ef5ecfd209860500f8303a594636a1cff1298a3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-18meta-yadro: os-release: Add vendor/product infoAlexander Amelkin2-0/+136
Update the os-release generation script to set the welcome string and the version according to the product name, branch name, and vendor tags for all YADRO products. (From meta-yadro rev: 5d28cfe0b0de03abd61707a013e63087e7ad18fd) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Change-Id: Ib8b6fd3d252c974fa3cdd2a703480dbd43cc9e0b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-nicole: disable time synchronizationAlexander Filippov2-1/+9
The time synchronization is not required by default on Nicole. It will be done by the host. (From meta-yadro rev: cca25e974f7b7d6c5f4b1e19b6fdab503649c763) Change-Id: I2478ac2dd528462024e93dc791b6564385f1a1ff Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-yadro: share boot initiator mailbox supportIvan Mikhaylov6-6/+6
Boot Initiator Mailbox should be available on all our hardware. This commit moves all required files and recipes to the meta-yadro. (From meta-yadro rev: 9ee3c28294c6a87912edbcf09b999b926634f836) Change-Id: Idc52bfb50c8f122662279a593de0ee40703ddb51 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-06meta-nicole: phosphor-ipmi-host: Add support for boot initiator mailboxIvan Mikhaylov2-0/+478
Add handlers to process the chassis system option 7 (boot initiator mailbox). The format of mailbox is specific to the machine/bootloader. This commit only adds generic handlers to process getting and setting of the mailbox data regardless of the content. Only the IANA Enterprise number is checked in the data block 0. Also checked are the data boundaries. It is expected that a machine-specific override for phosphor-settingsd sets the supported state and the IANA number according to the used bootloader. (From meta-yadro rev: ef10645f38d431598fe0a2bce98cb656354df01e) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> Change-Id: I819e2f8ef9d7ddfbadacc5d5bcb6c4fbf98271a0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-06meta-nicole: phosphor-ipmi-host: Add support for persistent-only settingsIvan Mikhaylov2-0/+97
Some settings such as Boot Initiator Mailbox do not support one-time setting mode (as per IPMI 2.0 specification). This commit adds support for such persistent-only settings. (From meta-yadro rev: 10458e3a5362815e0f4dc45a103cbdda3165b856) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> Change-Id: I44a00b9c19e12e2165a311f6b2867509ee911c80 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-06meta-nicole: phosphor-settingsd: Add boot mailbox interfaceIvan Mikhaylov2-0/+18
Add defaults for Control/Boot/Mailbox interface so that phosphor-settingsd could implement and handle it. (From meta-yadro rev: 548286c74a67e8043679be69a47f00325947a327) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> Change-Id: I24e302fdcce21de7e570e4edc592dd97bf4a8df6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-06meta-nicole: phosphor-dbus-interfaces: Add boot initiator mailbox interfaceIvan Mikhaylov2-0/+78
Add the xyz.openbmc_project.Control.Boot.Mailbox interface to allow for provision of the boot initiator (such as Petitboot or UEFI) with its specific parameters. This is based on IPMI 2.0 Table 28-14 'Boot Option Parameters' parameter 7 'Boot initiator mailbox'. (From meta-yadro rev: 8a37d4554c77f6b3b93fea17eae46b0124b42d28) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> Change-Id: I231b8658d47d331d0af665b8ccb86da5ea8b2845 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-03meta-nicole: Add console tool for backup/restoreArtem Senichev2-0/+17
This tool can be used by an end user to backup and restore OpenBMC configuration files. (From meta-yadro rev: 558449cc14a7437a8d45efbe05fca142e789c21f) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I2aaa209177122a9ee69d4a7d1421f34cd7d986c6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-03meta-nicole: phosphor-network: use sync mac optionAlexander Filippov4-2/+14
The phosphor-network now has the sync-mac feature. It does the same thing as the first-boot-set-mac without any additional services. This commit enables this new feature in phosphor-network and removes obsolete first-boot-set-mac service. (From meta-yadro rev: fea7a8d7a57accd658aa60248cb203afc735c73b) Change-Id: I31e530850b2550de70f72091c683153ecb6968a7 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-26meta-yadro: collect all cli tools into one folderAlexander Filippov2-0/+0
Moves fwupdate and lssensors into the cli folder. (From meta-yadro rev: 717867bd2d45baefc5784c8f20992a884bc9648b) Change-Id: I93e5051a4c3874ac70d58d1cc81634a365fddd58 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-26meta-nicole: Add console tool for managing networkArtem Senichev2-0/+20
This tool can be used by an end user for managing OpenBMC network configuration. (From meta-yadro rev: e5c4bc9cda0ffc2aa4a72dd5fef99573d91d968b) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: Ic2647434f0ad675037f12c97adc5526948612ecf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-26meta-nicole: Add console tool for print inventoryArtem Senichev2-2/+25
This tool can be used by an end user to print OpenBMC inventory list. (From meta-yadro rev: d8533edaabad01bfc353a7fe1ca44077ac79512d) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I801ed25fe94cbdf87d509b5f1eb6ff25d4fc2c7e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-26nicole: Add default network configs for TatlinAlexander Filippov8-0/+94
This adds VLAN4004 configuration to the nicole firmware image. The IPv6 address will be chosen depending on the BMC position. During the firmware upgrade the stored previous version of `/etc/systemd/network/00-bmc-eth0.network` may prevent to start new VLAN4004 interface. This commit also adds a service which should fix this issue on the first boot time after upgrade by adding necessary option to the interface configuration file if it is not present yet. Tested: BMC now has additional `eth0.4004` interface use static IPv6 address and this address depend on BMC position. (From meta-yadro rev: 83aa32ac997e6dc66cc5e2041a0a3cb723e950d9) Change-Id: I5fc6663ddee67aafcfa9f2004083d8a4a528950f Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-16meta-nicole: phosphor-ipmi-config: Set device idAlexander Filippov4-0/+46
This adds a dev_id.json with Nicole specific values and a systemd unit which changes at the boot time the device ID in the dev_id.json to the actual BMC position. Tested: `ipmitool mc info` now shows the actual BMC position in the Device ID field. (From meta-yadro rev: 8dcdb1ef8661b2f5624d75787bd4bcc4da8301d7) Change-Id: Ia819ef4154ffe368ca9684662c248295060e0597 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-10meta-nicole: remove LDAP supportAlexander Filippov1-0/+2
Nicole does not require the LDAP support as the end users will never get direct access to it. This completely removes the LDAP support from the Nicole's build. (From meta-yadro rev: f8f482d64a990e20b55a4d5547e53cd7fccd6278) Change-Id: I19dbae120373794a9579ad84e39fa62e05737bc9 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-05meta-nicole: u-boot: add bmc position supportAlexander Filippov4-61/+660
This brings: - GPIO support in u-boot - BMC position is determined by the GPIOE1 and stored as a boot argument. (From meta-yadro rev: 1b68cd934fe58ce3c33b272b45497d2a1b4e35e6) Change-Id: Ieaf5bda2267b533327618330760431e66224092a End-User-Impact: In the u-boot shell now available `gpio` command Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-29meta-nicole: Enable field modeAlexander Filippov3-0/+29
Enables the field mode by default. This marks the BMC as production version and activates some production specific functionalities. For example, this makes the software manager to discard unverified firmware images. Tested: - The output of `fw_printenv` contains `fieldmode=true`. - `busctl get-property xyz.openbmc_project.Software.BMC.Updater \ /xyz/openbmc_project/software \ xyz.openbmc_project.Control.FieldMode FieldModeEnabled` returns `true` (From meta-yadro rev: ca760a233b348efaf860e0691ea4b3f1c0db1ec1) Change-Id: I9c6fbead319f3c990efba669c923dccb97110e16 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-29meta-nicole: Add image signature verificationAlexander Filippov3-1/+6
Adds a firmware image signature verification. This brings: - The key is stored in `/etc/activationdata` folder. - The software item activation now begins with signature verification. The verification failure stops the activation only when the `fieldMode` is set to true. See https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Control/FieldMode.interface.yaml (From meta-yadro rev: f9e0ad9f1bb2a2520651f771e2b873bef384423a) Change-Id: I91cf92d15d29737a9cd05120b194189eb767636e Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-28meta-nicole: build obmc-yadro-lssensorsAlexander Filippov1-0/+1
Adds obmc-yadro-lssensors to nicole firmware. (From meta-yadro rev: 6ad79177812c3b3af1c962c31b65c76eb76b51dc) Change-Id: Ife48ab428e402b2291047f585e3b089ef7ed4c77 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-28meta-yadro: add obmc-yadro-lssensors packageAlexander Filippov1-0/+16
lssensors is a command line tool which shows available sensors. (From meta-yadro rev: d54a06e15444c1d7e66b0da7e1e1f9e36c158884) Change-Id: I25ba2b2725ad6cb18497070631ce4edd26484e60 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-27nicole: esel-parser: srcrev bump c35879f..8d25ae3Artem Senichev1-1/+1
Artem Senichev (1): Fix build with GCC 10 (From meta-yadro rev: af4fcfc9196dec6b4a3aac60f5a211ddc689917a) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I9ea6dc5fb97870b8b0ecda9633a16e5e764f06ae Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-13meta-nicole: Add default account for administratorArtem Senichev2-0/+39
Creates default administrative account for managing the OpenBMC. (From meta-yadro rev: 7eef85ee0d2e6f8100c06c0f9a9cb52c941ecd50) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: If4aa85ace08c9628e98252f00c508fbf28385c9b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-13meta-nicole: Add CLI for end usersArtem Senichev2-4/+38
Command Line Interface (CLI) is a Bash-based shell that is used by non-system users to manage the OpenBMC system. (From meta-yadro rev: cd42b3483a43c1b80aaff8464d9f9c5c3d46979b) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: If63b3eb4bdec59d966422d114d1a960c4a67ce2f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30meta-nicole: Add default FRU propertiesArtem Senichev2-0/+3
Set default properties for some types of FRU. This fixes the problem with Presence flag, which must be set to "true" for such FRU as "motherboard" or "opfw". File with extra properties was created long time ago but it was not added to build. (From meta-yadro rev: c6c78ffba8e184220b6e9205f4ddd9336589fc1a) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I8c2b610a1683148fac75bb5567929d6dc2e1c563 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: libomc-intf: fix gpio definitonsAlexander Filippov1-5/+5
- Removes the unused GPIO definitions. - Adds the ID_BTN definition. (From meta-yadro rev: 542879edd5894c93b75ff17569c867808336c146) Change-Id: I720e1fec9fccb7f3192cc922b7b7192e0cd19702 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: led-manager: rename ledsAlexander Filippov1-4/+14
The LEDs were renamed in the DTS to correspond https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md The labels were also added. All of these changes led to change the names of the LEDs in sysfs. This commit makes the corresponding changes in the phosphor-led-manager config. (From meta-yadro rev: 683b49512a70c98599277ce719caf695ebd3da8d) Change-Id: I1a7e00136d25c1f379737b64a313e9d322a1f958 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: Add iio-hwmon-battery configAlexander Filippov2-0/+12
Nicole has RTC battery monitored by aspeed adc. This commit adds the config for hwmon to create /xyz/openbmc_project/sensors/voltage/vbat dbus object. (From meta-yadro rev: 00a58de373844c2819c88993242a6bbda6235e8a) Change-Id: Ib9eacb8884d793b3895f6dd4749512517c9d8988 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: Update DTSAlexander Filippov1-32/+74
Prepares the Nicole DTS to push it to the linux mainline. - Removes unused i2c buses. - Adds a comment for empty i2c definitions. - Adds a missed iio-hwmon-battery node. - Adds the GPIOs names. - Adds the leds labels. (From meta-yadro rev: ae1aea75fe6b5369183b86a05729d56abec77565) Change-Id: I149c8d98984c7d8e515b338006c43d0cca5a60a2 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-29meta-yadro: add dunfell compatibilityAlexander Filippov3-3/+3
OE-core is switching over to dunfell. This adds dunfell compatibility for meta-yadro, meta-vesnin and meta-ncole layers. (From meta-yadro rev: 5149d928b3be14a819e8424f2df4502f0b9afc14) Change-Id: I73ca9cdeb7aca395eb9c7323faa0d46941f3ea4b Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21meta-nicole: Remove references to vcs-workaroundJoel Stanley2-3/+0
This was a P9 DD1 workaround. These systems are no longer supported and are not found in the wild, so the workaround has been retired. All of the p9 systems in the tree exclude the package so this change should be a noop. (From meta-yadro rev: 0abffd09e40f85cf9b69a6d217d6a9b76a90800a) Change-Id: Ie5b2116291e31635bde5c41a0e5644e611defa4a Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21nicole: Apply pwr restore policy on cold boot onlyAlexander Filippov2-0/+7
Makes the phosphor-discover-system-state running only on cold BMC boot. As a result, on the warm BMC reboot the host's power restore policy will not be applied. Tested: - on the warm BMC reboot the host power state is not changed. - on the cold BMC boot (power cycle) the host power state depends on the power restore policy. (From meta-yadro rev: ff3f2e23697817d4e14891ce6753509b5fb22e6b) Change-Id: I9265011d078e732d840eaa2572bf5220fc6951d5 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21meta-nicole: build obmc-yadro-fwupdateAlexander Filippov1-1/+5
Adds obmc-yadro-fwupdate to nicole firmware. (From meta-yadro rev: c9660b9e69cdb968527ce555857abd5dc3b42337) Change-Id: Iffafccab4d4cf8d676637c0015cd84ac5bd33c37 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21meta-yadro: add obmc-yadro-fwupdate packageAlexander Filippov2-0/+26
fwupdate is a command line tool for update firmware. (From meta-yadro rev: 2c9c5dfb227f695d50a8f3c950b1c0a8d3837fa5) Change-Id: I64633572b45a4793ee0a41a571c4e251ba221317 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21nicole: u-boot: Add system reset state supportAlexander Filippov2-0/+191
This is a backport of the patch file from intel-bmc/openbmc repository. It makes the u-boot to add the system reset status to the bootargs. tested: the /proc/cmdline must contain: - resetreason=power after cold bmc boot - resetreason=watchdog after warm bmc reboot (From meta-yadro rev: 3851142232368d6db77b674e79541d677d68aa41) Change-Id: Ic46b3e497e1c8df4e5bd6d2cf2706e1daba80965 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-03-17nicole: Fix OCC hwmon paths for the 5.3+ kernelAlexander Filippov3-2/+2
The 5.3 kernel adds an 'fsi-master' directory in front of the fsi0 and fsi1 directories in the OCC device tree paths. Update the OCC hwmon file paths accordingly as those are based on that path. Signed-off-by: Alexander Filippov <a.filippov@yadro.com> (From meta-yadro rev: 54b7c9b1ab1bf5b91b293c76335de887f7ff8311) Change-Id: Ie506f88c4e7b2b20f4b589c655982d42dcc3a3f1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>