From patchwork Mon Mar 15 17:32:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1691 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6B46F3F137 for ; Mon, 15 Mar 2021 18:33:49 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id f65sf1766799pfa.13 for ; Mon, 15 Mar 2021 10:33:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615829627; cv=pass; d=google.com; s=arc-20160816; b=smjPLKpvCHtO4pI0A8QgqVxOC4rWm5dbU7ytQ83EimcyQhPvB1KKhJJcFEnvX8b9QV 0+PMvsZxUzLcEPx8q3Tu4c8eOY9h0DExZxMhq055Gt+K/npZWlsAlvsO2srAdlSBRu/l 6v4PaKJr0+NrbTjxnh4/DOpp9viwyYB1597Ep/TUTOYzH8WvD4M1gH73bcxRq9b/AlIn Wc1wkjIw7EoD0Jbt0GlECpD8g65H0oslIjHxCy0BGRwvitSwFGl/0V/LdkqwVY56ciHJ C1jYfivcyb0QkdSx+oUoU0xQ2Gs9p33O2kJ8tmvlf/hFjWBJZAQFpWH5lEYJ/jV7jBea QIzQ== 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=ySZ6jLcvcC1xUE97YkzgCm1g/sgCQTeQbqOfOxv27uU=; b=KXktmrEWgbyhL9lmonB4hLHpj8UfQJSTHY6UaJKD5TWWwIESvd2B22NB84cYHQhxRF 6fKPJF6hjoOCdovk/7PvH4KbtxOVOgvsZWIqL9TN7HajUp4Fqbm9FaLmMzYDrGJziawy bE3jHGJQ+6g/mxbtiT7NAIZcNCVSQ0iPgfkj4SNDTlVKwKEfO8t0s3kXvLBzQdcoIO+a m47CPuNxnqe0JHzsAv0mq9+E4AEmWQTsRRjIg4Y3RgGiuFfa2hncRBzoDKvkJ7rZmhUj 0wuKHmvcsuBlj088/EdOdLUsIwNcaL3mfCp43XrhdmYs1umRM3ZCstqW2LOtOeVQY9C6 0HFQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PpARVwL2; 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=ySZ6jLcvcC1xUE97YkzgCm1g/sgCQTeQbqOfOxv27uU=; b=ZmPcoSazPWpA8O0dAB4tmIG2qRoCQpR5F8TysCGs9ICq6RjmpNRMD45EEkdnIXbStK ysiw2LGF1B73jzm5qLDHIpeJMsE9X8VlD3F3dlSPzuRkUOdutBRig1jx34qUb5UsbBXA xvf3AnquDRUPSNa9LMBlFarZSqadtT4CTI0bM= 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=ySZ6jLcvcC1xUE97YkzgCm1g/sgCQTeQbqOfOxv27uU=; b=FnxicRcXOPgb1Hksqsi3KzMAy4t5JicIHAXOWHaRfkwrL5AuihtL/FcAYYhumFfk/a 6qRCoYp6AmJN+H1qX14ud+z3KNMAhi7bnCiUAl9UHu2oqgOgApPh7PS7dvZFO7dsxkAe Ybwwp+dxbLJB03T0YViLhWcrBevH2C0EKdWkw5/1mZcosW7LHGHCvwW29xN/moWsnpx9 xcmoztEB3kIrvIjjkM+tD/tg5tNiW3E9i6VZZ7RWf0A5U07ZcuZ6rpi839EMrMfASVLo /zrww3iGtYSncDuIbxIdPXuAGRQOPzUryWEbrtn748CVlaZZR3ip4pttZsWPzz/nphIB kbSw== X-Gm-Message-State: AOAM530YTDFBIjYvNgdLgWFs5qAYwo0MR15LfUl/aLot3T1BVHYsbh8j YGeNWoxvlCbk8MU+0FhhMwYZUk5H X-Google-Smtp-Source: ABdhPJyiWcK2oZjcZJTAveXIYaBKbOqVzSA6mPXlp4GlZt/bZ5Uu2oW3Wbai1+JmOpM4h861trSvCA== X-Received: by 2002:a17:90b:a0d:: with SMTP id gg13mr164351pjb.29.1615829627651; Mon, 15 Mar 2021 10:33:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d293:: with SMTP id t19ls2152204plc.0.gmail; Mon, 15 Mar 2021 10:33:47 -0700 (PDT) X-Received: by 2002:a17:90a:c587:: with SMTP id l7mr149530pjt.115.1615829627036; Mon, 15 Mar 2021 10:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615829627; cv=none; d=google.com; s=arc-20160816; b=xKH2bXgkYN/08hQZo9hVhQtbpGW4x9zFvfR3+vxHkdusvQUC+u3NTtqpq9moUg1RZv TCT2Ro8Qs1midDe18wkuitELRTkm8q2GCecvCE/UvGi2oHkGaTXqrH3DNxr5RciGmJxS +OXlfeOSIgPWWY1Tivjlek2fKmot1ogMUWpe6eQmdEmfsAlkm7Z9N+NCVUSdgIo5RJcx IrXf7ovD422wIcK+rSN/I/tL8AQ+XnHNa84CcqQ015JdE/XgS85jTNBHL0P+ntdSqd+E 2h0F+coOWH+U1dl8cdsiZvotO9tisc7MLu1tZdXuv700ndhRUtM9CKnOIckpS9WjE16b cfcQ== 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=pKr0+636Qf0mzm66gnuBcdVZr78JPLXLqmlnaLTR/rw=; b=EOOJBJ+YhKfKNUL8276jUiPTeQ/A2mMuMP46dvjvjiF4aKeNrRLeIzET6We/E8S2iZ qW+S5M/MyCiO0wZ/M+ZnteKlyb3mkaOTgcTvcYuR0w0BE4Vz/ppEyEwSsd5q5QMfoXGk hEY3F4ma8FezttNTRopZsh4j8yAxabfmgmvmFrzgfBTvQa/Jx+c6bW11RVSb1L0iR0dK zf2Dg68feawN9xTjvwylXacJ+9ccwsBOPPalW+BPKFs8udq/Nl3eCw9jExw70Rr4hBNr ieyH3gNqkkTDgvVbPCbCQ3YD8pofNy8rFEcRiuUq0f466u+GffYIsIxMIZqftTuqN8hj h42Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PpARVwL2; 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 q3sor6526747pgp.70.2021.03.15.10.33.47 for (Google Transport Security); Mon, 15 Mar 2021 10:33:47 -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:a65:458f:: with SMTP id o15mr191173pgq.111.1615829626775; Mon, 15 Mar 2021 10:33:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 10:33:46 -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 6/9] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 Micro SoM Date: Mon, 15 Mar 2021 23:02:53 +0530 Message-Id: <20210315173256.103731-7-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=PpARVwL2; 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 a STM32MP157A based Micro SoM. 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. Linux dts commit details: commit <0be81dfaeaf8> ("ARM: dts: stm32: Add Engicam MicroGEA 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 - drop CONFIG_BOARD_EARLY_INIT_F .../dts/stm32mp157a-microgea-stm32mp1.dtsi | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 arch/arm/dts/stm32mp157a-microgea-stm32mp1.dtsi diff --git a/arch/arm/dts/stm32mp157a-microgea-stm32mp1.dtsi b/arch/arm/dts/stm32mp157a-microgea-stm32mp1.dtsi new file mode 100644 index 0000000000..0b85175f15 --- /dev/null +++ b/arch/arm/dts/stm32mp157a-microgea-stm32mp1.dtsi @@ -0,0 +1,148 @@ +// 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 { + device_type = "memory"; + 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"; +};