openwrtv3/target
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
..
imagebuilder images imagebuilder: Allow to add sanitized extra name 2016-01-03 14:44:56 +00:00
linux ramips: fix GPIO names for RT5350F-OLinuXino-EVB 2016-02-26 08:35:35 +00:00
sdk sdk: add base repository fallback 2016-01-12 09:25:45 +00:00
toolchain targets: Use configured distribution name for SDK, IB, and Toolchain tarball names 2016-01-03 14:44:42 +00:00
Config.in toolchain: add support of ARC architecture 2015-11-10 12:03:59 +00:00
Makefile target: do not make target/*/install depend on target/*/compile - removes one redundant kernel build dir call on target/install 2012-06-06 17:24:05 +00:00