Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp496pxb; Wed, 4 Nov 2020 12:40:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7KOPcRrbLjAsvessoxs3wPFUOWcfD0GoS8n+08+a84y7N+lkTjbJ9KCgs1gwzd9s6rMB3 X-Received: by 2002:a50:930a:: with SMTP id m10mr16036688eda.288.1604522429511; Wed, 04 Nov 2020 12:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604522429; cv=none; d=google.com; s=arc-20160816; b=KROuBSquKnaxybcUv7l9KKElH72JdOAmJxa67k5XJjQe22DXsieoE2+Vonh0F95kM4 /j6ggTfwIVQKXr12EKQUNz7z4ZHgnQmPRfhhz0eGS2krmCcuZpsK1LUlu4mcQiqbHRqT fOWjMgJaYsCcp8BSv621itkcj5Y0wYA3BAliCgY8xfmoOROtGVFA0veQFJ7sVRPxWm01 0m+Fs5zsPXhSl2U7RR0m5i9vs0Ah32lCJLUqQe8P6FGjnE9xT+bnfTKt5CgNP3eIsKH3 GPr8jQDWAh3oSvj0/OSDvxW7zASSJajrtIKuviLQn3464Z8kTHypratIs2E9ttSp7BuY 96dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=Q2SYH6K4Nqo96bsFhKCbE6Bdp7q7RD+0bBhw2ThOJsY=; b=JqKQK8uorrU3JGMRBhN+migsnagWL5FseJsAHG2YZGlOHXZThTpkUjHog7Nv3pz91o y/x19z20rH6cTbfJ2CPygY4+5nGbmkzQrlbAn/pbpyeioTa2XvUzgTk6qxp/DC87LL7S LiNyI9GOVTdJBqeSAdOmaMAAAtgP6hEl0QJ20xcrCggk09qmosNq7B9ZeAFEUBgz3Arn hHjJ6eY98R+27iVsrJsmKAwRm3X91p4FV829tFhro8UjTI/grN61aNzCfGZ2igtYUwBO QIbBtLfQwSFRknDU1xU3vRTizu2IfBkZPchWlWmqbpwLf+W+TCFS86hWGoyrQlBzE+0d RTkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b="SDqic7k/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UqJGTyP0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si2440802edo.243.2020.11.04.12.40.07; Wed, 04 Nov 2020 12:40:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b="SDqic7k/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UqJGTyP0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726152AbgKDTE2 (ORCPT + 99 others); Wed, 4 Nov 2020 14:04:28 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:36559 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730159AbgKDTEM (ORCPT ); Wed, 4 Nov 2020 14:04:12 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B783E9AF; Wed, 4 Nov 2020 14:04:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 04 Nov 2020 14:04:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=Q2SYH6K4Nqo96bsFhKCbE6Bdp7q 7RD+0bBhw2ThOJsY=; b=SDqic7k/DcDWl2EO9ALuM3U7/DnWZ6sK1g/snvZi4lv r5fOnF9y7CmbyHdObLSuj3PPgjx71jq5/4er4Yu86fF9WANn2uVicjUspN3zDb26 USW3aI2zBAfevIGc9Lr3FaJa3f4OvSx7zN9M0J58icY/OXEJ74o/SDQjT+o9Repb 0w/P7wwW6kM+7F+HwfodAloSRuzWMKQLkQIfvO08SV8Fz/SyjRBHeKFWCpFpgtON ku8IECAXftM07mdYk3g4ex9DprCs0joFDpBaXGdVy3gV+mifGdqp4if2S0I4YU4e cyo5bfLIHxeNQQne5FQPHkXhHdp/ZpCaXUcRC/8iSHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Q2SYH6 K4Nqo96bsFhKCbE6Bdp7q7RD+0bBhw2ThOJsY=; b=UqJGTyP0StfkG/sXt9uuOG oaPu76n2k2xHgzuzKScrsP3gUZ4NhayXHmHwbzBJoIxLvLdyvVxguP1BifKeyhNI o5OlmhBL3mNf/aYQMqCcnGGtZJf8iXAnZFJzAj+HOYysCJZK3dOd2t+bBipOXokd dSJlnTbZPqs9hF2vbTFr3CT1FYvd+j3DrHmHCgUyt6nT5+dVIqm5y6o9WrmHjDve /kTa9j72woBy3bI5wxCJn5r2mFveByc5ZWOC6paUioSF0M1oX1BouAHJTLmLrmTE vC4Si1ABSRqxoA1IMCIiMNHo8CnKG5C4MeeJbPUtFu6Ufxm+ErjB9/EqlZYyEgMQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddthedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheei heegudenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 5CEA6328038E; Wed, 4 Nov 2020 14:04:10 -0500 (EST) Date: Wed, 4 Nov 2020 20:04:08 +0100 From: Maxime Ripard To: Matteo Scordino Cc: wens@csie.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/6] ARM: dts: sun8i: s3: Add dtsi for the Elimo Impetus SoM Message-ID: <20201104190408.krxoqm2fei3kboud@gilmour.lan> References: <20201029022000.601913-1-matteo.scordino@gmail.com> <20201030234325.5865-4-matteo.scordino@gmail.com> <20201102100540.wkqoy4nilmee7mpv@gilmour.lan> <5ea8344baa73068f30945ca5c76f582ca4844b3e.camel@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uxcttehbtep2djxm" Content-Disposition: inline In-Reply-To: <5ea8344baa73068f30945ca5c76f582ca4844b3e.camel@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uxcttehbtep2djxm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Tue, Nov 03, 2020 at 04:28:27PM +0000, Matteo Scordino wrote: > --=20 > Matteo Scordino / Embedded Software Consultant > Mobile: +44 (0)7463701446 >=20 > On Mon, 2020-11-02 at 11:05 +0100, Maxime Ripard wrote: > > Hi! > >=20 > > On Fri, Oct 30, 2020 at 11:43:22PM +0000, Matteo Scordino wrote: > > > The Elimo Engineering Impetus is an Open Source Hardware System-on-Mo= dule > > > based on the SoChip S3 SoC. > > >=20 > > > It is meant for integration into carrier boards or, more generally, > > > larger designs, and uses an M2 connector to facilitate that. > > >=20 > > > Interfaces on the M.2/NGFF 42mm connector: > > > WiFi IEEE 802. 11abgn (on-module Realtek) > > > Bluetooth 4.2/BLE (on-module Realtek) > > > RGB LCD Interface (on-module connector) > > > MIPI Camera Interface (on-module connector) > > > IEEE 802. 3u Ethernet MAC (external connecto) > > > USB2.0 (Host, Device, OTG) (external connector) > > > Audio Line In/Out (external connector) > > >=20 > > > Signed-off-by: Matteo Scordino > > > --- > > > arch/arm/boot/dts/sun8i-s3-elimo-impetus.dtsi | 51 +++++++++++++++++= ++ > > > 1 file changed, 51 insertions(+) > > > create mode 100644 arch/arm/boot/dts/sun8i-s3-elimo-impetus.dtsi > > >=20 > > > diff --git a/arch/arm/boot/dts/sun8i-s3-elimo-impetus.dtsi b/arch/arm= /boot/dts/sun8i-s3-elimo-impetus.dtsi > > > new file mode 100644 > > > index 000000000000..f219188fc9ba > > > --- /dev/null > > > +++ b/arch/arm/boot/dts/sun8i-s3-elimo-impetus.dtsi > > > @@ -0,0 +1,51 @@ > > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > > +/* > > > + * Copyright (C) 2020 Matteo Scordino > > > + */ > > > + > > > +/dts-v1/; > > > +#include "sun8i-v3.dtsi" > > > +#include "sunxi-common-regulators.dtsi" > > > + > > > +/ { > > > + model =3D "Elimo Impetus SoM"; > > > + compatible =3D "elimo,impetus", "sochip,s3", "allwinner,sun8i-v3"; > > > + > > > + aliases { > > > + serial0 =3D &uart0; > > > + serial1 =3D &uart1; > > > + }; > > > + > > > + chosen { > > > + stdout-path =3D "serial0:115200n8"; > > > + }; > > > +}; > > > + > > > +&mmc0 { > > > + broken-cd; > > > + bus-width =3D <4>; > > > + vmmc-supply =3D <®_vcc3v3>; > > > + status =3D "okay"; > > > +}; > > > + > > > +&uart0 { > > > + pinctrl-0 =3D <&uart0_pb_pins>; > > > + pinctrl-names =3D "default"; > > > + status =3D "okay"; > > > +}; > > > + > > > +&uart1 { > > > + pinctrl-0 =3D <&uart1_pg_pins>; > > > + pinctrl-names =3D "default"; > > > + status =3D "okay"; > > > +}; > >=20 > > What is uart1 used for? the BT chip? > >=20 > > Maxime >=20 > No, BT is provided over SDIO by a Cypress 43455. > When used with the Initium carrier board, UART1 goes to an FTDI bridge th= at is > connected to the same USB-C connector that is used for power. > The idea being, if want an application that uses the UART to communicate = with a > PC, it's convenient to provide power+connectivity on a single port. >=20 > I guess your point is that we would be better off only defining this in t= he DTS > of the carrier board? I wasn't trying to make any point, it was a legitimate question, we don't want to enable something that is optional or could be used for something else (like a UART exposed on a generic pin header). But from what you're telling me, yeah, it should be moved to the daughter board DTS. Maxime --uxcttehbtep2djxm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX6L7KAAKCRDj7w1vZxhR xYMTAP9RnYdBwSJcIxgDEB7xxcKiAogacJhfpAGCvzzU8/Ls4AEAqqx64lbW6fPP 71VnXsKs2elZAKdEm609+fWbL7/AhAY= =D8Iv -----END PGP SIGNATURE----- --uxcttehbtep2djxm--