ipq806x: chromium: Support Chromium "crossystem" GPIO tooling
authorBrian Norris <computersforpeace@gmail.com>
Sat, 19 Aug 2023 01:58:48 +0000 (18:58 -0700)
committerRobert Marko <robimarko@gmail.com>
Fri, 10 Jan 2025 10:50:44 +0000 (11:50 +0100)
commit219ee4d4d73b72490ad4f2bae0427bf35501b22e
treeeeb2a9efef032ffe9b57dcd8e7a97f576b49a34f
parent992afd2caba654bd0934ff616ed0149cd035661e
ipq806x: chromium: Support Chromium "crossystem" GPIO tooling

ChromiumOS's vboot_reference tooling [1] provides convenient access to
various firmware and hardware details via its `crossystem` tool.
crossystem currently:
(1) relies on the v1 GPIO cdev API to read GPIOs; and
(2) expects gpio-line-names properties.

Enable the kernel config, and document a few pins for OnHub devices.

I only go so far as to pull two relevant names out of the vendor device
tree. Others could perhaps be backfilled if the info is available and
useful.

[1] https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/HEAD/README

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16014
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq806x/chromium/config-default
target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8064-tplink-onhub.dts