linux-stable/Documentation/devicetree/bindings
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
..
arc
arm dt-bindings: arm: rockchip: fix Theobroma-System board bindings 2019-10-04 00:02:05 +02:00
ata dt-bindings: ata: fix typo in Allwinner R40 reset specific paragraph 2019-08-21 13:29:24 -05:00
auxdisplay
board
bus Devicetree updates for v5.4: 2019-09-19 13:48:37 -07:00
c6x
clock dt-bindings: clock: renesas: rcar-usb2-clock-sel: Fix typo in example 2020-01-09 10:20:05 +01:00
connector dt-bindings: connector: add optional properties for Type-B 2019-09-03 16:00:39 +02:00
counter
cpu dt-binding: cpu-topology: Move cpu-map to a common binding. 2019-07-22 09:35:57 -07:00
cpufreq
crypto dt-bindings: crypto: Convert Allwinner A10 Security Engine to a schema 2019-08-13 16:11:00 -06:00
csky dt-bindings: csky: Add csky PMU bindings 2019-07-19 14:21:36 +08:00
devfreq
display dt-bindings: display: mediatek: control dpi pins mode to avoid leakage 2020-06-22 09:30:58 +02:00
dma dt-bindings: dmaengine: dma-common: Fix the dma-channel-mask property 2019-09-04 10:22:56 +05:30
dsp dt-bindings: dsp: Fix fsl,dsp example 2019-10-02 14:13:36 -05:00
edac
eeprom dt-bindings: eeprom: at25: Add Anvo ANV32E61W 2019-08-24 22:44:26 +02:00
extcon extcon: arizona: Update binding example to use available defines 2019-07-24 19:13:21 +09:00
firmware ARM: SoC driver updates for v5.4 2019-09-16 15:52:38 -07:00
fpga dt-bindings: fpga: Consolidate bridge properties 2019-07-24 14:19:15 -07:00
fsi
fuse
gnss
goldfish
gpio gpio/aspeed-sgpio: enable access to all 80 input & output sgpios 2020-10-07 08:01:28 +02:00
gpu dt-bindings: gpu: mali-midgard: Add samsung exynos5250 compatible 2019-09-03 10:02:17 +01:00
h8300
hsi
hwlock dt-bindings: hwlock: Update OMAP binding for TI K3 SoCs 2019-06-29 11:40:02 -07:00
hwmon hwmon: (as370-hwmon) Add DT bindings for Synaptics AS370 PVT 2019-09-03 12:47:17 -07:00
i2c Merge branch 'i2c/for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-09-24 16:48:02 -07:00
i3c dt-bindings: i3c: cdns: Use correct cells for I2C device 2019-07-04 11:58:31 +02:00
iio dt-bindings: iio: io-channel-mux: Fix compatible string in example code 2020-08-21 13:05:23 +02:00
infiniband
input Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2019-09-19 14:10:54 -07:00
interconnect dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings 2019-08-13 23:03:24 +03:00
interrupt-controller irqchip fixes for 5.4, take #1 2019-10-14 20:35:58 +02:00
iommu dt-bindings: mediatek: Add binding for mt8183 IOMMU and SMI 2019-08-30 15:57:26 +02:00
ipmi dt-bindings: Add missing newline at end of file 2019-06-18 08:11:57 -06:00
leds dt: lm3532: Add property for full scale current. 2019-08-26 20:03:57 +02:00
lpddr2
mailbox dt-bindings: mailbox: zynqmp_ipi: fix unit address 2020-07-22 09:32:52 +02:00
media ARM: SoC fixes 2019-10-25 16:00:47 -04:00
memory-controllers ARM: DT updates for v5.4 2019-09-16 15:56:22 -07:00
mfd - New Drivers 2019-09-23 19:37:49 -07:00
mips
misc Linux 5.3-rc5 2019-08-21 13:35:16 +02:00
mmc mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings 2020-09-09 19:12:33 +02:00
mtd dt-bindings: mtd: Document Macronix raw NAND controller bindings 2019-08-26 09:25:41 +02:00
mux dt-bindings: add register based devices' mux controller DT bindings 2019-06-21 15:58:35 +02:00
nds32
net dt-bindings: net: FMan erratum A050385 2020-04-01 11:01:52 +02:00
nios2
nvmem dt-bindings: imx-ocotp: Add i.MX8MN compatible 2019-08-18 12:56:52 +02:00
openrisc/opencores
opp Merge branches 'pm-opp', 'pm-qos', 'acpi-pm', 'pm-domains' and 'pm-tools' 2019-09-17 09:49:19 +02:00
pci arm64: tegra: Fix Tegra194 PCIe compatible string 2020-04-23 10:36:30 +02:00
perf dt-bindings: perf: imx8-ddr: add imx8qxp ddr performance monitor 2019-06-13 10:38:02 +01:00
phy dt-bindings: phy: lantiq: Fix Property Name 2019-10-02 14:14:58 -05:00
pinctrl dt-bindings: pinctrl: aspeed-g6: Rework SD3 function and groups 2019-10-16 15:57:17 +02:00
pmem
power - New Drivers 2019-09-23 19:37:49 -07:00
powerpc
pps
ptp dt-binding: ptp_qoriq: support DPAA2 PTP compatible 2019-06-15 13:43:06 -07:00
pwm pwm: Changes for v5.4-rc1 2019-09-27 12:19:47 -07:00
regmap
regulator dt-bindings: fixed-regulator: fix compatible enum 2019-09-23 14:20:39 -07:00
remoteproc dt-bindings: remoteproc: add bindings for stm32 remote processor driver 2019-06-29 20:48:48 -07:00
reserved-memory
reset dt-bindings: reset: Fix brcmstb-reset example 2020-01-17 19:48:29 +01:00
riscv dt-bindings: riscv: Fix CPU schema errors 2019-10-23 14:42:44 -05:00
rng hwrng: omap3-rom - Fix missing clock by probing with device tree 2020-01-26 10:01:03 +01:00
rtc dt-bindings: rtc: ds1307: add rx8130 compatible 2019-09-01 11:05:43 +02:00
scsi
security/tpm
serial dt-bindings: serial: sh-sci: Document r8a774b1 bindings 2019-10-04 15:02:28 +02:00
serio
sifive
siox
slimbus
soc Qualcomm ARM Based Driver Updates for v5.4 2019-09-12 13:46:20 +02:00
sound dt-bindings: sound: wm8994: Correct required supplies based on actual implementaion 2020-10-01 13:17:58 +02:00
soundwire dt-bindings: soundwire: add slave bindings 2019-09-04 13:12:31 +05:30
spi Devicetree updates for v5.4: 2019-09-19 13:48:37 -07:00
spmi
sram
staging/iio/adc
thermal dt-bindings: thermal: qoriq: Add optional clocks property 2019-08-28 16:33:29 +08:00
timer Main MIPS changes for v5.4: 2019-09-22 09:30:30 -07:00
ufs scsi: ufs-qcom: Implement device_reset vops 2019-09-07 16:36:03 -04:00
usb doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode 2020-07-22 09:32:59 +02:00
virtio dt-bindings: virtio: Add virtio-pci-iommu node 2019-06-06 17:32:13 -04:00
w1
watchdog linux-watchdog 5.4-rc1 tag 2019-09-27 11:17:38 -07:00
x86
xillybus
.gitignore
ABI.txt
chosen.txt
common-properties.txt
example-schema.yaml dt-bindings: Correct spelling in example schema 2019-09-06 15:29:12 +01:00
graph.txt
jailhouse.txt
Makefile dt-bindings: Improve validation build error handling 2020-01-04 19:18:11 +01:00
numa.txt
property-units.txt dt-bindings: property-units: Sanitize unit naming 2019-06-13 14:29:43 -06:00
resource-names.txt
submitting-patches.txt
trivial-devices.yaml dt-bindings: Add ipsps1 as a trivial device 2019-09-03 12:47:17 -07:00
unittest.txt
vendor-prefixes.yaml drm main pull for 5.4-rc1 2019-09-19 16:24:24 -07:00
writing-bindings.txt
xilinx.txt