Skip to contentSkip to conversation

ARM: dts: imx6q: Enable CAN in board DTS

PATCH Superseded Marek Vasut 2 participants 4 messages Sep 17, 2019

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: imx6q: Enable CAN in board DTS

Move the CAN enablement from SoM DTSi to board DTS, as each board might need different CAN configuration. Moreover, disable CAN2 on the PDK2 as it is not available on any connector. This also fixes on-SoM SD slot operation, as it shares pins with the CAN2.

Cc Fabio Estevam <[email protected]>
Cc Ludwig Zenz <[email protected]>
Cc Shawn Guo <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]

---
 arch/arm/boot/dts/imx6q-dhcom-pdk2.dts | 8 ++++++++
 arch/arm/boot/dts/imx6q-dhcom-som.dtsi | 2 --
 2 files changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6q-dhcom-pdk2.dts +8 -0
index 9c61e3be2d9a..5219553df1e7 100644
@@ -43,6 +43,14 @@
 	status = "okay";
 };
 
+&can1 {
+	status = "okay";
+};
+
+&can2 {
+	status = "disabled";
+};
+
 &hdmi {
 	ddc-i2c-bus = <&i2c2>;
 	status = "okay";
arch/arm/boot/dts/imx6q-dhcom-som.dtsi +0 -2
index 387801dde02e..845cfad99bf9 100644
@@ -51,13 +51,11 @@
 &can1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_flexcan1>;
-	status = "okay";
 };
 
 &can2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_flexcan2>;
-	status = "okay";
 };
 
 &ecspi1 {
Signature · 7 lines
2.23.0.rc1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

PATCH 2/2 ARM: dts: imx6q: Add ethernet PHY power GPIO

Add missing ethernet PHY power GPIO.

Cc Fabio Estevam <[email protected]>
Cc Ludwig Zenz <[email protected]>
Cc Shawn Guo <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]

---
 arch/arm/boot/dts/imx6q-dhcom-som.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx6q-dhcom-som.dtsi +1 -0
index 845cfad99bf9..687caedf0784 100644
@@ -86,6 +86,7 @@
 	pinctrl-0 = <&pinctrl_enet_100M>;
 	phy-mode = "rmii";
 	phy-handle = <&ethphy0>;
+	power-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
 	status = "okay";
 
 	mdio {
Signature · 7 lines
2.23.0.rc1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reviewer
#2 lore raw

Re: [PATCH 2/2] ARM: dts: imx6q: Add ethernet PHY power GPIO

Hi Marek,

arch/arm/boot/dts/imx6q-dhcom-som.dtsi line 89

Quoted 9 lines · Marek Vasut
arch/arm/boot/dts/imx6q-dhcom-som.dtsi +1 -0
index 845cfad99bf9..687caedf0784 100644
@@ -86,6 +86,7 @@
        pinctrl-0 = <&pinctrl_enet_100M>;
        phy-mode = "rmii";
        phy-handle = <&ethphy0>;
+       power-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;

This is not a documented property.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

reviewer Reviewed-by on v1 1/2
#3 lore raw
In reply to Marek Vasut

Hi Marek,

On Tue, Sep 17, 2019 at 11:37 AM Marek Vasut <[email protected]> wrote:

In the Subject, please make it more specific by stating the board name:

ARM: dts: imx6q-dhcom: Enable CAN

Quoted 6 lines

Move the CAN enablement from SoM DTSi to board DTS, as each board might need different CAN configuration. Moreover, disable CAN2 on the PDK2 as it is not available on any connector. This also fixes on-SoM SD slot operation, as it shares pins with the CAN2.

Apart from that:

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel