* [PATCH v3 1/2] ARM: dts: nitrogen6x: add CAN support
@ 2015-06-02 19:07 Peter Seiderer
2015-06-02 19:07 ` [PATCH v3 2/2] ARM: dts: sabrelite: " Peter Seiderer
2015-06-29 8:59 ` [PATCH v3 1/2] ARM: dts: nitrogen6x: " Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Peter Seiderer @ 2015-06-02 19:07 UTC (permalink / raw)
To: linux-kernel
Cc: devicetree, linux-arm-kernel, Russell King, Kumar Gala,
Ian Campbell, Mark Rutland, Pawel Moll, Rob Herring, Sascha Hauer,
Shawn Guo
Regulator stuff copied from imx6qdl-tx6.dtsi, pin configuration
taken from Boundary Devices linux kernel tree ([1] and [2]).
[1] https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.17_1.0.2_ga/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
[2] https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.17_1.0.2_ga/arch/arm/boot/dts/imx6qdl.dtsi
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
v3:
- use GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH (suggested
by Eric Nelson)
v2:
- fix imx6qdl-nitrogen6x.dtsi url
- use real PAD settings (suggested by Fabio Estevam)
- remove _1 suffix (suggested by Shawn Guo)
---
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 32 +++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
index 3af16df..67c7688 100644
--- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
@@ -54,6 +54,17 @@
gpio = <&gpio3 22 0>;
enable-active-high;
};
+
+ reg_can_xcvr: regulator@3 {
+ compatible = "regulator-fixed";
+ reg = <3>;
+ regulator-name = "CAN XCVR";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_can_xcvr>;
+ gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
+ };
};
gpio-keys {
@@ -149,6 +160,13 @@
status = "okay";
};
+&can1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_can1>;
+ xceiver-supply = <®_can_xcvr>;
+ status = "okay";
+};
+
&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio3 19 0>;
@@ -245,6 +263,20 @@
>;
};
+ pinctrl_can1: can1grp {
+ fsl,pins = <
+ MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b0
+ MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b0
+ >;
+ };
+
+ pinctrl_can_xcvr: can-xcvrgrp {
+ fsl,pins = <
+ /* Flexcan XCVR enable */
+ MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0
+ >;
+ };
+
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v3 2/2] ARM: dts: sabrelite: add CAN support
2015-06-02 19:07 [PATCH v3 1/2] ARM: dts: nitrogen6x: add CAN support Peter Seiderer
@ 2015-06-02 19:07 ` Peter Seiderer
2015-06-29 8:59 ` [PATCH v3 1/2] ARM: dts: nitrogen6x: " Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2015-06-02 19:07 UTC (permalink / raw)
To: linux-kernel
Cc: devicetree, linux-arm-kernel, Russell King, Kumar Gala,
Ian Campbell, Mark Rutland, Pawel Moll, Rob Herring, Sascha Hauer,
Shawn Guo
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
v1:
- do the same for the sabrelite board as suggested/tested
by Eric Nelson
---
arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi
index e00c44f..fe01059 100644
--- a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi
@@ -53,6 +53,17 @@
gpio = <&gpio3 22 0>;
enable-active-high;
};
+
+ reg_can_xcvr: regulator@3 {
+ compatible = "regulator-fixed";
+ reg = <3>;
+ regulator-name = "CAN XCVR";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_can_xcvr>;
+ gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
+ };
};
gpio-keys {
@@ -148,6 +159,13 @@
status = "okay";
};
+&can1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_can1>;
+ xceiver-supply = <®_can_xcvr>;
+ status = "okay";
+};
+
&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio3 19 0>;
@@ -239,6 +257,20 @@
>;
};
+ pinctrl_can1: can1grp {
+ fsl,pins = <
+ MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b0
+ MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b0
+ >;
+ };
+
+ pinctrl_can_xcvr: can-xcvrgrp {
+ fsl,pins = <
+ /* Flexcan XCVR enable */
+ MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0
+ >;
+ };
+
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 1/2] ARM: dts: nitrogen6x: add CAN support
2015-06-02 19:07 [PATCH v3 1/2] ARM: dts: nitrogen6x: add CAN support Peter Seiderer
2015-06-02 19:07 ` [PATCH v3 2/2] ARM: dts: sabrelite: " Peter Seiderer
@ 2015-06-29 8:59 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2015-06-29 8:59 UTC (permalink / raw)
To: Peter Seiderer
Cc: linux-kernel, Mark Rutland, devicetree, Russell King, Pawel Moll,
Ian Campbell, Rob Herring, Sascha Hauer, Kumar Gala, Shawn Guo,
linux-arm-kernel
On Tue, Jun 02, 2015 at 09:07:16PM +0200, Peter Seiderer wrote:
> Regulator stuff copied from imx6qdl-tx6.dtsi, pin configuration
> taken from Boundary Devices linux kernel tree ([1] and [2]).
>
> [1] https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.17_1.0.2_ga/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
> [2] https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.17_1.0.2_ga/arch/arm/boot/dts/imx6qdl.dtsi
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
Applied both, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-29 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 19:07 [PATCH v3 1/2] ARM: dts: nitrogen6x: add CAN support Peter Seiderer
2015-06-02 19:07 ` [PATCH v3 2/2] ARM: dts: sabrelite: " Peter Seiderer
2015-06-29 8:59 ` [PATCH v3 1/2] ARM: dts: nitrogen6x: " Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox