Skip to content
Browse files

dts/scripts: mark all non DT_ prefix deprecated

Now that we've converted LED and SW to use DT_ prefix we can mark the
non-DT_ prefixed versions as deprecated.

Signed-off-by: Kumar Gala <>
  • Loading branch information...
galak committed Jun 21, 2019
1 parent 5c78b93 commit 81072b53a6733fd5f5795c042505402881e40b29
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/dts/
@@ -305,14 +305,16 @@ def max_dict_key(dct):
deprecated_warn = False
if prop in deprecated_main:
deprecated_warn = True
if not prop.startswith('DT_'):
deprecated_warn = True
f.write(define_str(prop, defs[node][prop], value_tabs, deprecated_warn))

for alias in sorted(defs[node]['aliases']):
alias_target = defs[node]['aliases'][alias]
deprecated_warn = False
# Mark any non-DT_ prefixed define as deprecated except
# for now we special case LED, SW, and *PWM_LED*
if not alias.startswith(('DT_', 'LED', 'SW')) and not 'PWM_LED' in alias:
if not alias.startswith('DT_'):
deprecated_warn = True
if alias in deprecated:
deprecated_warn = True

0 comments on commit 81072b5

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