mbox series

[v4,0/2] MCAN: Add support for implementing transceiver as a phy

Message ID 20210510052541.14168-1-a-govindraju@ti.com
Headers show
Series MCAN: Add support for implementing transceiver as a phy | expand

Message

Aswath Govindraju May 10, 2021, 5:25 a.m. UTC
The following series of patches add support for implementing the
transceiver as a phy of m_can_platform driver.

TCAN1042 has a standby signal that needs to be pulled high for
sending/receiving messages[1]. TCAN1043 has a enable signal along with
standby signal that needs to be pulled up for sending/receiving
messages[2], and other combinations of the two lines can be used to put the
transceiver in different states to reduce power consumption. On boards
like the AM654-idk and J721e-evm these signals are controlled using gpios.

These gpios are set in phy driver, and the transceiver can be put in
different states using phy API. The phy driver is added in the series [3].

This patch series is dependent on [4].

changes since v3:
- Added phy_power_off() in case of an error in m_can_open().

changes since v2:
- changed dev_err to dev_err_probe in patch 2
- used mcan_class instead of priv to assign max bit rate
- Picked up  Rob Herring's acked-by for patch 1

changes since v1:
- Used the API devm_phy_get_optional() instead of
  devm_of_phy_get_optional_by_index()

[1] - https://www.ti.com/lit/ds/symlink/tcan1042h.pdf
[2] - https://www.ti.com/lit/ds/symlink/tcan1043-q1.pdf
[3] - https://lore.kernel.org/patchwork/project/lkml/list/?series=498359
[4] - https://lore.kernel.org/patchwork/patch/1413286/

Faiz Abbas (2):
  dt-bindings: net: can: Document transceiver implementation as phy
  can: m_can: Add support for transceiver as phy

 .../devicetree/bindings/net/can/bosch,m_can.yaml    |  3 +++
 drivers/net/can/m_can/m_can.c                       | 11 +++++++++++
 drivers/net/can/m_can/m_can.h                       |  2 ++
 drivers/net/can/m_can/m_can_platform.c              | 13 +++++++++++++
 4 files changed, 29 insertions(+)

Comments

Aswath Govindraju June 14, 2021, 12:32 p.m. UTC | #1
Hi Marc,

On 10/05/21 10:55 am, Aswath Govindraju wrote:
> The following series of patches add support for implementing the

> transceiver as a phy of m_can_platform driver.

> 

> TCAN1042 has a standby signal that needs to be pulled high for

> sending/receiving messages[1]. TCAN1043 has a enable signal along with

> standby signal that needs to be pulled up for sending/receiving

> messages[2], and other combinations of the two lines can be used to put the

> transceiver in different states to reduce power consumption. On boards

> like the AM654-idk and J721e-evm these signals are controlled using gpios.

> 

> These gpios are set in phy driver, and the transceiver can be put in

> different states using phy API. The phy driver is added in the series [3].

> 

> This patch series is dependent on [4].

> 


[4] is now part of linux-next

May I know if this series is okay to be picked up ?

Thanks,
Aswath

> changes since v3:

> - Added phy_power_off() in case of an error in m_can_open().

> 

> changes since v2:

> - changed dev_err to dev_err_probe in patch 2

> - used mcan_class instead of priv to assign max bit rate

> - Picked up  Rob Herring's acked-by for patch 1

> 

> changes since v1:

> - Used the API devm_phy_get_optional() instead of

>   devm_of_phy_get_optional_by_index()

> 

> [1] - https://www.ti.com/lit/ds/symlink/tcan1042h.pdf

> [2] - https://www.ti.com/lit/ds/symlink/tcan1043-q1.pdf

> [3] - https://lore.kernel.org/patchwork/project/lkml/list/?series=498359

> [4] - https://lore.kernel.org/patchwork/patch/1413286/

> 

> Faiz Abbas (2):

>   dt-bindings: net: can: Document transceiver implementation as phy

>   can: m_can: Add support for transceiver as phy

> 

>  .../devicetree/bindings/net/can/bosch,m_can.yaml    |  3 +++

>  drivers/net/can/m_can/m_can.c                       | 11 +++++++++++

>  drivers/net/can/m_can/m_can.h                       |  2 ++

>  drivers/net/can/m_can/m_can_platform.c              | 13 +++++++++++++

