1
0
Fork 0
alistair23-linux/Documentation/devicetree/bindings/gpio
Jeremy Kerr ac67b07e26 gpio/aspeed-sgpio: enable access to all 80 input & output sgpios
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>
2020-09-24 15:10:40 +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 gpio: dt-bindings: add brcm,bcm6345-gpio bindings 2016-08-11 16:15:53 +02:00
brcm,brcmstb-gpio.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
brcm,kona-gpio.txt dt-bindings: brcm: rationalize Broadcom documentation naming 2015-03-26 12:14:11 -05:00
brcm,xgs-iproc-gpio.yaml dt-bindings: Whitespace clean-ups in schema files 2020-08-14 08:55:58 -06:00
cavium-octeon-gpio.txt MIPS: Octeon: Add device tree source files. 2012-07-23 13:54:52 +01:00
cdns,gpio.txt dt-bindings: gpio: Add bindings for Cadence GPIO 2018-12-21 11:39:24 +01:00
cirrus,clps711x-mctrl-gpio.txt gpio: syscon: Change the compatibility string 2016-06-08 10:48:17 +02:00
faraday,ftgpio010.txt gpio: gemini: augment DT bindings 2017-03-22 09:38:12 +01:00
fsl-imx-gpio.yaml dt-bindings: gpio: Convert i.MX to json-schema 2020-05-11 13:54:58 -05:00
fujitsu,mb86s70-gpio.txt gpio: Add Fujitsu MB86S7x GPIO driver 2015-01-20 11:23:18 +01:00
gateworks,pld-gpio.txt gpio: Add DT bindings for Gateworks PLD GPIO 2019-02-08 12:32:10 +01:00
gpio-74x164.txt gpio: 74x164: Introduce 'enable-gpios' property 2017-08-14 16:24:02 +02:00
gpio-74xx-mmio.txt GPIO: 74xx-mmio: Add DT bindings documentation 2014-10-21 10:48:45 +02:00
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 pinctrl: sirf: add sirf atlas7 pinctrl and gpio support 2015-05-19 16:01:30 +02:00
gpio-axp209.txt pinctrl: axp209: add support for AXP813 GPIOs 2017-12-07 10:08:12 +01:00
gpio-clps711x.txt gpio: clps711x: Change the compatibility string 2016-06-08 10:48:09 +02:00
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 dt-bindings: Remove leading zeros from bindings notation 2017-11-09 17:05:05 -06:00
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: exar: Use correct property prefix and document bindings 2017-08-01 13:43:55 +02:00
gpio-grgpio.txt gpio: grgpio: Add irq support 2013-04-26 08:52:38 +02:00
gpio-lp3943.txt Documentation: Add LP3943 DT bindings and document 2014-01-21 08:27:55 +00:00
gpio-max732x.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-max3191x.txt dt-bindings: gpio: max3191x: Document new driver 2017-10-19 22:35:59 +02:00
gpio-max77620.txt gpio: add DT binding doc for gpio of PMIC max77620/max20024 2016-06-07 09:35:15 +02:00
gpio-mm-lantiq.txt GPIO: MIPS: lantiq: convert gpio-mm-lantiq to OF and of_mm_gpio 2012-05-21 14:31:53 +01:00
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 docs: dt: fix references to ap806-system-controller.txt 2020-03-31 09:03:34 -06:00
gpio-mxs.yaml dt-bindings: gpio: Convert mxs to json-schema 2020-05-28 15:24:31 -06:00
gpio-nmk.txt pinctrl: pinctrl-nomadik: Append sleepmode property with vendor specific prefixes 2012-07-13 10:14:39 +02:00
gpio-omap.txt gpio-omap.txt: add reg and interrupts properties 2018-12-20 15:47:48 -06:00
gpio-palmas.txt gpio: palmas: add dt support 2013-07-29 18:14:33 +02:00
gpio-pca953x.txt dt-bindings: gpio: pca953x: add nxp,pcal9535 2020-06-16 10:49:04 +02:00
gpio-pca9570.yaml gpio: pca9570: Add DT bindings for NXP PCA9570 2020-07-16 14:36:46 +02:00
gpio-pcf857x.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
gpio-pisosr.txt gpio: Add generic serializer DT binding 2016-03-15 09:54:28 +01:00
gpio-rda.yaml dt-bindings: gpio: Add devicetree binding for RDA Micro GPIO controller 2019-10-29 15:10:06 +01:00
gpio-samsung.txt gpio: samsung: Remove OF support for s3c24xx 2013-06-12 05:22:17 +09:00
gpio-sprd.txt dt-bindings: gpio: Add Spreadtrum GPIO controller documentation 2018-03-02 10:58:12 +01:00
gpio-stericsson-coh901.txt pinctrl: coh901: add device tree support 2013-05-31 11:25:45 +02:00
gpio-stmpe.txt gpio: stmpe: Add DT support for stmpe gpio 2012-12-01 17:45:16 +01:00
gpio-stp-xway.txt dt-bindings: Use lower case hex in unit-addresses 2017-12-26 10:37:05 -06:00
gpio-thunderx.txt dt-bindings: gpio: Add binding documentation for gpio-thunderx 2017-03-15 11:16:31 +01:00
gpio-tpic2810.txt dt-bindings: GPIO: Add TPIC2810 binding 2016-08-24 14:20:32 +02:00
gpio-ts4800.txt gpio: add bindings for TS-4800 gpio controller 2016-02-05 15:05:48 +01:00
gpio-ts4900.txt gpio: add bindings for Technologic I2C-FPGA gpio controller 2016-08-19 11:02:57 +02:00
gpio-twl4030.txt gpio/twl4030: get platform data from device tree 2012-09-07 19:22:27 +02: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 Documentation: gpio: Add APM X-Gene SoC GPIO controller DTS binding 2014-08-28 14:20:45 +02:00
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: Add XRA1403 DTS binding documentation 2017-04-24 15:48:30 +02:00
gpio-zevio.txt gpio: New driver for LSI ZEVIO SoCs 2014-02-27 10:30:42 +01:00
gpio-zynq.txt dt-bindings: gpio: Add pmc gpio node to gpio-zynq 2020-06-24 12:11:31 +02: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 dts: gpio_atmel: adapt binding doc to reality 2017-05-31 11:51:21 +02:00
gpio_lpc32xx.txt gpio/lpc32xx: Add device tree support 2012-05-18 16:48:36 -06:00
gpio_oxnas.txt dt-bindings: oxnas: Update Pinctrl and GPIO for OX820 Support 2016-10-24 16:30:14 +02:00
ibm,ppc4xx-gpio.txt gpio: dt-bindings: add ibm,ppc4xx-gpio binding 2016-05-19 09:16:36 -05:00
intel,ixp4xx-gpio.txt gpio: ixp4xx: Add DT bindings 2019-02-22 17:44:41 +01:00
mediatek,mt7621-gpio.txt doc: devicetree: bindings: fix spelling mistake 2020-06-18 12:36:53 -06:00
microchip,pic32-gpio.txt dt/bindings: Correct clk binding example for PIC32 gpio. 2016-05-28 12:35:04 +02:00
mrvl-gpio.yaml dt-bindings: gpio: Convert mrvl-gpio to json-schema 2020-07-13 12:49:08 -06:00
netxbig-gpio-ext.txt leds: netxbig: add device tree binding 2015-11-03 08:59:25 +01:00
ni,169445-nand-gpio.txt gpio: mmio: add support for NI 169445 NAND GPIO 2017-03-23 09:49:06 +01:00
nintendo,hollywood-gpio.txt Devicetree updates for 4.19: 2018-08-14 12:41:49 -07:00
nvidia,tegra20-gpio.txt dt: name all Tegra binding docs consistently 2012-06-11 11:48:42 -06:00
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
qcom,wcd934x-gpio.yaml dt-bindings: gpio: wcd934x: Add bindings for gpio 2020-01-13 21:31:57 +01:00
raspberrypi,firmware-gpio.txt dt-bindings: gpio: add raspberry pi GPIO expander binding 2018-02-22 13:48:31 +01:00
renesas,em-gio.yaml dt-bindings: gpio: Add renesas,em-gio bindings 2020-05-25 11:13:31 +02:00
renesas,rcar-gpio.yaml dt-bindings: Whitespace clean-ups in schema files 2020-08-14 08:55:58 -06: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-09-24 15:10:40 +02:00
sifive,gpio.yaml dt-bindings: Fix incorrect 'reg' property sizes 2020-05-14 14:43:27 -05:00
snps,creg-gpio.txt dt-bindings: Document the Synopsys GPIO via CREG bindings 2018-10-10 09:19:14 +02:00
snps,dw-apb-gpio.yaml dt-bindings: Remove more cases of 'allOf' containing a '$ref' 2020-06-11 13:50:43 -06:00
socionext,uniphier-gpio.yaml dt-bindings: Clean-up schema errors due to missing 'addtionalProperties: false' 2020-03-27 08:27:58 -06:00
sodaville.txt gpio: Add a driver for Sodaville GPIO controller 2012-02-03 16:13:25 -07:00
spear_spics.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
wd,mbl-gpio.txt gpio: dt-bindings: add wd,mbl-gpio bindings 2016-05-10 13:58:47 +02:00
xylon,logicvc-gpio.yaml dt-bindings: Add missing 'additionalProperties: false' 2020-03-31 09:03:17 -06:00
zx296702-gpio.txt gpio: Document ZTE zx296702 GPIO DT binding 2015-07-16 10:11:41 +02:00