ec_fw Test & Example DirectoryThis directory contains reference example files for validating and testing the ec_fw EC Devicetree generator.
ExampleEcPinout.csv: Sample hardware EC pinout CSV spreadsheet containing signal names, direction, internal pull-ups/pull-downs, voltage levels, pin type overrides, enum names, and variant pinout columns (NPCX99 (NPCX), IT82002 (ITE)).generated.dtsi: Reference Devicetree overlay output generated from ExampleEcPinout.csv using the Nuvoton NPCX9 (npcx99) chip definition and --pin-col="NPCX99 (NPCX)".NPCX99 Variant - Nuvoton NPCX9)Run the following command from the repository root:
go run ./ec_fw --chip=npcx99 \ --csv=ec_fw/test/ExampleEcPinout.csv \ --pin-col="NPCX99 (NPCX)" \ --output=ec_fw/test/generated.dtsi
IT82002 Variant - ITE IT82002)To generate for an ITE-based variant from the same spreadsheet:
go run ./ec_fw --chip=it82002 \ --csv=ec_fw/test/ExampleEcPinout.csv \ --pin-col="IT82002 (ITE)" \ --output=ec_fw/test/generated_ite.dtsi