[PATCH v1 1/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus SoM

2022-08-22 Thread Manoj Sai
i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus
from Engicam.

General features:
- NXP i.MX8M Plus
- Up to 4GB LDDR4
- 8 eMMC
- Gigabit Ethernet
- USB 3.0, 2.0 Host/OTG
- PCIe 3.0 interface
- I2S
- LVDS
- rest of i.MX8M Plus features

i.Core MX8M Plus needs to mount on top of Engicam baseboards
for creating complete platform solutions.

Add support for it.

Sync the i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus
from Engicam devicetree file from linux-next tree.
commit  (arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus SoM)

Signed-off-by: Manoj Sai 
Signed-off-by: Signed-off-by: Jagan Teki 
Signed-off-by: Matteo Lisi 
---
 arch/arm/dts/imx8mp-icore-mx8mp.dtsi | 186 +++
 1 file changed, 186 insertions(+)
 create mode 100644 arch/arm/dts/imx8mp-icore-mx8mp.dtsi

diff --git a/arch/arm/dts/imx8mp-icore-mx8mp.dtsi 
b/arch/arm/dts/imx8mp-icore-mx8mp.dtsi
new file mode 100644
index 00..5116079cce
--- /dev/null
+++ b/arch/arm/dts/imx8mp-icore-mx8mp.dtsi
@@ -0,0 +1,186 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 NXP
+ * Copyright (c) 2019 Engicam srl
+ * Copyright (c) 2020 Amarula Solutons(India)
+ */
+
+/ {
+   compatible = "engicam,icore-mx8mp", "fsl,imx8mp";
+};
+
+&A53_0 {
+   cpu-supply = <&buck2>;
+};
+
+&A53_1 {
+   cpu-supply = <&buck2>;
+};
+
+&A53_2 {
+   cpu-supply = <&buck2>;
+};
+
+&A53_3 {
+   cpu-supply = <&buck2>;
+};
+
+&i2c1 {
+   clock-frequency = <10>;
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_i2c1>;
+   status = "okay";
+
+   pca9450: pmic@25 {
+   compatible = "nxp,pca9450c";
+   interrupt-parent = <&gpio3>;
+   interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_pmic>;
+   reg = <0x25>;
+
+   regulators {
+   buck1: BUCK1 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-min-microvolt = <72>;
+   regulator-max-microvolt = <100>;
+   regulator-name = "BUCK1";
+   regulator-ramp-delay = <3125>;
+   };
+
+   buck2: BUCK2  {
+   nxp,dvs-run-voltage = <95>;
+   nxp,dvs-standby-voltage = <85>;
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <1025000>;
+   regulator-min-microvolt = <72>;
+   regulator-name = "BUCK2";
+   regulator-ramp-delay = <3125>;
+   };
+
+   buck4: BUCK4 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <360>;
+   regulator-min-microvolt = <300>;
+   regulator-name = "BUCK4";
+   };
+
+   buck5: BUCK5 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <195>;
+   regulator-min-microvolt = <165>;
+   regulator-name = "BUCK5";
+   };
+
+   buck6: BUCK6 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <1155000>;
+   regulator-min-microvolt = <1045000>;
+   regulator-name = "BUCK6";
+   };
+
+   ldo1: LDO1 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <195>;
+   regulator-min-microvolt = <165>;
+   regulator-name = "LDO1";
+   };
+
+   ldo3: LDO3 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <189>;
+   regulator-min-microvolt = <171>;
+   regulator-name = "LDO3";
+   };
+
+   ldo5: LDO5 {
+   regulator-always-on;
+   regulator-boot-on;
+   regulator-max-microvolt = <330>;
+   regulator-m

Re: [PATCH v1 1/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus SoM

2022-08-22 Thread Jagan Teki
On Mon, Aug 22, 2022 at 2:40 PM Michael Nazzareno Trimarchi
 wrote:
>
> Hi
>
> On Mon, Aug 22, 2022 at 11:07 AM Manoj Sai
>  wrote:
> >
> > i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus
> > from Engicam.
> >
> > General features:
> > - NXP i.MX8M Plus
> > - Up to 4GB LDDR4
> > - 8 eMMC
> > - Gigabit Ethernet
> > - USB 3.0, 2.0 Host/OTG
> > - PCIe 3.0 interface
> > - I2S
> > - LVDS
> > - rest of i.MX8M Plus features
> >
> > i.Core MX8M Plus needs to mount on top of Engicam baseboards
> > for creating complete platform solutions.
> >
> > Add support for it.
> >
> > Sync the i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus
> > from Engicam devicetree file from linux-next tree.
> > commit  (arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus 
> > SoM)
> >
> > Signed-off-by: Manoj Sai 
> > Signed-off-by: Signed-off-by: Jagan Teki 
>
> Please double check before send
>
> > Signed-off-by: Matteo Lisi 
> > ---
> >  arch/arm/dts/imx8mp-icore-mx8mp.dtsi | 186 +++
> >  1 file changed, 186 insertions(+)
> >  create mode 100644 arch/arm/dts/imx8mp-icore-mx8mp.dtsi
> >
> > diff --git a/arch/arm/dts/imx8mp-icore-mx8mp.dtsi 
> > b/arch/arm/dts/imx8mp-icore-mx8mp.dtsi
> > new file mode 100644
> > index 00..5116079cce
> > --- /dev/null
> > +++ b/arch/arm/dts/imx8mp-icore-mx8mp.dtsi
> > @@ -0,0 +1,186 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Copyright (c) 2018 NXP
> > + * Copyright (c) 2019 Engicam srl
> > + * Copyright (c) 2020 Amarula Solutons(India)
>
> Again

Look like it's my bad. Will fix it on Linux.

Thanks,
Jagan


Re: [PATCH v1 1/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus SoM

2022-08-22 Thread Michael Nazzareno Trimarchi
Hi

On Mon, Aug 22, 2022 at 11:07 AM Manoj Sai
 wrote:
>
> i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus
> from Engicam.
>
> General features:
> - NXP i.MX8M Plus
> - Up to 4GB LDDR4
> - 8 eMMC
> - Gigabit Ethernet
> - USB 3.0, 2.0 Host/OTG
> - PCIe 3.0 interface
> - I2S
> - LVDS
> - rest of i.MX8M Plus features
>
> i.Core MX8M Plus needs to mount on top of Engicam baseboards
> for creating complete platform solutions.
>
> Add support for it.
>
> Sync the i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus
> from Engicam devicetree file from linux-next tree.
> commit  (arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus SoM)
>
> Signed-off-by: Manoj Sai 
> Signed-off-by: Signed-off-by: Jagan Teki 

Please double check before send

> Signed-off-by: Matteo Lisi 
> ---
>  arch/arm/dts/imx8mp-icore-mx8mp.dtsi | 186 +++
>  1 file changed, 186 insertions(+)
>  create mode 100644 arch/arm/dts/imx8mp-icore-mx8mp.dtsi
>
> diff --git a/arch/arm/dts/imx8mp-icore-mx8mp.dtsi 
> b/arch/arm/dts/imx8mp-icore-mx8mp.dtsi
> new file mode 100644
> index 00..5116079cce
> --- /dev/null
> +++ b/arch/arm/dts/imx8mp-icore-mx8mp.dtsi
> @@ -0,0 +1,186 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2018 NXP
> + * Copyright (c) 2019 Engicam srl
> + * Copyright (c) 2020 Amarula Solutons(India)

Again

> + */
> +
> +/ {
> +   compatible = "engicam,icore-mx8mp", "fsl,imx8mp";
> +};
> +
> +&A53_0 {
> +   cpu-supply = <&buck2>;
> +};
> +
> +&A53_1 {
> +   cpu-supply = <&buck2>;
> +};
> +
> +&A53_2 {
> +   cpu-supply = <&buck2>;
> +};
> +
> +&A53_3 {
> +   cpu-supply = <&buck2>;
> +};
> +
> +&i2c1 {
> +   clock-frequency = <10>;
> +   pinctrl-names = "default";
> +   pinctrl-0 = <&pinctrl_i2c1>;
> +   status = "okay";
> +
> +   pca9450: pmic@25 {
> +   compatible = "nxp,pca9450c";
> +   interrupt-parent = <&gpio3>;
> +   interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
> +   pinctrl-names = "default";
> +   pinctrl-0 = <&pinctrl_pmic>;
> +   reg = <0x25>;
> +
> +   regulators {
> +   buck1: BUCK1 {
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-min-microvolt = <72>;
> +   regulator-max-microvolt = <100>;
> +   regulator-name = "BUCK1";
> +   regulator-ramp-delay = <3125>;
> +   };
> +
> +   buck2: BUCK2  {
> +   nxp,dvs-run-voltage = <95>;
> +   nxp,dvs-standby-voltage = <85>;
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-max-microvolt = <1025000>;
> +   regulator-min-microvolt = <72>;
> +   regulator-name = "BUCK2";
> +   regulator-ramp-delay = <3125>;
> +   };
> +
> +   buck4: BUCK4 {
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-max-microvolt = <360>;
> +   regulator-min-microvolt = <300>;
> +   regulator-name = "BUCK4";
> +   };
> +
> +   buck5: BUCK5 {
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-max-microvolt = <195>;
> +   regulator-min-microvolt = <165>;
> +   regulator-name = "BUCK5";
> +   };
> +
> +   buck6: BUCK6 {
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-max-microvolt = <1155000>;
> +   regulator-min-microvolt = <1045000>;
> +   regulator-name = "BUCK6";
> +   };
> +
> +   ldo1: LDO1 {
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-max-microvolt = <195>;
> +   regulator-min-microvolt = <165>;
> +   regulator-name = "LDO1";
> +   };
> +
> +   ldo3: LDO3 {
> +   regulator-always-on;
> +   regulator-boot-on;
> +   regulator-max-microvolt = <189>;
> +   regulator