2024-02-05 21:51:59

by Dasnavis Sabiya

[permalink] [raw]
Subject: [PATCH V2 0/2] Add CAN and OSPI support for AM69-SK platform

From: Dasnavis Sabiya <[email protected]>

Hi All,

This series adds support for the below interfaces on AM69-SK platform:
- CAN support on both MCU and MAIN domains
- OSPI NOR flash support

v2: Changelog:
1) Removed CAN interface aliasing.
2) Updated bootph property on the leaf nodes.

Link to v1: https://lore.kernel.org/lkml/[email protected]/

Dasnavis Sabiya (2):
arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board
arm64: dts: ti: k3-am69-sk: Add support for OSPI flash

arch/arm64/boot/dts/ti/k3-am69-sk.dts | 162 ++++++++++++++++++++++++++
1 file changed, 162 insertions(+)

--
2.34.1



2024-02-05 21:54:23

by Dasnavis Sabiya

[permalink] [raw]
Subject: [PATCH V2 1/2] arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board

From: Dasnavis Sabiya <[email protected]>

AM69 SK board has several CAN bus interfaces on both MCU and MAIN domains.
This enables the CAN interfaces on MCU and MAIN domain.

Signed-off-by: Dasnavis Sabiya <[email protected]>
---
arch/arm64/boot/dts/ti/k3-am69-sk.dts | 81 +++++++++++++++++++++++++++
1 file changed, 81 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts
index 8da591579868..64c737cc3d49 100644
--- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts
@@ -321,6 +321,31 @@ tfp410_out: endpoint {
};
};
};
+
+ transceiver1: can-phy0 {
+ compatible = "ti,tcan1042";
+ #phy-cells = <0>;
+ max-bitrate = <5000000>;
+ };
+
+ transceiver2: can-phy1 {
+ compatible = "ti,tcan1042";
+ #phy-cells = <0>;
+ max-bitrate = <5000000>;
+ };
+
+ transceiver3: can-phy2 {
+ compatible = "ti,tcan1042";
+ #phy-cells = <0>;
+ max-bitrate = <5000000>;
+ };
+
+ transceiver4: can-phy3 {
+ compatible = "ti,tcan1042";
+ #phy-cells = <0>;
+ max-bitrate = <5000000>;
+ };
+
};

&main_pmx0 {
@@ -429,6 +454,20 @@ hdmi_hpd_pins_default: hdmi-hpd-default-pins {
J784S4_IOPAD(0x000, PIN_INPUT, 7) /* (AN35) EXTINTN.GPIO0_0 */
>;
};
+
+ main_mcan6_pins_default: main-mcan6-default-pins {
+ pinctrl-single,pins = <
+ J784S4_IOPAD(0x098, PIN_INPUT, 0) /* (AH36) MCAN6_RX */
+ J784S4_IOPAD(0x094, PIN_OUTPUT, 0) /* (AG35) MCAN6_TX */
+ >;
+ };
+
+ main_mcan7_pins_default: main-mcan7-default-pins {
+ pinctrl-single,pins = <
+ J784S4_IOPAD(0x0A0, PIN_INPUT, 0) /* (AD34) MCAN7_RX */
+ J784S4_IOPAD(0x09C, PIN_OUTPUT, 0) /* (AF35) MCAN7_TX */
+ >;
+ };
};

&wkup_pmx2 {
@@ -525,6 +564,20 @@ hdmi_pdn_pins_default: hdmi-pdn-default-pins {
J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 7) /* (H37) WKUP_GPIO0_14 */
>;
};
+
+ mcu_mcan0_pins_default: mcu-mcan0-default-pins {
+ pinctrl-single,pins = <
+ J784S4_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (F38) MCU_MCAN0_RX */
+ J784S4_WKUP_IOPAD(0x050, PIN_OUTPUT, 0) /* (K33) MCU_MCAN0_TX */
+ >;
+ };
+
+ mcu_mcan1_pins_default: mcu-mcan1-default-pins {
+ pinctrl-single,pins = <
+ J784S4_WKUP_IOPAD(0x06c, PIN_INPUT, 0) /* (K36) WKUP_GPIO0_5.MCU_MCAN1_RX */
+ J784S4_WKUP_IOPAD(0x068, PIN_OUTPUT, 0)/* (H35) WKUP_GPIO0_4.MCU_MCAN1_TX */
+ >;
+ };
};

