openwrtv3/target/linux/ramips
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
..
base-files ramips: mt7620: fix failsafe switch config 2016-02-25 10:14:22 +00:00
dts ramips: fix GPIO names for RT5350F-OLinuXino-EVB 2016-02-26 08:35:35 +00:00
image ramips: build factory images for Netgear EX2700 2016-02-25 10:14:19 +00:00
mt7620 ramips: Add support for Phicomm PSG1208 2016-02-15 18:45:22 +00:00
mt7621 ramips: re-enable highmem support for MT7621 now that it's fixed 2016-01-24 00:16:32 +00:00
mt7628 ramips: fix kernel configuration for mt7628 2016-01-01 15:20:38 +00:00
mt7688 ralink: update config files to build the cleaned up ethernet driver 2015-12-17 09:26:20 +00:00
patches-4.3 ralink: fix mt7628 ehci support 2016-02-19 16:38:04 +00:00
rt288x ralink: update config files to build the cleaned up ethernet driver 2015-12-17 09:26:20 +00:00
rt305x ralink: update config files to build the cleaned up ethernet driver 2015-12-17 09:26:20 +00:00
rt3883 ralink: update config files to build the cleaned up ethernet driver 2015-12-17 09:26:20 +00:00
Makefile ramips: set mips16 support 2016-01-04 22:35:36 +00:00
modules.mk ramips: delete the broken sound driver 2016-01-18 13:40:15 +00:00