Skip to content

Commit 8d648d3

Browse files
juickarerwango
authored andcommitted
scripts:genpinctrl: Edit the genpinctrl to separate the mp1 and mp13 families
Edit the genpinctrl to generate the stm32mp13x pinctrl dtsi files into a mp13x folder Signed-off-by: Julien Racki <[email protected]>
1 parent bd13bd5 commit 8d648d3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/genpinctrl/genpinctrl.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,13 +624,15 @@ def main(data_path, output):
624624
else:
625625
logger.info(f"Processing family {family}...")
626626

627-
# create directory for each family
628-
family_dir = output / "st" / family.lower()[5:]
629-
if not family_dir.exists():
630-
family_dir.mkdir(parents=True)
631-
632-
# process each reference
627+
# create directory for each family and process each reference
633628
for ref in refs:
629+
if ref["name"].lower().startswith("stm32mp13"):
630+
family_dir = output / "st" / "mp13"
631+
else:
632+
family_dir = output / "st" / family.lower()[5:]
633+
if not family_dir.exists():
634+
family_dir.mkdir(parents=True)
635+
634636
entries = dict()
635637

636638
# process each pin in the current reference

0 commit comments

Comments
 (0)