From patchwork Sun Feb 28 15:52:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1673 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4E4CA3F069 for ; Sun, 28 Feb 2021 16:52:46 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id y5sf4815298pju.5 for ; Sun, 28 Feb 2021 07:52:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614527565; cv=pass; d=google.com; s=arc-20160816; b=XF/BIq4SfFtzFXo6JJjPfU/lO6B+I4rnaT8eYY1M6omFzM0FAoCBWQGphSZKOm8PYX /KOWhKfg+XIxCCQLrisZys/nbNP6TNBe2WnFs9L05+Kejk9GvTuBKhYooPF1HMy7kNxh OgkbfcTf3nvCjn6E/xb5KIV5nNv4BvUKZwWEvPUw7X9mKPdphQrbeceyPW5mzpBKWM0r /gg3VsycfcJ4WUkUXQ2VPxO354MPWy2YHRLp1L5QUOh7bs2fPpbysKVTpaVnIMpIwjLY Xu4TStqhFUWmRX+Wb5yh0YwZxmveLU7W9PmQMdgjHIuxV+itTnrhxW8VbT1cub2cy1ra MY6Q== 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=kCvD1QBNsBfJGjHk7hTHOO5euW7F+T4y5pUOhaX00Zg=; b=ka0s4i1bAptwltUsg6yw2hPdxH3GuS0bLRoZSUuPpEQVEEsHBr3TNL0HTFfA27UXX7 2yhFB3z9kpurGim2MRHdib+m36mobDNBeHeOHNDyJlirmMAH+THMVfxflK3HtgLuNdJB R3B6Emp8pkGwzqD9EoFwDLuL4KhWifXrEoedSxAIWzTqgqI+4ILLXKsTOTdAaoE6W4x8 2XNXQg9WZFsxm9XQACIVtT83H7WR+lKADibRCSpHr7FAAHcVOMQ20S/7IXpd0xOPNAVu HNEpG/0PyEd8N3YPDLZeO/f75g1YPtHZL6c5ON4SIflWa13g0724XEjLOhUvGPCZ+rdh 4p4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BoswGlBl; 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=kCvD1QBNsBfJGjHk7hTHOO5euW7F+T4y5pUOhaX00Zg=; b=UBcFx5H6YgLzJBUxqKTDla9OxvaeU4qIRenM1Oe0T1iHuh6W9Ve69WSSpLzL7bRfGM 9FXGtotDEcM/pu0NVo2H+D4ame5iH3UF2mJOTdH7IfqS4ggbN9MdhAC7rijAl/bPH/eU 8+8ML0xJlNTak3KKeBJf8CYIzy03TBeKfrNv8= 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=kCvD1QBNsBfJGjHk7hTHOO5euW7F+T4y5pUOhaX00Zg=; b=oAjLX+d/5okVlx2i3fHfLZPFwwoaGEYjiI5LNmf6uUrnHdC6WCey7WJzpOlS5M2wWT jZUSmV7MlwjdwJg4UjYCYCPD+5BQDKDHzpoTPD1LembKPFriSxjoxM+w8D/C8w6K9/Nt QM/3v5vxo8lm1VTjxUN8d9nQDtD3c4sNoFylUNW/+pdvin975rzTTlw/0XjkWKdsGOck DMnlm1f4/7UTsgega/QwqaRs2QAWpF60RmUQtLYFArHRQS8ZGUkRw58S/4leu/k0rFFy 4Fwe1d1uRh0uYdSfCOvGo0usp4gBB4tkYgJVWgzxcXW3V+kXR472j01DRoQWjcqb/AcA yojg== X-Gm-Message-State: AOAM530vzqfHp30r7snkfvnSlECmFxdrj0ezXWolA/4Xi+LDMb8fPBft 6AMwcJVU8UvUZVlxvPP6hiWoqg9l X-Google-Smtp-Source: ABdhPJw5lU6esJ9hPsHoXD1LtqQiSSczXcRZKtRvCFKByENXkyJndcfCRVJ0s1LcxjpCVuGDHIE0fg== X-Received: by 2002:a63:5647:: with SMTP id g7mr10124117pgm.113.1614527565113; Sun, 28 Feb 2021 07:52:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:2502:: with SMTP id l2ls912690pgl.5.gmail; Sun, 28 Feb 2021 07:52:44 -0800 (PST) X-Received: by 2002:a62:ed10:0:b029:1e6:2447:f8ba with SMTP id u16-20020a62ed100000b02901e62447f8bamr11210447pfh.61.1614527564537; Sun, 28 Feb 2021 07:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614527564; cv=none; d=google.com; s=arc-20160816; b=AovswYAVrA1cbkv9LWPXUf/EU1VJuqea+UViB9l9zfKucaJwP8jBxQS4MHvBysVChb 2gIbc8D1jOAnJLDfvZuuQClfJtD1RClRMjK74JmFLsnWb/A88TUdnmNsfgfmp85E8adb ZGFJNz1q8EtZj/zrUaQiOsKzhM7RW+qxzPgqtVa2UYA4t5/jdF3PhyhvLp8uN9bMOKep 6jZBQ0AUSu/AxAXd+U9xMku+Oq/ZMkSYVVEQD9xwvHuzW5FEBKzDq+7eLi3hlXDBK6FJ Wo45jTTIQV6glSOciZ11RJX/18LsW+S1P9OBpwl2OlWkIKRSsU06HMxTQA90SYWhUsXU hNrw== 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=7KGTEH2nJQEoTOzO1mxN/ui3LOLKWOBSGiOjthnYqqM=; b=NazOVBIQl/qWboR3gbO4nXRedkiQJGJgyeK0EgrFrxASvACg6D11m0i3wM45jqLh+D f7dhJIT3L565KDAkqeVUDx5wv70w987c0NdNmSU6/ZG3JZiPwAXKwisiumCm/z7ynsbJ fDtpjW8g8R6oLacO92pN1sOD5IV4X/Iy7XEbUnzGSkL5TaHg1sGnfJpIEecRc4R3A84s kgM7hL0sAdUK5l4I0ZVR2I7CVv8kkJSjJUEhLGxydYnmyRMDx5sDIs53zGfrJtiY6AFJ 85LlBjhy5Aj1Qu98QjmFfiCqKPK8sJgbSW6fEJTFQ8fog9Ifhg2TIGvEtJNoGPkYaJwW fprw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BoswGlBl; 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 4sor6756845pfn.10.2021.02.28.07.52.44 for (Google Transport Security); Sun, 28 Feb 2021 07:52:44 -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:a62:8202:0:b029:1ed:b091:cc88 with SMTP id w2-20020a6282020000b02901edb091cc88mr11142158pfd.53.1614527564282; Sun, 28 Feb 2021 07:52:44 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.225]) by smtp.gmail.com with ESMTPSA id o18sm14725779pjq.44.2021.02.28.07.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 07:52:43 -0800 (PST) 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 1/9] ARM: dts: stm32: Add Engicam i.Core STM32MP1 SoM Date: Sun, 28 Feb 2021 21:22:18 +0530 Message-Id: <20210228155226.77904-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210228155226.77904-1-jagan@amarulasolutions.com> References: <20210228155226.77904-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=BoswGlBl; 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. Add support for it. Signed-off-by: Jagan Teki Reviewed-by: Patrice Chotard --- 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"; +};