From patchwork Mon Mar 15 17:32:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1686 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 F24CA3F137 for ; Mon, 15 Mar 2021 18:33:31 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id b9sf8563201plh.9 for ; Mon, 15 Mar 2021 10:33:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615829610; cv=pass; d=google.com; s=arc-20160816; b=FQvv9VwMRbAIyF+8Rawia5sQmladkbq4DjpNw7/K+A88Z7PbutFwVFwDrBpYSv11+o QZ94hASV/CYryB8Fpz6vEXWGsDGTUOlCNmrkeyKPAxTX6Gs5YSrTUc7zTqjDSGrKQksV qjXkcYoi2HzPF9sN72VaOaELmbgfANxTKlckRLIMRm5u6Hkgfs4/y4Kdir6BFddN0tBY XLaEqXWUxSXzbQsr1qZ6xjViAQjzx3eNK3bLc6hKtZM3MC5+VNHZU9n6y235AJnZZ4OU lTAK1ZztjMo5iKIWVYpM/FnXyJKN/K2UkZJQd3i+EK90zVwY6J3+Lr14IQeWrkddl7Co JGCA== 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=Dj7/g3h5rtzsABTjqGKZkBOUSE4vi6e0T6tapDyYBi0=; b=aeaXOr3M1Dg2/Z0mvj+wp0aMhqf5cGNVNcyYxGTmNUjw5GrpCRnQVlRAAYBhGAvFkq ereHCLtgXbTEEcMQfm9jFFYywTwID+dufa8hqX5R7cbhYHHXj4RorNLScCay8c+q+CHT mHAftwSgNeaRayWHJuPGhK2iuobPhZ84EmwCxvW/W2R55FA5ORmt2BoafmVD/h8ozR9G bhiC5Nb2vvEN5w2jUA0ACQkubL2RBBrhDodU5P+Xd2rRDxwwFF4vbiPrh6YiSJR/5HF9 hluoIArpE/1vIItgEAfZY6jQioG0H1/de/6hyvBqPC8RHZgubxkGyi7hdPgv6HZt5NlO AvvA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k2Zlj2jR; 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=Dj7/g3h5rtzsABTjqGKZkBOUSE4vi6e0T6tapDyYBi0=; b=rZOciOu8d5e7NND/YJs/gaOhEmYujVacPei2YdfZR5629vx9SIzmE9mYJpjVhfVQwg 3U/ynFXXoa9lnFfIkF3t3rUMWMB3oZ3r2Bxq5Y9SRO0+iydANZYqyeC5DtLitOGcN4mt uJvqROg5mWsy0kLys0rwX7rLHPdWF+moAwIxA= 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=Dj7/g3h5rtzsABTjqGKZkBOUSE4vi6e0T6tapDyYBi0=; b=idUiDsg9QIRYP/mni1cbQsXiTwC6mt1mlJ97ZIdLjm65y/lyV+yPlzKleQzj6B5bjM ixgrH088TXH6nDspsSMrTb6D6gCWhOkIFGkGDKTF8gD01LytuTTuos1iPOKr4UhNryar 7LfpTIDTGQY+mTFeBKuGSKFN5fEHuoNJq+8r8LSn8btSLJ5H3fYyhbI7nrtE9P3Zxk8r xPkTgxlOLVegU8fSdy/4yfBwcv1EWrDgmQ0e9WYPPbrvhtoem7upJ9TtQB0E9kQDFmfj nLEcOo2V5yzgjNYJhYqXLc1nLuV0FDDSJf16GJnhAEYXoXy+yPC9s1QkUjeqDLc5BwUZ HypQ== X-Gm-Message-State: AOAM531cSKZZa4Zwro9mCBUl+eFkY+cTY5Q59Oq4zubXtQn3Qmvafqz4 TbJ5mDFcuGxLLvKNwzAwtR3nXLY2 X-Google-Smtp-Source: ABdhPJwuHLqHrbHcfPqsjM2Jw7BwSskwel6N6jFQl98RiiYlt+XIwcr8SiDJ2fgFIJICNP4405khLg== X-Received: by 2002:aa7:881a:0:b029:1f1:6148:15c3 with SMTP id c26-20020aa7881a0000b02901f1614815c3mr11622586pfo.30.1615829610671; Mon, 15 Mar 2021 10:33:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:ac09:: with SMTP id v9ls6886337pfe.2.gmail; Mon, 15 Mar 2021 10:33:30 -0700 (PDT) X-Received: by 2002:aa7:808d:0:b029:1ed:993c:3922 with SMTP id v13-20020aa7808d0000b02901ed993c3922mr11201566pff.75.1615829609984; Mon, 15 Mar 2021 10:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615829609; cv=none; d=google.com; s=arc-20160816; b=Q3XzXe1or3OWrOD9O1D2mfvj+e+zc9abWJaaN4CMdHoYC1SY6vTeQBZhwhK9TCEoNH asNrRp44MWKWS32038Hj3NkCJnCJQQjeNUYL5SDAaYnUihDY4b9ESl2bZ8z8gllpkpn/ NMS/swZpn7VA/uRFXru2Uu2sr7JgrbJA9tYUqqKJi1nfu3GU3hErvvh/i9CExIpsHBKn esv2wgruN0HKW5V4V6Fs6Tx12efwgidjXlHB8sll5g40LMI9BvzCEL3Ao9ArvSi1GgO4 0pF//txDSnzbQTT2QFZUj4XEVoVi8eHmjQ1y4JJ8zjp/40ESRi0VWfuL7q42+7Hw5LWS RXww== 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=rjBf4QRY8hdul/K+Gx+sNStU0o8t1dwYbsqCMRxE7Z4=; b=sU1cIqs9LzVCd0vpjX3MpX+i3qsTiAgXX65My3Olvg4jezmYl5Ohv8dKGwxZj6iRIM 4a5dg3MKdobYGpd4l3SiCTKXZfTjFQ0K4/6KWBqOqROWq7YO1pNRfiMRHqXoiGNqKw7e pvp5LwGx3LoayWCsTjreJIK2637u/WxwKxTBLRL5XjHGyEkKWMYiC4DZx77XrMuRxweE VDBJG7qFBpkGCjy+QThhPZQmGw9ZKzS9axjv8BvipXu/fGAlw4vVtFGRTQQEHOHJZjOg sSInOKJ+yOYEQD+D41Z1wTi06JO4+1YlddVpQJOyXi1ckYEh2cDnh3EurZiVqh179yj3 st5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k2Zlj2jR; 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 i11sor8680631plb.43.2021.03.15.10.33.29 for (Google Transport Security); Mon, 15 Mar 2021 10:33:29 -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:a17:902:f54e:b029:e6:3d74:eb3 with SMTP id h14-20020a170902f54eb02900e63d740eb3mr13134736plf.14.1615829609355; Mon, 15 Mar 2021 10:33:29 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:6f76:4267:118b:2085]) by smtp.gmail.com with ESMTPSA id y17sm227500pju.50.2021.03.15.10.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 10:33:29 -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 v2 1/9] ARM: dts: stm32: Add Engicam i.Core STM32MP1 SoM Date: Mon, 15 Mar 2021 23:02:48 +0530 Message-Id: <20210315173256.103731-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315173256.103731-1-jagan@amarulasolutions.com> References: <20210315173256.103731-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=k2Zlj2jR; 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: Patrice Chotard Signed-off-by: Jagan Teki Reviewed-by: Patrick Delaunay --- 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"; +};