Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1846906ybi; Sat, 27 Jul 2019 20:18:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdCZ8i0yjf3V55fTnfMP5KGLvwvagxMyOGYv+ycMMoLI1wRamnBclyuMFfwc3xuDBX77K8 X-Received: by 2002:a62:187:: with SMTP id 129mr30167289pfb.128.1564283926226; Sat, 27 Jul 2019 20:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564283926; cv=none; d=google.com; s=arc-20160816; b=Zu0qcw0zzU4m3fGE7EaG3DMvu0OhKCEuKbfysdCalUC4Sxj2YWnXsk9dM0rNbqBQV/ yksHrWCjcIm+KTf3IX9hvbhbaWOFd/VMhTwxSYnzF5k5Q60awJEXJYqqQ7r+SnPPCFOC eJOO5mp4ePH76VDokTu8vDz8sMoGjIHmMj8hHSa/iAZxmKjJ0/mb3Tu3N8A9nehQnQ+D LlxMmNY8OZcOgimB0syUt0LmbQJZaPTA5Ct4ADnoDOcdyCEL30iev3aBUW7FghzOlTgO iUeOOZE4obEhOKiKnpqKn5smIzGv8op5fZFWFHeMh4oTywn3PLrQO5rJQSqxW7PyM65G dhfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nJxYAD/Dm/Uog6PgPL6BbFM84dGUHpOWG5/tOMHLk7A=; b=uzc17+rnLk4HuPrsho12YJa5Hx0dZTK8+7XQEuGbrno1Y3XvviWUpuFNXV6HPQaJe7 OxAvLUzfYOMOh2TDxTwX48R86cyo6McV3qk5j1LO0OOJtbSrRWSD7z+vt1AuhmZpAgma bDo7jDh8WtLRd7K0evzZOvvtjM1KSQHNGI5Rt+/CICmxaMBxkAiCGMVqruHDH4C635OO 3GRSY2VXTYEjFYGInq5I5tkbX8BOqrabsG5ANVq/Y12GlQr9ogHb0aHn5pUpKanCbawC fkDmjVSCZrtWuawdeZoPAk0NJqjS0Vi2ze/0ZfXBjtZM+zPCwfbnt+/Z544rgKJ6nxr4 MF+Q== 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 23si14740207pgh.298.2019.07.27.20.18.31; Sat, 27 Jul 2019 20:18:46 -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 S1726393AbfG1DOc (ORCPT + 99 others); Sat, 27 Jul 2019 23:14:32 -0400 Received: from hermes.aosc.io ([199.195.250.187]:52471 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfG1DOb (ORCPT ); Sat, 27 Jul 2019 23:14:31 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id C23D86F928; Sun, 28 Jul 2019 03:14:27 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij Cc: 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, Icenowy Zheng Subject: [PATCH v5 6/6] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3 Date: Sun, 28 Jul 2019 11:12:27 +0800 Message-Id: <20190728031227.49140-7-icenowy@aosc.io> In-Reply-To: <20190728031227.49140-1-icenowy@aosc.io> References: <20190728031227.49140-1-icenowy@aosc.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v5: - Added missing compatible string. - Set default USB role to "peripheral". - Switch to use V3 DTSI. No changes in v4. Changes in v3: - Drop common regulator DTSI usage and added vcc3v3 regulator. Patch introduced in v2. arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun8i-s3-lichee-zero-plus.dts | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-s3-lichee-zero-plus.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index bef2b6e2392d..ef937988b30e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1120,6 +1120,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..d18192d51d1b --- /dev/null +++ b/arch/arm/boot/dts/sun8i-s3-lichee-zero-plus.dts @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2019 Icenowy Zheng + */ + +/dts-v1/; +#include "sun8i-v3.dtsi" + +#include + +/ { + model = "Sipeed Lichee Zero Plus"; + compatible = "sipeed,lichee-zero-plus", "sochip,s3", + "allwinner,sun8i-v3"; + + 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 = "peripheral"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; -- 2.21.0