From patchwork Tue Mar 16 16:22:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1707 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AD4253F067 for ; Tue, 16 Mar 2021 17:22:44 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id x197sf20485387pfc.18 for ; Tue, 16 Mar 2021 09:22:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615911763; cv=pass; d=google.com; s=arc-20160816; b=VQ8J6vYdcEx6+JAIrfM7AlB38GUxasItg4DIKeFNjtpipKcpCgad2Ila4ixCcghsyi 0NNZZjZFv9V3Y1bxQhWD48R2bwwOivIdlLlKZvWVWSjC3/JeqhU1gKhsaW5yiD8De4/C gDwaaJ4qdtXdfx8MVyPIx8rf9z7qFoifrUhuLhLDWuoSZc39Clc5ZVQhcfZ+lsIjHysT uhhfQaV9nsaVrl4xr+Cwfn4JpXfrZU41FA+7EkUum+diN52aX/bHNSTO75Or7QbThL/M CMEVktnYG+1rjX6AX+vLwCximS1moulhHQmeYGZtCDP1N6CpevgfMOUvDjLDj1+0z2H0 DONA== 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=pRDn6IuCSpK0WPyW4+VOzji7RpZpMwvhzulO3z9QnOQ=; b=0EZNd3NQXZkjiIS2SejoiVqj/1DQN/5XpOJzOaNsG+IOB6cnlS1Q1wf/YGx2FAC0sU oDGabXJ+kvbGpZT+C/FkMqNxo3VNWO9J4prPDFnmi9dCGvLrySvbnH7EsBv6Jodm4jc/ X/NmDNhFLARB2LXHAG60KsH/0e/UWvdhOIUvKH6NyNjR3ACiX4nJseVAxQcnRCc9VdI7 SVqa8cUkbZrP3eawN0GYS5zWRJsx6XeoC4D6wwK5lrdVzG/UBo7Qgnj4O+Xbe5FO+LzT YX9fBJInOVvImvU1fjeXIzX2KG0PF5rLTjQXHguZM/lRsqIc7+IWdyLrDdc6b9HMCfby yVkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="XyZyBq/3"; 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=pRDn6IuCSpK0WPyW4+VOzji7RpZpMwvhzulO3z9QnOQ=; b=qeFi9cT5LacQu0i8FmaB0QD+9mCD+nmJ7kmFGKEaZTIWQVeC/6wxgkYnjNYP9i9+vD HGYw8Gj72u2RFL3e2p6v5JPo7aDFh0+WBE0d48kegPbiTg3TTpcEgstisQzD/4BUSDXq LOL9BS+wZvVlTy5y8ybvs+Mxh4eCKi63vWi5o= 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=pRDn6IuCSpK0WPyW4+VOzji7RpZpMwvhzulO3z9QnOQ=; b=DW47HB9uUu2eTEHZeeLnwiMwzcgJIzXaFDUeBBwlOzd4A9dzYLj/569+8yJNvYV8mc eluAz9oqRKNiakTUBPIfHikDtPb4clT7gCo2S4LRo6iI6IzOTC+gZhvzpx2HHSQ6zaG8 EVX/QR+F5rPuotOR/vGwEdDv596GBzKx6nLFgrvYz7omG7I1pSWG9Q9ADqgl6zFbeKxH VP4Bv3qKlDOUaNYLLE7ToLYPQZ17ddKSNpTJlmZWueNi2v/t/NoEE4YM20wHZUcus23C f3b2D7CtyRydX3Fr5Ne9N6RXiM2suGr9vtpgu9uIHOiWfkblfv8rQNObJ5qU+i5QnNx7 8jNw== X-Gm-Message-State: AOAM532rdbp6iVT5i3OQF4QiJk4gjLWYAHI6yjMjIm+DJfild25wri+Z +5vaT3rDBsNNOfKRY8Vq4YIrPwgG X-Google-Smtp-Source: ABdhPJxRsk91eS9Tvx4MvSj/yrbX/5nBp4etZTym71u+L9yxNRMyEdFgxvHWRYQlw4HlR+4GZUKJ1w== X-Received: by 2002:a17:90a:4e42:: with SMTP id t2mr487080pjl.38.1615911763523; Tue, 16 Mar 2021 09:22:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:1b43:: with SMTP id b3ls7664575pgm.11.gmail; Tue, 16 Mar 2021 09:22:43 -0700 (PDT) X-Received: by 2002:a62:a507:0:b029:1ce:ddad:79de with SMTP id v7-20020a62a5070000b02901ceddad79demr191902pfm.19.1615911762868; Tue, 16 Mar 2021 09:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615911762; cv=none; d=google.com; s=arc-20160816; b=Rpd/cn4PnuRTgaY2bWneUFhdnYunMw6XjuCJG+rK+8x/xc14YTIak4zO/IaLB4Zgw2 kU1ExUkeENItTZqY8VXkTUOJDUN6Yk5zq4J/G9612OGhw0D/lNYYsX2L2hHFRGRqghsQ RL+3SVWPPmxLiFCK2IEd1NtxlBOv7Q5Td4jIe/yxiXekAI/4uJUDtU3a1uX0JiVyVAiz fWD46xBclQ7CgH1gd4bFEi6ve2mwZFcL4e6xzxgTIlYkE4MrxN6+l2eQdhnrYslyz7Ry po+PRo5hqPKsRyXdPakGdZZytwHh13YjFnbJ/YxP8oQ/oFhNmrLSpkwqRc7CFNpnduy6 D6UQ== 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=HgAyfKDeQqV1rPQNMpEC4TDbAUtgWRkL4ch4X3LHZLs=; b=rebalb5heDcarJjS7jYy6DA4HehPVIFZqW83SNWLo5/wz03oDKgDpWrlnA6LZFjmZS gM5DG/RO+ABmMtVY2iupzZsQAbqQknHRNK+g35c6d8mLltD59fWR+wA64QQ74p9Riihk IxKihnwup/fMsKX8Fvzq9t8rydwHqGZvyRge6ML/XizhQbZH9t2EDfuopW7jSoXIzwpV vCFwbvWz5vqgrgO9UPGzlfuCTG3sGbisvSk1vGnHXAtb10B3qHRjzkCt320TfUvzQTTX Ca1T0uHC2YjeK2LqzkMg9ZysnTEzEqnygIT3wJAngizzn809SIY9MaXp/3RJSbYP+UYH SVGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="XyZyBq/3"; 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 t24sor4072665pjy.26.2021.03.16.09.22.42 for (Google Transport Security); Tue, 16 Mar 2021 09:22:42 -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:90b:438a:: with SMTP id in10mr400527pjb.165.1615911762648; Tue, 16 Mar 2021 09:22:42 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 09:22:42 -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 6/8] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 Micro SoM Date: Tue, 16 Mar 2021 21:52:05 +0530 Message-Id: <20210316162207.35641-7-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="XyZyBq/3"; 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: 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 - 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"; +};