Skip to content

MIPS: Add support for OCTEON cn78xx and cn73xx.

David Daney linux-devicetree linux-mips lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v17 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8MIPS: OCTEON: Remove some code limiting NR_IRQS to 255arch/mips/cavium-octeon/octeon-irq.c+2 -250 replies
2/8MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.arch/mips/Kconfig arch/mips/include/asm/irq_regs.h+11 -00 replies
3/8MIPS: OCTEON: Add register definitions for cn73xx, cnf75xx and cn78xx.arch/mips/include/asm/octeon/cvmx-ciu3-defs.h arch/mips/include/asm/octeon/cvmx-fpa-defs.h arch/mips/include/asm/octeon/cvmx-mio-defs.h+748 -160 replies
4/8MIPS: OCTEON: Add model checking support for cn73xx, cnf75xx and cn78xxarch/mips/cavium-octeon/executive/octeon-model.c arch/mips/include/asm/octeon/cvmx.h arch/mips/include/asm/octeon/octeon-feature.h +1 more+125 -80 replies
5/8MIPS: OCTEON: Don't attempt to use nonexistent registers on OCTEON III models.arch/mips/cavium-octeon/csrc-octeon.c arch/mips/cavium-octeon/setup.c+30 -170 replies
6/8MIPS: OCTEON: Add support for OCTEON III interrupt controller.Documentation/devicetree/bindings/mips/cavium/ciu3.txt arch/mips/cavium-octeon/octeon-irq.c arch/mips/include/asm/octeon/octeon.h+695 -10 replies
7/8MIPS: OCTEON: Add SMP support for OCTEON cn78xx et al.arch/mips/cavium-octeon/setup.c arch/mips/cavium-octeon/smp.c arch/mips/include/asm/octeon/octeon.h+139 -160 replies
8/8MIPS: OCTEON: Simplify code in octeon_irq_ciu_gpio_set_type()arch/mips/cavium-octeon/octeon-irq.c+1 -10 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/8
2/8
3/8
4/8
5/8
6/8A-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] MIPS: Add support for OCTEON cn78xx and cn73xx.

From: David Daney <[email protected]>

The OCTEON III cn78xx and cn73xx family of SoCs has some architectural differences from previous OCTEON processors.

Here we add support for the new interrupt controller and related IPI machinery. This is enough to be able to boot an initrd based system to a command prompt on the serial console.

Still pending are support for: PCI, Watchdog, I2C, Sata, USB, Ethernet, etc.

This set depends on these two sets:
http://www.linux-mips.org/archives/linux-mips/2016-02/msg00051.html
http://www.linux-mips.org/archives/linux-mips/2016-02/msg00041.html

All patches are to the MIPS tree except the device tree binding definition. Probably they could be merged via Ralf's tree if there were no objections.

Changes from v1: Added Acked-by: Rob Herring to 6/8. Simplifications
suggested by tglx. Added 8/8.

David Daney (8):
MIPS: OCTEON: Remove some code limiting NR_IRQS to 255
MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.
MIPS: OCTEON: Add register definitions for cn73xx, cnf75xx and

    cn78xx.
  MIPS: OCTEON: Add model checking support for cn73xx, cnf75xx and
    cn78xx

MIPS: OCTEON: Don't attempt to use nonexistent registers on OCTEON
III models.
MIPS: OCTEON: Add support for OCTEON III interrupt controller.
MIPS: OCTEON: Add SMP support for OCTEON cn78xx et al.
MIPS: OCTEON: Simplify code in octeon_irq_ciu_gpio_set_type()

 .../devicetree/bindings/mips/cavium/ciu3.txt       |  27 +
 arch/mips/Kconfig                                  |   1 +
 arch/mips/cavium-octeon/csrc-octeon.c              |  13 +-
 arch/mips/cavium-octeon/executive/octeon-model.c   |  82 ++-
 arch/mips/cavium-octeon/octeon-irq.c               | 679 ++++++++++++++++++++-
 arch/mips/cavium-octeon/setup.c                    |  36 +-
 arch/mips/cavium-octeon/smp.c                      | 145 ++++-
 arch/mips/include/asm/irq_regs.h                   |  10 +
 arch/mips/include/asm/octeon/cvmx-ciu3-defs.h      | 353 +++++++++++
 arch/mips/include/asm/octeon/cvmx-fpa-defs.h       |   1 +
 arch/mips/include/asm/octeon/cvmx-mio-defs.h       | 410 ++++++++++++-
 arch/mips/include/asm/octeon/cvmx.h                |  27 +-
 arch/mips/include/asm/octeon/octeon-feature.h      |  19 +-
 arch/mips/include/asm/octeon/octeon-model.h        |   5 +
 arch/mips/include/asm/octeon/octeon.h              |  25 +
 15 files changed, 1750 insertions(+), 83 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mips/cavium/ciu3.txt
 create mode 100644 arch/mips/include/asm/octeon/cvmx-ciu3-defs.h
Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signature · 1 line
1.7.11.7