linux/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
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
counter
cpu
cpufreq
crypto
csky
devfreq
display dt-bindings: display: mediatek: control dpi pins mode to avoid leakage 2020-06-22 09:30:58 +02:00
dma
dsp dt-bindings: dsp: Fix fsl,dsp example 2019-10-02 14:13:36 -05:00
edac
eeprom
extcon
firmware ARM: SoC driver updates for v5.4 2019-09-16 15:52:38 -07:00
fpga
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
h8300
hsi
hwlock
hwmon
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
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
interrupt-controller irqchip fixes for 5.4, take #1 2019-10-14 20:35:58 +02:00
iommu
ipmi
leds
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
mmc mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings 2020-09-09 19:12:33 +02:00
mtd
mux
nds32
net dt-bindings: net: FMan erratum A050385 2020-04-01 11:01:52 +02:00
nios2
nvmem
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
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
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
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
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
spi Devicetree updates for v5.4: 2019-09-19 13:48:37 -07:00
spmi
sram
staging/iio/adc
thermal
timer Main MIPS changes for v5.4: 2019-09-22 09:30:30 -07:00
ufs
usb doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode 2020-07-22 09:32:59 +02:00
virtio
w1
watchdog linux-watchdog 5.4-rc1 tag 2019-09-27 11:17:38 -07:00
x86
xillybus
.gitignore
ABI.txt
Makefile dt-bindings: Improve validation build error handling 2020-01-04 19:18:11 +01:00
chosen.txt
common-properties.txt
example-schema.yaml
graph.txt
jailhouse.txt
numa.txt
property-units.txt
resource-names.txt
submitting-patches.txt
trivial-devices.yaml
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