Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4479777ybi; Tue, 11 Jun 2019 07:20:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAWSSXLBSgkzD6CjCszs996hmrHf2TAHnrcDzHFAyP0pj+g+FVYI4lv+rWVm+oUw2T8YJh X-Received: by 2002:a17:902:824:: with SMTP id 33mr78473240plk.29.1560262806876; Tue, 11 Jun 2019 07:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560262806; cv=none; d=google.com; s=arc-20160816; b=0YS9J4OTKYM8EJiVKywDfkzJIJwZ1sbeb9IxVROE0cPXYJO0ytVZm1y3j2uYeLfMhr pb67yC9cH73G/QHEO+RfaDos4krQK2OmsK+uKbW5VoaHd3y7ikZHRt4bODlgBxdibaRS fpFtBzUJNrO8CIiaMZHm0bxweSdbCCoxxBec7Npl3vfMfShPwOahgCsm2XZGmGDJv/rN mseMnXpz8EJ7ygIpVocVuaeJYHqhF+HRFGFREkBgHj2btgmdVL7h9b+2p1fsUD0YgcIM 2Xqjxt8kyhRELM+YJrtQdZ6tdxiuYyPcXGN1/NhREyT+8hFOL8cxxDkphXATV3WUBALj wRdg== 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=o9KAwe8vO0x16ZmlouMjoA+cB60zbBRPXO2vU+d12iQ=; b=r+zNJ+J7xjlzhOyCpU7z5RKb+0es+UUq82EmVQxDF4gaYZZXQ+/727SeTfDfZxSvTw P1xBZU8W9iZdsXF14cWS6puVcim1ehtXzwYpIgd6jDxO8bESV8TjprU8G/Qh0kUJxcEZ q8vHF2E64wzp5aeX6mlukHAhwnsagaxK3MogN4ZfImMdxrFxCNKp1NBuN/J06Nm+Mj9h nVqNUXDewclSV6S0Qp+LGoraJeco860z4QvAC+aV4qVhEmFe7+LO+O7WfIp6LnJvuwLO z2LPCOTSF475xyYOnkyD7TGjaO5WcUkbIZrFHF+rWkq/D1NAvlLiGmERDtL7N6FvnByQ Fdjg== 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 z21si12279703plo.386.2019.06.11.07.19.51; Tue, 11 Jun 2019 07:20:06 -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 S2390359AbfFKOTn (ORCPT + 99 others); Tue, 11 Jun 2019 10:19:43 -0400 Received: from hermes.aosc.io ([199.195.250.187]:33444 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388789AbfFKOTl (ORCPT ); Tue, 11 Jun 2019 10:19:41 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id DB191822A7; Tue, 11 Jun 2019 14:12:51 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij Cc: 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, Icenowy Zheng Subject: [PATCH v2 11/11] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3 Date: Tue, 11 Jun 2019 22:09:40 +0800 Message-Id: <20190611140940.14357-12-icenowy@aosc.io> In-Reply-To: <20190611140940.14357-1-icenowy@aosc.io> References: <20190611140940.14357-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 --- New patch in v2. arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun8i-s3-lichee-zero-plus.dts | 8 ++++ .../dts/sun8i-s3-s3l-lichee-zero-plus.dtsi | 39 +++++++++++++++++++ 3 files changed, 48 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 5559028b770e..2b5e6a1d20ff 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1110,6 +1110,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" 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..bb148e796df7 --- /dev/null +++ b/arch/arm/boot/dts/sun8i-s3-s3l-lichee-zero-plus.dtsi @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2019 Icenowy Zheng + */ + +#include "sunxi-common-regulators.dtsi" + +/ { + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&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"; +}; -- 2.21.0