From patchwork Tue Mar 16 16:22:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1702 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5326E3F067 for ; Tue, 16 Mar 2021 17:22:28 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id 17sf18613984plj.1 for ; Tue, 16 Mar 2021 09:22:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615911747; cv=pass; d=google.com; s=arc-20160816; b=UsMUT1vnfiu2d/S1OKV0So4zEj9hdCwQLZyuuGhlCVpS8tMVMnzoAaTSJohPpsbeCV VuwzAQMU5aNNU31qnnJ/fwzF1ccJzJz2cBVTC3ECxDsdv4vGkWv3TcCabSU+wAU/z85X pc2t+nmeQKv0tWE/icqV5xQ0xA5Ew+/NG/ZIQWQAj9oCU8igyQ7LLk72aXqixmb4lKuU hzxKvdZhMZepl7Rytlpx1jBXbPcx2hZMUo5WoJ7j0VLG1ioc+cTFvjXza3hFQvmr+CjE ePuUMtl6oLAOU5QsaG1DacYh5KCWv02Gjbrt+vGYLD+SKegPpMzmLFwFzRE69w7N8Nz4 VA6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=OJ7SvzLbPerpQAyIn4NqLDSzynM5TbXlaO/d64wIOLg=; b=uT9QiUDxg12cns6TDjo8Nb4cwAjiVttXVnCnhz06M001RXc2iIp0ZRJN+/i+W24+WR cAK1FSMSBb8ko78loRXTjSS+z7gxx9kVdLfE+pq4WBpe6PFq0TFCJ7/q+HV85GoYZgC0 Nmmf83SNBTlmTWqo12eoFmfmHzrToncAxt+s0W6H/nHB+qJ2DwdOBxwDLJAy+FtC7Zo5 OV/sphwlnWviQd+LQK2/rApwtZfI/3Un+578MDVqC4bAqajEqJTvKTVfFx9nH1A1AeRM udktTGIlGkimNVX+tFG2ClB4Z7LsKktnP4MjFNWj5eod/0N5SO3cHl3e2gPQwmrUUILX feYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="jgD0/ln0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=OJ7SvzLbPerpQAyIn4NqLDSzynM5TbXlaO/d64wIOLg=; b=RVbCYNVATURHh2XTQ3sDqkPjL+fqOMLEWkohkBxFmvuIZU3ybJWj1+KfvULkEu6Rc2 nyylvNT5Z1Kq//H98S2tfOr33/Ocjokq5T5KK0uZsz1gXuw0WNLOTrGpuyB65xWBaPzF XYYOr5qu/4rHORoI2sb/mnxYOQmlUbeEnT6AM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=OJ7SvzLbPerpQAyIn4NqLDSzynM5TbXlaO/d64wIOLg=; b=Z2qacdOLorb4QmJU1vHBq20UK2nS/SD35gpHqedTOSE89fIvQHy0OfRab0HBFsKc+g kc2EPpuH5HMpRbaiIDo+BA+dOff00fCMaDtINEgjBoFwf224NkAKI1EDB3l/iv/dvgJX jIZur3+JwGG9ABZxJRAUgXHIZsUadcZ+siEDIAuR9w/gExyXp0J6k4w/tzLhklOqNXqV 6OZSW43RGqQKxaNxiMauEG7e6I7GbQZEJa/Iaq2xrB50u/Im+fWxUhqR/8DM07vIGYLQ r/bzhPLsKcNkyEN2ucsi3xX9b3QTLYIlTnmehHDUycV5LaqelVIZ1oEmbWpOuvITiumT gIIg== X-Gm-Message-State: AOAM531lrldEqZaBCt69gckqSb7so8/81VJiJfkaFqrZ1UepU6FyYq02 hvSmcUnKYNV/LCQvCSJx5vuIfscc X-Google-Smtp-Source: ABdhPJxP2nPN5MdaEBOGMs9rGRrMgcMQdDKEKJl83yRL7qK+6fBbhs6x+m9YQCD5Gi143bDPyyNJNQ== X-Received: by 2002:a17:902:7045:b029:e6:a93d:42a4 with SMTP id h5-20020a1709027045b02900e6a93d42a4mr211728plt.72.1615911746536; Tue, 16 Mar 2021 09:22:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:ec9:: with SMTP id gz9ls11902225pjb.2.gmail; Tue, 16 Mar 2021 09:22:26 -0700 (PDT) X-Received: by 2002:a17:902:b711:b029:e6:be1a:5510 with SMTP id d17-20020a170902b711b02900e6be1a5510mr167200pls.77.1615911745899; Tue, 16 Mar 2021 09:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615911745; cv=none; d=google.com; s=arc-20160816; b=WkebnBhF725LhZRuIk34PkoJb4AQgXmfwrKYS7yEc1EkoCghACzcYFJyxdLsXIjtXC k+8Ijv/kwOy7WF9PYFiu4xLtMEpI0VYVyNp0/nJLX5eGVJAPhX7QY0ZA+Six42JwN1iS B0PzaP53YB8d3nCnwiJnLjme5pPwXTlwybbKWeYmyEHpkdZPd13pxCcbo2Nkl5EL8vTV P6qADOD2MRRsilFdNjm/Ix/DIB617Dg4fMyKo/9M1dJYVDSNS3qGQj6fCPTkppjP14l7 O7IfiGTRfNAVMftALnE8YfBADDukohoMsxq9qV8JqIFMmmsezwBXL60MnF+h6SWuIQ6K sHoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Yh0b19SbgmAsTjJ4rqIXTXOCQIgEjAUHjKglAEhHaI4=; b=imtBAla7bixIuZLWeDHqo4I7dlbZIk4LVGOENJqOyHSsQcCGzHnCxavFf+jxUnYsQb ObORKqUJMdb1QgSrGIvcWKx3y5JrL9caOnzO/rl95HHtbxxCB+niNqkgQrj6bq9v2EaO RUhju9+UT+JqGnSIbFcoGbh9GOCt2/gUhjYVRwCMuLTsou6V7UF93udz8WpeTXaVPmP4 Omja1IsCoLXEMDSD2DLFohfI91Q/3c9XW5AKR+6hjHR4sJEJIr4/HCQEBA4STthBT2/n H9K5zG96Q/gdC72IUOY92Q+mSaouJggYK9YP1yhx+GSVXfZbbMUg9MRRy8z4ervfQx+j 8r2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="jgD0/ln0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id w5sor8062760pff.39.2021.03.16.09.22.25 for (Google Transport Security); Tue, 16 Mar 2021 09:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a62:17c4:0:b029:1f5:7cfe:ebc4 with SMTP id 187-20020a6217c40000b02901f57cfeebc4mr196082pfx.5.1615911745581; Tue, 16 Mar 2021 09:22:25 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:9de:273e:6ee1:9865]) by smtp.gmail.com with ESMTPSA id k27sm17678240pfg.95.2021.03.16.09.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 09:22:25 -0700 (PDT) From: Jagan Teki To: Patrick Delaunay , Patrice Chotard , Matteo Lisi Cc: uboot-stm32@st-md-mailman.stormreply.com, u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 1/8] ARM: dts: stm32: Add Engicam i.Core STM32MP1 SoM Date: Tue, 16 Mar 2021 21:52:00 +0530 Message-Id: <20210316162207.35641-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210316162207.35641-1-jagan@amarulasolutions.com> References: <20210316162207.35641-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="jgD0/ln0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , i.Core STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. General features: - STM32MP157A - Up to 1GB DDR3L - 4GB eMMC - 10/100 Ethernet - USB 2.0 Host/OTG - I2S - MIPI DSI to LVDS - rest of STM32MP157A features i.Core STM32MP1 needs to mount on top of Engicam baseboards for creating complete platform solutions. Linux commit details: commit <30f9a9da4ee1> ("ARM: dts: stm32: Add Engicam i.Core STM32MP1 SoM") Add support for it. Reviewed-by: Patrick Delaunay Reviewed-by: Patrice Chotard Signed-off-by: Jagan Teki --- Changes for v3: - collect Patrice r-b Changes for v2: - collect Patrice r-b - add linux dts commit arch/arm/dts/stm32mp157a-icore-stm32mp1.dtsi | 196 +++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 arch/arm/dts/stm32mp157a-icore-stm32mp1.dtsi diff --git a/arch/arm/dts/stm32mp157a-icore-stm32mp1.dtsi b/arch/arm/dts/stm32mp157a-icore-stm32mp1.dtsi new file mode 100644 index 0000000000..01166ccacf --- /dev/null +++ b/arch/arm/dts/stm32mp157a-icore-stm32mp1.dtsi @@ -0,0 +1,196 @@ +// 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) + */ + +/ { + compatible = "engicam,icore-stm32mp1", "st,stm32mp157"; + + memory@c0000000 { + device_type = "memory"; + reg = <0xc0000000 0x20000000>; + }; + + 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; + }; + }; + + vddcore: regulator-vddcore { + compatible = "regulator-fixed"; + regulator-name = "vddcore"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + + vdd: regulator-vdd { + compatible = "regulator-fixed"; + regulator-name = "vdd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vdd_usb: regulator-vdd-usb { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vdda: regulator-vdda { + compatible = "regulator-fixed"; + regulator-name = "vdda"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vdd_ddr: regulator-vdd-ddr { + compatible = "regulator-fixed"; + regulator-name = "vdd_ddr"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + }; + + vtt_ddr: regulator-vtt-ddr { + compatible = "regulator-fixed"; + regulator-name = "vtt_ddr"; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <675000>; + regulator-always-on; + vin-supply = <&vdd>; + }; + + vref_ddr: regulator-vref-ddr { + compatible = "regulator-fixed"; + regulator-name = "vref_ddr"; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <675000>; + regulator-always-on; + vin-supply = <&vdd>; + }; + + vdd_sd: regulator-vdd-sd { + compatible = "regulator-fixed"; + regulator-name = "vdd_sd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + v3v3: regulator-v3v3 { + compatible = "regulator-fixed"; + regulator-name = "v3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + v2v8: regulator-v2v8 { + compatible = "regulator-fixed"; + regulator-name = "v2v8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + vin-supply = <&v3v3>; + }; + + v1v8: regulator-v1v8 { + compatible = "regulator-fixed"; + regulator-name = "v1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + vin-supply = <&v3v3>; + }; +}; + +&dts { + status = "okay"; +}; + +&i2c2 { + i2c-scl-falling-time-ns = <20>; + i2c-scl-rising-time-ns = <185>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c2_pins_a>; + pinctrl-1 = <&i2c2_sleep_pins_a>; + status = "okay"; +}; + +&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"; +};