arm64: dts: imx8mm-nitrogen-r2: add ecspi2 support
authorAdrien Grassein <adrien.grassein@gmail.com>
Mon, 8 Mar 2021 12:55:18 +0000 (13:55 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 29 Mar 2021 01:49:57 +0000 (09:49 +0800)
Add the description for ecspi2 support.

Signed-off-by: Adrien Grassein <adrien.grassein@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

index 70ec5d2..74c0989 100644 (file)
        cpu-supply = <&reg_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>;
+       status = "okay";
+};
+
 &fec1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_fec1>;
        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