From patchwork Wed Dec 23 19:13:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1617 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4F0613F086 for ; Wed, 23 Dec 2020 20:16:31 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id 32sf66523plf.3 for ; Wed, 23 Dec 2020 11:16:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608750989; cv=pass; d=google.com; s=arc-20160816; b=evldbokMSkcO4ZkRUgeOefzlV9SDmQ7ZhFqwMrKIzlQ/L2u9Q2LYdiHgd6udehoOE9 rgNinl5888WEO7X+frk5J6gdHKyogyMazCi7qW8IiqG1IPAME5QfrhlWRpP/XY8vNCBv re12KdkfWvYxeUIlKQpx9bJdFaWd7vPTsPCNgccH5QT3g1ZJw8WvweRHsNKl7Dp7nLWT pEcz4ZB/ZpAkT8uyedFLCfwFDB8tjt1Ix6w1vOpJW1W+AraubTlb8DJIaRay1ez4eJi6 03eQSly5TG5ZAd23xoyeoFN3RQ9xxfSLY6AjgprTA7EV7Ecx+qTSc9hBAxzNVz6dy5K6 ceHw== 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=xnmFFrXklcndhd3XX1j78PkSL19H5vRrjiLF36Vp+8Y=; b=hnej1raTZnmdIhEL9CpmWbBdj26+48luaNxSG+k4fQhNRBRLi8QjwIvCaVLTzNPkYy no8v/+UVoVeP4Rm7sooajLybadwLiZnCm3+Ge4nUcsFVWpl5FgTrMbqKXWY6ibuNsmMZ mbJnpkXwV4eCohedbVZK8WRRIabPurUX4jr/1yb6PPCVY4ylyadrf2EIF/FDdJl9rX4y kpjMDEMffNtBEvdcknxO5LPGjH24WRuqSHSzSs3QtqfrBkh9yiHXIaxyjj8pk3lSVI7N PfzT4wZNwnQ0KkypChwp+5x+UpXO3fVYezaDuBbvcfPOJBDyKEKc4FZRVdV/nu0fyJ/u KVTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MYmsK1Im; 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=xnmFFrXklcndhd3XX1j78PkSL19H5vRrjiLF36Vp+8Y=; b=ilkUde/V0JRD2RQF17eTI54jHNMX42A+UiiYSIdamCQ9syR9UOkuHnrPv3ejxMcGRX O72Kjsodv+xdykBLEwI3ygjeh1LBqaWtc9gUlbEQoWzkwnAkVCPmXwi3mw9RRt/Mn3Bd lMsh5MzZlQo0iEeP8DUaDp1YzoupQ8GmH2IKg= 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=xnmFFrXklcndhd3XX1j78PkSL19H5vRrjiLF36Vp+8Y=; b=YlQ1iVBjT49k15A+gZ980+JlzWcKxH3dnYaW3SqugatR3NDIN58w7+jAOJJ/Vf1bSD 9rQQLTKfte+3pkdMBeP0tK01mH3vHGE+f39akLvgBVB02hyCZbeswqLekT4oCJWfCe/E dOQrh7prRkIxIUExan+P//4e3rW1kelY3HTZbZAuLOtrHn4CBP6kTktFQcMAmjURGB2x 5PZ/UujhagI7blWIjPaBmRIJzB9NsP5eqgV9g9lDHciFs7RQF6xNF5dJFyRECeDosi4Y XBEBi4x3nevxPQDAERR0ITSm9YfPvb3q7eKZgslTt6/PhM48jTNNd9yI2RvBqysvfG+0 NhUQ== X-Gm-Message-State: AOAM533IY/vVFw6s8M6lKb4ttsgkiWzdGY+I5IQu1iNplCRByMEcVUJO vfoJ0C0Jv5RnzNJjJe7zN3LEZh6X X-Google-Smtp-Source: ABdhPJw7Z6PpJbrHaIKJp1xpe9WYwt3Re1kLnKyVO/H43kGDJP1VQIv6WvfLmWP98LzC//M4vbwOBQ== X-Received: by 2002:a17:90a:b010:: with SMTP id x16mr1020017pjq.74.1608750989714; Wed, 23 Dec 2020 11:16:29 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:b897:: with SMTP id o23ls343601pjr.1.gmail; Wed, 23 Dec 2020 11:16:29 -0800 (PST) X-Received: by 2002:a17:90a:9707:: with SMTP id x7mr1037099pjo.72.1608750988944; Wed, 23 Dec 2020 11:16:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608750988; cv=none; d=google.com; s=arc-20160816; b=lN6tXqVWT7d/B6NVzOXJaEuOl2O0RdhzQCHp+lQWVUOEjjo7pPzP+eMXDABEZBGReR LKxMKnOU+Sd+2K533cqaFKgikF40DfiFTAXLRE/8Zd9cVgyO5NpuwJgIUsEk1GH9uabJ ewykCicC2K0QWnyPpvoWxBCDISa1GlMEiFHjwu3M2eE5qsWCE9CBhoWolzrl6B7XD1VU HisSDguQ4uKJ+WU6m2JjI8jdWb0QnBiri9O3Eok2I2wWm/DQa58XQoA8vNDyPFvNeGRE qtY2C6rIOd/7R7+ehOEn74hIUmOCGNY5W361HliyJVmN4TClw+1gnjlkQw3lIEnLuau4 LuWA== 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=7Z7/tDeAJOJP0rVwY/4mBYzHB4EpZQ5aCR50Ky6FvXA=; b=0g1kXX4qKrfiEQwXjYlXH+zBMCEUS/wTFPH0iWMvPXXJsn1H8sc4qYCAVdcxSSyuZl r84qcAe8XpcnJMVHF7zdGv2L5c4taTD4H0MdYiNuYxOIK66P8sb3AeFKZqohbfNPw5rC dZZYlGL79XzUZ+IjO4duLA+zxYqbsk3f53ojphwyqxcTvjbGo78UYqS1XhET7Mgxc3WV i7hkdiLbyWR/n1PLiQ01H89p+StGgbG6VxOf8RovMLEqLvW5z+5JIct4KYmZ9YZwO/GS 6JvhtpI8qFtQHo18jNjd9ffL4yj0NVdlDN7huF0GnjUbUj/M4pBa3NWn8zEgvEd7Xp3n 8Ryg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MYmsK1Im; 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 q13sor10678025pgc.0.2020.12.23.11.16.28 for (Google Transport Security); Wed, 23 Dec 2020 11:16:28 -0800 (PST) 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:a63:cb06:: with SMTP id p6mr5629816pgg.146.1608750988638; Wed, 23 Dec 2020 11:16:28 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a884:29f0:6e54:608c:e1b9]) by smtp.gmail.com with ESMTPSA id i2sm397640pjd.21.2020.12.23.11.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 11:16:28 -0800 (PST) From: Jagan Teki To: Maxime Coquelin , Alexandre Torgue , Rob Herring Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki , Matteo Lisi , Francesco Utel , Mirko Ardinghi Subject: [PATCH 2/5] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 SoM Date: Thu, 24 Dec 2020 00:43:59 +0530 Message-Id: <20201223191402.378560-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201223191402.378560-1-jagan@amarulasolutions.com> References: <20201223191402.378560-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=MYmsK1Im; 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: , 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) + */ + +/ { + 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"; +};