>  4 files changed, 29 insertions(+)
Marc Kleine-Budde June 16, 2021, 9:17 a.m. UTC | #2
On 14.06.2021 18:02:53, Aswath Govindraju wrote:
> Hi Marc,

> 

> On 10/05/21 10:55 am, Aswath Govindraju wrote:

> > The following series of patches add support for implementing the

> > transceiver as a phy of m_can_platform driver.

> > 

> > TCAN1042 has a standby signal that needs to be pulled high for

> > sending/receiving messages[1]. TCAN1043 has a enable signal along with

> > standby signal that needs to be pulled up for sending/receiving

> > messages[2], and other combinations of the two lines can be used to put the

> > transceiver in different states to reduce power consumption. On boards

> > like the AM654-idk and J721e-evm these signals are controlled using gpios.

> > 

> > These gpios are set in phy driver, and the transceiver can be put in

> > different states using phy API. The phy driver is added in the series [3].

> > 

> > This patch series is dependent on [4].

> > 

> 

> [4] is now part of linux-next

> 

> > [4] - https://lore.kernel.org/patchwork/patch/1413286/

>

> May I know if this series is okay to be picked up ?


As soon as this hits net-next/master I can pick up this series.

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
Aswath Govindraju July 19, 2021, 2:17 p.m. UTC | #3
Hi Marc,

On 16/06/21 2:47 pm, Marc Kleine-Budde wrote:
> On 14.06.2021 18:02:53, Aswath Govindraju wrote:

>> Hi Marc,

>>

>> On 10/05/21 10:55 am, Aswath Govindraju wrote:

>>> The following series of patches add support for implementing the

>>> transceiver as a phy of m_can_platform driver.

>>>

>>> TCAN1042 has a standby signal that needs to be pulled high for

>>> sending/receiving messages[1]. TCAN1043 has a enable signal along with

>>> standby signal that needs to be pulled up for sending/receiving

>>> messages[2], and other combinations of the two lines can be used to put the

>>> transceiver in different states to reduce power consumption. On boards

>>> like the AM654-idk and J721e-evm these signals are controlled using gpios.

>>>

>>> These gpios are set in phy driver, and the transceiver can be put in

>>> different states using phy API. The phy driver is added in the series [3].

>>>

>>> This patch series is dependent on [4].

>>>

>>

>> [4] is now part of linux-next

>>

>>> [4] - https://lore.kernel.org/patchwork/patch/1413286/

>>

>> May I know if this series is okay to be picked up ?

> 

> As soon as this hits net-next/master I can pick up this series.

> 


Thank you for reply.

I am planning on posting device tree patches to arm64 tree and
Nishanth(maintainer of the tree) requested for an immutable tag if the
dependent patches are not in master. So, after applying this patch
series, can you please provide an immutable tag ?

Thanks,
Aswath

> Marc

>
Marc Kleine-Budde July 27, 2021, 6:54 a.m. UTC | #4
On 19.07.2021 19:47:33, Aswath Govindraju wrote:
> I am planning on posting device tree patches to arm64 tree and

> Nishanth(maintainer of the tree) requested for an immutable tag if the

> dependent patches are not in master. So, after applying this patch

> series, can you please provide an immutable tag ?


The patches are included in my pull request with the tag
linux-can-next-for-5.15-20210725 [1], meanwhile they are in
net-next/master.

Hope that helps,
Marc

[1] https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/?h=linux-can-next-for-5.15-20210725

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
Aswath Govindraju July 28, 2021, 5:19 a.m. UTC | #5
Hi Marc,

On 27/07/21 12:24 pm, Marc Kleine-Budde wrote:
> On 19.07.2021 19:47:33, Aswath Govindraju wrote:

>> I am planning on posting device tree patches to arm64 tree and

>> Nishanth(maintainer of the tree) requested for an immutable tag if the

>> dependent patches are not in master. So, after applying this patch

>> series, can you please provide an immutable tag ?

> 

> The patches are included in my pull request with the tag

> linux-can-next-for-5.15-20210725 [1], meanwhile they are in

> net-next/master.

> 

> Hope that helps,

> Marc

> 

> [1] https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/?h=linux-can-next-for-5.15-20210725

> 


Thanks a lot for providing a tag.

Regards,
Aswath