* [PATCH v2] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing
@ 2023-02-15 23:32 Laurent Pinchart
2023-02-16 7:46 ` Teresa Remmet
2023-03-14 1:05 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Laurent Pinchart @ 2023-02-15 23:32 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, linux-imx, kernel, Teresa Remmet, Shawn Guo,
Rob Herring, Krzysztof Kozlowski
The I2C4 bus is exposed on the camera connector. Add and select the
corresponding pinmux entries and set the default frequency. The device
is left disabled, to be enabled from camera overlays.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
Changes since v1:
- Don't set bit 0 as it is reserved
---
.../dts/freescale/imx8mm-phyboard-polis-rdk.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
index 4a3df2b77b0b..0b384ad1ea82 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
@@ -168,6 +168,12 @@ &gpio5 {
"", "ECSPI1_SS0";
};
+&i2c4 {
+ clock-frequency = <400000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c4>;
+};
+
/* PCIe */
&pcie0 {
assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
@@ -336,6 +342,13 @@ MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8 0x16
>;
};
+ pinctrl_i2c4: i2c4grp {
+ fsl,pins = <
+ MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c2
+ MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c2
+ >;
+ };
+
pinctrl_leds: leds1grp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x16
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing
2023-02-15 23:32 [PATCH v2] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing Laurent Pinchart
@ 2023-02-16 7:46 ` Teresa Remmet
2023-03-14 1:05 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Teresa Remmet @ 2023-02-16 7:46 UTC (permalink / raw)
To: linux-arm-kernel@lists.infradead.org,
laurent.pinchart@ideasonboard.com
Cc: kernel@pengutronix.de, devicetree@vger.kernel.org,
krzysztof.kozlowski+dt@linaro.org, linux-imx@nxp.com,
shawnguo@kernel.org, robh+dt@kernel.org
Am Donnerstag, dem 16.02.2023 um 01:32 +0200 schrieb Laurent Pinchart:
> The I2C4 bus is exposed on the camera connector. Add and select the
> corresponding pinmux entries and set the default frequency. The
> device
> is left disabled, to be enabled from camera overlays.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Teresa Remmet <t.remmet@phytec.de>
> ---
> Changes since v1:
>
> - Don't set bit 0 as it is reserved
> ---
> .../dts/freescale/imx8mm-phyboard-polis-rdk.dts | 13
> +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-
> rdk.dts b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
> index 4a3df2b77b0b..0b384ad1ea82 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts
> @@ -168,6 +168,12 @@ &gpio5 {
> "", "ECSPI1_SS0";
> };
>
> +&i2c4 {
> + clock-frequency = <400000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_i2c4>;
> +};
> +
> /* PCIe */
> &pcie0 {
> assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
> @@ -336,6 +342,13 @@ MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8 0x16
> >;
> };
>
> + pinctrl_i2c4: i2c4grp {
> + fsl,pins = <
> + MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL 0x400
> 001c2
> + MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400
> 001c2
> + >;
> + };
> +
> pinctrl_leds: leds1grp {
> fsl,pins = <
> MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x16
--
PHYTEC Messtechnik GmbH | Barcelona-Allee 1 | 55129 Mainz, Germany
Geschäftsführer: Dipl.-Ing. Michael Mitezki, Dipl.-Ing. Bodo Huber,
Dipl.-Ing. (FH) Markus Lickes | Handelsregister Mainz HRB 4656 |
Finanzamt Mainz | St.Nr. 266500608, DE 149059855
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing
2023-02-15 23:32 [PATCH v2] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing Laurent Pinchart
2023-02-16 7:46 ` Teresa Remmet
@ 2023-03-14 1:05 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2023-03-14 1:05 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-arm-kernel, devicetree, linux-imx, kernel, Teresa Remmet,
Rob Herring, Krzysztof Kozlowski
On Thu, Feb 16, 2023 at 01:32:26AM +0200, Laurent Pinchart wrote:
> The I2C4 bus is exposed on the camera connector. Add and select the
> corresponding pinmux entries and set the default frequency. The device
> is left disabled, to be enabled from camera overlays.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-14 1:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 23:32 [PATCH v2] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing Laurent Pinchart
2023-02-16 7:46 ` Teresa Remmet
2023-03-14 1:05 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).