Common patches from downstream development
Subsystems (2)
v3 cover Common patches from downstream development
This patchset holds some common changes that were never upstreamed. With latest downstream kernel upgrade, I took the aproach to select mainline devicetrees and atomically add missing stuff for downstream.
These patches I send here are separated out with changes that also have a benfit for mainline.
Philippe
Changes in v3:
- Add new commit message from Stefan's proposal on ML
- Fix commit message
- Fix commit title to "...imx6-apalis:..."
- New patch to make use of ARM: dts: imx7-colibri: fix 1.8V/UHS support
Changes in v2:
- Deleted touchrevolution downstream stuff
- Use generic node name
- Better comment
- Changed commit title to '...imx6qdl-apalis:...'
- Deleted touchrevolution downstream stuff
- Use generic node name
- Put a better comment in there
- Commit title
- Removed f0710a, that is downstream only
- Changed to generic node name
- Better comment
Marcel Ziswiler (1):
ARM: dts: imx7-colibri: make sure module supplies are always on
Max Krummenacher (2):
ARM: dts: imx6ull-colibri: reduce v_batt current in power off
ARM: dts: imx6ull: improve can templates
Oleksandr Suvorov (1):
ARM: dts: add recovery for I2C for iMX7
Philippe Schenker (14):
ARM: dts: imx7-colibri: prepare module device tree for FlexCAN
ARM: dts: imx7-colibri: Add sleep mode to ethernet
ARM: dts: imx7-colibri: Add touch controllers
ARM: dts: imx6qdl-colibri: add phy to fec
ARM: dts: imx6qdl-colibri: Add missing pin declaration in iomuxc
ARM: dts: imx6qdl-apalis: Add sleep state to can interfaces
ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards
ARM: dts: imx6-colibri: Add missing pinmuxing to Toradex eval board
ARM: dts: imx6ull-colibri: Add sleep mode to fec
ARM: dts: imx6ull-colibri: Add watchdog
ARM: dts: imx6ull-colibri: Add general wakeup key used on Colibri
ARM: dts: imx6/7-colibri: switch dr_mode to otg
ARM: dts: imx6ull-colibri: Add touchscreen used with Eval Board
ARM: dts: imx7-colibri: Add UHS support to eval board
Stefan Agner (3):
ARM: dts: imx7-colibri: disable HS400
ARM: dts: imx7-colibri: add GPIO wakeup key
ARM: dts: imx7-colibri: fix 1.8V/UHS support
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 39 ++++++ arch/arm/boot/dts/imx6q-apalis-eval.dts | 13 ++ arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 13 ++ arch/arm/boot/dts/imx6q-apalis-ixora.dts | 13 ++ arch/arm/boot/dts/imx6qdl-apalis.dtsi | 27 ++++- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 27 ++++- .../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 50 ++++++++ .../arm/boot/dts/imx6ull-colibri-nonwifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri.dtsi | 52 +++++++- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 49 +++++++- arch/arm/boot/dts/imx7-colibri.dtsi | 114 ++++++++++++++++-- 12 files changed, 373 insertions(+), 28 deletions(-)
Signature · 1 line
2.22.0
PATCH v3 1/21 ARM: dts: imx7-colibri: make sure module supplies are always on
From: Marcel Ziswiler <[email protected]>
Prevent regulators from being switched off.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx7-colibri.dtsi +2 -0
@@ -54,6 +54,7 @@ regulator-name = "+V3.3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-always-on; }; reg_module_3v3_avdd: regulator-module-3v3-avdd {
@@ -61,6 +62,7 @@ regulator-name = "+V3.3_AVDD_AUDIO"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-always-on; }; sound {
Signature · 1 line
2.22.0
PATCH v3 2/21 ARM: dts: imx7-colibri: disable HS400
In reply to Philippe SchenkerFrom: Stefan Agner <[email protected]>
Force HS200 by masking bit 63 of the SDHCI capability register. The i.MX ESDHC driver uses SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400. With that the stack checks bit 63 to descide whether HS400 is available. Using sdhci-caps-mask allows to mask bit 63. The stack then selects HS200 as operating mode.
This prevents rare communication errors with minimal effect on performance:
sdhci-esdhc-imx 30b60000.usdhc: warning! HS400 strobe DLL status REF not lock!
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7-colibri.dtsi +1 -0
@@ -325,6 +325,7 @@ vmmc-supply = <®_module_3v3>; vqmmc-supply = <®_DCDC3>; non-removable; + sdhci-caps-mask = <0x80000000 0x0>; }; &iomuxc {
Signature · 1 line
2.22.0
Re: [PATCH v3 02/21] ARM: dts: imx7-colibri: disable HS400
Quoted 8 lines · Philippe Schenker
From: Stefan Agner <[email protected]>
Force HS200 by masking bit 63 of the SDHCI capability register. The i.MX ESDHC driver uses
SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400. With that the stack checks bit 63 to descide whether HS400 is available. Using sdhci-caps-mask allows to mask bit 63. The stack then selects HS200 as operating mode.
Quoted 7 lines
This prevents rare communication errors with minimal effect on performance:
sdhci-esdhc-imx 30b60000.usdhc: warning! HS400 strobe DLL status REF not lock!Signed-off-by Stefan Agner <[email protected]>Signed-off-by Philippe Schenker <[email protected]>
Quoted 21 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/boot/dts/imx7-colibri.dtsi +1
-0@@ -325,6 +325,7 @@ vmmc-supply = <®_module_3v3>; vqmmc-supply = <®_DCDC3>; non-removable; + sdhci-caps-mask = <0x80000000 0x0>; }; &iomuxc {
PATCH v3 3/21 ARM: dts: imx7-colibri: prepare module device tree for FlexCAN
In reply to Philippe SchenkerPrepare FlexCAN use on SODIMM 55/63 178/188. Those SODIMM pins are compatible for CAN bus use with several modules from the Colibri family.
Add Better drivestrength and also add flexcan2.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 35 ++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx7-colibri.dtsi +30 -5
@@ -117,6 +117,18 @@ fsl,magic-packet; }; +&flexcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + status = "disabled"; +}; + +&flexcan2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + status = "disabled"; +}; + &gpmi { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpmi_nand>;
@@ -330,12 +342,11 @@ &iomuxc { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4>; + pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4 + &pinctrl_gpio7>; pinctrl_gpio1: gpio1-grp { fsl,pins = < - MX7D_PAD_ENET1_RGMII_RD3__GPIO7_IO3 0x74 /* SODIMM 55 */ - MX7D_PAD_ENET1_RGMII_RD2__GPIO7_IO2 0x74 /* SODIMM 63 */ MX7D_PAD_SAI1_RX_SYNC__GPIO6_IO16 0x14 /* SODIMM 77 */ MX7D_PAD_EPDC_DATA09__GPIO2_IO9 0x14 /* SODIMM 89 */ MX7D_PAD_EPDC_DATA08__GPIO2_IO8 0x74 /* SODIMM 91 */
@@ -416,6 +427,13 @@ >; }; + pinctrl_gpio7: gpio7-grp { /* Alternatively CAN1 */ + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD3__GPIO7_IO3 0x14 /* SODIMM 55 */ + MX7D_PAD_ENET1_RGMII_RD2__GPIO7_IO2 0x14 /* SODIMM 63 */ + >; + }; + pinctrl_i2c1_int: i2c1-int-grp { /* PMIC / TOUCH */ fsl,pins = < MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x79
@@ -459,10 +477,17 @@ >; }; + pinctrl_flexcan1: flexcan1-grp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD3__FLEXCAN1_TX 0x79 /* SODIMM 55 */ + MX7D_PAD_ENET1_RGMII_RD2__FLEXCAN1_RX 0x79 /* SODIMM 63 */ + >; + }; + pinctrl_flexcan2: flexcan2-grp { fsl,pins = < - MX7D_PAD_GPIO1_IO14__FLEXCAN2_RX 0x59 - MX7D_PAD_GPIO1_IO15__FLEXCAN2_TX 0x59 + MX7D_PAD_GPIO1_IO14__FLEXCAN2_RX 0x79 /* SODIMM 188 */ + MX7D_PAD_GPIO1_IO15__FLEXCAN2_TX 0x79 /* SODIMM 178 */ >; };
Signature · 1 line
2.22.0
Re: [PATCH v3 03/21] ARM: dts: imx7-colibri: prepare module device tree for FlexCAN
Quoted 6 lines · Philippe Schenker
Prepare FlexCAN use on SODIMM 55/63 178/188. Those SODIMM pins are compatible for CAN bus use with several modules from the Colibri family.
Add Better drivestrength and also add flexcan2.Signed-off-by Philippe Schenker <[email protected]>
Quoted 94 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 35 ++++++++++++++++++++++++--- -- 1 file changed, 30 insertions(+), 5 deletions(-)arch/arm/boot/dts/imx7-colibri.dtsi +13
-1@@ -117,6 +117,18 @@ fsl,magic-packet; }; +&flexcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + status = "disabled"; +}; + +&flexcan2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + status = "disabled"; +}; + &gpmi { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpmi_nand>;@@ -330,12 +342,11 @@ &iomuxc { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4>; + pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3
&pinctrl_gpio4arch/arm/boot/dts/imx7-colibri.dtsi +1
-1+ &pinctrl_gpio7>; pinctrl_gpio1: gpio1-grp { fsl,pins = < - MX7D_PAD_ENET1_RGMII_RD3__GPIO7_IO3 0x74/* SODIMM 55 */
arch/arm/boot/dts/imx7-colibri.dtsi +0
-1- MX7D_PAD_ENET1_RGMII_RD2__GPIO7_IO2 0x74/* SODIMM 63 */
MX7D_PAD_SAI1_RX_SYNC__GPIO6_IO160x14/*
SODIMM 77 */
MX7D_PAD_EPDC_DATA09__GPIO2_IO90x14
/* SODIMM 89 */
MX7D_PAD_EPDC_DATA08__GPIO2_IO80x74
/* SODIMM 91 */arch/arm/boot/dts/imx7-colibri.dtsi +7
-0@@ -416,6 +427,13 @@ >; }; + pinctrl_gpio7: gpio7-grp { /* Alternatively CAN1 */ + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD3__GPIO7_IO3 0x14 /* SODIMM 55 */ + MX7D_PAD_ENET1_RGMII_RD2__GPIO7_IO2 0x14 /* SODIMM 63 */ + >; + }; + pinctrl_i2c1_int: i2c1-int-grp { /* PMIC / TOUCH */arch/arm/boot/dts/imx7-colibri.dtsi +8
-2fsl,pins = < MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x79@@ -459,10 +477,17 @@ >; }; + pinctrl_flexcan1: flexcan1-grp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD3__FLEXCAN1_TX 0x79 /* SODIMM 55 */ + MX7D_PAD_ENET1_RGMII_RD2__FLEXCAN1_RX 0x79 /* SODIMM 63 */ + >; + }; + pinctrl_flexcan2: flexcan2-grp { fsl,pins = < - MX7D_PAD_GPIO1_IO14__FLEXCAN2_RX 0x59 - MX7D_PAD_GPIO1_IO15__FLEXCAN2_TX 0x59 + MX7D_PAD_GPIO1_IO14__FLEXCAN2_RX 0x79 /*SODIMM 188 */
arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_GPIO1_IO15__FLEXCAN2_TX 0x79 /*SODIMM 178 */
arch/arm/boot/dts/imx7-colibri.dtsi +0
-0>; };
PATCH v3 4/21 ARM: dts: imx7-colibri: Add sleep mode to ethernet
In reply to Philippe SchenkerAdd sleep pinmux to the fec so it can properly sleep.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx7-colibri.dtsi +18 -1
@@ -101,8 +101,9 @@ }; &fec1 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet1>; + pinctrl-1 = <&pinctrl_enet1_sleep>; clocks = <&clks IMX7D_ENET_AXI_ROOT_CLK>, <&clks IMX7D_ENET_AXI_ROOT_CLK>, <&clks IMX7D_ENET1_TIME_ROOT_CLK>,
@@ -463,6 +464,22 @@ >; }; + pinctrl_enet1_sleep: enet1sleepgrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RX_CTL__GPIO7_IO4 0x0 + MX7D_PAD_ENET1_RGMII_RD0__GPIO7_IO0 0x0 + MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x0 + MX7D_PAD_ENET1_RGMII_RXC__GPIO7_IO5 0x0 + + MX7D_PAD_ENET1_RGMII_TX_CTL__GPIO7_IO10 0x0 + MX7D_PAD_ENET1_RGMII_TD0__GPIO7_IO6 0x0 + MX7D_PAD_ENET1_RGMII_TD1__GPIO7_IO7 0x0 + MX7D_PAD_GPIO1_IO12__GPIO1_IO12 0x0 + MX7D_PAD_SD2_CD_B__GPIO5_IO9 0x0 + MX7D_PAD_SD2_WP__GPIO5_IO10 0x0 + >; + }; + pinctrl_ecspi3_cs: ecspi3-cs-grp { fsl,pins = < MX7D_PAD_I2C2_SDA__GPIO4_IO11 0x14
Signature · 1 line
2.22.0
Re: [PATCH v3 04/21] ARM: dts: imx7-colibri: Add sleep mode to ethernet
Quoted 3 lines · Philippe Schenker
Add sleep pinmux to the fec so it can properly sleep.
Signed-off-by Philippe Schenker <[email protected]>
Quoted 57 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx7-colibri.dtsi +5
-1@@ -101,8 +101,9 @@ }; &fec1 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet1>; + pinctrl-1 = <&pinctrl_enet1_sleep>; clocks = <&clks IMX7D_ENET_AXI_ROOT_CLK>, <&clks IMX7D_ENET_AXI_ROOT_CLK>, <&clks IMX7D_ENET1_TIME_ROOT_CLK>,@@ -463,6 +464,22 @@ >; }; + pinctrl_enet1_sleep: enet1sleepgrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RX_CTL__GPIO7_IO4
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_ENET1_RGMII_RD0__GPIO7_IO0
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_ENET1_RGMII_RXC__GPIO7_IO5
0x0arch/arm/boot/dts/imx7-colibri.dtsi +2
-0+ + MX7D_PAD_ENET1_RGMII_TX_CTL__GPIO7_IO10
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_ENET1_RGMII_TD0__GPIO7_IO6
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_ENET1_RGMII_TD1__GPIO7_IO7
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_GPIO1_IO12__GPIO1_IO12
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_SD2_CD_B__GPIO5_IO9
0x0arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_SD2_WP__GPIO5_IO10
0x0arch/arm/boot/dts/imx7-colibri.dtsi +3
-0+ >; + }; + pinctrl_ecspi3_cs: ecspi3-cs-grp { fsl,pins = < MX7D_PAD_I2C2_SDA__GPIO4_IO11 0x14
PATCH v3 5/21 ARM: dts: add recovery for I2C for iMX7
In reply to Philippe SchenkerFrom: Oleksandr Suvorov <[email protected]>
- add recovery mode for applicable i2c buses for
Colibri iMX7 module.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx7-colibri.dtsi +23 -2
@@ -140,8 +140,12 @@ &i2c1 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; + scl-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + status = "okay"; codec: sgtl5000@a {
@@ -242,8 +246,11 @@ &i2c4 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + scl-gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; }; &lcdif {
@@ -540,6 +547,13 @@ >; }; + pinctrl_i2c4_recovery: i2c4-recoverygrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_TD2__GPIO7_IO8 0x4000007f + MX7D_PAD_ENET1_RGMII_TD3__GPIO7_IO9 0x4000007f + >; + }; + pinctrl_lcdif_dat: lcdif-dat-grp { fsl,pins = < MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79
@@ -740,6 +754,13 @@ >; }; + pinctrl_i2c1_recovery: i2c1-recoverygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x4000007f + MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x4000007f + >; + }; + pinctrl_cd_usdhc1: usdhc1-cd-grp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO00__GPIO1_IO0 0x59 /* CD */
Signature · 1 line
2.22.0
Re: [PATCH v3 05/21] ARM: dts: add recovery for I2C for iMX7
Quoted 7 lines · Philippe Schenker
From: Oleksandr Suvorov <[email protected]>
- add recovery mode for applicable i2c buses for
Colibri iMX7 module.Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Philippe Schenker <[email protected]>
Quoted 73 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7-colibri.dtsi +12
-2@@ -140,8 +140,12 @@ &i2c1 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; + scl-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + status = "okay"; codec: sgtl5000@a {@@ -242,8 +246,11 @@ &i2c4 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + scl-gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; }; &lcdif {@@ -540,6 +547,13 @@ >; }; + pinctrl_i2c4_recovery: i2c4-recoverygrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_TD2__GPIO7_IO8 0x4000007f
arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_ENET1_RGMII_TD3__GPIO7_IO9 0x4000007f
arch/arm/boot/dts/imx7-colibri.dtsi +6
-0+ >; + }; + pinctrl_lcdif_dat: lcdif-dat-grp { fsl,pins = < MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79@@ -740,6 +754,13 @@ >; }; + pinctrl_i2c1_recovery: i2c1-recoverygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x4000007f
arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x4000007f
arch/arm/boot/dts/imx7-colibri.dtsi +3
-0+ >; + }; + pinctrl_cd_usdhc1: usdhc1-cd-grp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO00__GPIO1_IO0 0x59/* CD */
Re: [PATCH] ARM: dts: imx7d: sbc-iot-imx7: add recovery for i2c3/4
In reply to Philippe SchenkerQuoted 20 lines · Philippe Schenker
From: Oleksandr Suvorov <[email protected]>
- add recovery mode for applicable i2c buses for
Colibri iMX7 module.Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7-colibri.dtsi +0
-0
arch/arm/boot/dts/imx7-colibri.dtsi line 146
Quoted 8 lines
arch/arm/boot/dts/imx7-colibri.dtsi +3
-1@@ -140,8 +140,12 @@ &i2c1 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; + scl-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
scl-gpios should be (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN) since commit d2d0ad2aec4a ("i2c: imx: use open drain for recovery GPIO")
Otherwise you'll get a boot-time warning:
enforced open drain please flag it properly in DT/ACPI DSDT/board file
Quoted 6 lines
arch/arm/boot/dts/imx7-colibri.dtsi +2
-0+ sda-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + status = "okay"; codec: sgtl5000@a {
arch/arm/boot/dts/imx7-colibri.dtsi line 252
Quoted 8 lines
arch/arm/boot/dts/imx7-colibri.dtsi +3
-1@@ -242,8 +246,11 @@ &i2c4 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + scl-gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
and here, too.
Cheers,
André
Re: [PATCH] ARM: dts: imx7d: sbc-iot-imx7: add recovery for i2c3/4
Quoted 34 lines · André Draszik
Quoted 21 lines · Philippe Schenker
From: Oleksandr Suvorov <[email protected]>
- add recovery mode for applicable i2c buses for
Colibri iMX7 module.Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7-colibri.dtsi +0
-0arch/arm/boot/dts/imx7-colibri.dtsi line 146
Quoted 8 lines
arch/arm/boot/dts/imx7-colibri.dtsi +3
-1@@ -140,8 +140,12 @@ &i2c1 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; + scl-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;scl-gpios should be (
GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) since commitd2d0ad2aec4a("i2c: imx: use open drain for recovery GPIO")
Quoted 3 lines
Otherwise you'll get a boot-time warning:
enforced open drain please flag it properly in DT/ACPI DSDT/board
file
Thanks for pointing this out, I added this for v4.
Philippe
Quoted 18 lines
Quoted 7 lines
arch/arm/boot/dts/imx7-colibri.dtsi +2
-0+ sda-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + status = "okay"; codec: sgtl5000@a {arch/arm/boot/dts/imx7-colibri.dtsi line 252
Quoted 8 lines
arch/arm/boot/dts/imx7-colibri.dtsi +3
-1@@ -242,8 +246,11 @@ &i2c4 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + scl-gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;and here, too.
Quoted 2 lines
Cheers,
André
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 05/21] ARM: dts: add recovery for I2C for iMX7
In reply to Philippe SchenkerQuoted 8 lines · Philippe Schenker
From: Oleksandr Suvorov <[email protected]>
- add recovery mode for applicable i2c buses for
Colibri iMX7 module.Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Hi Philippe,
since you are going to send v4 anyway I suggest you update the subject to be consistent across all the patches.
"ARM: dts: imx7-colibri: add recovery for I2C for iMX7"
fits better I think.
Thank you,
Michal
Quoted 67 lines
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7-colibri.dtsi +23
-2@@ -140,8 +140,12 @@ &i2c1 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; + scl-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + status = "okay"; codec: sgtl5000@a {@@ -242,8 +246,11 @@ &i2c4 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + scl-gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; }; &lcdif {@@ -540,6 +547,13 @@ >; }; + pinctrl_i2c4_recovery: i2c4-recoverygrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_TD2__GPIO7_IO8 0x4000007f + MX7D_PAD_ENET1_RGMII_TD3__GPIO7_IO9 0x4000007f + >; + }; + pinctrl_lcdif_dat: lcdif-dat-grp { fsl,pins = < MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79@@ -740,6 +754,13 @@ >; }; + pinctrl_i2c1_recovery: i2c1-recoverygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x4000007f + MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x4000007f + >; + }; + pinctrl_cd_usdhc1: usdhc1-cd-grp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO00__GPIO1_IO0 0x59 /* CD */
Re: [PATCH v3 05/21] ARM: dts: add recovery for I2C for iMX7
Quoted 14 lines · Michal Vokáč
Quoted 8 lines · Philippe Schenker
From: Oleksandr Suvorov <[email protected]>
- add recovery mode for applicable i2c buses for
Colibri iMX7 module.Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Hi Philippe,
since you are going to send v4 anyway I suggest you update the subject to be consistent across all the patches.
Quoted 6 lines
"ARM: dts: imx7-colibri: add recovery for I2C for iMX7"
fits better I think.
Thank you,
Michal
Okay, will do that for v4. I'll go over all messages then again and see that it is consistent.
Philippe
Quoted 69 lines
Quoted 69 lines
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri.dtsi | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7-colibri.dtsi +23
-2@@ -140,8 +140,12 @@ &i2c1 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; + scl-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + status = "okay"; codec: sgtl5000@a {@@ -242,8 +246,11 @@ &i2c4 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + scl-gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; }; &lcdif {@@ -540,6 +547,13 @@ >; }; + pinctrl_i2c4_recovery: i2c4-recoverygrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_TD2__GPIO7_IO8 0x4000007f + MX7D_PAD_ENET1_RGMII_TD3__GPIO7_IO9 0x4000007f + >; + }; + pinctrl_lcdif_dat: lcdif-dat-grp { fsl,pins = < MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79@@ -740,6 +754,13 @@ >; }; + pinctrl_i2c1_recovery: i2c1-recoverygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x4000007f + MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x4000007f + >; + }; + pinctrl_cd_usdhc1: usdhc1-cd-grp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO00__GPIO1_IO0 0x59 /* CD*/
PATCH v3 6/21 ARM: dts: imx7-colibri: add GPIO wakeup key
In reply to Philippe SchenkerFrom: Stefan Agner <[email protected]>
Add wakeup GPIO key which is able to wake the system from sleep modes (e.g. Suspend-to-Memory).
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/imx7-colibri.dtsi | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +14 -0
@@ -52,6 +52,20 @@ clock-frequency = <16000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiokeys>; + + power { + label = "Wake-Up"; + gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_WAKEUP>; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + panel: panel { compatible = "edt,et057090dhu"; backlight = <&bl>;
arch/arm/boot/dts/imx7-colibri.dtsi +6 -1
@@ -741,12 +741,17 @@ pinctrl_gpio_lpsr: gpio1-grp { fsl,pins = < - MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x59 MX7D_PAD_LPSR_GPIO1_IO02__GPIO1_IO2 0x59 MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x59 >; }; + pinctrl_gpiokeys: gpiokeysgrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x19 + >; + }; + pinctrl_i2c1: i2c1-grp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO05__I2C1_SDA 0x4000007f
Signature · 1 line
2.22.0
Re: [PATCH v3 06/21] ARM: dts: imx7-colibri: add GPIO wakeup key
Quoted 7 lines · Philippe Schenker
From: Stefan Agner <[email protected]>
Add wakeup GPIO key which is able to wake the system from sleep modes (e.g. Suspend-to-Memory).
Signed-off-by Stefan Agner <[email protected]>Signed-off-by Philippe Schenker <[email protected]>
Quoted 60 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/imx7-colibri.dtsi | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +14
-0@@ -52,6 +52,20 @@ clock-frequency = <16000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiokeys>; + + power { + label = "Wake-Up"; + gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_WAKEUP>; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + panel: panel { compatible = "edt,et057090dhu"; backlight = <&bl>;arch/arm/boot/dts/imx7-colibri.dtsi +6
-1@@ -741,12 +741,17 @@ pinctrl_gpio_lpsr: gpio1-grp { fsl,pins = < - MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x59 MX7D_PAD_LPSR_GPIO1_IO02__GPIO1_IO2 0x59 MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x59 >; }; + pinctrl_gpiokeys: gpiokeysgrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x19 + >; + }; + pinctrl_i2c1: i2c1-grp { fsl,pins = < MX7D_PAD_LPSR_GPIO1_IO05__I2C1_SDA 0x4000007f
PATCH v3 7/21 ARM: dts: imx7-colibri: fix 1.8V/UHS support
In reply to Philippe SchenkerFrom: Stefan Agner <[email protected]>
Add pinmuxing and do not specify voltage restrictions for the usdhc instance available on the modules edge connector. This allows to use SD-cards with higher transfer modes if supported by the carrier board.
---
Changes in v3:
- Add new commit message from Stefan's proposal on ML
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx7-colibri.dtsi +22 -1
@@ -326,7 +326,6 @@ &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_cd_usdhc1>; - no-1-8-v; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; disable-wp; vqmmc-supply = <®_LDO2>;
@@ -671,6 +670,28 @@ >; }; + pinctrl_usdhc1_100mhz: usdhc1grp_100mhz { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5a + MX7D_PAD_SD1_CLK__SD1_CLK 0x1a + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5a + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5a + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5a + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5a + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1grp_200mhz { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5b + MX7D_PAD_SD1_CLK__SD1_CLK 0x1b + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5b + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5b + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5b + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5b + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX7D_PAD_SD3_CMD__SD3_CMD 0x59
Signature · 1 line
2.22.0
Fabio Estevam
reviewerRe: [PATCH v3 07/21] ARM: dts: imx7-colibri: fix 1.8V/UHS support
Hi Philippe,
Quoted 7 lines · Philippe Schenker
From: Stefan Agner <[email protected]>
Add pinmuxing and do not specify voltage restrictions for the usdhc instance available on the modules edge connector. This allows to use SD-cards with higher transfer modes if supported by the carrier board.
Quoted 7 lines
Signed-off-by Stefan Agner <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3:
- Add new commit message from Stefan's proposal on ML
The commit message has been improved, but there is also another point I mentioned earlier:
Quoted 19 lines
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx7-colibri.dtsi +0
-1@@ -326,7 +326,6 @@ &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_cd_usdhc1>; - no-1-8-v; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; disable-wp; vqmmc-supply = <®_LDO2>;
arch/arm/boot/dts/imx7-colibri.dtsi line 673
Quoted 4 lines
arch/arm/boot/dts/imx7-colibri.dtsi +1
-0@@ -671,6 +670,28 @@ >; }; + pinctrl_usdhc1_100mhz: usdhc1grp_100mhz {
This new entry has been added and it is not referenced.
arch/arm/boot/dts/imx7-colibri.dtsi line 684
Quoted 11 lines
arch/arm/boot/dts/imx7-colibri.dtsi +11
-0+ fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5a + MX7D_PAD_SD1_CLK__SD1_CLK 0x1a + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5a + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5a + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5a + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5a + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1grp_200mhz {
Same here.
Re: [PATCH v3 07/21] ARM: dts: imx7-colibri: fix 1.8V/UHS support
Quoted 44 lines · Fabio Estevam
Hi Philippe,
Quoted 7 lines · Philippe Schenker
From: Stefan Agner <[email protected]>
Add pinmuxing and do not specify voltage restrictions for the usdhc instance available on the modules edge connector. This allows to use SD-cards with higher transfer modes if supported by the carrier board.
Quoted 7 lines
Signed-off-by Stefan Agner <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3:
- Add new commit message from Stefan's proposal on MLThe commit message has been improved, but there is also another point I mentioned earlier:
Quoted 22 lines
Changes in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx7-colibri.dtsi +0
-1@@ -326,7 +326,6 @@ &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_cd_usdhc1>; - no-1-8-v; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; disable-wp; vqmmc-supply = <®_LDO2>;@@ -671,6 +670,28 @@ >; };
Quoted 3 lines
arch/arm/boot/dts/imx7-colibri.dtsi line 673
Quoted 1 line
arch/arm/boot/dts/imx7-colibri.dtsi +1
-0+ pinctrl_usdhc1_100mhz: usdhc1grp_100mhz {This new entry has been added and it is not referenced.
Sorry, I probably could have mentioned that in this commit. I want, if possible, to let this commmit as is. That's why I added another on top of this patchset. Please see patch 21/21 that makes use of this change.
Quoted 14 lines
arch/arm/boot/dts/imx7-colibri.dtsi line 684
Quoted 12 lines
arch/arm/boot/dts/imx7-colibri.dtsi +11
-0+ fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5a + MX7D_PAD_SD1_CLK__SD1_CLK 0x1a + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5a + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5a + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5a + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5a + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1grp_200mhz {Same here.
Re: [PATCH v3 07/21] ARM: dts: imx7-colibri: fix 1.8V/UHS support
In reply to Philippe SchenkerQuoted 9 lines · Philippe Schenker
From: Stefan Agner <[email protected]>
Add pinmuxing and do not specify voltage restrictions for the usdhc instance available on the modules edge connector. This allows to use SD-cards with higher transfer modes if supported by the carrier board.
Signed-off-by Stefan Agner <[email protected]>Signed-off-by Philippe Schenker <[email protected]>
Quoted 52 lines
---
Changes in v3:
- Add new commit message from Stefan's proposal on MLChanges in v2: None
arch/arm/boot/dts/imx7-colibri.dtsi | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx7-colibri.dtsi +22
-1@@ -326,7 +326,6 @@ &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_cd_usdhc1>; - no-1-8-v; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; disable-wp; vqmmc-supply = <®_LDO2>;@@ -671,6 +670,28 @@ >; }; + pinctrl_usdhc1_100mhz: usdhc1grp_100mhz { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5a + MX7D_PAD_SD1_CLK__SD1_CLK 0x1a + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5a + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5a + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5a + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5a + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1grp_200mhz { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x5b + MX7D_PAD_SD1_CLK__SD1_CLK 0x1b + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x5b + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x5b + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x5b + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x5b + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX7D_PAD_SD3_CMD__SD3_CMD 0x59
PATCH v3 8/21 ARM: dts: imx7-colibri: Add touch controllers
In reply to Philippe SchenkerAdd touch controller that is connected over an I2C bus.
---
Changes in v3:
- Fix commit message
Changes in v2:
- Deleted touchrevolution downstream stuff
- Use generic node name
- Better comment
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +24 -0
@@ -145,6 +145,21 @@ &i2c4 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms + */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiotouch>; + reg = <0x4a>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */ + reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */ + status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc: m41t0m6@68 { compatible = "st,m41t0";
@@ -200,3 +215,12 @@ vmmc-supply = <®_3v3>; status = "okay"; }; + +&iomuxc { + pinctrl_gpiotouch: touchgpios { + fsl,pins = < + MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x74 + MX7D_PAD_GPIO1_IO10__GPIO1_IO10 0x14 + >; + }; +};
Signature · 1 line
2.22.0
Re: [PATCH v3 08/21] ARM: dts: imx7-colibri: Add touch controllers
Quoted 3 lines · Philippe Schenker
Add touch controller that is connected over an I2C bus.
Signed-off-by Philippe Schenker <[email protected]>
Quoted 58 lines
---
Changes in v3:
- Fix commit messageChanges in v2:
- Deleted touchrevolution downstream stuff
- Use generic node name
- Better commentarch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +3
-0@@ -145,6 +145,21 @@ &i2c4 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +8
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiotouch>; + reg = <0x4a>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /*SODIMM 28 */
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +1
-0+ reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; /*SODIMM 30 */
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +12
-0+ status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc: m41t0m6@68 { compatible = "st,m41t0";@@ -200,3 +215,12 @@ vmmc-supply = <®_3v3>; status = "okay"; }; + +&iomuxc { + pinctrl_gpiotouch: touchgpios { + fsl,pins = < + MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x74 + MX7D_PAD_GPIO1_IO10__GPIO1_IO10 0x14 + >; + }; +};
PATCH v3 9/21 ARM: dts: imx6qdl-colibri: add phy to fec
In reply to Philippe SchenkerAdd the phy-node and mdio bus to the fec-node, represented as is on hardware.
This commit includes micrel,led-mode that is set to the default value, prepared for someone who wants to change this.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6qdl-colibri.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/imx6qdl-colibri.dtsi +11 -0
@@ -140,7 +140,18 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rmii"; + phy-handle = <ðphy>; status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@0 { + reg = <0>; + micrel,led-mode = <0>; + }; + }; }; &hdmi {
Signature · 1 line
2.22.0
Re: [PATCH v3 09/21] ARM: dts: imx6qdl-colibri: add phy to fec
Quoted 22 lines · Philippe Schenker
Add the phy-node and mdio bus to the fec-node, represented as is on hardware.
This commit includes micrel,led-mode that is set to the default value, prepared for someone who wants to change this.Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6qdl-colibri.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/imx6qdl-colibri.dtsi +0
-0@@ -140,7 +140,18 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rmii";
arch/arm/boot/dts/imx6qdl-colibri.dtsi line 152
Quoted 10 lines
arch/arm/boot/dts/imx6qdl-colibri.dtsi +9
-0+ phy-handle = <ðphy>; status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@0 { + reg = <0>; + micrel,led-mode = <0>;
Doesn't that need a compatible entry to be actually used?
Best regards
Uwe
Quoted 2 lines
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |
Re: [PATCH v3 09/21] ARM: dts: imx6qdl-colibri: add phy to fec
Quoted 37 lines · Uwe Kleine-König
Quoted 23 lines · Philippe Schenker
Add the phy-node and mdio bus to the fec-node, represented as is on hardware.
This commit includes micrel,led-mode that is set to the default value, prepared for someone who wants to change this.Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6qdl-colibri.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/imx6qdl-colibri.dtsi +0
-0@@ -140,7 +140,18 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rmii";arch/arm/boot/dts/imx6qdl-colibri.dtsi line 152
Quoted 10 lines
arch/arm/boot/dts/imx6qdl-colibri.dtsi +9
-0+ phy-handle = <ðphy>; status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@0 { + reg = <0>; + micrel,led-mode = <0>;Doesn't that need a compatible entry to be actually used?
Quoted 2 lines
Best regards
Uwe
Hi Uwe and thanks for pointing this out. I just tried it and it works fine without the compatible.
Philippe
Quoted 1 line
Quoted 1 line
Re: [PATCH v3 09/21] ARM: dts: imx6qdl-colibri: add phy to fec
In reply to Philippe SchenkerQuoted 6 lines · Philippe Schenker
Add the phy-node and mdio bus to the fec-node, represented as is on hardware.
This commit includes micrel,led-mode that is set to the default value, prepared for someone who wants to change this.Signed-off-by Philippe Schenker <[email protected]>
Quoted 32 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6qdl-colibri.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/imx6qdl-colibri.dtsi +11
-0@@ -140,7 +140,18 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rmii"; + phy-handle = <ðphy>; status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@0 { + reg = <0>; + micrel,led-mode = <0>; + }; + }; }; &hdmi {
PATCH v3 10/21 ARM: dts: imx6qdl-colibri: Add missing pin declaration in iomuxc
In reply to Philippe SchenkerThis adds the muxing for the optional pins usb-oc (overcurrent) and usb-id.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6qdl-colibri.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/imx6qdl-colibri.dtsi +14 -0
@@ -615,6 +615,13 @@ >; }; + pinctrl_usbh_oc_1: usbh_oc-1 { + fsl,pins = < + /* USBH_OC */ + MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x1b0b0 + >; + }; + pinctrl_spdif: spdifgrp { fsl,pins = < MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x1b0b0
@@ -681,6 +688,13 @@ >; }; + pinctrl_usbc_id_1: usbc_id-1 { + fsl,pins = < + /* USBC_ID */ + MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17071
Signature · 1 line
2.22.0
Re: [PATCH v3 10/21] ARM: dts: imx6qdl-colibri: Add missing pin declaration in iomuxc
Quoted 4 lines · Philippe Schenker
This adds the muxing for the optional pins usb-oc (overcurrent) and usb-id.
Signed-off-by Philippe Schenker <[email protected]>
Quoted 43 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6qdl-colibri.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/imx6qdl-colibri.dtsi +4
-0@@ -615,6 +615,13 @@ >; }; + pinctrl_usbh_oc_1: usbh_oc-1 { + fsl,pins = < + /* USBH_OC */ + MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x1b0b0
arch/arm/boot/dts/imx6qdl-colibri.dtsi +7
-0+ >; + }; + pinctrl_spdif: spdifgrp { fsl,pins = < MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x1b0b0@@ -681,6 +688,13 @@ >; }; + pinctrl_usbc_id_1: usbc_id-1 { + fsl,pins = < + /* USBC_ID */ + MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
arch/arm/boot/dts/imx6qdl-colibri.dtsi +3
-0+ >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17071
PATCH v3 11/21 ARM: dts: imx6qdl-apalis: Add sleep state to can interfaces
In reply to Philippe SchenkerThis patch prepares the devicetree for the new Ixora V1.2 where we are able to turn off the supply of the can transceiver. This implies to use a sleep state on transmission pins in order to prevent backfeeding.
---
Changes in v3: None
Changes in v2:
- Changed commit title to '...imx6qdl-apalis:...'
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +21 -6
@@ -148,14 +148,16 @@ }; &can1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_flexcan1>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_flexcan1_default>; + pinctrl-1 = <&pinctrl_flexcan1_sleep>; status = "disabled"; }; &can2 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_flexcan2>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_flexcan2_default>; + pinctrl-1 = <&pinctrl_flexcan2_sleep>; status = "disabled"; };
@@ -599,19 +601,32 @@ >; }; - pinctrl_flexcan1: flexcan1grp { + pinctrl_flexcan1_default: flexcan1defgrp { fsl,pins = < MX6QDL_PAD_GPIO_7__FLEXCAN1_TX 0x1b0b0 MX6QDL_PAD_GPIO_8__FLEXCAN1_RX 0x1b0b0 >; }; - pinctrl_flexcan2: flexcan2grp { + pinctrl_flexcan1_sleep: flexcan1slpgrp { + fsl,pins = < + MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x0 + MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0 + >; + }; + + pinctrl_flexcan2_default: flexcan2defgrp { fsl,pins = < MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x1b0b0 MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x1b0b0 >; }; + pinctrl_flexcan2_sleep: flexcan2slpgrp { + fsl,pins = < + MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x0 + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x0 + >; + }; pinctrl_gpio_bl_on: gpioblon { fsl,pins = <
Signature · 1 line
2.22.0
Re: [PATCH v3 11/21] ARM: dts: imx6qdl-apalis: Add sleep state to can interfaces
Quoted 7 lines · Philippe Schenker
This patch prepares the devicetree for the new Ixora V1.2 where we are
able to turn off the supply of the can transceiver. This implies to use
a sleep state on transmission pins in order to prevent backfeeding.Signed-off-by Philippe Schenker <[email protected]>
Quoted 71 lines
---
Changes in v3: None
Changes in v2:
- Changed commit title to '...imx6qdl-apalis:...'arch/arm/boot/dts/imx6qdl-apalis.dtsi | 27 +++++++++++++++++++++-- ---- 1 file changed, 21 insertions(+), 6 deletions(-)arch/arm/boot/dts/imx6qdl-apalis.dtsi +21
-6@@ -148,14 +148,16 @@ }; &can1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_flexcan1>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_flexcan1_default>; + pinctrl-1 = <&pinctrl_flexcan1_sleep>; status = "disabled"; }; &can2 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_flexcan2>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_flexcan2_default>; + pinctrl-1 = <&pinctrl_flexcan2_sleep>; status = "disabled"; };@@ -599,19 +601,32 @@ >; }; - pinctrl_flexcan1: flexcan1grp { + pinctrl_flexcan1_default: flexcan1defgrp { fsl,pins = < MX6QDL_PAD_GPIO_7__FLEXCAN1_TX 0x1b0b0 MX6QDL_PAD_GPIO_8__FLEXCAN1_RX 0x1b0b0 >; }; - pinctrl_flexcan2: flexcan2grp { + pinctrl_flexcan1_sleep: flexcan1slpgrp { + fsl,pins = < + MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x0 + MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0 + >; + }; + + pinctrl_flexcan2_default: flexcan2defgrp { fsl,pins = < MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x1b0b0 MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x1b0b0 >; }; + pinctrl_flexcan2_sleep: flexcan2slpgrp { + fsl,pins = < + MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x0 + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x0 + >; + }; pinctrl_gpio_bl_on: gpioblon { fsl,pins = <
PATCH v3 12/21 ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards
In reply to Philippe SchenkerThis commit adds the touchscreens from Toradex so one can enable it.
---
Changes in v3:
- Fix commit title to "...imx6-apalis:..."
Changes in v2:
- Deleted touchrevolution downstream stuff
- Use generic node name
- Put a better comment in there
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 31 +++++++++++++++++++ arch/arm/boot/dts/imx6q-apalis-eval.dts | 13 ++++++++ arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 13 ++++++++ arch/arm/boot/dts/imx6q-apalis-ixora.dts | 13 ++++++++ 4 files changed, 70 insertions(+)
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +31 -0
@@ -168,6 +168,21 @@ &i2c3 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms + */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcap_1>; + reg = <0x4a>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */ + reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */ + status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible = "st,m41t0";
@@ -175,6 +190,22 @@ }; }; +&iomuxc { + pinctrl_pcap_1: pcap-1 { + fsl,pins = < + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 /* SODIMM 28 */ + MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x1b0b0 /* SODIMM 30 */ + >; + }; + + pinctrl_mxt_ts: mxt-ts { + fsl,pins = < + MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x130b0 /* SODIMM 107 */ + MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b0 /* SODIMM 106 */ + >; + }; +}; + &ipu1_di0_disp0 { remote-endpoint = <&lcd_display_in>; };
arch/arm/boot/dts/imx6q-apalis-eval.dts +13 -0
@@ -167,6 +167,19 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms + */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ + status = "disabled"; + }; + pcie-switch@58 { compatible = "plx,pex8605"; reg = <0x58>;
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +13 -0
@@ -172,6 +172,19 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms + */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ + status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible = "st,m41t0";
arch/arm/boot/dts/imx6q-apalis-ixora.dts +13 -0
@@ -171,6 +171,19 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms + */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ + status = "disabled"; + }; + eeprom@50 { compatible = "atmel,24c02"; reg = <0x50>;
Signature · 1 line
2.22.0
Re: [PATCH v3 12/21] ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards
Hi Philippe
Quoted 63 lines · Philippe Schenker
This commit adds the touchscreens from Toradex so one can enable it.
Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3:
- Fix commit title to "...imx6-apalis:..."Changes in v2:
- Deleted touchrevolution downstream stuff
- Use generic node name
- Put a better comment in therearch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 31 +++++++++++++++++++ arch/arm/boot/dts/imx6q-apalis-eval.dts | 13 ++++++++ arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 13 ++++++++ arch/arm/boot/dts/imx6q-apalis-ixora.dts | 13 ++++++++ 4 files changed, 70 insertions(+)arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +3
-0@@ -168,6 +168,21 @@ &i2c3 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +8
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcap_1>; + reg = <0x4a>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /*SODIMM 28 */
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +1
-0+ reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; /*SODIMM 30 */
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +7
-0+ status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible = "st,m41t0";@@ -175,6 +190,22 @@ }; }; +&iomuxc { + pinctrl_pcap_1: pcap-1 { + fsl,pins = < + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 /*SODIMM 28 */
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +1
-0+ MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x1b0b0 /*SODIMM 30 */
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
Quoted 2 lines
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +2
-0+ >; + };
What exactly are the above which get used further up vs. the below which do not seem to get used anywhere?
Quoted 34 lines
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +3
-0+ pinctrl_mxt_ts: mxt-ts { + fsl,pins = < + MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x130b0 /*SODIMM 107 */
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +1
-0+ MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b0 /*SODIMM 106 */
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +4
-0+ >; + }; +}; + &ipu1_di0_disp0 { remote-endpoint = <&lcd_display_in>; };arch/arm/boot/dts/imx6q-apalis-eval.dts +3
-0@@ -167,6 +167,19 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx6q-apalis-eval.dts +7
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13
Quoted 1 line
*/
Wouldn't above two pins also need resp. pinctrl entries?
Quoted 27 lines
arch/arm/boot/dts/imx6q-apalis-eval.dts +3
-0+ status = "disabled"; + }; + pcie-switch@58 { compatible = "plx,pex8605"; reg = <0x58>;arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +3
-0@@ -172,6 +172,19 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +7
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13
Quoted 1 line
*/
Ditto.
Quoted 27 lines
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +3
-0+ status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible = "st,m41t0";arch/arm/boot/dts/imx6q-apalis-ixora.dts +3
-0@@ -171,6 +171,19 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx6q-apalis-ixora.dts +7
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13
Quoted 1 line
*/
Ditto.
arch/arm/boot/dts/imx6q-apalis-ixora.dts line 189
Quoted 6 lines
arch/arm/boot/dts/imx6q-apalis-ixora.dts +3
-0+ status = "disabled"; + }; + eeprom@50 { compatible = "atmel,24c02"; reg = <0x50>;
Cheers
Marcel
PATCH v3 13/21 ARM: dts: imx6-colibri: Add missing pinmuxing to Toradex eval board
In reply to Philippe SchenkerThis patch adds some missing pinmuxing that is in the colibri standard to the dts.
---
Changes in v3: None
Changes in v2:
- Commit title
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +8 -0
@@ -191,6 +191,14 @@ }; &iomuxc { + pinctrl-names = "default"; + pinctrl-0 = < + &pinctrl_weim_gpio_1 &pinctrl_weim_gpio_2 + &pinctrl_weim_gpio_3 &pinctrl_weim_gpio_4 + &pinctrl_weim_gpio_5 &pinctrl_weim_gpio_6 + &pinctrl_usbh_oc_1 &pinctrl_usbc_id_1 + >; + pinctrl_pcap_1: pcap-1 { fsl,pins = < MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 /* SODIMM 28 */
Signature · 1 line
2.22.0
Re: [PATCH v3 13/21] ARM: dts: imx6-colibri: Add missing pinmuxing to Toradex eval board
Quoted 4 lines · Philippe Schenker
This patch adds some missing pinmuxing that is in the colibri standard to the dts.
Signed-off-by Philippe Schenker <[email protected]>
Quoted 30 lines
---
Changes in v3: None
Changes in v2:
- Commit titlearch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +8
-0@@ -191,6 +191,14 @@ }; &iomuxc { + pinctrl-names = "default"; + pinctrl-0 = < + &pinctrl_weim_gpio_1 &pinctrl_weim_gpio_2 + &pinctrl_weim_gpio_3 &pinctrl_weim_gpio_4 + &pinctrl_weim_gpio_5 &pinctrl_weim_gpio_6 + &pinctrl_usbh_oc_1 &pinctrl_usbc_id_1 + >; + pinctrl_pcap_1: pcap-1 { fsl,pins = < MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 /*SODIMM 28 */
PATCH v3 14/21 ARM: dts: imx6ull-colibri: Add sleep mode to fec
In reply to Philippe SchenkerDo not change the clock as the power for this phy is switched with that clock.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6ull-colibri.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx6ull-colibri.dtsi +17 -1
@@ -62,8 +62,9 @@ }; &fec2 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet2>; + pinctrl-1 = <&pinctrl_enet2_sleep>; phy-mode = "rmii"; phy-handle = <ðphy1>; status = "okay";
@@ -220,6 +221,21 @@ >; }; + pinctrl_enet2_sleep: enet2sleepgrp { + fsl,pins = < + MX6UL_PAD_GPIO1_IO06__GPIO1_IO06 0x0 + MX6UL_PAD_GPIO1_IO07__GPIO1_IO07 0x0 + MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x0 + MX6UL_PAD_ENET2_RX_DATA1__GPIO2_IO09 0x0 + MX6UL_PAD_ENET2_RX_EN__GPIO2_IO10 0x0 + MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15 0x0 + MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b031 + MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0 + MX6UL_PAD_ENET2_TX_DATA1__GPIO2_IO12 0x0 + MX6UL_PAD_ENET2_TX_EN__GPIO2_IO13 0x0 + >; + }; + pinctrl_ecspi1_cs: ecspi1-cs-grp { fsl,pins = < MX6UL_PAD_LCD_DATA21__GPIO3_IO26 0x000a0
Signature · 1 line
2.22.0
Re: [PATCH v3 14/21] ARM: dts: imx6ull-colibri: Add sleep mode to fec
Quoted 4 lines · Philippe Schenker
Do not change the clock as the power for this phy is switched with that clock.
Signed-off-by Philippe Schenker <[email protected]>
Quoted 47 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6ull-colibri.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx6ull-colibri.dtsi +11
-1@@ -62,8 +62,9 @@ }; &fec2 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_enet2>; + pinctrl-1 = <&pinctrl_enet2_sleep>; phy-mode = "rmii"; phy-handle = <ðphy1>; status = "okay";@@ -220,6 +221,21 @@ >; }; + pinctrl_enet2_sleep: enet2sleepgrp { + fsl,pins = < + MX6UL_PAD_GPIO1_IO06__GPIO1_IO06 0x0 + MX6UL_PAD_GPIO1_IO07__GPIO1_IO07 0x0 + MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x0 + MX6UL_PAD_ENET2_RX_DATA1__GPIO2_IO09 0x0 + MX6UL_PAD_ENET2_RX_EN__GPIO2_IO10 0x0 + MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15 0x0 + MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b031
arch/arm/boot/dts/imx6ull-colibri.dtsi +6
-0+ MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0 + MX6UL_PAD_ENET2_TX_DATA1__GPIO2_IO12 0x0 + MX6UL_PAD_ENET2_TX_EN__GPIO2_IO13 0x0 + >; + }; + pinctrl_ecspi1_cs: ecspi1-cs-grp { fsl,pins = < MX6UL_PAD_LCD_DATA21__GPIO3_IO26 0x000a0
PATCH v3 15/21 ARM: dts: imx6ull-colibri: reduce v_batt current in power off
In reply to Philippe SchenkerFrom: Max Krummenacher <[email protected]>
Reduce the current drawn from VCC_BATT when the main power on the 3V3 pins to the module are switched off.
This switches off SoC internal pull resistors which are provided on the module for TAMPER7 and TAMPER9 SoC pin and switches on a pull down instead of a pullup for the USBC_DET module pin (TAMPER2).
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6ull-colibri.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx6ull-colibri.dtsi +3 -3
@@ -533,19 +533,19 @@ pinctrl_snvs_ad7879_int: snvs-ad7879-int-grp { /* TOUCH Interrupt */ fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x1b0b0 + MX6ULL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x100b0 >; }; pinctrl_snvs_reg_sd: snvs-reg-sd-grp { fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x4001b8b0 + MX6ULL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x400100b0 >; }; pinctrl_snvs_usbc_det: snvs-usbc-det-grp { fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0 + MX6ULL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x130b0 >; };
Signature · 1 line
2.22.0
Re: [PATCH v3 15/21] ARM: dts: imx6ull-colibri: reduce v_batt current in power off
Quoted 5 lines · Philippe Schenker
From: Max Krummenacher <[email protected]>
Reduce the current drawn from
VCC_BATTwhen the main power on the 3V3 pins to the module are switched off.
Quoted 7 lines
This switches off SoC internal pull resistors which are provided on the
module for TAMPER7 and TAMPER9 SoC pin and switches on a pull down instead of a pullup for theUSBC_DETmodule pin (TAMPER2).Signed-off-by Max Krummenacher <[email protected]>Signed-off-by Philippe Schenker <[email protected]>
Quoted 42 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6ull-colibri.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-0@@ -533,19 +533,19 @@ pinctrl_snvs_ad7879_int: snvs-ad7879-int-grp { /* TOUCHInterrupt */
arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-1fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x1b0b0
arch/arm/boot/dts/imx6ull-colibri.dtsi +1
-0+ MX6ULL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x100b0
arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-1>; }; pinctrl_snvs_reg_sd: snvs-reg-sd-grp { fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x4001b8b0
arch/arm/boot/dts/imx6ull-colibri.dtsi +1
-0+ MX6ULL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x400100b0
arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-1>; }; pinctrl_snvs_usbc_det: snvs-usbc-det-grp { fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0
arch/arm/boot/dts/imx6ull-colibri.dtsi +1
-0+ MX6ULL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x130b0
arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-0>; };
PATCH v3 16/21 ARM: dts: imx6ull-colibri: Add watchdog
In reply to Philippe SchenkerThis patch adds the watchdog to the imx6ull-colibri devicetree
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/imx6ull-colibri.dtsi +12 -0
@@ -199,6 +199,12 @@ assigned-clock-rates = <0>, <198000000>; }; +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; +}; + &iomuxc { pinctrl_can_int: canint-grp { fsl,pins = <
@@ -506,6 +512,12 @@ MX6UL_PAD_GPIO1_IO03__OSC32K_32K_OUT 0x14 >; }; + + pinctrl_wdog: wdog-grp { + fsl,pins = < + MX6UL_PAD_LCD_RESET__WDOG1_WDOG_ANY 0x30b0 + >; + }; }; &iomuxc_snvs {
Signature · 1 line
2.22.0
Re: [PATCH v3 16/21] ARM: dts: imx6ull-colibri: Add watchdog
Quoted 3 lines · Philippe Schenker
This patch adds the watchdog to the imx6ull-colibri devicetree
Signed-off-by Philippe Schenker <[email protected]>
Quoted 39 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/imx6ull-colibri.dtsi +12
-0@@ -199,6 +199,12 @@ assigned-clock-rates = <0>, <198000000>; }; +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; +}; + &iomuxc { pinctrl_can_int: canint-grp { fsl,pins = <@@ -506,6 +512,12 @@ MX6UL_PAD_GPIO1_IO03__OSC32K_32K_OUT 0x14 >; }; + + pinctrl_wdog: wdog-grp { + fsl,pins = < + MX6UL_PAD_LCD_RESET__WDOG1_WDOG_ANY 0x30b0 + >; + }; }; &iomuxc_snvs {
PATCH v3 17/21 ARM: dts: imx6ull: improve can templates
In reply to Philippe SchenkerFrom: Max Krummenacher <[email protected]>
Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 and move the inactive flexcan nodes to imx6ull-colibri-eval-v3.dtsi where they belong.
Note that this commit does not enable flexcan functionality, but rather eases the effort needed to do so.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 12 ++++++++++++ arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri.dtsi | 16 ++++++++++++++-- 4 files changed, 28 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +12 -0
@@ -83,6 +83,18 @@ }; }; +&can1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + status = "disabled"; +}; + +&can2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + status = "disabled"; +}; + &i2c1 { status = "okay";
arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi +1 -1
@@ -15,7 +15,7 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6>; + &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6 &pinctrl_gpio7>; }; &iomuxc_snvs {
arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi +1 -1
@@ -26,7 +26,7 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5>; + &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio7>; };
arch/arm/boot/dts/imx6ull-colibri.dtsi +14 -2
@@ -256,6 +256,13 @@ >; }; + pinctrl_flexcan1: flexcan1-grp { + fsl,pins = < + MX6UL_PAD_ENET1_RX_DATA0__FLEXCAN1_TX 0x1b020 + MX6UL_PAD_ENET1_RX_DATA1__FLEXCAN1_RX 0x1b020 + >; + }; + pinctrl_flexcan2: flexcan2-grp { fsl,pins = < MX6UL_PAD_ENET1_TX_DATA0__FLEXCAN2_RX 0x1b020
@@ -271,8 +278,6 @@ pinctrl_gpio1: gpio1-grp { fsl,pins = < - MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x74 /* SODIMM 55 */ - MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01 0x74 /* SODIMM 63 */ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0X14 /* SODIMM 77 */ MX6UL_PAD_JTAG_TCK__GPIO1_IO14 0x14 /* SODIMM 99 */ MX6UL_PAD_NAND_CE1_B__GPIO4_IO14 0x14 /* SODIMM 133 */
@@ -325,6 +330,13 @@ >; }; + pinctrl_gpio7: gpio7-grp { /* CAN1 */ + fsl,pins = < + MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x74 /* SODIMM 55 */ + MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01 0x74 /* SODIMM 63 */ + >; + }; + pinctrl_gpmi_nand: gpmi-nand-grp { fsl,pins = < MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x100a9
Signature · 1 line
2.22.0
Re: [PATCH v3 17/21] ARM: dts: imx6ull: improve can templates
Hi Philippe
Quoted 33 lines · Philippe Schenker
From: Max Krummenacher <[email protected]>
Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 and move the inactive flexcan nodes to
imx6ull-colibri-eval-v3.dtsiwhere they belong.Note that this commit does not enable flexcan functionality, but rather
eases the effort needed to do so.Signed-off-by Max Krummenacher <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 12 ++++++++++++ arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri.dtsi | 16 ++++++++++++++-- 4 files changed, 28 insertions(+), 4 deletions(-)arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +1
-0@@ -83,6 +83,18 @@ }; }; +&can1 {
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi line 96
Quoted 10 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +10
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + status = "disabled"; +}; + +&can2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + status = "disabled"; +};
As those don't really have anything to do with the eval board directly, wouldn't it make more sense to rather move them into the module's dtsi just like the pin muxing further below?
Quoted 84 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +0
-0&i2c1 { status = "okay";arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi +1
-1@@ -15,7 +15,7 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6>; + &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6 &pinctrl_gpio7>; };
&iomuxc_snvs{arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi +1
-1@@ -26,7 +26,7 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5>; + &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio7>; };arch/arm/boot/dts/imx6ull-colibri.dtsi +3
-0@@ -256,6 +256,13 @@ >; }; + pinctrl_flexcan1: flexcan1-grp { + fsl,pins = < + MX6UL_PAD_ENET1_RX_DATA0__FLEXCAN1_TX 0x1b020
arch/arm/boot/dts/imx6ull-colibri.dtsi +1
-0+ MX6UL_PAD_ENET1_RX_DATA1__FLEXCAN1_RX 0x1b020
arch/arm/boot/dts/imx6ull-colibri.dtsi +3
-0+ >; + }; + pinctrl_flexcan2: flexcan2-grp { fsl,pins = < MX6UL_PAD_ENET1_TX_DATA0__FLEXCAN2_RX 0x1b020
arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-2@@ -271,8 +278,6 @@ pinctrl_gpio1: gpio1-grp { fsl,pins = < - MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x74 /* SODIMM 55 */ - MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01 0x74 /* SODIMM 63 */ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0X14/* SODIMM 77 */
MX6UL_PAD_JTAG_TCK__GPIO1_IO140x14
/* SODIMM 99 */
MX6UL_PAD_NAND_CE1_B__GPIO4_IO140x14/*
SODIMM 133 */arch/arm/boot/dts/imx6ull-colibri.dtsi +7
-0@@ -325,6 +330,13 @@ >; }; + pinctrl_gpio7: gpio7-grp { /* CAN1 */ + fsl,pins = < + MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x74 /* SODIMM 55 */ + MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01 0x74 /* SODIMM 63 */ + >; + }; + pinctrl_gpmi_nand: gpmi-nand-grp {arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-0fsl,pins = < MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x100
Quoted 1 line
a9
Cheers
Marcel
Re: [PATCH v3 17/21] ARM: dts: imx6ull: improve can templates
Quoted 36 lines · Marcel Ziswiler
Hi Philippe
Quoted 33 lines · Philippe Schenker
From: Max Krummenacher <[email protected]>
Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 and move the inactive flexcan nodes to
imx6ull-colibri-eval-v3.dtsiwhere they belong.Note that this commit does not enable flexcan functionality, but rather
eases the effort needed to do so.Signed-off-by Max Krummenacher <[email protected]>Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 12 ++++++++++++ arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 2 +- arch/arm/boot/dts/imx6ull-colibri.dtsi | 16 ++++++++++++++-(quoted diff) +0
-1- 4 files changed, 28 insertions(+), 4 deletions(-)arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +0
-0@@ -83,6 +83,18 @@ }; };
Quoted 16 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi line 96
Quoted 11 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +11
-0+&can1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + status = "disabled"; +}; + +&can2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + status = "disabled"; +};As those don't really have anything to do with the eval board directly,
wouldn't it make more sense to rather move them into the module's dtsi just like the pin muxing further below?
I agree, moved for v4.
Thanks, Philippe
Quoted 94 lines
Quoted 88 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +0
-0&i2c1 { status = "okay";arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi +1
-1@@ -15,7 +15,7 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6>; + &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6 &pinctrl_gpio7>; };
&iomuxc_snvs{arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi +1
-1@@ -26,7 +26,7 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5>; + &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio7>; };arch/arm/boot/dts/imx6ull-colibri.dtsi +3
-0@@ -256,6 +256,13 @@ >; }; + pinctrl_flexcan1: flexcan1-grp { + fsl,pins = < + MX6UL_PAD_ENET1_RX_DATA0__FLEXCAN1_TX 0x1b0
20arch/arm/boot/dts/imx6ull-colibri.dtsi +1
-0+ MX6UL_PAD_ENET1_RX_DATA1__FLEXCAN1_RX 0x1b0
20arch/arm/boot/dts/imx6ull-colibri.dtsi +3
-0+ >; + }; + pinctrl_flexcan2: flexcan2-grp { fsl,pins = < MX6UL_PAD_ENET1_TX_DATA0__FLEXCAN2_RX 0x1b0
20arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-2@@ -271,8 +278,6 @@ pinctrl_gpio1: gpio1-grp { fsl,pins = < - MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x74 /* SODIMM 55 */ - MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01 0x74 /* SODIMM 63 */ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0X14/* SODIMM 77 */
MX6UL_PAD_JTAG_TCK__GPIO1_IO140x14
/* SODIMM 99 */
MX6UL_PAD_NAND_CE1_B__GPIO4_IO140x14/*
SODIMM 133 */arch/arm/boot/dts/imx6ull-colibri.dtsi +7
-0@@ -325,6 +330,13 @@ >; }; + pinctrl_gpio7: gpio7-grp { /* CAN1 */ + fsl,pins = < + MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x74 /* SODIMM 55 */ + MX6UL_PAD_ENET1_RX_DATA1__GPIO2_IO01 0x74 /* SODIMM 63 */ + >; + }; + pinctrl_gpmi_nand: gpmi-nand-grp {arch/arm/boot/dts/imx6ull-colibri.dtsi +0
-0fsl,pins = < MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x10Quoted 2 lines
0
a9Cheers
Marcel
PATCH v3 18/21 ARM: dts: imx6ull-colibri: Add general wakeup key used on Colibri
In reply to Philippe SchenkerThis adds the possibility to wake the module with an external signal as defined in the Colibri standard
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +14 -0
@@ -8,6 +8,20 @@ stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_snvs_gpiokeys>; + + power { + label = "Wake-Up"; + gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_WAKEUP>; + debounce-interval = <10>; + wakeup-source; + }; + }; + /* fixed crystal dedicated to mcp2515 */ clk16m: clk16m { compatible = "fixed-clock";
Signature · 1 line
2.22.0
Re: [PATCH v3 18/21] ARM: dts: imx6ull-colibri: Add general wakeup key used on Colibri
Quoted 4 lines · Philippe Schenker
This adds the possibility to wake the module with an external signal as defined in the Colibri standard
Signed-off-by Philippe Schenker <[email protected]>
Quoted 34 lines
---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +14
-0@@ -8,6 +8,20 @@ stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_snvs_gpiokeys>; + + power { + label = "Wake-Up"; + gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_WAKEUP>; + debounce-interval = <10>; + wakeup-source; + }; + }; + /* fixed crystal dedicated to mcp2515 */ clk16m: clk16m { compatible = "fixed-clock";
PATCH v3 19/21 ARM: dts: imx6/7-colibri: switch dr_mode to otg
In reply to Philippe SchenkerIn order for the otg ports, that these modules support, it is needed that dr_mode is on otg. Switch to use that feature.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- arch/arm/boot/dts/imx7-colibri.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-colibri.dtsi +1 -1
@@ -388,7 +388,7 @@ &usbotg { pinctrl-names = "default"; disable-over-current; - dr_mode = "peripheral"; + dr_mode = "otg"; status = "disabled"; };
arch/arm/boot/dts/imx7-colibri.dtsi +1 -1
@@ -320,7 +320,7 @@ }; &usbotg1 { - dr_mode = "host"; + dr_mode = "otg"; }; &usdhc1 {
Signature · 1 line
2.22.0
Re: [PATCH v3 19/21] ARM: dts: imx6/7-colibri: switch dr_mode to otg
Hi Philippe
Quoted 2 lines · Philippe Schenker
In order for the otg ports, that these modules support, it is needed that
dr_modeis on otg. Switch to use that feature.
Isn't further extcon integration required for this to truly work?
Quoted 30 lines
Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- arch/arm/boot/dts/imx7-colibri.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx6qdl-colibri.dtsi +1
-1@@ -388,7 +388,7 @@ &usbotg { pinctrl-names = "default"; disable-over-current; - dr_mode = "peripheral"; + dr_mode = "otg"; status = "disabled"; };arch/arm/boot/dts/imx7-colibri.dtsi +0
-0
arch/arm/boot/dts/imx7-colibri.dtsi line 326
Quoted 8 lines
arch/arm/boot/dts/imx7-colibri.dtsi +1
-1@@ -320,7 +320,7 @@ }; &usbotg1 { - dr_mode = "host"; + dr_mode = "otg"; }; &usdhc1 {
Cheers
Marcel
Re: [PATCH v3 19/21] ARM: dts: imx6/7-colibri: switch dr_mode to otg
Quoted 7 lines · Marcel Ziswiler
Hi Philippe
Quoted 2 lines · Philippe Schenker
In order for the otg ports, that these modules support, it is needed that
dr_modeis on otg. Switch to use that feature.Isn't further extcon integration required for this to truly work?
Yes, I wasn't aware of that. I will drop this patch as this is a whole new topic and will hopefully be a whole new patchset soon.
Philippe
Quoted 43 lines
Quoted 31 lines
Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2: Nonearch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- arch/arm/boot/dts/imx7-colibri.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx6qdl-colibri.dtsi +1
-1@@ -388,7 +388,7 @@ &usbotg { pinctrl-names = "default"; disable-over-current; - dr_mode = "peripheral"; + dr_mode = "otg"; status = "disabled"; };arch/arm/boot/dts/imx7-colibri.dtsi +0
-0arch/arm/boot/dts/imx7-colibri.dtsi line 326
Quoted 8 lines
arch/arm/boot/dts/imx7-colibri.dtsi +1
-1@@ -320,7 +320,7 @@ }; &usbotg1 { - dr_mode = "host"; + dr_mode = "otg"; }; &usdhc1 {Cheers
Marcel
PATCH v3 20/21 ARM: dts: imx6ull-colibri: Add touchscreen used with Eval Board
In reply to Philippe SchenkerThis adds the common touchscreen that is used with Toradex's Eval Boards.
---
Changes in v3: None
Changes in v2:
- Removed f0710a, that is downstream only
- Changed to generic node name
- Better comment
.../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +24 -0
@@ -112,6 +112,21 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms + */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiotouch>; + reg = <0x4a>; + interrupt-parent = <&gpio4>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */ + reset-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */ + status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ m41t0m6: rtc@68 { compatible = "st,m41t0";
@@ -188,3 +203,12 @@ sd-uhs-sdr104; status = "okay"; }; + +&iomuxc { + pinctrl_gpiotouch: touchgpios { + fsl,pins = < + MX6UL_PAD_NAND_DQS__GPIO4_IO16 0x74 + MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0x14 + >; + }; +};
Signature · 1 line
2.22.0
Re: [PATCH v3 20/21] ARM: dts: imx6ull-colibri: Add touchscreen used with Eval Board
Hi Philippe
Quoted 2 lines · Philippe Schenker
This adds the common touchscreen that is used with Toradex's Eval Boards.
Is that really Eval Board specific?
Quoted 48 lines
Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2:
- Removed f0710a, that is downstream only
- Changed to generic node name
- Better comment.../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +3
-0@@ -112,6 +112,21 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +8
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiotouch>; + reg = <0x4a>; + interrupt-parent = <&gpio4>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28*/
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +1
-0+ reset-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /*SODIMM 30 */
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +3
-0+ status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ m41t0m6: rtc@68 { compatible = "st,m41t0";@@ -188,3 +203,12 @@ sd-uhs-sdr104; status = "okay";
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi line 214
Quoted 10 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +9
-0}; + +&iomuxc { + pinctrl_gpiotouch: touchgpios { + fsl,pins = < + MX6UL_PAD_NAND_DQS__GPIO4_IO16 0x74 + MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0x14 + >; + }; +};
I guess that could also be moved to the module's dtsi for any carrier board to potentially profit from.
Cheers
Marcel
Re: [PATCH v3 20/21] ARM: dts: imx6ull-colibri: Add touchscreen used with Eval Board
Quoted 7 lines · Marcel Ziswiler
Hi Philippe
Quoted 2 lines · Philippe Schenker
This adds the common touchscreen that is used with Toradex's Eval Boards.
Is that really Eval Board specific?
Since we provide the needed signals as standard on every Eval Board, this is not specific to the Eval Board.
Quoted 54 lines
Quoted 54 lines
Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3: None
Changes in v2:
- Removed f0710a, that is downstream only
- Changed to generic node name
- Better comment.../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +3
-0@@ -112,6 +112,21 @@ &i2c1 { status = "okay"; + /* + * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, + * aka pwm2, pwm3. so if you enable touchscreen, disable thepwms
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +8
-0+ */ + touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiotouch>; + reg = <0x4a>; + interrupt-parent = <&gpio4>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28*/
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +1
-0+ reset-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /*SODIMM 30 */
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +7
-0+ status = "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ m41t0m6: rtc@68 { compatible = "st,m41t0";@@ -188,3 +203,12 @@ sd-uhs-sdr104; status = "okay"; }; + +&iomuxc { + pinctrl_gpiotouch: touchgpios { + fsl,pins = <
Quoted 8 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi line 214
Quoted 5 lines
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +5
-0+ MX6UL_PAD_NAND_DQS__GPIO4_IO16 0x74 + MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0x14 + >; + }; +};I guess that could also be moved to the module's dtsi for any carrier board to potentially profit from.
I think this clearly is physically not present on our module so I would not do that. I like to leave that in here as is, so it offers an example of how to hook this touchscreen up in DT.
Philippe
Quoted 4 lines
Cheers
Marcel
PATCH v3 21/21 ARM: dts: imx7-colibri: Add UHS support to eval board
In reply to Philippe SchenkerThis commit adds UHS capability to Toradex Eval Boards
---
Changes in v3:
- New patch to make use of ARM: dts: imx7-colibri: fix 1.8V/UHS support
Changes in v2: None
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +9 -2
@@ -210,9 +210,16 @@ }; &usdhc1 { - keep-power-in-suspend; - wakeup-source; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_cd_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_cd_usdhc1>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_cd_usdhc1>; vmmc-supply = <®_3v3>; + vqmmc-supply = <®_LDO2>; + cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + disable-wp; + enable-sdio-wakeup; + keep-power-in-suspend; status = "okay"; };
Signature · 1 line
2.22.0
Re: [PATCH v3 21/21] ARM: dts: imx7-colibri: Add UHS support to eval board
Hi Philippe
Quoted 1 line · Philippe Schenker
This commit adds UHS capability to Toradex Eval Boards
How about any other carrier board?
Quoted 39 lines
Signed-off-by Philippe Schenker <[email protected]>---
Changes in v3:
- New patch to make use of ARM: dts: imx7-colibri: fix 1.8V/UHS supportChanges in v2: None
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +9
-2@@ -210,9 +210,16 @@ }; &usdhc1 { - keep-power-in-suspend; - wakeup-source; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_cd_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_cd_usdhc1>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_cd_usdhc1>; vmmc-supply = <®_3v3>; + vqmmc-supply = <®_LDO2>; + cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + disable-wp; + enable-sdio-wakeup; + keep-power-in-suspend; status = "okay"; };Signature · 1 line
2.22.0
Cheers
Marcel