Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5047907ybi; Sat, 20 Jul 2019 11:42:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9kjWGS3+7iLfkT4W45BvJg/5T41rP6Z17WZN7URYwQSkZm4i94RicZZg/6T/Wq+qIWb34 X-Received: by 2002:a17:902:aa88:: with SMTP id d8mr61092303plr.274.1563648174634; Sat, 20 Jul 2019 11:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563648174; cv=none; d=google.com; s=arc-20160816; b=MHJA57qVUmC0TabgBWPtnguqrNbpH0x9Vrr+mOYBOXC9S6i4JjWStZsxP77ynVjzUR LV//NNAzWnNclXomGsHyOJTSVicuw2ezQt0/C9jDwRmYd/4vqQJ3lfVT1eW3zA9oSUny 1Jtzbu0wE3aMVzUhb2J1BUba8ke7t+v/rbXMbJ3mSrh2sszsb4Q4D5y7fyKN2CoX5tLZ lMvBQrmhBlciqi+b4DLbha0JvjpHsSRSEbi65whDk7RBZmpPLufTXX4mans2AyXKpvrO wrSaxIBQmpR4R6WEgm5X3CJ6vLi/bnTYrE3CGJXk9QrhFejc+ca2TrtWryQM+g55PIPq fZkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mNkcdmIlw/iV1REHcmo5yW/Y2Zk61PRJcY6tofSVVfY=; b=gI27xey3zc/a9HRaQW+9COjjV2+Wif9GPEfLFiWoq8MXh2dqJeHXImLtI7f/PtgXVq ljz+8lPM9YdPoEKryjZUIM9zccq+H38tMBxlBmga1JOPC4Pcw5r8RSnHyxqiLjTauwu9 CDgq+J9R0WrbhlzsgfcFH0H8Qqc7JClX/4NygUASnxnC5HLt3W2yFvreatWyd39II6tq wf9bisUQ82wbIZz82ofNBCeFCt6jnzVcO/mYZpzIeN52VNdIopZ6I6szjqdBHyWrq4/H J6W+KnGz+Z7XvkYxl17jOsdxf0Fk4zWwJIIPn2lSsmAa3Hcq/LGxg5JnSXRP8i/+gxuJ VJLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si2930481plg.320.2019.07.20.11.42.39; Sat, 20 Jul 2019 11:42:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbfGTKMn (ORCPT + 99 others); Sat, 20 Jul 2019 06:12:43 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:51213 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727699AbfGTKMm (ORCPT ); Sat, 20 Jul 2019 06:12:42 -0400 X-Originating-IP: 91.163.65.175 Received: from localhost (91-163-65-175.subs.proxad.net [91.163.65.175]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id BB38D60003; Sat, 20 Jul 2019 10:12:39 +0000 (UTC) Date: Sat, 20 Jul 2019 12:12:39 +0200 From: Maxime Ripard To: Icenowy Zheng Cc: Rob Herring , Chen-Yu Tsai , Linus Walleij , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v4 8/8] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3 Message-ID: <20190720101239.dg2oe3jazzfmtzvw@flea> References: <20190713034634.44585-1-icenowy@aosc.io> <20190713034634.44585-9-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yaksnqu7g5ezrkwd" Content-Disposition: inline In-Reply-To: <20190713034634.44585-9-icenowy@aosc.io> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yaksnqu7g5ezrkwd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jul 13, 2019 at 11:46:34AM +0800, Icenowy Zheng wrote: > Lichee zero plus is a core board made by Sipeed, which includes on-board > TF slot or SMT SD NAND, and optional SPI NOR or eMMC, a UART debug > header, a microUSB slot and a gold finger connector for expansion. It > can use either Sochip S3 or Allwinner S3L SoC. > > Add the basic device tree for the core board, w/o optional onboard > storage, and with S3 SoC. > > Signed-off-by: Icenowy Zheng > --- > No changes in v4. > > Changes in v3: > - Drop common regulator DTSI usage and added vcc3v3 regulator. > > arch/arm/boot/dts/Makefile | 1 + > .../boot/dts/sun8i-s3-lichee-zero-plus.dts | 8 ++++ > .../dts/sun8i-s3-s3l-lichee-zero-plus.dtsi | 46 +++++++++++++++++++ > 3 files changed, 55 insertions(+) > create mode 100644 arch/arm/boot/dts/sun8i-s3-lichee-zero-plus.dts > create mode 100644 arch/arm/boot/dts/sun8i-s3-s3l-lichee-zero-plus.dtsi > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 9159fa2cea90..e320460a952b 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1114,6 +1114,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ > sun8i-r16-nintendo-super-nes-classic.dtb \ > sun8i-r16-parrot.dtb \ > sun8i-r40-bananapi-m2-ultra.dtb \ > + sun8i-s3-lichee-zero-plus.dtb \ > sun8i-t3-cqa3t-bv3.dtb \ > sun8i-v3s-licheepi-zero.dtb \ > sun8i-v3s-licheepi-zero-dock.dtb \ > diff --git a/arch/arm/boot/dts/sun8i-s3-lichee-zero-plus.dts b/arch/arm/boot/dts/sun8i-s3-lichee-zero-plus.dts > new file mode 100644 > index 000000000000..7d2f6b145190 > --- /dev/null > +++ b/arch/arm/boot/dts/sun8i-s3-lichee-zero-plus.dts > @@ -0,0 +1,8 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2019 Icenowy Zheng > + */ > + > +/dts-v1/; > +#include "sun8i-s3.dtsi" > +#include "sun8i-s3-s3l-lichee-zero-plus.dtsi" Why do we need to mention both the S3 and S3l in the name? What are the differences between the two, and why do you need to share a DTSI? > diff --git a/arch/arm/boot/dts/sun8i-s3-s3l-lichee-zero-plus.dtsi b/arch/arm/boot/dts/sun8i-s3-s3l-lichee-zero-plus.dtsi > new file mode 100644 > index 000000000000..2677d319fb29 > --- /dev/null > +++ b/arch/arm/boot/dts/sun8i-s3-s3l-lichee-zero-plus.dtsi > @@ -0,0 +1,46 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2019 Icenowy Zheng > + */ > + > +#include > + > +/ { > + aliases { > + serial0 = &uart0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reg_vcc3v3: vcc3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "vcc3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > +}; > + > +&mmc0 { > + broken-cd; > + bus-width = <4>; > + vmmc-supply = <®_vcc3v3>; > + status = "okay"; > +}; > + > +&uart0 { > + pinctrl-0 = <&uart0_pb_pins>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "otg"; > + status = "okay"; > +}; > + > +&usbphy { > + usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; > + status = "okay"; How can it do OTG if there's no controlable VBUS? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --yaksnqu7g5ezrkwd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXTLpFwAKCRDj7w1vZxhR xapNAP9dsiXgIpZkVO/jpxBXiwqOsd98Hw+9A2BukjEQ/nekDAD/auBrd/oUr8MW Ebo3HGNtd9Zgkdxi7HdmbdxHN6XzIQs= =BhkM -----END PGP SIGNATURE----- --yaksnqu7g5ezrkwd--