[PATCH 0/8] ARM: at91/dt: make use of periph id macros

Boris BREZILLON b.brezillon at overkiz.com
Thu Aug 1 02:48:53 EDT 2013


Hello,

This patch series move at91 SoCs peripheral id definitions from machine
specific include dir to dt-bindings include dir.
These macros are used to reference interrupts instead of peripheral numbers.

This makes dt definitions cleaner and easier to debug (one can easily tell if
the peripheral macro used to reference an interrupt line is not the good one).

These macros will be used for clk definitions and references too.

I am not sure 'include/dt-bindings/at91/xxx' is the best place to put these
definitions as there are no soc specific directories in dt-bindings include
dir right now. Maybe something like 'include/dt-bindings/soc/at91/xxx' or
'include/dt-bindings/peripherals/at91/xxx' would be better.
What do you think ?

Best Regards,

Boris

Boris BREZILLON (8):
  ARM: at91: move peripheral id definitions to dt-bindings include dir
  ARM: at91/dt: use periph id macros for at91rm9200 interrupt
    definitions
  ARM: at91/dt: use periph id macros for at91sam9260 interrupt
    definitions
  ARM: at91/dt: use periph id macros for at91sam9263 interrupt
    definitions
  ARM: at91/dt: use periph id macros for at91sam9g45 interrupt
    definitions
  ARM: at91/dt: use periph id macros for at91sam9n12 interrupt
    definitions
  ARM: at91/dt: use periph id macros for at91sam9x5 interrupt
    definitions
  ARM: at91/dt: use periph id macros for sama5d3 interrupt definitions

 arch/arm/boot/dts/at91rm9200.dtsi                  |   59 ++++++++------
 arch/arm/boot/dts/at91sam9260.dtsi                 |   57 +++++++-------
 arch/arm/boot/dts/at91sam9263.dtsi                 |   46 +++++------
 arch/arm/boot/dts/at91sam9g45.dtsi                 |   57 +++++++-------
 arch/arm/boot/dts/at91sam9n12.dtsi                 |   43 +++++-----
 arch/arm/boot/dts/at91sam9x5.dtsi                  |   63 +++++++--------
 arch/arm/boot/dts/sama5d3.dtsi                     |   83 ++++++++++----------
 arch/arm/mach-at91/include/mach/at91rm9200.h       |   31 +-------
 arch/arm/mach-at91/include/mach/at91sam9260.h      |   29 +------
 arch/arm/mach-at91/include/mach/at91sam9261.h      |   23 +-----
 arch/arm/mach-at91/include/mach/at91sam9263.h      |   27 +------
 arch/arm/mach-at91/include/mach/at91sam9g45.h      |   31 +-------
 arch/arm/mach-at91/include/mach/at91sam9n12.h      |   26 +-----
 arch/arm/mach-at91/include/mach/at91sam9rl.h       |   25 +-----
 arch/arm/mach-at91/include/mach/at91sam9x5.h       |   32 +-------
 arch/arm/mach-at91/include/mach/hardware.h         |    3 +-
 arch/arm/mach-at91/include/mach/sama5d3.h          |   48 +----------
 include/dt-bindings/at91/at91rm9200/peripherals.h  |   44 +++++++++++
 include/dt-bindings/at91/at91sam9260/peripherals.h |   42 ++++++++++
 include/dt-bindings/at91/at91sam9261/peripherals.h |   36 +++++++++
 include/dt-bindings/at91/at91sam9263/peripherals.h |   40 ++++++++++
 include/dt-bindings/at91/at91sam9g45/peripherals.h |   44 +++++++++++
 include/dt-bindings/at91/at91sam9n12/peripherals.h |   41 ++++++++++
 include/dt-bindings/at91/at91sam9rl/peripherals.h  |   38 +++++++++
 include/dt-bindings/at91/at91sam9x5/peripherals.h  |   45 +++++++++++
 include/dt-bindings/at91/common/peripherals.h      |   14 ++++
 include/dt-bindings/at91/sama5d3/peripherals.h     |   63 +++++++++++++++
 27 files changed, 629 insertions(+), 461 deletions(-)
 create mode 100644 include/dt-bindings/at91/at91rm9200/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9260/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9261/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9263/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9g45/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9n12/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9rl/peripherals.h
 create mode 100644 include/dt-bindings/at91/at91sam9x5/peripherals.h
 create mode 100644 include/dt-bindings/at91/common/peripherals.h
 create mode 100644 include/dt-bindings/at91/sama5d3/peripherals.h

-- 
1.7.9.5




More information about the linux-arm-kernel mailing list