&wkup_pmx3 {
@@ -992,3 +1045,31 @@ dp0_out: endpoint {
};
};
};
+
+&mcu_mcan0 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&mcu_mcan0_pins_default>;
+ phys = <&transceiver1>;
+};
+
+&mcu_mcan1 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&mcu_mcan1_pins_default>;
+ phys = <&transceiver2>;
+};
+
+&main_mcan6 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_mcan6_pins_default>;
+ phys = <&transceiver3>;
+};
+
+&main_mcan7 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_mcan7_pins_default>;
+ phys = <&transceiver4>;
+};
--
2.34.1


2024-02-07 09:15:44

by Kumar, Udit

[permalink] [raw]
Subject: Re: [PATCH V2 0/2] Add CAN and OSPI support for AM69-SK platform

Thanks Sabiya

On 2/6/2024 1:37 AM, [email protected] wrote:
> From: Dasnavis Sabiya <[email protected]>
>
> Hi All,
>
> This series adds support for the below interfaces on AM69-SK platform:
> - CAN support on both MCU and MAIN domains
> - OSPI NOR flash support
>
> v2: Changelog:
> 1) Removed CAN interface aliasing.
> 2) Updated bootph property on the leaf nodes.
>
> Link to v1: https://lore.kernel.org/lkml/[email protected]/
>
> Dasnavis Sabiya (2):
> arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board
> arm64: dts: ti: k3-am69-sk: Add support for OSPI flash

Series LTGM


> arch/arm64/boot/dts/ti/k3-am69-sk.dts | 162 ++++++++++++++++++++++++++
> 1 file changed, 162 insertions(+)
>

2024-02-07 12:56:58

by Nishanth Menon

[permalink] [raw]
Subject: Re: [PATCH V2 0/2] Add CAN and OSPI support for AM69-SK platform

On 14:45-20240207, Kumar, Udit wrote:
> Thanks Sabiya
>
> On 2/6/2024 1:37 AM, [email protected] wrote:
> > From: Dasnavis Sabiya <[email protected]>
> >
> > Hi All,
> >
> > This series adds support for the below interfaces on AM69-SK platform:
> > - CAN support on both MCU and MAIN domains
> > - OSPI NOR flash support
> >
> > v2: Changelog:
> > 1) Removed CAN interface aliasing.
> > 2) Updated bootph property on the leaf nodes.
> >
> > Link to v1: https://lore.kernel.org/lkml/[email protected]/
> >
> > Dasnavis Sabiya (2):
> > arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board
> > arm64: dts: ti: k3-am69-sk: Add support for OSPI flash
>
> Series LTGM

If that is an Reviewed-by, please add tag.
>
>
> > arch/arm64/boot/dts/ti/k3-am69-sk.dts | 162 ++++++++++++++++++++++++++
> > 1 file changed, 162 insertions(+)
> >

Please CC linux-arm-kernel mailing list and resubmit.

--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D

2024-02-07 14:25:25

by Kumar, Udit

[permalink] [raw]
Subject: Re: [PATCH V2 0/2] Add CAN and OSPI support for AM69-SK platform


On 2/6/2024 1:37 AM, [email protected] wrote:
> From: Dasnavis Sabiya <[email protected]>
>
> Hi All,
>
> This series adds support for the below interfaces on AM69-SK platform:
> - CAN support on both MCU and MAIN domains
> - OSPI NOR flash support
>
> v2: Changelog:
> 1) Removed CAN interface aliasing.
> 2) Updated bootph property on the leaf nodes.
>
> Link to v1: https://lore.kernel.org/lkml/[email protected]/
>
> Dasnavis Sabiya (2):
> arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board
> arm64: dts: ti: k3-am69-sk: Add support for OSPI flash


For Series

Reviewed-by: Udit Kumar <[email protected]>


> arch/arm64/boot/dts/ti/k3-am69-sk.dts | 162 ++++++++++++++++++++++++++
> 1 file changed, 162 insertions(+)
>