[OpenWrt-Devel] [PATCH] ramips: enable additional GPIOs on HAME MPR-A1
Álvaro Fernández Rojas
noltari at gmail.com
Fri Aug 8 12:32:15 EDT 2014
Hello,
If you also add "spi_cs1" GPIO#27 will be exposed.
This was added on https://dev.openwrt.org/changeset/41938 for VoCore.
Regards,
Álvaro.
El 08/08/2014 18:17, Paul Fertser escribió:
> According to the pcb tracing results[1] by anton.rad[2] MPR-A1s expose
> 6 unused GPIOs, only one of them working as configured in the current
> DTS. This patch enables GPIO22-26.
>
> Tested on hardware.
>
> [1] http://i.imgur.com/kHVW2Ox.jpg
> [2] https://forum.openwrt.org/viewtopic.php?pid=222698#p222698
>
> Signed-off-by: Paul Fertser <fercerpav at gmail.com>
> ---
> target/linux/ramips/dts/MPRA1.dts | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts
> index 9b4ee34..60a23fe 100644
> --- a/target/linux/ramips/dts/MPRA1.dts
> +++ b/target/linux/ramips/dts/MPRA1.dts
> @@ -41,12 +41,15 @@
> };
> };
> };
> + gpio1: gpio at 660 {
> + status = "okay";
> + };
> };
>
> pinctrl {
> state_default: pinctrl0 {
> gpio {
> - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
> + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led";
> ralink,function = "gpio";
> };
> };
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list