Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934140AbeAKUYb (ORCPT + 1 other); Thu, 11 Jan 2018 15:24:31 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:37670 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932516AbeAKUYZ (ORCPT ); Thu, 11 Jan 2018 15:24:25 -0500 X-Google-Smtp-Source: ACJfBoudMhFbZMKWlFm4YHGlGI13nGd2DFytr65xYPzCjRvL/c/nj65oXd4WB70MfQKZq27U7lRMyw== Date: Thu, 11 Jan 2018 14:24:23 -0600 From: Rob Herring To: Icenowy Zheng Cc: Maxime Ripard , Chen-Yu Tsai , Linus Walleij , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH 3/7] pinctrl: sunxi: add support for the Allwinner H6 main pin controller Message-ID: <20180111202423.xslkd7nbejkqvoz6@rob-hp-laptop> References: <20180106042326.46519-1-icenowy@aosc.io> <20180106042326.46519-3-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180106042326.46519-3-icenowy@aosc.io> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sat, Jan 06, 2018 at 12:23:22PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has two pin controllers, one main controller > (called CPUX-PORT in user manual) and one controller in CPUs power > domain (called CPUS-PORT in user manual). > > This commit introduces support for the main pin controller on H6. > > The pin bank A and B are not wired out and hidden from the SoC's > documents, however it's shown that the "ATE" (an AC200 chip > co-packaged with the H6 die) is connected to the main SoC die via these > pin banks. The information about these banks is just copied from the BSP > pinctrl driver, but re-formatted to fit the mainline pinctrl driver > format. > > Signed-off-by: Icenowy Zheng > --- > .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 4 +- > drivers/pinctrl/sunxi/Kconfig | 4 + > drivers/pinctrl/sunxi/Makefile | 1 + > drivers/pinctrl/sunxi/pinctrl-sun50i-h6.c | 679 +++++++++++++++++++++ > 4 files changed, 687 insertions(+), 1 deletion(-) > create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-h6.c > > diff --git a/Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt > index 09789fdfa749..4523e658b9f2 100644 > --- a/Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt > +++ b/Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt > @@ -27,6 +27,7 @@ Required properties: > "allwinner,sun50i-a64-pinctrl" > "allwinner,sun50i-a64-r-pinctrl" > "allwinner,sun50i-h5-pinctrl" > + "allwinner,sun50i-h6-pinctrl" > "nextthing,gr8-pinctrl" > > - reg: Should contain the register physical address and length for the > @@ -39,7 +40,8 @@ Required properties: > > Note: For backward compatibility reasons, the hosc and losc clocks are only > required if you need to use the optional input-debounce property. Any new > -device tree should set them. > +device tree should set them. For the pin controllers on Allwinner H6 SoC, > +there's no APB bus gate, and the "apb" clock should be omitted. This should be with the clocks prop definition. Rob