arm64: dts: imx8mm-nitrogen-r2: add espi2 support
Subsystems (2)
cover arm64: dts: imx8mm-nitrogen-r2: add espi2 support
Hi,
This is a repost of a missing patch on a previous patch set [1]. This patch adds the support of the espi2 on the imx8mm-nitrogen-r2 board.
Thanks,
[1]: https://lore.kernel.org/linux-arm-kernel/[email protected]/
Adrien Grassein (1):
arm64: dts: imx8mm-nitrogen-r2: add espi2 support
.../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+)
Signature · 1 line
2.25.1
PATCH 1/1 arm64: dts: imx8mm-nitrogen-r2: add espi2 support
Add the description for espi support.
--- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts +22 -0
@@ -52,6 +52,19 @@ &A53_3 { cpu-supply = <®_buck3>; }; +/* J15 */ +&ecspi2 { + assigned-clocks = <&clk IMX8MM_CLK_ECSPI2>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_40M>; + assigned-clock-rates = <40000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi2>; + cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>;
@@ -286,6 +299,15 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; + pinctrl_ecspi2: ecspi2grp { + fsl,pins = < + MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x140 + MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x19 + MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x19 + MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x19 + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3
Signature · 1 line
2.25.1
Hi Adrien,
Quoted 2 lines · Adrien Grassein
Add the description for espi support.
Nit: In the subject and commit log, it should be ecspi2 instead of espi.
With that fixed:
Hi Adrien,
Quoted 17 lines · Adrien Grassein
Add the description for espi support.
Signed-off-by Adrien Grassein <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>--- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+)arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts +1
-0@@ -52,6 +52,19 @@ &A53_3 { cpu-supply = <®_buck3>; }; +/* J15 */
arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts &A53_3 { · line 65
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts +9
-0+&ecspi2 { + assigned-clocks = <&clk IMX8MM_CLK_ECSPI2>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_40M>; + assigned-clock-rates = <40000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi2>; + cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; + #address-cells = <1>; + #size-cells = <0>;
Nit: These two properties should be added to the base dtsi if not already done.
Regards,
Marco
Quoted 27 lines
arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts +3
-0+ status = "okay"; +}; + &fec1 { pinctrl-names = "default";arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts +9
-0pinctrl-0 = <&pinctrl_fec1>;@@ -286,6 +299,15 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; + pinctrl_ecspi2: ecspi2grp { + fsl,pins = < + MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x140 + MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x19 + MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x19 + MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x19 + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3Signature · 1 line
2.25.1
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |