openwrt-redmi-ax3000/target/linux
John Crispin f998540e80 ramips: fix GPIO names for RT5350F-OLinuXino-EVB
Hi,

the board in subject (RT5350F-OLinuXino-EVB) still ships from vendor
with a RC3 image built upon a .dts file which declares GPIO12 and GPIO14
as relay2 and relay1 respectively, as you can see from their rt5350f
branch on GitHub.

For some reason in the official stable build both the GPIOs are swapped
and the wrong names are declared in the gpio-export directive.

I'm submitting this patch which should roll back the wrong changes, so
that we get backward compatibility with any script developed on RC3
which controls the relays.

After patching correct operation is restored:

root@OpenWrt:/# cat /sys/kernel/debug/gpio
GPIOs 0-21, platform/10000600.gpio, 10000600.gpio:
 gpio-0   (button              ) in  hi
 gpio-12  (relay2              ) out lo
 gpio-14  (relay1              ) out lo

Thank you,

Signed-off-by: Lorenzo Cafaro <lorenzo@ibisco.net>

SVN-Revision: 48796
2016-02-26 08:35:35 +00:00
..
adm5120
adm8668
ar7
ar71xx kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
arc770
archs38
arm64
at91
ath25
au1000
bcm53xx kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
brcm47xx kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
brcm63xx kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
brcm2708 kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
cns3xxx
gemini
generic kernel: deactivate the vdso gettimeofday function. 2016-02-25 22:31:51 +00:00
imx6
ipq806x
ixp4xx
kirkwood
lantiq kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
malta
mcs814x
mediatek
mpc85xx mpc85xx/tl-wdr4900: correct address of the gpio controller 2016-02-26 08:35:29 +00:00
mvebu
mxs kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
netlogic
octeon
omap
omap24xx
orion
oxnas kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
ppc40x
ppc44x
ramips ramips: fix GPIO names for RT5350F-OLinuXino-EVB 2016-02-26 08:35:35 +00:00
rb532
realview
sunxi kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
uml kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
x86
xburst
zynq kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
Makefile