Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3160408pxb; Mon, 25 Jan 2021 08:27:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq6vwAUnGqIa9Gh649DwV3U3oGaiRed2L5iMlk/OAERxd2WkhetX7Cs5mM6RCglS0+EyJA X-Received: by 2002:a17:906:ae91:: with SMTP id md17mr903399ejb.302.1611592043547; Mon, 25 Jan 2021 08:27:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611592043; cv=none; d=google.com; s=arc-20160816; b=OyQk2lt+x05d5fgn2FgxCOwDAOnAMjb/lTddBuFhzcPRkBByi0lFWVFPL/icFd5Jdq 2FwTKp/rdpbmUF99D0kU7DlXZ7E9FuwS8Z6+giYKfBmKoqiMoPJrN17GIfLFFpoopT/w GEdYKdmUIejgCS1toK0rLxlOFo0PlcPL3j3aJqlNRHYJwcG/cokoLTnZkyNmYmP9w5S9 6ltyuVekmQC0MY2dVygNYS6mcyX4bbp8ia9W/FfqzxVtQRAlxo/J4jUUb/gh/mpv10wq 8tVkUlRT7Se5FtSmYG3w2oc4znoaT4/OCy4AAgaN3kgN/YpNTbQrO1+fV0H23mNcXi5l qV1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3VIEwfh4J+Aj6CJv0TrmsmAtwTi75eM4BtqDdVbEjj8=; b=ZHDKLLlOiMecywlSs9UUIi/AFCHKbFF+VgcOsROSLyY/IRvp4dRyFsUqEMqZze8vR+ qBXEAlaRgPsH7VJis0KA8FTusm2/QUty7UwCXDJurigQ6O7uk9zo3UfB6ABXwbjERpxB /ImhnJJXFXHj+tPffYWxBJzy5MSb9U1XzjutJju/6R58q8/LZPZKSuwqqMuE1LBNJ1bI wPamjMh9IYDUi3IrIxgDNiySuibPYZsKo86rAT824zJhv16vaTus6mhZTNQNjPSE3T8c 8RnPwk/BQv+Q/+DvRRjzMRAqRBr4ACl9Pp8J++uzA7y+Nj+FhBYJbO+QWFH9ADK/vWKt g9LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=iBXzOLmt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si6287826ejj.392.2021.01.25.08.26.58; Mon, 25 Jan 2021 08:27:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=iBXzOLmt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730569AbhAYQWx (ORCPT + 99 others); Mon, 25 Jan 2021 11:22:53 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:32986 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730618AbhAYQUi (ORCPT ); Mon, 25 Jan 2021 11:20:38 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10PF1nsP014912; Mon, 25 Jan 2021 16:07:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=3VIEwfh4J+Aj6CJv0TrmsmAtwTi75eM4BtqDdVbEjj8=; b=iBXzOLmt6SupTx+Z7Tp00QpW0109EYuNksc20sH5qnW1q27pi0Qv5t/+2ICQp22DYqOE TmfycOLGFzorlInotkpHTLIdCvuAgdG00yxU7xbe7+rmJKOcjYgqVEIhp+cnqpAeSFfD 7sY1hUGkxCVfIUu3T9NCwgmT/OMov4bcx7b5TC1uBSyTW0uemztnJVp1/CBd3JuHGtrT 40kRBxl23KpKvplnMOzzFNFrGJBogi2gx1lAjS1h+ixghVhPuySKsa0OoEqOB+f1HOKa mrmW++5E1i2o47ZZcB6onUnyigvuReSHAv8vmzFZR1PM2rq+gI/uZ5qN1X/eSFSu9C54 Ow== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 368bjn3hwr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Jan 2021 16:07:16 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A685A100034; Mon, 25 Jan 2021 16:07:15 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8B5592288CE; Mon, 25 Jan 2021 16:07:15 +0100 (CET) Received: from lmecxl0912.lme.st.com (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 25 Jan 2021 16:07:14 +0100 Subject: Re: [PATCH 2/5] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 SoM To: Alexandre TORGUE , Jagan Teki , Maxime Coquelin , Rob Herring CC: , , , , , Matteo Lisi , Francesco Utel , Mirko Ardinghi References: <20201223191402.378560-1-jagan@amarulasolutions.com> <20201223191402.378560-3-jagan@amarulasolutions.com> <21398844-c334-f753-0fac-144a0cdc29dc@foss.st.com> From: Alexandre Torgue Message-ID: Date: Mon, 25 Jan 2021 16:07:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <21398844-c334-f753-0fac-144a0cdc29dc@foss.st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-25_05:2021-01-25,2021-01-25 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/21 4:05 PM, Alexandre TORGUE wrote: > Hi, > > On 12/23/20 8:13 PM, Jagan Teki wrote: >> MicroGEA STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. >> >> General features: >> - STM32MP157AAC >> - Up to 1GB DDR3L-800 >> - 512MB Nand flash >> - I2S >> >> MicroGEA STM32MP1 needs to mount on top of Engicam MicroDev carrier >> boards for creating complete platform solutions. >> >> Add support for it. >> >> Signed-off-by: Matteo Lisi >> Signed-off-by: Francesco Utel >> Signed-off-by: Mirko Ardinghi >> Signed-off-by: Jagan Teki >> --- >>   .../dts/stm32mp157a-microgea-stm32mp1.dtsi    | 147 ++++++++++++++++++ >>   1 file changed, 147 insertions(+) >>   create mode 100644 arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi >> >> diff --git a/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi >> b/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi >> new file mode 100644 >> index 000000000000..97d569107bfe >> --- /dev/null >> +++ b/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi >> @@ -0,0 +1,147 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) >> +/* >> + * Copyright (c) STMicroelectronics 2019 - All Rights Reserved >> + * Copyright (c) 2020 Engicam srl >> + * Copyright (c) 2020 Amarula Solutons(India) >> + */ >> + > > If STM32MP157AAC is soldered onto this board, you should include SoC > dtsi here and no into MicroDev 2.0 board. No ? > > +#include "stm32mp15-pinctrl.dtsi" > +#include "stm32mp15xxaa-pinctrl.dtsi" and this one: +#include "stm32mp157.dtsi" > > > Regards > Alex > >> +/ { >> +    compatible = "engicam,microgea-stm32mp1", "st,stm32mp157"; >> + >> +    memory@c0000000 { >> +        reg = <0xc0000000 0x10000000>; >> +    }; >> + >> +    reserved-memory { >> +        #address-cells = <1>; >> +        #size-cells = <1>; >> +        ranges; >> + >> +        mcuram2: mcuram2@10000000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x10000000 0x40000>; >> +            no-map; >> +        }; >> + >> +        vdev0vring0: vdev0vring0@10040000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x10040000 0x1000>; >> +            no-map; >> +        }; >> + >> +        vdev0vring1: vdev0vring1@10041000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x10041000 0x1000>; >> +            no-map; >> +        }; >> + >> +        vdev0buffer: vdev0buffer@10042000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x10042000 0x4000>; >> +            no-map; >> +        }; >> + >> +        mcuram: mcuram@30000000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x30000000 0x40000>; >> +            no-map; >> +        }; >> + >> +        retram: retram@38000000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x38000000 0x10000>; >> +            no-map; >> +        }; >> +    }; >> + >> +    vin: regulator-vin { >> +        compatible = "regulator-fixed"; >> +        regulator-name = "vin"; >> +        regulator-min-microvolt = <5000000>; >> +        regulator-max-microvolt = <5000000>; >> +        regulator-always-on; >> +    }; >> + >> +    vddcore: regulator-vddcore { >> +        compatible = "regulator-fixed"; >> +        regulator-name = "vddcore"; >> +        regulator-min-microvolt = <1200000>; >> +        regulator-max-microvolt = <1200000>; >> +        regulator-always-on; >> +        vin-supply = <&vin>; >> +    }; >> + >> +    vdd: regulator-vdd { >> +        compatible = "regulator-fixed"; >> +        regulator-name = "vdd"; >> +        regulator-min-microvolt = <3300000>; >> +        regulator-max-microvolt = <3300000>; >> +        regulator-always-on; >> +        vin-supply = <&vin>; >> +    }; >> + >> +    vddq_ddr: regulator-vddq-ddr { >> +        compatible = "regulator-fixed"; >> +        regulator-name = "vddq_ddr"; >> +        regulator-min-microvolt = <1350000>; >> +        regulator-max-microvolt = <1350000>; >> +        regulator-always-on; >> +        vin-supply = <&vin>; >> +    }; >> +}; >> + >> +&dts { >> +    status = "okay"; >> +}; >> + >> +&fmc { >> +    pinctrl-names = "default", "sleep"; >> +    pinctrl-0 = <&fmc_pins_a>; >> +    pinctrl-1 = <&fmc_sleep_pins_a>; >> +    status = "okay"; >> + >> +    nand-controller@4,0 { >> +        status = "okay"; >> + >> +        nand@0 { >> +            reg = <0>; >> +            nand-on-flash-bbt; >> +            #address-cells = <1>; >> +            #size-cells = <1>; >> +        }; >> +    }; >> +}; >> + >> +&ipcc { >> +    status = "okay"; >> +}; >> + >> +&iwdg2{ >> +    timeout-sec = <32>; >> +    status = "okay"; >> +}; >> + >> +&m4_rproc{ >> +    memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>, >> +            <&vdev0vring1>, <&vdev0buffer>; >> +    mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>; >> +    mbox-names = "vq0", "vq1", "shutdown"; >> +    interrupt-parent = <&exti>; >> +    interrupts = <68 1>; >> +    status = "okay"; >> +}; >> + >> +&rng1 { >> +    status = "okay"; >> +}; >> + >> +&rtc{ >> +    status = "okay"; >> +}; >> + >> +&vrefbuf { >> +    regulator-min-microvolt = <2500000>; >> +    regulator-max-microvolt = <2500000>; >> +    vdda-supply = <&vdd>; >> +    status = "okay"; >> +}; >>