Skip to content

Commit

Permalink
scripts: genpinctrl: substitute "-" by "_"
Browse files Browse the repository at this point in the history
"-" could be used in signal names in .xml files.
This character is not allowed in dts format so replace it by "_"
before generation.

Signed-off-by: Erwan Gouriou <[email protected]>
  • Loading branch information
erwango committed Jan 11, 2024
1 parent 2292590 commit 4e94213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/genpinctrl/genpinctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def main(data_path, output):
"port": pin["port"],
"pin": pin["pin"],
"mod": pin["mod"],
"signal": signal["name"].lower(),
"signal": signal["name"].lower().replace("-", "_"),
"af": signal["af"],
"mode": signal["mode"],
"drive": af.get("drive"),
Expand Down

0 comments on commit 4e94213

Please sign in to comment.