Received: by 10.192.165.148 with SMTP id m20csp2177228imm; Thu, 3 May 2018 11:41:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpw0BOFVpH9d355vN3qVkGFZdKrQ/bR9b/FNxCfBvzww14MujyLR9UXQ18zupZ/Rj1xV9o0 X-Received: by 2002:a63:3706:: with SMTP id e6-v6mr7932375pga.281.1525372862870; Thu, 03 May 2018 11:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525372862; cv=none; d=google.com; s=arc-20160816; b=mQ5jQhKB109Z8WSX1peFO5KsqHOpw52q0wsvtCyQLfb6ZtCIqC7GMKYulNZPT6GMf9 fD4JMdLQEeF9l9aP/YHyRXWQLKJ/cR8kRAH1v+zG6exnbljlf/cy31rZDxutGVtU+VL0 mPtv/wYKennBEiasu9VBglqR5Do1wZu9viOpymj2Fa9vvLbKbc7giaScdThRk/S/2osA 1LexQEhinR0BN5/9KO5HOVvq0jFExkPUFTkuuYYR3GRr37/rfYBqbs0kirHkLsVz54a5 QguBTadZL2fzRS4/vXV9rP5q8EJj64V8VoWa/Xp8K2l0eDczX7kUOVBx/huNK19xjIFw x+iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=l0oWUwwyN4oSzHwpE8WYjgSg7FVahGGSXd2c/h9JQuo=; b=wfIxTrqQDZvUX+M6u+kKgL+WJwi3/IHBKeSJtlfIG3dp9uiUtnBZAowxSzEprA7RBS CsA13e5GY/+HxkX/0xR1laSw/RxlLAm5r/fbIGYRNty85lDXy65OyiidRfHV6pr86nDd 6TzhqFbuI00l4T1mcwWti5g9wMe39Bk5N9CTBCigTEvI/8t11QfpEkRNpWpCs5vtn7yH RjXYT1/xU9al3i+Z2eDrsGfQ7WlI0PAqV/xKJtc2RsoIGK1i5ox61RfR1pQKBGjMslwo zCETKoGgM+j4hyVJCCFkKVu68PAPb1+J5sj+EI0bAVZYpeuba70rVRKqpwoatcCG1LIV MNEw== 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 x4si5057484pfm.110.2018.05.03.11.40.48; Thu, 03 May 2018 11:41:02 -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 S1751476AbeECSkD (ORCPT + 99 others); Thu, 3 May 2018 14:40:03 -0400 Received: from hermes.aosc.io ([199.195.250.187]:35809 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbeECSj6 (ORCPT ); Thu, 3 May 2018 14:39:58 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 8465B418F3; Thu, 3 May 2018 18:39:46 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij Cc: 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, Icenowy Zheng Subject: [PATCH 0/7] Allwinner H6 R_{PIO,INTC,I2C} support Date: Fri, 4 May 2018 02:38:40 +0800 Message-Id: <20180503183847.11046-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for Allwinner H6's R_{PIO,INTC,I2C} peripherals. They are in the "CPUS" power domain, powered by VDD-CPUS rather than VDD-SYS. R_PIO controls the PL/PM GPIO banks, R_INTC controls NMI, and R_I2C controls the I2C at PL0/1. A PCF8563 RTC is attached on R_I2C on Pine H64, which is added to the device tree. An AXP805 (a variation of AXP806 with different default value customization) is attached on the bus too, however as its driver currently lacks self-work mode support, it will be activated in another patchset. In order to support R_{PIO,I2C}, a PRCM CCU driver is introduced. As the PRCM clock part is totally different with older SoCs (from A31 to H5), the driver for H6 is a new one, not reusing the old code. Icenowy Zheng (7): clk: sunxi-ng: add support for H6 PRCM CCU arm64: allwinner: h6: add PRCM CCU device node pinctrl: sunxi: add support for H6 R_PIO pin controller arm64: allwinner: h6: add node for R_PIO pin controller arm64: allwinner: h6: add R_INTC interrupt controller arm64: allwinner: h6: add R_I2C controller arm64: allwinner: h6: add PCF8563 RTC on Pine H64 board .../devicetree/bindings/clock/sunxi-ccu.txt | 3 +- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 10 + arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 52 ++++++ drivers/clk/sunxi-ng/Kconfig | 5 + drivers/clk/sunxi-ng/Makefile | 1 + drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 207 +++++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h | 19 ++ drivers/pinctrl/sunxi/Kconfig | 4 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c | 128 +++++++++++++ include/dt-bindings/clock/sun50i-h6-r-ccu.h | 24 +++ include/dt-bindings/reset/sun50i-h6-r-ccu.h | 17 ++ 13 files changed, 471 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c create mode 100644 include/dt-bindings/clock/sun50i-h6-r-ccu.h create mode 100644 include/dt-bindings/reset/sun50i-h6-r-ccu.h -- 2.15.1