[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150903152205.GV4215@atomide.com>
Date: Thu, 3 Sep 2015 08:22:06 -0700
From: Tony Lindgren <tony@...mide.com>
To: Mugunthan V N <mugunthanvnm@...com>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Sekhar Nori <nsekhar@...com>, linux-omap@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [net-next PATCH v2] drivers: net: cpsw: Add support to make gpio
drive which slave connected to phy
* Mugunthan V N <mugunthanvnm@...com> [150902 23:05]:
> In DRA72x EVM, by default slave 1 is connected to the onboard
> phy, but slave 2 pins are also muxed with video input module
> which is controlled by pcf857x gpio and currently to select slave
> 0 to connect to phy gpio hogging is used, but with
> omap2plus_defconfig the pcf857x gpio is built as module. So when
> using NFS on DRA72x EVM, board doesn't boot as gpio hogging do
> not set proper gpio state to connect slave 0 to phy as it is
> built as module and you do not see any errors for not setting
> gpio and just mentions dhcp reply not got.
>
> To solve this issue, introducing "mode-gpio" in DT when gpio
> based muxing is required. This will throw a warning when gpio
> get fails and returns probe defer. When gpio-pcf857x module is
> installed, cpsw probes again and ethernet becomes functional.
> Verified this on DRA72x with pcf as module and ramdisk.
Hmm you might be able to make it even a little bit more generic.
The gpios can be an array.. So typically they're named "-gpios":
[linux] $ git grep "\-gpio " arch/arm/boot/dts/*.dts* | wc -l
219
[linux] $ git grep "\-gpios " arch/arm/boot/dts/*.dts* | wc -l
704
So I'd use mode-gpios even though there's just one gpio in
this case. Up to you though, and should be retested after
the change naturally. At some point gpio code was not parsing
"gpio" or "gpios" properly.. But that's probably been fixed
a long time ago.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists