From patchwork Sun Feb 28 15:43:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1663 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1BB463F069 for ; Sun, 28 Feb 2021 16:43:52 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id d8sf7925270plo.23 for ; Sun, 28 Feb 2021 07:43:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614527030; cv=pass; d=google.com; s=arc-20160816; b=zFgcju5LQqPi1QBc4+3g9k62CK1/8zW0pQZF5mwRscTf35fNlVQ90UEVgDse7Q5wjK moOCO2DaUmmESk2IJsZignOK24JQl9fWkeoucrsxOZF7FUuVm99CKd+NVnHC/wvx1xr6 CnAo60yVeJpPnm9wZMz33A+uYd0mfglNXyQpdzRLKr/EXxme1M5a2Op9pdjwZspeORn8 PaeIMUtGx+rZOxhe56vaWoRrNPqKEmPXLNr1l6/3dslVfFHuIbiNcH0Pi9PnZmcc38Ht badhoWMBkf9ydFvYBvMngXU14+CLGru3anf3tDPk59ymxjmAGtN/lUtCg6fhWTxDLJAA OYCg== 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=/WLrLKIG3+JfoNOoJp99QwsXhonkaWDieg1tGJVeaso=; b=li16DwONoaDokqIZ6N5MLKthGg8Vr7sY+pBiQ49XaeNZebnOwg57DGwhnEy1gg0Zbb uymQOgXSKbYVXim9hNRsIap4DbBu98yhxgCkILTEwhAmPk9R6mdBVC/xejQi5f3D2GX6 MYf6V7nymPp0Gvi2mJOSnSu/7ZLXRWo0l3f5MHX2abEjalezONtLzxwh7aO9O3Crcmmh brSYKqHV46HSOR3PPt/Ii8QZ4QxSAg6zMe2oafTOpU81uQcr4IBuGlylMl2/KYeep7Zd g/m2ZLrBA2QV7Nu2km2Xlsg5KX1txG4Vz27i9ZXbMAmh1oAvu+9U3PZ9OkLaRvlnlU9S VkVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZevkZMuK; 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=/WLrLKIG3+JfoNOoJp99QwsXhonkaWDieg1tGJVeaso=; b=ZPUaTssw4luZe4tqOelS7il5bqY6i81xyJVgJ7RU/ouqzbnDTyOEQ0yePaMQ5cKvXN TZtjYzlyynvjmLDEnYu9rPCYW4YYrVNpY9q8hlN5YeHq9fFtDiJkDThxEtuRCJxvFBRq lPu3UEMBBZBlNpR5eDTRtLHntLXHKqNaFInLI= 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=/WLrLKIG3+JfoNOoJp99QwsXhonkaWDieg1tGJVeaso=; b=kN7ojJTr++tXjfj/xf8psQSYDOZ4czXr0yJYS3ctoGd8Ol83+hzk/7eQrnVPG99Vcn 0eip+Pe5RWuz7yXFv2q5U47B/RyPJRXgu3U4x5eUhEtnpCo1swVE0d7Wzbz8ujtngut0 3o98tHxfL0qsszQdoFo9eups+hqwYeLmR5PZAuwY8JY6S+lsyfKodIarV39duVpmVjox mE0QTn3R1NjTzJOFZgN+tsRAebd2yh44jZWtuuI9L87RXMRhnjmyIe9GjmhCA1lUr5cv TqsD73eQ4wg/E+fF0DgqIn8a7xaRpVrtVjzjWjCTHmayf0R4WB8UbnFtDJRoxen2Cekf WdSw== X-Gm-Message-State: AOAM530/+UM6MN/Y3JkjqAVjc0Xyb3gY90Ln56X/EkJlXGv+rQ2ginMa Xorpub3jrdBRXCe5K9TJIq35urH9 X-Google-Smtp-Source: ABdhPJzckRfMPTcKtBIZloLG1n068dYQKbHNPKZoEf2Emda/SVBhTyA6MACSe/Da5JSLHbNQoCjU4g== X-Received: by 2002:a17:90b:1bd0:: with SMTP id oa16mr12947745pjb.61.1614527030649; Sun, 28 Feb 2021 07:43:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b70a:: with SMTP id d10ls1832349pls.3.gmail; Sun, 28 Feb 2021 07:43:50 -0800 (PST) X-Received: by 2002:a17:90b:120f:: with SMTP id gl15mr2220090pjb.77.1614527030033; Sun, 28 Feb 2021 07:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614527030; cv=none; d=google.com; s=arc-20160816; b=kDQDDz67kw4DWHb2xNR6Qj4r3Gbjy6DWuF4pdE81PcmD/p4qO6rU5I7hCzF8Ro2IsT 7SpIpQ4p+LuZGRYcp9w+jSqQjDo5PYvGhljW0EorylotQ0I2OhEXyLhABhmgRa+mfeH8 mW8p72FOTTVFLmXv5RVlx/3s86qUYzfcX9LKt0P+k3WEP69gQVjUYOqzsQf6Pz1jx/US HoVb3T/2upxh6G79Zcy5nhW1mtpfbBru92Akrr/Y+JwmQjG/X+ScVnPo5DcQu0xUa3MS k46EvKSozyh2BY+P0vU5M58n8/C/GJmtFzlk51CXcszm387HVP+KvDdA2I/zO7s1C6mD KJUw== 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=d8lgPS/H9UcN3+rMEGcheSYADrMFG557zp/WU7zuATY=; b=mm92n+viopGqOLM184jelc1BCE0uvnXOgXX+d7HrgdHeo/2GdaoSkAOr2ebFTzchIJ Zrg3NqvquoVJeBWFhqtMO2iPHaWlsefSJ4t7eOUNQg7lOGGZwqhiQ92+lo0f5QliHrYC XtAtWPnuy24HJ1PVwp8YiXQJqcFzwDyhhejJ6s7N7IEcMVbpgBNriREcipDw8Xj/yMrx E4/C/oDwpw1AkkfISv3w9Qm+zD671Chody0vauCMkBMkTSzJAx5RTL4ik1bU/IRQ4BHt KrMA0ghOgmjOBBtjPD+358PE3KGEvUfaPq6ZLQ3tavDYxOJLfB6+2mWP8RC0tiXt37Y9 sGOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZevkZMuK; 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 t37sor6563973pgk.36.2021.02.28.07.43.50 for (Google Transport Security); Sun, 28 Feb 2021 07:43:50 -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:c10:: with SMTP id b16mr10642346pgl.326.1614527029694; Sun, 28 Feb 2021 07:43:49 -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.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 07:43:49 -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 , Matteo Lisi , Francesco Utel , Mirko Ardinghi Subject: [PATCH v3 02/10] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 SoM Date: Sun, 28 Feb 2021 21:13:15 +0530 Message-Id: <20210228154323.76911-3-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=ZevkZMuK; 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. Add support for it. Signed-off-by: Matteo Lisi Signed-off-by: Francesco Utel Signed-off-by: Mirko Ardinghi Signed-off-by: Jagan Teki --- Changes for v3: - add device_type - updated commit message Changes for v2: - none .../dts/stm32mp157a-microgea-stm32mp1.dtsi | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi diff --git a/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi b/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1.dtsi new file mode 100644 index 000000000000..0b85175f151e --- /dev/null +++ b/arch/arm/boot/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"; +};