From patchwork Wed Feb 22 19:41:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rask Ingemann Lambertsen X-Patchwork-Id: 9587439 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C0E06051E for ; Wed, 22 Feb 2017 19:51:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F28F628673 for ; Wed, 22 Feb 2017 19:51:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6CEF2867D; Wed, 22 Feb 2017 19:51:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 816C728673 for ; Wed, 22 Feb 2017 19:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date:To:Subject: From:References:In-Reply-To:Message-Id:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KLQAW/5rt+GNWSPwVOJrkJlXLK9r9o6FDry+lRHpOXE=; b=QZA25Xbj5+RD+Z1524qfvK0dop risF6/VNHLn1Y6brellIpAkCbNy9oTMbnIBgJoai29u/58+iYU3xud7yuTuoYQJxIZ26T/2qHf4VY 8AmyqoWLth5+3/cMZz56A3O5IJOI6xZML+TBO3L/ozTavddOs1Ja44zXw9qs0VxQEAPUtD2P27RtV G0rmO8wGqKSAqS/wpLPEIj4zrpXl7W8EPiiB228a2QHRQ0+NE9lu9XZjpIRhosO+fQ/MN7VZxIeV1 eqiSgzN1Zb0h+I7Pyr02RfYVqTcF5ORlJNiTJTztaSsjtil3rHO9PETac0LgVdHBaabXmoR1x0Jhk 9OxTtACg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgcwz-0006wW-B2; Wed, 22 Feb 2017 19:51:45 +0000 Received: from customer-2a00-7660-0ca7-0000-b82e-b0d9-6ee6-cf12.ip6.gigabit.dk ([2a00:7660:ca7:0:b82e:b0d9:6ee6:cf12] helo=customer-2a00-7660-0ca7-0000-0000-0000-0000-0b1b.ip6.gigabit.dk) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgcwv-0006vP-DU for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2017 19:51:43 +0000 Received: by customer-2a00-7660-0ca7-0000-0000-0000-0000-0b1b.ip6.gigabit.dk (Postfix, from userid 1000) id BB3013185B0; Wed, 22 Feb 2017 20:41:02 +0100 (CET) Message-Id: <396866a490b6056c60e93d862656bb90daedab98.1487791328.git.rask@formelder.dk> In-Reply-To: References: From: Rask Ingemann Lambertsen Subject: [PATCH v2 1/2] dts: mfd: axp20x: Add "xpowers, master-mode" property for AXP806 PMICs To: Chen-Yu Tsai , Lee Jones , Rob Herring , Mark Rutland Date: Wed, 22 Feb 2017 20:41:02 +0100 (CET) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170222_115141_644005_44CC7C26 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP commit b101829a029a ("mfd: axp20x: Fix AXP806 access errors on cold boot") was intended to fix the case where a board uses an AXP806 in slave mode, but the boot loader leaves it in master mode for lack of AXP806 support. But now the driver breaks on boards where the PMIC is operating in master mode. To let the device tree describe which mode of operation is needed, this patch introduces a new property "xpowers,master-mode". Fixes: 204ae2963e10 ("mfd: axp20x: Add bindings for AXP806 PMIC") Signed-off-by: Rask Ingemann Lambertsen Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- Changes from v1 to v2: Changed the commit message such that Fixes: points to the commit which introduced the bindings for the AXP806 because the property should have been included from the beginning of the AXP806 support. Documentation/devicetree/bindings/mfd/axp20x.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree/bindings/mfd/axp20x.txt index 8f3ad9a..b41d260 100644 --- a/Documentation/devicetree/bindings/mfd/axp20x.txt +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt @@ -28,6 +28,9 @@ Optional properties: regulator to drive the OTG VBus, rather then as an input pin which signals whether the board is driving OTG VBus or not. +- x-powers,master-mode: Boolean (axp806 only). Set this when the PMIC is + wired for master mode. The default is slave mode. + - -supply: a phandle to the regulator supply node. May be omitted if inputs are unregulated, such as using the IPSOUT output from the PMIC.