Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-sp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-sp
  • Repository
Switch branch/tag
  • linux-sp
  • arch
  • arm
  • boot
  • dts
  • am4372.dtsi
Find file BlameHistoryPermalink
  • Mathieu Malaterre's avatar
    ARM: dts: am3/am4/dra7/omap: Remove leading 0x and 0s from bindings notation · 9b490b3d
    Mathieu Malaterre authored Dec 15, 2017
    Improve the DTS files by removing all the leading "0x" and zeros to fix the
    following dtc warnings:
    
    Warning (unit_address_format): Node /XXX unit name should not have
    leading "0x"
    
    and
    
    Warning (unit_address_format): Node /XXX unit name should not have
    leading 0s
    
    Converted using the following command:
    
    $ find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec \
    sed -i -e "s/@\([0-9a-fA-FxX\.;:#]+\)\s*{/@\L\1 {/g" \
    -e "s/@0x\(.*\) {/@\1 {/g" -e "s/@0+\(.*\) {/@\1 {/g" {} +^C
    
    For simplicity, two sed expressions were used to solve each warnings
    separately.
    
    To make the regex expression more robust a few other issues were resolved,
    namely setting unit-address to lower case, and adding a whitespace before
    the the opening curly brace:
    
    https://elinux.org/Device_Tree_Linux#Linux_conventions
    
    This will solve as a side effect warning:
    
    Warning (simple_bus_reg): Node /XXX@<UPPER> simple-bus unit address format
    error, expected "<lower>"
    
    This is a follow up to commit 4c9847b7
    
     ("dt-bindings: Remove leading
    0x from bindings notation")
    
    Reported-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
    Suggested-by: default avatarRob Herring <robh@kernel.org>
    Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    9b490b3d