From patchwork Wed Sep 20 15:18:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9961655 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 909F060208 for ; Wed, 20 Sep 2017 15:19:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81FBE28867 for ; Wed, 20 Sep 2017 15:19:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76E35288A9; Wed, 20 Sep 2017 15:19:44 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 CCAB828867 for ; Wed, 20 Sep 2017 15:19:43 +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:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=NBxeahPVnKyeCKKQTwMZ77PiFVIpmufD/p+DXSRILvg=; b=oivoZFGQOJVhUaHtzhJDPrqgYJ cGoQEezD7BHMka3j6rm35wfu/kK53zcGM1E1chRtMLCUjDMlb+s7yabKRswrwzfVg5Taw46d4vyxY hIJlET0TkoXHLpK28PrdTZ+7ACipjGpsT+oBGuka1e7NVSkkaMx7ylK46RQyMjR8TvEYTtm5nCXAg EkhxSvv/BBLz5y4Hag7+9nsPPj1lKDL/DxeIbQZ2vnvD2Dl8tm1jJ5nm6G8bhos3A8r8gWOeIVUxd XPKFqteQrtb11Ybr2y/fXPR2ACK1iauTzXytGJuuzRu4Szn6UCg4R93lg8P78AivoxQQFbE5ucdD7 5JanUwiA==; 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 1dugmo-0003Qh-01; Wed, 20 Sep 2017 15:19:38 +0000 Received: from nov-007-i623.relay.mailchannels.net ([46.232.183.177]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dugmL-0002w4-Jk for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2017 15:19:28 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3CEA5107FC6; Wed, 20 Sep 2017 15:18:43 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.147.55]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 5B1CA108C68; Wed, 20 Sep 2017 15:18:42 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.63.242]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.14); Wed, 20 Sep 2017 15:18:43 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Bottle-Celery: 04664411182a9985_1505920723119_3877939590 X-MC-Loop-Signature: 1505920723119:2248216605 X-MC-Ingress-Time: 1505920723118 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id B86F947941; Wed, 20 Sep 2017 15:18:36 +0000 (UTC) From: Icenowy Zheng To: Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron , Lee Jones , Quentin Schulz Subject: [RFC PATCH 1/7] dt-bindings: add compatibles for AXP803 Battery/USB power supplies Date: Wed, 20 Sep 2017 23:18:08 +0800 Message-Id: <20170920151814.22461-2-icenowy@aosc.io> In-Reply-To: <20170920151814.22461-1-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_081910_890200_401BAE60 X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. 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-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 The AXP803 PMIC has different Battery and USB power supplies than the AXP series PMICs already supported by the kernel, but the AC power supply is the same as AXP22x (as it can only detect the present/online state of the AC power supply on both AXP22x and AXP803). Add compatible strings for the AXP803 Battery/USB power supplies. For AC power supply the one on AXP803 is compatible with the one on AXP22x. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 1 + Documentation/devicetree/bindings/power/supply/axp20x_usb_power.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt b/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt index c24886676a60..091e5471a8c6 100644 --- a/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt +++ b/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt @@ -4,6 +4,7 @@ Required Properties: - compatible, one of: "x-powers,axp209-battery-power-supply" "x-powers,axp221-battery-power-supply" + "x-powers,axp803-battery-power-supply" This node is a subnode of the axp20x/axp22x PMIC. diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_usb_power.txt b/Documentation/devicetree/bindings/power/supply/axp20x_usb_power.txt index ba8d35f66cbe..f30e3bf8d23f 100644 --- a/Documentation/devicetree/bindings/power/supply/axp20x_usb_power.txt +++ b/Documentation/devicetree/bindings/power/supply/axp20x_usb_power.txt @@ -4,6 +4,7 @@ Required Properties: -compatible: One of: "x-powers,axp202-usb-power-supply" "x-powers,axp221-usb-power-supply" "x-powers,axp223-usb-power-supply" + "x-powers,axp803-usb-power-supply" The AXP223 PMIC shares most of its behaviour with the AXP221 but has slight variations such as the former being able to set the VBUS power supply max