Merge tag 'gpio-v5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux...
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Mar 2019 18:09:53 +0000 (10:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Mar 2019 18:09:53 +0000 (10:09 -0800)
Pull GPIO updates from Linus Walleij:
 "This is the bulk of GPIO changes for the v5.1 cycle:

  Core changes:

   - The big change this time around is the irqchip handling in the
     qualcomm pin controllers, closely coupled with the gpiochip. This
     rework, in a classic fall-between-the-chairs fashion has been
     sidestepped for too long.

     The Qualcomm IRQchips using the SPMI and SSBI transport mechanisms
     have been rewritten to use hierarchical irqchip. This creates the
     base from which I intend to gradually pull support for hierarchical
     irqchips into the gpiolib irqchip helpers to cut down on duplicate
     code.

     We have too many hacks in the kernel because people have been
     working around the missing hierarchical irqchip for years, and once
     it was there, noone understood it for a while. We are now slowly
     adapting to using it.

     This is why this pull requests include changes to MFD, SPMI,
     IRQchip core and some ARM Device Trees pertaining to the Qualcomm
     chip family. Since Qualcomm have so many chips and such large
     deployments it is paramount that this platform gets this right, and
     now it (hopefully) does.

   - Core support for pull-up and pull-down configuration, also from the
     device tree. When a simple GPIO chip supports an "off or on" pull-up
     or pull-down resistor, we provide a way to set this up using
     machine descriptors or device tree.

     If more elaborate control of pull up/down (such as resistance shunt
     setting) is required, drivers should be phased over to use pin
     control. We do not yet provide a userspace ABI for this pull
     up-down setting but I suspect the makers are going to ask for it
     soon enough. PCA953x is the first user of this new API.

   - The GPIO mockup driver has been revamped after some discussion
     improving the IRQ simulator in the process.

     The idea is to make it possible to use the mockup for both testing
     and virtual prototyping, e.g. when you do not yet have a GPIO
     expander to play with but really want to get something to develop
     code around before hardware is available. It's neat. The blackbox
     testing usecase is currently making its way into kernelci.

   - ACPI GPIO core preserves non direction flags when updating flags.

   - A new device core helper for devm_platform_ioremap_resource() is
     funneled through the GPIO tree with Greg's ACK.

  New drivers:

   - TQ-Systems QTMX86 GPIO controllers (using port-mapped I/O)

   - Gateworks PLD GPIO driver (vaccumed up from OpenWrt)

   - AMD G-Series PCH (Platform Controller Hub) GPIO driver.

   - Fintek F81804 & F81966 subvariants.

   - PCA953x now supports NXP PCAL6416.

  Driver improvements:

   - IRQ support on the Nintendo Wii (Hollywood) GPIO.

   - get_direction() support for the MVEBU driver.

   - Set the right output level on SAMA5D2.

   - Drop the unused irq trigger setting on the Spreadtrum driver.

   - Wakeup support for PCA953x.

   - A slew of cleanups in the various Intel drivers"

* tag 'gpio-v5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: (110 commits)
  gpio: gpio-omap: fix level interrupt idling
  gpio: amd-fch: Set proper output level for direction_output
  x86: apuv2: remove unused variable
  gpio: pca953x: Use PCA_LATCH_INT
  platform/x86: fix PCENGINES_APU2 Kconfig warning
  gpio: pca953x: Fix dereference of irq data in shutdown
  gpio: amd-fch: Fix type error found by sparse
  gpio: amd-fch: Drop const from resource
  gpio: mxc: add check to return defer probe if clock tree NOT ready
  gpio: ftgpio: Register per-instance irqchip
  gpio: ixp4xx: Add DT bindings
  x86: pcengines apuv2 gpio/leds/keys platform driver
  gpio: AMD G-Series PCH gpio driver
  drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()
  gpio: tqmx86: Set proper output level for direction_output
  gpio: sprd: Change to use SoC compatible string
  gpio: sprd: Use SoC compatible string instead of wildcard string
  gpio: of: Handle both enable-gpio{,s}
  gpio: of: Restrict enable-gpio quirk to regulator-gpio
  gpio: davinci: use devm_platform_ioremap_resource()
  ...

15 files changed:
1  2 
Documentation/devicetree/bindings/vendor-prefixes.txt
MAINTAINERS
arch/arm/boot/dts/qcom-apq8064.dtsi
arch/arm/boot/dts/qcom-mdm9615.dtsi
arch/arm/boot/dts/qcom-msm8660.dtsi
arch/arm/boot/dts/qcom-pm8941.dtsi
drivers/base/platform.c
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib-of.c
drivers/mfd/Kconfig
include/linux/irq.h
include/linux/irqdomain.h
include/linux/platform_device.h
kernel/irq/chip.c
kernel/irq/irqdomain.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
index 9a91b758f7aad3ea42a43037bbe401e41d546a66,e65049e0fb452407795e7ebf0a79c3d79bd68e98..f198480c8ef41e09e7910ea8c1b813366e9ed361
                        compatible = "qcom,pm8941-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;
                        gpio-controller;
 +                      gpio-ranges = <&pm8941_gpios 0 0 36>;
                        #gpio-cells = <2>;
-                       interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
-                                    <0 0xc1 0 IRQ_TYPE_NONE>,
-                                    <0 0xc2 0 IRQ_TYPE_NONE>,
-                                    <0 0xc3 0 IRQ_TYPE_NONE>,
-                                    <0 0xc4 0 IRQ_TYPE_NONE>,
-                                    <0 0xc5 0 IRQ_TYPE_NONE>,
-                                    <0 0xc6 0 IRQ_TYPE_NONE>,
-                                    <0 0xc7 0 IRQ_TYPE_NONE>,
-                                    <0 0xc8 0 IRQ_TYPE_NONE>,
-                                    <0 0xc9 0 IRQ_TYPE_NONE>,
-                                    <0 0xca 0 IRQ_TYPE_NONE>,
-                                    <0 0xcb 0 IRQ_TYPE_NONE>,
-                                    <0 0xcc 0 IRQ_TYPE_NONE>,
-                                    <0 0xcd 0 IRQ_TYPE_NONE>,
-                                    <0 0xce 0 IRQ_TYPE_NONE>,
-                                    <0 0xcf 0 IRQ_TYPE_NONE>,
-                                    <0 0xd0 0 IRQ_TYPE_NONE>,
-                                    <0 0xd1 0 IRQ_TYPE_NONE>,
-                                    <0 0xd2 0 IRQ_TYPE_NONE>,
-                                    <0 0xd3 0 IRQ_TYPE_NONE>,
-                                    <0 0xd4 0 IRQ_TYPE_NONE>,
-                                    <0 0xd5 0 IRQ_TYPE_NONE>,
-                                    <0 0xd6 0 IRQ_TYPE_NONE>,
-                                    <0 0xd7 0 IRQ_TYPE_NONE>,
-                                    <0 0xd8 0 IRQ_TYPE_NONE>,
-                                    <0 0xd9 0 IRQ_TYPE_NONE>,
-                                    <0 0xda 0 IRQ_TYPE_NONE>,
-                                    <0 0xdb 0 IRQ_TYPE_NONE>,
-                                    <0 0xdc 0 IRQ_TYPE_NONE>,
-                                    <0 0xdd 0 IRQ_TYPE_NONE>,
-                                    <0 0xde 0 IRQ_TYPE_NONE>,
-                                    <0 0xdf 0 IRQ_TYPE_NONE>,
-                                    <0 0xe0 0 IRQ_TYPE_NONE>,
-                                    <0 0xe1 0 IRQ_TYPE_NONE>,
-                                    <0 0xe2 0 IRQ_TYPE_NONE>,
-                                    <0 0xe3 0 IRQ_TYPE_NONE>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
  
                        boost_bypass_n_pin: boost-bypass {
                                pins = "gpio21";
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge