Skip to content
Browse files

scripts/dts: Remove alias defines for bus parents with an alias

We generated some alias defines for children of a bus in which we had a
path alias for the bus node.  We never used these defines, we don't
recommend they get used (child of busses should use instance defines)
and they were only generated in small handful of cases (for dts that had
path aliases to the bus node - i2c or spi).

Remove this as effectively dead code.

Signed-off-by: Kumar Gala <>
  • Loading branch information...
galak authored and nashif committed May 21, 2019
1 parent 56e50cf commit fba8ac988c42584636432884012164dc2477d732
Showing with 0 additions and 11 deletions.
  1. +0 −11 scripts/dts/
@@ -158,17 +158,6 @@ def generate_bus_defines(node_path):
.format(node_path, parent_path,
binding['parent']['bus'], parent_bus))

# Generate alias definition if parent has any alias
if parent_path in aliases:
for i in aliases[parent_path]:
# Build an alias name that respects device tree specs
node_name = get_compat(node_path) + '-' + node_path.split('@')[-1]
node_strip = node_name.replace('@','-').replace(',','-')
node_alias = i + '-' + node_strip
if node_alias not in aliases[node_path]:
# Need to generate alias name for this node:

# Generate *_BUS_NAME #define

0 comments on commit fba8ac9

Please sign in to comment.
You can’t perform that action at this time.