Re: [PATCH v6 6/6] ARM: davinci: da850 evm: add GPIO pinumux entriesDT node

From: Sekhar Nori
Date: Sun Dec 15 2013 - 08:16:03 EST


On Thursday 21 November 2013 11:45 PM, Prabhakar Lad wrote:
> From: KV Sujith <sujithkv@xxxxxx>
>
> Add GPIO DT node and pinmux entries for DA850 EVM. GPIO is
> configurable differently on different boards. So add GPIO
> pinmuxing in dts file.
>
> Signed-off-by: KV Sujith <sujithkv@xxxxxx>
> Signed-off-by: Philip Avinash <avinashphilip@xxxxxx>
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>
> ---
> arch/arm/boot/dts/da850-evm.dts | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts
> index 588ce58..f82c129 100644
> --- a/arch/arm/boot/dts/da850-evm.dts
> +++ b/arch/arm/boot/dts/da850-evm.dts
> @@ -17,6 +17,21 @@
> soc {
> pmx_core: pinmux@1c14120 {
> status = "okay";
> +
> + gpio_pins: pinmux_gpio_pins {
> + pinctrl-single,bits = <
> + /* GPIO2_4 GPIO2_6 */
> + 0x18 0x00008080 0x0000f0f0
> + /* GPIO2_8 GPIO2_15 */
> + 0x14 0x80000008 0xf000000f
> + /* GPIO3_12 GPIO3_13 */
> + 0x1C 0x00008800 0x0000ff00
> + /* GPIO4_0 GPIO4_1 */
> + 0x28 0x88000000 0xff000000
> + /* GPIO6_9 GPIO6_10 GPIO6_13 */
> + 0x34 0x08800800 0x0ff00f00
> + >;
> + };
> };

Shouldn't these pinmux entries be part of actual device
node which needs them to be muxed this way? For now, I
have committed the attached reduced patch.

Thanks,
Sekhar

---8<---