Skip to content

MIPS: ath79: Add OF support and DTS for TL-WR1043ND

Alban Bedel linux-devicetree linux-mips lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest12 patches 9 repliesIn review
  2. v312 patches 4 repliesSuperseded
  3. v212 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v114 patches9 repliesSuperseded

ChangeLog from the cover letter

v2: * Fixed the OF bindings and DTS to use ePAPR standardized names
* Fixed the typos in the OF bindings
* Added an ngpios property to the GPIO binding and driver
* Removed all the soc_is_xxx() calls out of the GPIO driver probe()
* Updated the DTS patches to the new directory structure and merged both in one. Having 3 patches to add Makefile, SoC dtsi and board DTS seemed a bit overkill.
* Moved the patch to use the common clk API to the bug fix serie to keep this one cleaner.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12devicetree: Add bindings for the SoC of the ATH79 familyDocumentation/devicetree/bindings/mips/ath79-soc.txt+21 -00 replies
2/12MIPS: ath79: Add basic device tree supportarch/mips/Kconfig arch/mips/ath79/machtypes.h arch/mips/ath79/setup.c+28 -10 replies
3/12devicetree: Add bindings for the ATH79 DDR controllersDocumentation/devicetree/bindings/memory-controllers/ath79-ddr-controller.txt+35 -01 reply
4/12devicetree: Add bindings for the ATH79 interrupt controllersDocumentation/devicetree/bindings/interrupt-controller/qca,ath79-cpu-intc.txt+44 -00 replies
5/12devicetree: Add bindings for the ATH79 MISC interrupt controllersDocumentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt+30 -01 reply
6/12MIPS: ath79: Add OF support to the IRQ controllersarch/mips/ath79/irq.c+86 -10 replies
7/12devicetree: Add bindings for the ATH79 PLL controllersDocumentation/devicetree/bindings/clock/qca,ath79-pll.txt+33 -00 replies
8/12MIPS: ath79: Add OF support to the clocksarch/mips/ath79/clock.c+44 -190 replies
9/12devicetree: Add bindings for the ATH79 GPIO controllersDocumentation/devicetree/bindings/gpio/gpio-ath79.txt+38 -00 replies
10/12MIPS: ath79: Add OF support to the GPIO driverarch/mips/ath79/dev-common.c arch/mips/ath79/gpio.c include/linux/platform_data/gpio-ath79.h+127 -220 replies
11/12of: Add vendor prefix for TP-Link Technologies Co. LtdDocumentation/devicetree/bindings/vendor-prefixes.txt+1 -00 replies
12/12MIPS: Add basic support for the TL-WR1043ND version 1arch/mips/ath79/Kconfig arch/mips/boot/dts/Makefile arch/mips/boot/dts/qca/Makefile +2 more+269 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 00/12] MIPS: ath79: Add OF support and DTS for TL-WR1043ND

This series add OF bindings and code support for the interrupt controllers, clocks and GPIOs. However it was only tested on a TL-WR1043ND with an AR9132, others SoCs are untested, and a few are not supported at all.

Most code changes base on the previous bug fix series:
[PATCH v2 0/5] MIPS: ath79: Various small fix to prepare OF support

The requested patch to move the GPIO driver to drivers/gpio is ready and will follow once it is clearer if this serie get merged.

ChangeLog:
v2: * Fixed the OF bindings and DTS to use ePAPR standardized names
* Fixed the typos in the OF bindings
* Added an ngpios property to the GPIO binding and driver
* Removed all the soc_is_xxx() calls out of the GPIO driver probe()
* Updated the DTS patches to the new directory structure and merged both in one. Having 3 patches to add Makefile, SoC dtsi and board DTS seemed a bit overkill.
* Moved the patch to use the common clk API to the bug fix serie to keep this one cleaner.

v3: * Moved the builtin DTB menu to the patch adding the TL-WR1043ND DTS
* Made the builtin DTB menu optional
* Fixed more typos
* Really fixed the DDR controller binding example to use ePAPR names
* Fixed the qca9550 compatible string in the PLL bindings and driver
* Fixed the example in the GPIO controller binding
* Moved the new vendor entry to the correct place

v4: * Added the missing Signed-off-by on patch 08
* Whitspace fix in the GPIO controller binding
* Always build the DTB to improve testing coverage
* Added the SPI controller and flash to the DTS as the binding for the SPI controller has been accepted in the SPI tree

Alban Bedel (12):
devicetree: Add bindings for the SoC of the ATH79 family
MIPS: ath79: Add basic device tree support
devicetree: Add bindings for the ATH79 DDR controllers
devicetree: Add bindings for the ATH79 interrupt controllers
devicetree: Add bindings for the ATH79 MISC interrupt controllers
MIPS: ath79: Add OF support to the IRQ controllers
devicetree: Add bindings for the ATH79 PLL controllers
MIPS: ath79: Add OF support to the clocks
devicetree: Add bindings for the ATH79 GPIO controllers
MIPS: ath79: Add OF support to the GPIO driver
of: Add vendor prefix for TP-Link Technologies Co. Ltd
MIPS: Add basic support for the TL-WR1043ND version 1

 .../devicetree/bindings/clock/qca,ath79-pll.txt    |  33 +++++
 .../devicetree/bindings/gpio/gpio-ath79.txt        |  38 ++++++
 .../interrupt-controller/qca,ath79-cpu-intc.txt    |  44 +++++++
 .../interrupt-controller/qca,ath79-misc-intc.txt   |  30 +++++
 .../memory-controllers/ath79-ddr-controller.txt    |  35 ++++++
 .../devicetree/bindings/mips/ath79-soc.txt         |  21 ++++
 .../devicetree/bindings/vendor-prefixes.txt        |   1 +
 arch/mips/Kconfig                                  |   1 +
 arch/mips/ath79/Kconfig                            |  12 ++
 arch/mips/ath79/clock.c                            |  63 +++++++---
 arch/mips/ath79/dev-common.c                       |  51 ++++++++
 arch/mips/ath79/gpio.c                             |  79 ++++++++----
 arch/mips/ath79/irq.c                              |  87 +++++++++++++-
 arch/mips/ath79/machtypes.h                        |   1 +
 arch/mips/ath79/setup.c                            |  27 ++++-
 arch/mips/boot/dts/Makefile                        |   1 +
 arch/mips/boot/dts/qca/Makefile                    |  11 ++
 arch/mips/boot/dts/qca/ar9132.dtsi                 | 133 +++++++++++++++++++++
 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts   | 112 +++++++++++++++++
 include/linux/platform_data/gpio-ath79.h           |  19 +++
 20 files changed, 756 insertions(+), 43 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/qca,ath79-pll.txt
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-ath79.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qca,ath79-cpu-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/ath79-ddr-controller.txt
 create mode 100644 Documentation/devicetree/bindings/mips/ath79-soc.txt
 create mode 100644 arch/mips/boot/dts/qca/Makefile
 create mode 100644 arch/mips/boot/dts/qca/ar9132.dtsi
 create mode 100644 arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
 create mode 100644 include/linux/platform_data/gpio-ath79.h
Signature · 1 line
2.0.0