[PATCH v2 2/2] net: flexcan: add transceiver switch gpios support
From: Dong Aisheng <hidden>
Date: 2012-06-28 11:39:03
Also in:
linux-can
From: Dong Aisheng <hidden>
Date: 2012-06-28 11:39:03
Also in:
linux-can
On Thu, Jun 28, 2012 at 12:31:56PM +0200, Marc Kleine-Budde wrote:
On 06/28/2012 05:21 AM, Shawn Guo wrote:quoted
The flexcan driver has function pointer transceiver_switch defined in flexcan_platform_data for platform codes to hook up their transceiver switch implementation. However this does not cope with device tree probe. It's been observed that platforms mostly use gpios to control the switch of flexcan transceiver, like enable and standby. The patch adds transceiver switch gpios support into flexcan driver, so that platforms booting from device tree can just define properties phy-enable-gpios and phy-standby-gpios to have flexcan driver control the gpios.Hmm I'm wondering if transceiver or phy is the correct name here. In platform_data it's called transceiver_switch.
Hmm, i also had this wondering. I quote some info from the spec like: "The MC33902 is a high speed CAN physical interface. The device includes an internal 5.0 V supply for the CAN bus transceiver, and requires only a connection to a battery line." Maybe transceiver is more close to spec. Regards Dong Aisheng