From patchwork Sun Feb 28 15:43:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1668 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 882D43F069 for ; Sun, 28 Feb 2021 16:44:14 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id g7sf7943326plj.16 for ; Sun, 28 Feb 2021 07:44:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614527053; cv=pass; d=google.com; s=arc-20160816; b=iNekB6ZDB2+yt7bGdE08LW9qWfeU4InTQW4CmXOpS88VI4QrmFVgUBTZC+ps8cdUUm vPGB8nx5y7rpp1gWiOly6lhaLVzNmyqwthXVkFlWQvEDh1rvPtZodqGvE5+XeH36A/7g zowLAhHje+YOGw3O87wqfmi7sGx2cE/+ZMlZqCQvz8Hnf1g9NbRfTf6riApz17AQbehP pvkId1q0g/AW9Pvg19LCSdsQYASws1n1kj9OVt9TsXE5o5h51XCbrWx4t9DcJK6J/SD4 BbmgqeM1KHOD2kx/hRyfqblcQOBShQrEUlgMpah5AXKTiLmjajwFBbqgoug5MjGmGVA2 88Hg== 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=3KbTzsQceBbklFQTGFZ4NS1sfWktyr/TP/6cPrtNXgA=; b=vizeWLgTy4HgPXLZyU3KxMlVETluN94m3cuXNCdadbGUSTN4L0NFv/5V2W7TMHVMow uROGShI7DY2hTJhn+/5NgFMstpYNF+TEt4Xx1ZUFkm8N5OKYiE5gGsiaG2yX8NcYXvzO 7MJHYPP2Pl+zkbWZ1lgtLTORhagZxM+ZPXF1At6CU63ycvPWz9W93jMbrXBJB0TmGyoQ ET17axDzcYiqJdScuzQr7YbwUen2qaYXV1AwHMoPOjPz0/5zlJlbRwZpnreNVB+LBBdt hrbXINzvzWdl+6jjzJOFenpJ4Z0t43xtuJGxnPDHvIEwkAcvNe3tqjsgxAqqg694aoNs wKAg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rx4ROMwI; 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=3KbTzsQceBbklFQTGFZ4NS1sfWktyr/TP/6cPrtNXgA=; b=ffOWcARwX4JVffxwUE3rMXcgDou4MkTK2GU4pbGi2exD0ZJE7g9zByRfQoJVGycPdD r8GVeMBteV28Y9fo4lAygsWqd/e6C9TUNZnlv9rY4wq1NnDy0wbYWw+WpLSJyxgaQ8RO pHpYoDOaQPtVdkyd9UIzQ5d9XxLK7xHWUSv58= 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=3KbTzsQceBbklFQTGFZ4NS1sfWktyr/TP/6cPrtNXgA=; b=IbAxFJZgf3r52bUTt+VugoME9uOyatD96Zy6np3zx9s7ziptYsmMGFc5ojtqud/H4s UtpOKFQjx1BU8q0+KGlwCSJCn54xiDbUxew44e7teP7fYxJTEK3RflhuAwnuvQK+Zphs GTp8lNUmZ0ozlLRbICtJ9Rh7Bt0RqZLTRNEaX4qR0fzbEcvUCTm5IyZwZl6+53CY6Hc2 GuDaaAoFU0KFZsJjG1un6ONcKyhtAfyLaBbPRFX69V7XqxU+uQXmPcvAqSLd11CS99MR HFh2K8TKY5SgbUijB1485UovLZePeW6ptWlpe9+S06gZVbqV+O8uSuIlHqYeIwAS/4Vm 980A== X-Gm-Message-State: AOAM533v4WAxlMCQVBO1yWyNsdh+VOcpTz1axzRuUydiFV9K3qc/nR5S Xb2xDh+APhUY9+s4Jas5hsbaOk6U X-Google-Smtp-Source: ABdhPJxOP+TH9EGl9Wbs4kfcTKFhiIyaEEbS2V/F5SlKnoo17S+yRLsEkkaRiMWd5v3Ii+rdMwCmOw== X-Received: by 2002:a17:90b:508:: with SMTP id r8mr12990287pjz.83.1614527053356; Sun, 28 Feb 2021 07:44:13 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ec53:: with SMTP id r19ls5413515pgj.1.gmail; Sun, 28 Feb 2021 07:44:12 -0800 (PST) X-Received: by 2002:a62:ae12:0:b029:1ed:6300:ac7d with SMTP id q18-20020a62ae120000b02901ed6300ac7dmr11414724pff.2.1614527052717; Sun, 28 Feb 2021 07:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614527052; cv=none; d=google.com; s=arc-20160816; b=MolCwT7xPXvR/eQ1Gt+8y6trPIU0t9YIar6AeTPyfj4gKstQ+2E4Lk+HUK7zr5pTIo ydfGUBcEihxvSPm8yCpjsqouCkzQbz5Y+IFwG6kd1MhYEr5oXohNsF5A8MCQZh7/CzcX QdaGNZOABua8PDaEKF+BMI6dxSllYFptUxfGhXtEKFIrQBwVVZZxSOoODfzyN79py/KJ wpkxk/UaERkGZaQE7zL87EzeQaXOtQVSmceI1W9vfNvgWFA7FpRJ7ARqDAbEH9ucnOlq LzavpuOHhlRoPjJ5be0h8OB9ssTs0umbOVJq0Ivyns9zEzUXZRDh7wRxV6hmGrs6x51w e/Tg== 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=J+tLTcgEC7NuZoaHUtchsSbxzlGgEOMmhAAuknqUUUU=; b=pn/IcIKX1XSWlfCZMSnj+rdb0C37775WDBtxGBnSosqUy7YLp/9SA1GyVJmZSkPcLB rA2Ek34mFiuNc5TJt5kXTnUFHJBVIzJ9WMzMmHsWUwhpMYTVFjbssJNZcBsHmMMs66ng MKQX+K8778VYwFBZSNCSUBeHtf2catLs7AKceFKaCjVMvONd7uqsLE5DKb5BAVszrFsM vKNDmhRp+HvOFtNTPAqcQ4kmgDPjNizC/P2sYhfml+uQZtJHDBHL/RQZ4WwE+pFsMdrR kyEGLH33xaLRX/ws245l6E9Yvdma/eFvO88pb9TaC6j+/bq6wqspBr0c3iUO86EzRSvI 4CEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rx4ROMwI; 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 k3sor6534802pfk.62.2021.02.28.07.44.12 for (Google Transport Security); Sun, 28 Feb 2021 07:44:12 -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:a05:6a00:22ca:b029:1ed:f915:ca98 with SMTP id f10-20020a056a0022cab02901edf915ca98mr11319685pfj.68.1614527052458; Sun, 28 Feb 2021 07:44:12 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.225]) by smtp.gmail.com with ESMTPSA id j3sm13522133pgk.24.2021.02.28.07.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 07:44:12 -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 Subject: [PATCH v3 07/10] ARM: dts: stm32: Add Engicam i.Core STM32MP1 SoM Date: Sun, 28 Feb 2021 21:13:20 +0530 Message-Id: <20210228154323.76911-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210228154323.76911-1-jagan@amarulasolutions.com> References: <20210228154323.76911-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=rx4ROMwI; 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 --- Changes for v3: - add device_type .../boot/dts/stm32mp157a-icore-stm32mp1.dtsi | 196 ++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157a-icore-stm32mp1.dtsi diff --git a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1.dtsi b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1.dtsi new file mode 100644 index 000000000000..01166ccacf2b --- /dev/null +++ b/arch/arm/boot/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"; +};