linux-stable/Documentation/devicetree/bindings/gpio
Jeremy Kerr 8323d1e090 gpio/aspeed-sgpio: enable access to all 80 input & output sgpios
[ Upstream commit ac67b07e26 ]

Currently, the aspeed-sgpio driver exposes up to 80 GPIO lines,
corresponding to the 80 status bits available in hardware. Each of these
lines can be configured as either an input or an output.

However, each of these GPIOs is actually an input *and* an output; we
actually have 80 inputs plus 80 outputs.

This change expands the maximum number of GPIOs to 160; the lower half
of this range are the input-only GPIOs, the upper half are the outputs.
We fix the GPIO directions to correspond to this mapping.

This also fixes a bug when setting GPIOs - we were reading from the
input register, making it impossible to set more than one output GPIO.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Fixes: 7db47faae7 ("gpio: aspeed: Add SGPIO driver")
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-07 08:01:28 +02:00
..
8xxx_gpio.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
abilis,tb10x-gpio.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
brcm,bcm6345-gpio.txt
brcm,brcmstb-gpio.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
brcm,kona-gpio.txt
cavium-octeon-gpio.txt
cdns,gpio.txt dt-bindings: gpio: Add bindings for Cadence GPIO 2018-12-21 11:39:24 +01:00
cirrus,clps711x-mctrl-gpio.txt
faraday,ftgpio010.txt
fsl-imx-gpio.txt gpio: mxc: Add clocks optional binding for imx gpio 2018-07-09 15:02:13 +02:00
fujitsu,mb86s70-gpio.txt
gateworks,pld-gpio.txt gpio: Add DT bindings for Gateworks PLD GPIO 2019-02-08 12:32:10 +01:00
gpio-74x164.txt
gpio-74xx-mmio.txt
gpio-adnp.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-altera.txt dt-bindings: Remove leading 0x from bindings notation 2017-12-06 14:56:33 -06:00
gpio-aspeed.txt gpio: aspeed: Update documentation with ast2600 controllers 2019-09-11 11:03:06 +01:00
gpio-ath79.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-atlas7.txt
gpio-axp209.txt pinctrl: axp209: add support for AXP813 GPIOs 2017-12-07 10:08:12 +01:00
gpio-clps711x.txt
gpio-davinci.txt dt-bindings: gpio: davinci: Add new compatible for J721E SoCs 2019-08-15 09:46:29 +02:00
gpio-dsp-keystone.txt
gpio-eic-sprd.txt gpio: sprd: Use SoC compatible string instead of wildcard string 2019-02-21 13:17:53 +01:00
gpio-exar.txt
gpio-grgpio.txt
gpio-lp3943.txt
gpio-max732x.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-max3191x.txt
gpio-max77620.txt
gpio-mm-lantiq.txt
gpio-moxtet.txt dt-bindings: gpio: Document GPIOs via Moxtet bus 2019-08-14 15:31:02 +02:00
gpio-mpc8xxx.txt gpio: mpc8xxx: add ls1088a platform gpio node DT binding description 2019-08-23 09:36:49 +02:00
gpio-mvebu.txt doc: gpio-mvebu: fix broken reference to cp110-system-controller0.txt file 2019-01-16 12:50:27 -06:00
gpio-mxs.txt
gpio-nmk.txt
gpio-omap.txt gpio-omap.txt: add reg and interrupts properties 2018-12-20 15:47:48 -06:00
gpio-palmas.txt
gpio-pca953x.txt dt-bindings: gpio: pca953x: document the nxp,pca6416 2019-04-11 15:34:24 +02:00
gpio-pcf857x.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-pisosr.txt
gpio-samsung.txt
gpio-sprd.txt dt-bindings: gpio: Add Spreadtrum GPIO controller documentation 2018-03-02 10:58:12 +01:00
gpio-stericsson-coh901.txt
gpio-stmpe.txt
gpio-stp-xway.txt dt-bindings: Use lower case hex in unit-addresses 2017-12-26 10:37:05 -06:00
gpio-thunderx.txt
gpio-tpic2810.txt
gpio-ts4800.txt
gpio-ts4900.txt
gpio-twl4030.txt
gpio-uniphier.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-vf610.txt dt-bindings: gpio: vf610: add optional clocks property 2018-11-05 08:54:42 +01:00
gpio-xgene-sb.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-xgene.txt
gpio-xilinx.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-xlp.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-xra1403.txt
gpio-zevio.txt
gpio-zynq.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio.txt dt-bindings: gpio: document the new pull-up/pull-down flags 2019-02-13 09:07:43 +01:00
gpio_atmel.txt
gpio_lpc32xx.txt
gpio_oxnas.txt
ibm,ppc4xx-gpio.txt
intel,ixp4xx-gpio.txt gpio: ixp4xx: Add DT bindings 2019-02-22 17:44:41 +01:00
mediatek,mt7621-gpio.txt gpio: mt7621: Add DT bindings 2018-07-09 13:35:59 +02:00
microchip,pic32-gpio.txt
mrvl-gpio.txt
netxbig-gpio-ext.txt
ni,169445-nand-gpio.txt
nintendo,hollywood-gpio.txt Devicetree updates for 4.19: 2018-08-14 12:41:49 -07:00
nvidia,tegra20-gpio.txt
nvidia,tegra186-gpio.txt dt-bindings: tegra186-gpio: Add information for Tegra194 2018-07-02 16:00:49 +02:00
nxp,lpc1850-gpio.txt dt-bindings: gpio: lpc18xx: describe interrupt controllers of GPIO controller 2018-12-07 10:57:11 +01:00
pl061-gpio.yaml dt-bindings: gpio: Convert Arm PL061 to json-schema 2019-05-28 10:28:15 +02:00
raspberrypi,firmware-gpio.txt dt-bindings: gpio: add raspberry pi GPIO expander binding 2018-02-22 13:48:31 +01:00
renesas,gpio-rcar.txt dt-bindings: gpio: rcar: Add r8a774c0 (RZ/G2E) support 2018-12-17 23:06:27 +01:00
rockchip,rk3328-grf-gpio.txt gpio: syscon: rockchip: add GRF GPIO support for rk3328 2018-08-06 23:46:55 +02:00
sgpio-aspeed.txt gpio/aspeed-sgpio: enable access to all 80 input & output sgpios 2020-10-07 08:01:28 +02:00
snps,creg-gpio.txt dt-bindings: Document the Synopsys GPIO via CREG bindings 2018-10-10 09:19:14 +02:00
snps-dwapb-gpio.txt gpio: dwapb: Correct the DT node name in the example 2018-11-26 09:42:29 +01:00
sodaville.txt
spear_spics.txt
wd,mbl-gpio.txt
zx296702-gpio.txt