mbox series

[U-Boot,v2,0/6] mips: mscc: gpio: Add MSCC serial GPIO driver

Message ID 20181227123526.16109-1-lars.povlsen@microchip.com
Headers show
Series mips: mscc: gpio: Add MSCC serial GPIO driver | expand

Message

Lars Povlsen Dec. 27, 2018, 12:35 p.m. UTC
This patch series add the GPIO device (SIO) in the MSCC VCoreIII-based
SOCs, and enables it on the supported platforms.

By using a serial interface, the SIO controller significantly extends
the number of available GPIOs with a minimum number of additional pins
on the device. The primary purpose of the SIO controller is to connect
control signals from SFP modules and to act as an LED controller.

This version adress comments from Daniel Schwierzeck
<daniel.schwierzeck@gmail.com> and Linus Walleij
<linus.walleij@linaro.org>.

This is based off the u-boot-mips repository.

v2 changes:
 - Extended the DT bindings documentation
 - Eliminated the need for the "mscc,sgpio-bitcount" property.
 - Using dev_read_u32_default() instead of fdtdec_get_int()
 - Using map_physmem()
 - Added MAINTAINERS entry for driver

Lars Povlsen (6):
  mips: mscc_sgpio: Add the MSCC serial GPIO device (SIO)
  mips: mscc_sgpio: Add DT bindings documentation
  mips: luton: DT: Enable use of serial gpio
  mips: luton: Enable use of serial gpio for LED
  mips: ocelot: DT: Enable use of serial gpio
  mips: ocelot: Enable use of serial gpio for LED

 MAINTAINERS                                  |   1 +
 arch/mips/dts/luton_pcb090.dts               |  21 ++
 arch/mips/dts/luton_pcb091.dts               |  27 ++
 arch/mips/dts/mscc,luton.dtsi                |  20 ++
 arch/mips/dts/mscc,ocelot.dtsi               |  23 ++
 arch/mips/dts/ocelot_pcb120.dts              |  76 +++++
 arch/mips/dts/ocelot_pcb123.dts              |  25 ++
 board/mscc/luton/luton.c                     |   6 +
 board/mscc/ocelot/ocelot.c                   |   6 +
 configs/mscc_luton_defconfig                 |   3 +
 configs/mscc_ocelot_defconfig                |   3 +
 doc/device-tree-bindings/gpio/mscc_sgpio.txt |  45 +++
 drivers/gpio/Kconfig                         |  11 +
 drivers/gpio/Makefile                        |   1 +
 drivers/gpio/mscc_sgpio.c                    | 274 +++++++++++++++++++
 15 files changed, 542 insertions(+)
 create mode 100644 doc/device-tree-bindings/gpio/mscc_sgpio.txt
 create mode 100644 drivers/gpio/mscc_sgpio.c