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

Lars Povlsen lars.povlsen at microchip.com
Thu Dec 27 12:35:20 UTC 2018


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 at gmail.com> and Linus Walleij
<linus.walleij at 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

-- 
2.19.2



More information about the U-Boot mailing list