From patchwork Thu Oct 4 19:34:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Oskari_Lemmel=C3=A4?= X-Patchwork-Id: 10626545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D0AB174A for ; Thu, 4 Oct 2018 19:37:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06D962963A for ; Thu, 4 Oct 2018 19:37:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC4A42963E; Thu, 4 Oct 2018 19:37:04 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 6F8632963B for ; Thu, 4 Oct 2018 19:37:04 +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=iuLECIndfSefwEtCeZXD6pM5b9iDiz8R8JGxlkzdl84=; b=qP0Rwcrja3aBQselcZSJyND6d7 q4Kym106M0DElv3mO/iTssudg6vU99EcW4LHzt2lHfo7boQjjxAOqz96KJteOa+dY3xm7Oiz1EEiL XYzX6M0TBI7SWHqTGl1v8rv8tqGXbyIda/98tAbcut58CCAZygtvb3zgcYJhtf5rgm8GrBPS57hFZ ooq4pNRHYeJJtAw4RnxqGBxDf4qwUiZfmapMSrm5v/Lu5OJsFvJ2gWj8sUTNAXvH8p++4wttQ1Mdv BYNPSEYI8bWXtZe5yj6Dd5vg7RRE3Tx/zi9sz0o7t7r3pjySQdtz5HUwSXzg3wJSKuuNERbD7Ggo9 CJX8NrZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g89Qh-0006Iv-Am; Thu, 04 Oct 2018 19:36:59 +0000 Received: from mail1.kuutio.org ([92.222.216.83]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g89Ol-00046L-Vj for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 19:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 204101FBEE; Thu, 4 Oct 2018 21:34:43 +0200 (CEST) Authentication-Results: mail1.kuutio.org (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=lemmela.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lemmela.net; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received; s=dkim; t=1538681682; x= 1541273683; bh=aui2goVtbIMuvSKHLmP97Y1M6t8ncr2/0qbHdtYYsxU=; b=b JZ/t93aC4E9vh9QKMsgVQcKPz2QYqMqnyfh9BbjW9tdhhVfOBAY4gzQdMLU4evh6 K2cCdvBnmGG8Z7g/bFdOcWClaAlZRib2ykC5EzbfqeeptI2rbuHTdW2HuuoWzhe9 LraiwI9B6rEII+0dUy2dFkQoCykq7+fwGN9AwUKVEOlS4ofAPwhvhJiU6LspfOR+ t9MUdD9h/ENY3g8YAF0IjYWj1NVapOYUUyL4QoTWxPqYR00JZ8YawuFJtnnOBuq2 gIwg6wpivWeHd9JbjyeD3RNhTuKAbipjAN8UQ9ECEIHFOGnemKIsL0qXqAEgfT5k gpG6dbOEkyQ0Lch/eBqJlJftNEHD1gnHZrINi6AYQ7QGQerd6S5KLWTSgy7OxXpp kdLxAmdNnZdYOW3GrUklvFyXJz2VDJTAUdgiaVQXduEvwJlKu7/pLQ29glaXIKgW ICwhbcLM9LmkpBFIV+VnWKp5YJm5oA16vR4bwdM4DqAurQWilfQMIFt3/PP2qL4y ITljYbkX/UpNCwiLKIxs5fj1h3XjGypmw2c7cZ4HUW64TrKtGCva2GZQyKEiMElu z5fMoDCcFinAp5GXoo0oIn5A6lODG3y4lJoz+oENkx9iddZk2bCEyqAWyrCZEPBP h8cw99zHh0/w9jZ23l2hmKHNOqoDITPzfPCM13UR98= X-Virus-Scanned: amavisd-new at kuutio.org Received: from mail1.kuutio.org ([127.0.0.1]) by localhost (mail1.kuutio.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y3vb2HUn1Ozs; Thu, 4 Oct 2018 21:34:42 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 989431FBA4; Thu, 4 Oct 2018 21:34:41 +0200 (CEST) From: Oskari Lemmela To: Maxime Ripard , Sebastian Reichel , Jonathan Cameron , Chen-Yu Tsai , Mark Rutland , Rob Herring , Linus Walleij Subject: [PATCH 1/4] dt-bindings: add compatibles for AXP803 AC and battery power supplies Date: Thu, 4 Oct 2018 22:34:07 +0300 Message-Id: <20181004193410.7265-2-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181004193410.7265-1-oskari@lemmela.net> References: <20181004193410.7265-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_123500_332943_CA268BB7 X-CRM114-Status: GOOD ( 13.66 ) 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, Lars-Peter Clausen , linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Quentin Schulz , Oskari Lemmela , Peter Meerwald-Stadler , Hartmut Knaack , Lee Jones , 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 AXP803 PMIC is register compatible with AXP813. AXP803/AXP813 are capable to limit input current and supply voltage. Signed-off-by: Oskari Lemmela --- Documentation/devicetree/bindings/gpio/gpio-axp209.txt | 3 ++- Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 3 ++- .../devicetree/bindings/power/supply/axp20x_ac_power.txt | 4 ++++ .../devicetree/bindings/power/supply/axp20x_battery.txt | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt index fc42b2caa06d..da3c0efb5e76 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt @@ -11,6 +11,7 @@ This driver employs the per-pin muxing pattern. Required properties: - compatible: Should be one of: - "x-powers,axp209-gpio" + - "x-powers,axp803-gpio" - "x-powers,axp813-gpio" - #gpio-cells: Should be two. The first cell is the pin number and the second is the GPIO flags. @@ -67,7 +68,7 @@ GPIO0 | gpio_in, gpio_out, ldo, adc GPIO1 | gpio_in, gpio_out, ldo, adc GPIO2 | gpio_in, gpio_out -axp813 +axp8x3 ------ GPIO | Functions ------------------------ diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt index 7a6313913923..247616099171 100644 --- a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt @@ -4,6 +4,7 @@ Required properties: - compatible: should be one of: - "x-powers,axp209-adc", - "x-powers,axp221-adc", + - "x-powers,axp803-adc", - "x-powers,axp813-adc", - #io-channel-cells: should be 1, @@ -39,7 +40,7 @@ AXP22x 2 | batt_chrg_i 3 | batt_dischrg_i -AXP813 +AXP8x3 ------ 0 | pmic_temp 1 | gpio0_v diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt index 826e8a879121..97276a71e961 100644 --- a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt +++ b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt @@ -4,6 +4,8 @@ Required Properties: - compatible: One of: "x-powers,axp202-ac-power-supply" "x-powers,axp221-ac-power-supply" + "x-powers,axp803-ac-power-supply" + "x-powers,axp813-ac-power-supply" This node is a subnode of the axp20x PMIC. @@ -13,6 +15,8 @@ reading ADC channels from the AXP20X ADC. The AXP22X is only able to tell if an AC power supply is present and usable. +The AXP8X3 is able to limit current and supply voltage + Example: &axp209 { diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt b/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt index 41916f69902c..780ebd7e3b84 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" "x-powers,axp813-battery-power-supply" This node is a subnode of its respective PMIC DT node.