From 4e9421371b2176e5b61177a3598939b423c4ccd3 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Fri, 6 Oct 2023 08:45:56 +0200 Subject: [PATCH] scripts: genpinctrl: substitute "-" by "_" "-" 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 --- scripts/genpinctrl/genpinctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/genpinctrl/genpinctrl.py b/scripts/genpinctrl/genpinctrl.py index ecae946b0..4e331c9cf 100644 --- a/scripts/genpinctrl/genpinctrl.py +++ b/scripts/genpinctrl/genpinctrl.py @@ -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"),