diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-03-11 10:12:32 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-11 18:41:33 +0000 |
commit | 5afccf8b3eb17c063467024c1452dc18d4088e7a (patch) | |
tree | d77a544cbe53670e2686ea64c97a5d6a7ed211db /docs/zephyr_poc_device_bringup.md | |
parent | dd26b58f8c23acd6e2277c32ff9ce7cc27b8b779 (diff) | |
download | chrome-ec-5afccf8b3eb17c063467024c1452dc18d4088e7a.tar.gz |
zephyr: add a utility to convert gpio.inc to device tree
Add a developer-only utility for converting a gpio.inc file to DTS.
I hope this gets deleted someday when we aren't doing PoCs anymore.
BUG=none
BRANCH=none
TEST=compile/run instructions at top of file, BOARD=lazor
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I354c8917bac0b82f904e07c3e029806ecb67d6d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752795
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'docs/zephyr_poc_device_bringup.md')
-rw-r--r-- | docs/zephyr_poc_device_bringup.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/zephyr_poc_device_bringup.md b/docs/zephyr_poc_device_bringup.md index e61ca57e2c..394aa4a05b 100644 --- a/docs/zephyr_poc_device_bringup.md +++ b/docs/zephyr_poc_device_bringup.md @@ -20,6 +20,11 @@ An example CL to do this for Lazor can be found After you have UART functioning, GPIOs can be an easy target to start unblocking further features. +We have a very ugly program to auto-generate the GPIO DTS based on +gpio.inc for the existing board. You can find it at +`util/gpios_to_zephyr_dts.c`, and instructions are in the file on how +to compile and use it. You may have to hand-modify the output. + The resultant CL for Lazor can be found [here](https://crrev.com/c/2749768). ## Bring up Host Commands |