From patchwork Fri Feb 26 07:02:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1646 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A0BC03F096 for ; Fri, 26 Feb 2021 08:03:34 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id 202sf2781308pfw.17 for ; Thu, 25 Feb 2021 23:03:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614323013; cv=pass; d=google.com; s=arc-20160816; b=HFUuy0Nmk3FEjb/7OysLZ4qKTYYzkXfnhuQ7el+aI88H451RxZTBSXrXVgDw3ZjKGl h4Kihwp+ylTsWJrm7DNci7+GK5l8Kh4e3+zhDUq2mT3rzAX6O+LTL828CHFGP+2z7baT 8TGpvig1nnz2/kvELYoM0PmaLNRspxJa+8b4oCIa5SFcOq+bLNbzyi8nmf4NELeNqkLz 4tSdNlGqPHaPB7jt4Id4pBuiEAFSGD4SigMYNLJU4QGRlzhK5zW8w1TuXY111qE1PkpV 34DGHnORtDdQXEiUIXwfL44tgcoIh1mIzymurGyLvhkKNF4d+h8oPav3fLJLjSmDUjdF kQ3w== 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=13O2o4d+8I/qTCOQ5AJZAJBwaW94/zCPDfJswk1lXks=; b=TaafxqzZNRl4U9rkU+WbMCpIEIFBisaPj+KG9Ck0KIEvdb6p9CK/TZJhjFzzb70cm3 NsR7kzL+W1OUbdS+GDTD/0TXl5gSx9VVmgqlMiI54oyeyctwLOxmj8juCoH66qQnuF19 qzqnbQfHWkmPVIXZCbZyDSRtAp9bd6DBOE8IRkOOsK0D6dUL2eyzuEF58BDtobBs+9zC 1Q+kvUpJrTM1r+3Zg9TFjk/GGQ3knvGKSfkBhJFMRBOaO6JVghjG3s/jfDb6eGyiLmYv sco5AVnaKvgd87o/SH/9gfzMixCfeiiZ5+SQQNPFV282lhojJ8VIOt/lU3Q+2C2z8/Pa 2CFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p0mtj1P1; 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=13O2o4d+8I/qTCOQ5AJZAJBwaW94/zCPDfJswk1lXks=; b=nhCsVfGirrq8OSPJMLRY12JLO2CWCO5iaBmzmyDrBdU8erZiRO7LacHdouYhP0tUqV /qoyt9QrJa985Umkb9D7p7Tl2fDRl1XEs6pqjGgGb1Gb+7atFsDz51hi7QD6eX76npCZ 8v61VGQquqwfCibemHQ3OkRwHsCcL90CirccM= 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=13O2o4d+8I/qTCOQ5AJZAJBwaW94/zCPDfJswk1lXks=; b=tMfp5s7zAXSmybsa0LpGw6+Cl3u0/SRvsrh/BqHPdrhb+UJFpu86RPMFwwpMcyYGVj NttUiNSr5Qw031gJQmUShuhEEHNjN8VVoHu+NUhFlbvzh9+s5OZRrmd3j5AkCs8Mkc6J BSKkDmmfsmkSuOj1EX/Q075s6yJXp3+umHgDl1DzjN7O9lfHJ9DyDb+Pd/DwVrrE1nk3 5kPISDRJ2cwAYZxPYvhc3LJheEztMLBy01rIJQ+NavpAHVb28YU5d8UCKOjZVJoxkeRx NSyTEVBP8Oh9+Ey7FFWNMuNsKOawDAOWI6ORVxkjhOvrFql5K1kpcSpmuKxbPnEkQkNu o8HQ== X-Gm-Message-State: AOAM530WrGMzA8Jerw+8rNX5NhwsPDnfx9K79VS/x3PvQ69O8Zm35PNs X0Wkgy4h3eDysKC2QaYxPiwY13pt X-Google-Smtp-Source: ABdhPJxxku5HEJGG8SVpHdb23Q97ljR7xmx9IvuWp2iIdEps3zy13kvZ9eSFefS8yL8mI1B7wppA8A== X-Received: by 2002:a17:90a:2ac7:: with SMTP id i7mr1974359pjg.82.1614323012639; Thu, 25 Feb 2021 23:03:32 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:778b:: with SMTP id o11ls4298449pll.0.gmail; Thu, 25 Feb 2021 23:03:32 -0800 (PST) X-Received: by 2002:a17:90a:4083:: with SMTP id l3mr2004539pjg.109.1614323012027; Thu, 25 Feb 2021 23:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614323012; cv=none; d=google.com; s=arc-20160816; b=ZyZCqz0TMLQ88wC3N3h1Bb2IFUsmb+atEo27n7aFhfD/hCUn/dAKCcREp4wgEWHcEr G+dJzs7SSz4LFHHmxdQPUPssUAhx2E4+G070/30k/Cm7GFD3h+s+bO1MdSAhs54UDfSG JVDkBGzhxcEP4AE9/znbYW9o2auPdxJL21SoPcFM9vVDq3zd3zA6ehBdKayM5yiyaaY9 l0oVh0N3Z3oSlKKj0irKoFW4AJIrb+5Vh5BjZWHLyp6YGyMrFSdmzahstM+7if+Mml+s 2Jhhe593sBUlftELqSNSdispAQZIVHRJ+NHOy6bezERwvU8VBfPVU4pp4pGjpRaYGxtw mEhw== 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=6WNcoMTUVL/TQoEetougRy4ClMiduSo3uj9jsME+M3w=; b=ubWldcKX0598zTmNNidSwbqKaJz6DqEfNn376f165+Vz9HXCBY+dGAPvrJUZiIGuL/ UeLQHAkP5+LHMXdslKWNsOV0L/wGe9aCk580+m7HAslb7sfsD22ived1ujbd3+QjTZfG 2CqCaqHVx9pIBf/D5Dwvw2hc9IhSQSa7zHUPJAXn2QD144VJU/5U0poAurTDjx1y6yPw qXAWaiQFp2LJImP7nAWaHD26KTZkqrUd2vNTWcEDF8woBrN07FnggnnR1W78TQDWQsf5 fhO1mUKKvfEAqBPH2vThJUEu32WSTVrHQN4Y6q90Q0RITPyb8xS3pvc/YNZFJfK3Gg5m aQDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p0mtj1P1; 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 x12sor4885380plg.27.2021.02.25.23.03.32 for (Google Transport Security); Thu, 25 Feb 2021 23:03:32 -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:a17:902:b902:b029:e4:156d:68be with SMTP id bf2-20020a170902b902b02900e4156d68bemr1758350plb.19.1614323011778; Thu, 25 Feb 2021 23:03:31 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.220]) by smtp.gmail.com with ESMTPSA id f7sm7592156pjh.45.2021.02.25.23.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 23:03:31 -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 v2 02/10] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 SoM Date: Fri, 26 Feb 2021 12:32:56 +0530 Message-Id: <20210226070304.8028-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210226070304.8028-1-jagan@amarulasolutions.com> References: <20210226070304.8028-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=p0mtj1P1; 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 --- Changes for v2: - none .../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"; +};