Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1014552ybd; Sat, 22 Jun 2019 21:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeRvOsjXQznLufrCoQuct7rNGMtw0tFjZiEXjllWbrOldv+X9yiQsY0X5wWcBAGyxFtQwY X-Received: by 2002:a17:902:d916:: with SMTP id c22mr10298184plz.195.1561264746326; Sat, 22 Jun 2019 21:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561264746; cv=none; d=google.com; s=arc-20160816; b=WC9bQ6zqc79q9sc54D4ph5RELEfDv12HtOvEcPHTBDFDVynHsvfjZsuI7SFfHaOrAQ MSj4Y8p5iyoLvKimis/ZskUjV/3C5ZvqdGkNU1mnUulo2QKWlDVs8Oli5cWYCNYx9Aqh 6PcWVl56I3D0FlEl7N45uuC2gWLk5/5/DTStzo8t4irVmTPImx2iJ28yjou54weKzdCE dC3sOaL+nDEM+3jp4p+NtBE5Wd6okRiIewoxzABEjy1FjBwAybQkIH0pkpjL9EW2Vr+M mH4/N4bDDQ9sTbhz0FPubtWkh1RD1gp653djHZnPkqVj9qCb7n2OqKcUK2eoQXknK7Rw 7Bxg== 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 :message-id:date:subject:cc:to:from; bh=QDrLXGe8mWxQ7mt66eenenc7rR4Q5FcUP2VOhLPvEB8=; b=CELpKiE9yZ5Kazk03st0DeMuAi+cKm4mlUr+tJRpE0aiNUeYqDovmuv30Y9sM1k8fT P5pVwrlpRmLyhLekvxgV2Pwb0Q7m+ja3rK8PiuUa2uOUdP6GfDsv46OZN4I+P7fKoFlX dNRzPY4s9JLIjw9gh0l3hkxQSmb9ktKD1kgobLKjHfbaz9Mcbf71keOx7OCfbwr4lel+ oqfkStm0/viBqfXtyXOJoEdfQCegZUFAKR7TzPvEx8SqTxSyW/rNMo1l+IKFl53mehD7 KZY6mX7Qp+LZRMZ6Cs0meELmXOYw2aZrbQzZVZnPvooOcpBBaMkvJxxlyNXye05o2p6S vtdw== 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 21si7216107pfo.138.2019.06.22.21.38.50; Sat, 22 Jun 2019 21:39: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 S1726341AbfFWEir (ORCPT + 99 others); Sun, 23 Jun 2019 00:38:47 -0400 Received: from hermes.aosc.io ([199.195.250.187]:52095 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbfFWEir (ORCPT ); Sun, 23 Jun 2019 00:38:47 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 7AB836212D; Sun, 23 Jun 2019 04:38:42 +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 v3 0/9] Support for Allwinner V3/S3L and Sochip S3 Date: Sun, 23 Jun 2019 12:37:52 +0800 Message-Id: <20190623043801.14040-1-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset tries to add support for Allwinner V3/S3L and Sochip S3. Allwinner V3/V3s/S3L and Sochip S3 share the same die, but with different package. V3 is BGA w/o co-packaged DDR, V3s is QFP w/ DDR2, S3L is BGA w/ DDR2 and S3 is BGA w/ DDR3. (S3 and S3L is compatible for pinout, but because of different DDR, DDR voltage is different between the two variants). Because of the pin count of V3s is restricted due to the package, some pins are not bound on V3s, but they're bound on V3/S3/S3L. Currently the kernel is only prepared for the features available on V3s. This patchset adds the features missing on V3s for using them on V3/S3/S3L, and add bindings for V3/S3/S3L. It also adds a S3 SoM by Sipeed, called Lichee Zero Plus. Icenowy Zheng (9): pinctrl: sunxi: v3s: introduce support for V3 clk: sunxi-ng: v3s: add the missing PLL_DDR1 dt-bindings: clk: sunxi-ccu: add compatible string for V3 CCU clk: sunxi-ng: v3s: add Allwinner V3 support dt-bindings: vendor-prefixes: add SoChip ARM: sunxi: dts: s3/s3l/v3: add DTSI files for S3/S3L/V3 SoCs dt-bindings: vendor-prefixes: add Sipeed dt-bindings: arm: sunxi: add binding for Lichee Zero Plus core board ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3 .../devicetree/bindings/arm/sunxi.yaml | 5 + .../clock/allwinner,sun4i-a10-ccu.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 4 + arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun8i-s3-lichee-zero-plus.dts | 8 + .../dts/sun8i-s3-s3l-lichee-zero-plus.dtsi | 44 ++ arch/arm/boot/dts/sun8i-s3.dtsi | 6 + arch/arm/boot/dts/sun8i-s3l.dtsi | 6 + arch/arm/boot/dts/sun8i-v3.dtsi | 14 + drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 244 ++++++++- drivers/clk/sunxi-ng/ccu-sun8i-v3s.h | 6 +- drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c | 473 ++++++++++++++---- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 2 + include/dt-bindings/clock/sun8i-v3s-ccu.h | 4 + include/dt-bindings/reset/sun8i-v3s-ccu.h | 3 + 15 files changed, 704 insertions(+), 117 deletions(-) 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 create mode 100644 arch/arm/boot/dts/sun8i-s3.dtsi create mode 100644 arch/arm/boot/dts/sun8i-s3l.dtsi create mode 100644 arch/arm/boot/dts/sun8i-v3.dtsi -- 2.21.0