From patchwork Thu Jul 5 03:11:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 939620 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=csie.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41LjYg13wpz9s2R for ; Thu, 5 Jul 2018 13:11:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753123AbeGEDLN (ORCPT ); Wed, 4 Jul 2018 23:11:13 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:34880 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753074AbeGEDLL (ORCPT ); Wed, 4 Jul 2018 23:11:11 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 6FB495FCCB; Thu, 5 Jul 2018 11:11:07 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Lee Jones Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Icenowy Zheng Subject: [PATCH v2 0/5] arm64: allwinner: h6: Enable AXP805 PMIC on Pine H64 Date: Thu, 5 Jul 2018 11:11:01 +0800 Message-Id: <20180705031106.344-1-wens@csie.org> X-Mailer: git-send-email 2.18.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi everyone, This series enables the AXP805 PMIC found on the Pine64 Pine H64 board. The AXP805 seems to be identical to the AXP806 when comparing datasheets. The Pine H64 uses the PMIC in stand-alone or "self-working" mode, using the I2C interface. Neither features are currently supported. This series adds support for them, and then adds the PMIC to the device tree. Changes since v1: - Mentioned "self-working mode" in device tree commit message - Shortened one line mfd cell into just one line - Dropped unrelated pinctrl change - Collected tags from Rob, Icenowy and Lee Patch 1 adds a new device tree property to describe the self-working mode for the AXP806. Patch 2 adds support for the newly added property to the driver. Patch 3 adds support for the using AXP806 with I2C. Patch 4 converts raw clock/reset indices for the H6 R_CCU currently found in the device tree to macros defined as part of the device tree bindings. Patch 5 adds the PMIC and its regulators to the Pine H64 device tree. First three patches should go in through Lee's mfd tree. We'll take the other two through the sunxi tree. Please have a look. Regards ChenYu Chen-Yu Tsai (4): dt-bindings: mfd: axp20x: Add "self-working" mode for AXP806 mfd: axp20x: Add self-working mode support for AXP806 mfd: axp20x: Support AXP806 in I2C mode arm64: dts: allwinner: h6: Use macros for R_CCU clock and reset indices Icenowy Zheng (1): arm64: dts: allwinner: h6: enable AXP805 PMIC on Pine H64 .../devicetree/bindings/mfd/axp20x.txt | 7 +- .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 109 ++++++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 +- drivers/mfd/axp20x-i2c.c | 2 + drivers/mfd/axp20x.c | 30 ++++- 5 files changed, 148 insertions(+), 8 deletions(-) Acked-by: Maxime Ripard