From patchwork Fri Feb 26 07:03:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1651 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F21E43F096 for ; Fri, 26 Feb 2021 08:03:54 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id j3sf5573400pgb.3 for ; Thu, 25 Feb 2021 23:03:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614323033; cv=pass; d=google.com; s=arc-20160816; b=WCjWgGXhsxRkisCxF8wQ5Y6wu/tDGTgD0hykLX0sUpeZe1bc0g5ktRnYXdxqBViX1c IslCOU5XClLY0YgPM1bxi99V00zcJgcH/bwG/RBoIUWDdiCSNF5oo8n382NN1hAPUikX b1Lg9n94+tsb883O+5Sum7U4DqKCX9qGOLa9b3FvFZw3PImLqpl0s7BkENjWPAHkzDa8 4khrYvblvuoW4Vb/uiuws4w40GUQA8eFLQnYSpcsjyelEp9XbucB43QMFfixkZv4XDUH AMx+5pLeFMGxDVRix3m6+qhpUNT8GU4TAVLoXemTPNy1sS3yY0FOFeUhctqTSj/Bek31 7KTw== 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=6RqlJ/LA1IYrGHM8Hi2aecf8+6sTLvQ64k3bsZ891jQ=; b=EjqmVeiiBFDXqC04ynRmPXW/RVeANlxGJlijIeGG1yvnpyWShh5GxSqvJBRYvNMQXW BQRwrsfLOHepIGlyfkmQmPynFILO9RgLq1Yxcz4UXn+GqLtDpD6DTdGwmrXwHOICSiG2 J7gNPuLzemqLsZSoU9whoKJKA8yh1kKFY2kfsq7IvHpD4PvDmgSVUMPInUNT3y6PQCxL dpD+J+LzQuFXR38mhOiKzZv33OKysBErPgGBJRys3Qx+JrvkL0l9HTjaAMp1w3d8037n 2R8OxS2XooooKJ5JLHCHgVXeKCmHbsdLMJS4LeZF4ZivOwVVQBwCTKaytuCyiiyIhlCq JI3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IJhZHgg+; 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=6RqlJ/LA1IYrGHM8Hi2aecf8+6sTLvQ64k3bsZ891jQ=; b=oii5ZNuhh3ipgg+6dx21wevEfdyJPTI+nL6Ws6opNwFmHfj8Zisn0k1fcuuKze7eMY V7YA+Lu2ZH7Ft32ebaOmGC1Z1yT61hSPtSF96mR8mcw84i39TGLsnwGMMJrx/Psj9Rwz nGEJsyI0T9CJrESlk0453e4Y/2no1qAaEB0UA= 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=6RqlJ/LA1IYrGHM8Hi2aecf8+6sTLvQ64k3bsZ891jQ=; b=l7exinAzyd/H7U90saXwBGVw11WLDi0diL89oDB5zQqZZ+jYt3poy1HPwDv0mE9/OF kxebaaYjmPI+aygO9jr1MdfJywTQuzo25rOqLBXEndITr5Nf6BXEJrR854OTK1q8tnMZ fLxpAL5qn0SslF8N/CM1KrIppDzjp3O/Y4iSECs+06qbJ5nrbH1QH303k6HGC0kvdhzE KIh8ODCwsCegnYn/k8ksxKDisJ2ItnSS5AVeler3LL6iKcxK91Jw/kVKeDdrbMVQDKGI CeoBaJpm1VEvqbj5XZzrG01hUXIhBXOo/2htfxS0kq1NMklKxG3eA9I+60bp7+P4HIz2 HQ9A== X-Gm-Message-State: AOAM5336Y3ouoIW4Lk3Qy+/GGs9hsLehJw8E7YkEhQsps+6wHlpVE/rt 6/S1eYw/Dso69yAYS5bi1n8f4quf X-Google-Smtp-Source: ABdhPJybRbLLlOAb1Z9DRHzUbpZSCYkCYJ11pavBYgScXT04h8fR2Enwc/FHYCgoB69TjYPWsbgihA== X-Received: by 2002:a63:1b1b:: with SMTP id b27mr1622760pgb.377.1614323033769; Thu, 25 Feb 2021 23:03:53 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:5290:: with SMTP id w16ls4947210pjh.2.canary-gmail; Thu, 25 Feb 2021 23:03:53 -0800 (PST) X-Received: by 2002:a17:90a:64cc:: with SMTP id i12mr1951517pjm.41.1614323033190; Thu, 25 Feb 2021 23:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614323033; cv=none; d=google.com; s=arc-20160816; b=mkounj2OjYBry9OiFRV0CpMwmFyel6/BS+8gjlzD5dRljvXwpvGtXL40QzqHKE2M9r rvf7B5lYRJCOT0OAmpRIAcpXeuCjpnlfXGu47NSkwmtc7snWng1Rwbr5WtytRgIXUpcg QOnoQZppEvhEa/K5XIctYz9FvAbbw4j+zGi1xk/O3p4wkzj4MUFMxu7giJbeitVkSLyP 5AREX9d9sn2HgX990hCqYINs9AmYLSZO4hMdA4kWAJX0FvZ9q4+azJ/r3xl3PypVrS1+ w0Dp/VIyXR4JS9whNtrrY3AIJIqIGH+lg/IqZN0cDKrF3JonOK4nSIDNFSlErnqxm9Ne uPKQ== 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=Nt/87T8Oe1O4rtLmNP94vxQZOdydKRwsIkh35yYg1yk=; b=UEt7k4cdrLKcSnrL8l8xccGat0nmob8qK4Ju77GEd67XwPhkhfuEzRed8Ka6Xi/8gb eePhpoUSQLu6r9HGiWWGvL7JrdQERBKkM0EqmCERu0qkdeeieJR130HpKD4aKZ4qv64E 4fmmLqHJgxD7SJIiilWUcfzz9AWGxf4Kxpoa/F17HpfIwEE4BPIRp/mwtM7vH0D6q7Cy cpuwGaNUOszV3N95Nc3h0KuR7A1oXkUl2VVCX8KvRlk/yQCea3IQjeS8PCTnOPHlf0nD sAX7RdEEq2cZbeVhEepjaqhv8Bnpl8l7eoS1pV74XH1QmxiAedHrfEvn1bYOXttnYlgv pgPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IJhZHgg+; 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 r15sor4143474pgj.40.2021.02.25.23.03.53 for (Google Transport Security); Thu, 25 Feb 2021 23:03:53 -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:a63:4f56:: with SMTP id p22mr1745529pgl.224.1614323032859; Thu, 25 Feb 2021 23:03:52 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 23:03:52 -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 v2 07/10] ARM: dts: stm32: Add Engicam i.Core STM32MP1 SoM Date: Fri, 26 Feb 2021 12:33:01 +0530 Message-Id: <20210226070304.8028-8-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=IJhZHgg+; 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 v2: - new patch .../boot/dts/stm32mp157a-icore-stm32mp1.dtsi | 195 ++++++++++++++++++ 1 file changed, 195 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..c8e4b68c5661 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1.dtsi @@ -0,0 +1,195 @@ +// 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 { + 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"; +};