Skip to content
Permalink
Browse files

scripts/dts: Mark 'non-S' forms of cell and controllers as deprecated

Now that we've converted all _GPIO_ to _GPIOS_ we can mark the _GPIO_
form as deprecated (same for _PWM_ / _PWMS_).

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Jun 19, 2019
1 parent 77d143a commit 5c78b93c6be804bb0b500c9946f2b0132ede6cc8
Showing with 6 additions and 4 deletions.
  1. +2 −2 scripts/dts/extract/reg.py
  2. +4 −2 scripts/dts/extract_dts_includes.py
@@ -41,9 +41,9 @@ def extract(self, node_path, names, def_label, div):
pass

if cs_gpios:
extract_controller(node_path, "cs-gpios", cs_gpios, reg[0], def_label, "cs-gpio", True)
extract_controller(node_path, "cs-gpios", cs_gpios, reg[0], def_label, "cs-gpio", True, True)
extract_controller(node_path, "cs-gpios", cs_gpios, reg[0], def_label, "cs-gpios", True)
extract_cells(node_path, "cs-gpios", cs_gpios, None, reg[0], def_label, "cs-gpio", True)
extract_cells(node_path, "cs-gpios", cs_gpios, None, reg[0], def_label, "cs-gpio", True, True)
extract_cells(node_path, "cs-gpios", cs_gpios, None, reg[0], def_label, "cs-gpios", True)

# generate defines
@@ -82,12 +82,14 @@ def generate_prop_defines(node_path, prop):
prop_values = reduced[node_path]['props'][prop]
generic = prop[:-1] # Drop the 's' from the prop

# Deprecated the non-'S' form
extract_controller(node_path, prop, prop_values, 0,
def_label, generic)
def_label, generic, deprecate=True)
extract_controller(node_path, prop, prop_values, 0,
def_label, prop)
# Deprecated the non-'S' form
extract_cells(node_path, prop, prop_values,
names, 0, def_label, generic)
names, 0, def_label, generic, deprecate=True)
extract_cells(node_path, prop, prop_values,
names, 0, def_label, prop)
else:

0 comments on commit 5c78b93

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