From patchwork Tue Oct 23 18:53:20 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: 10653575 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 1455E14BD for ; Tue, 23 Oct 2018 19:47:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED21C2A352 for ; Tue, 23 Oct 2018 19:47:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0E942A359; Tue, 23 Oct 2018 19:47:01 +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 799F52A352 for ; Tue, 23 Oct 2018 19:47:01 +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=T6aNQ4pVqHjqNysvff3LqlqFCoFiJXAxq5lID+1AHu8=; b=TWJRdeNzTrqwxdgMREK/WCU/34 cjWj0zGoUDIxNxl7ULevFonBdN/IG9N/3nzvH5etPGS/i2LsxEr3gqD4HZ0NZ44us8OMWx8/W21An vnVEwNi5g8M4Vp4NbUbxu0eYhGnqUmphFopIFnrJdhq69Seho8uhHkqC2QrRXIey9l0euROOmiWYs OEASwNANsBxyvNxV9Zs4tpALKmUPPFjMBJFJWsflUU19P3+TYLDi7gSZaj7d8eyYCREWOR/zfXx2p h0qlunIx1NMcBkG4ovUuLnfRw3BW4jShQZwnv1SU/VuIorJ3LHAf2eOmgprXMqPUlZjmBgAys5bb6 YJ2G/9Pg==; 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 1gF2dl-0006HT-IF; Tue, 23 Oct 2018 19:46:57 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2di-0006HC-H2 for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:46:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wPdpU+0o5XDtt92ysV7ruDR2ZBWA/u0z2slJCAaENmc=; b=gYdcdBppgwhlLt/v1hh44fFA0 dE2QmdH9EDbodjIav737B86xAGB2ejqcxobp+jQQlBC4l3Hr/pPTRztLmUbO/N27o8ZpKFebtnzJb mYVdUt4B/VCpRZWOrLqCh0NPlfWA8NWhYwPfVjc7PZ5rs310IMVarzv/q1YmUQx/hyYJhwJ0t+RdC naTSBjfZBbRnYq03blf2ttdsfQMzBq28utHR0QY1R6sOIvMR28FlhQ7Nz6OEaCi4ETUSANeVttn6Z N2/yKYENAR2OTVAlhm9EaxBaBOoe+7mQTkDYU36k6GXhesSuRkL+Re9fclyZVo61dhWzKA1HntWFm gp4ObMzow==; Received: from mail1.kuutio.org ([92.222.216.83]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1oq-0003nI-4p for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 634881F905; Tue, 23 Oct 2018 20:54:05 +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=1540320844; x= 1542912845; bh=j3Vl2TNmgvtTSUry15fj4Q/WOZ4rGD+1mEVBj65G2EA=; b=r nDGV2mKCRwEHJRvK0sc8FtP+Ns1Zt05hHAOdnszDRJ8rscqhwqGpX+z0kHHEB3OH 0PHkGAeqydLSyVBc5PbogTZ1GVCilpuhbSd3RPrOh398uWgMSSx3eDaiL+ULolIE jsDHsxBYLS/2kXtUWGUaGAox/suBuAajoLl8dipe/UVBzFO3YqWCj4bU6j03fTyQ HHWzL3PggMoDY1quYdQHwh7yWrLEDxVW2qCdcMW+KLlZ17R7MN2RXEXUQuOdDt/h j1fzW7JG7gDzPUdWBQPxEfUvszPw+DDiOMmrEui8yvGxvEDADxiHRxF/gAbStjIq n+fQrBo3LEnHKS2z56a1IrfKKLZG2jCUxyhpve78013D1RpQ5bDR/jOwJqJZV+XV s5LZOKFLF5naqctj194A7o6NsCXu8z2pn20qZlCDV28O6c22JJpegmO0BhFrcZ4D SDl5B9ltCU3QrcriwJ8kcZ443R52BNe9RN3lvLTavlFt5U1GS6CNop4I7YJk5CTl vYcANS90/5S04P+jSBGaTRsMIB24G9Bpmn3WaJMWr9N+QPRpAajLMe5AzaOFJJgQ p0AO2NIO4ZNkafGAJU9OHHmRkNa5RED0TkKe9RWzgRE/k41tgxxH9qy5W3Cpd7RN kmUAMj0nPrfij9c7+yTufvM+cLxn9xAzhzlDUjmR5A= 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 qLiMwXuBKNHI; Tue, 23 Oct 2018 20:54:04 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 02D831F99A; Tue, 23 Oct 2018 20:54:02 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 01/11] dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding Date: Tue, 23 Oct 2018 21:53:20 +0300 Message-Id: <20181023185330.10472-2-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145420_385154_E2E9C95D X-CRM114-Status: UNSURE ( 9.07 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 The AXP803/AXP813 AC power supply can limit input current and voltage. Signed-off-by: Oskari Lemmela Reviewed-by: Rob Herring Reviewed-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai Reviewed-by: Sebastian Reichel Tested-by: Vasily Khoruzhick --- .../devicetree/bindings/power/supply/axp20x_ac_power.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt index 826e8a879121..7a1fb532abe5 100644 --- a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt +++ b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt @@ -4,6 +4,7 @@ Required Properties: - compatible: One of: "x-powers,axp202-ac-power-supply" "x-powers,axp221-ac-power-supply" + "x-powers,axp813-ac-power-supply" This node is a subnode of the axp20x PMIC. @@ -13,6 +14,8 @@ reading ADC channels from the AXP20X ADC. The AXP22X is only able to tell if an AC power supply is present and usable. +AXP813/AXP803 are able to limit current and supply voltage + Example: &axp209 { From patchwork Tue Oct 23 18:53:21 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: 10653573 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 ED03314BD for ; Tue, 23 Oct 2018 19:27:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D80F628A7D for ; Tue, 23 Oct 2018 19:27:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA34228D05; Tue, 23 Oct 2018 19:27:08 +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 4AFA028A7D for ; Tue, 23 Oct 2018 19:27:08 +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=0Pe5bRf4jyX2eUl6bDMBBb8SK2IrtvhLdkgxNSlj/RY=; b=tMLGJ/h+Xkx16VWVoya0zRlDZb /iuoboW3UsqI3ir0yKRQ7RK2j3EK6s3piBe2a1Z9JEdvvvGAdYCiNB5O1Ym2f0c6cUyvlKg2epDZG ELgyWHYgcbwStPuq8MoRXPuvmy4graWaFSwymaz+0cCpmCAMrmt1DIJD8P7kScAfVMMm0g35YQBqH IxqIyWMyTqK4lIhMSQFOMVP/VIPTFmT855DD6174rNfWueY8lbPZRono/VFudTtUrY6zvdMKIzG/E IgqXzTn6dNGwTmN9eq/1ZUrYv7SCha1ggdohNaKz05ob2J2TwBKVL16LOrEGRdbYJcu81Ki1hCXDn 7ZOJnjzw==; 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 1gF2KV-0007OR-LR; Tue, 23 Oct 2018 19:27:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2Ju-0006vm-Rr for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:26:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iElLUjmmOOW51byoXuUkFNLLdeI+pgtqT0/EJWDrFLc=; b=tab0YzcSo38yLkV0QEE6Ra586 CXD9XYEDOqwYQQT7Alrrn//Lwz4rg7L2Pcss6pgAZfTZFnapgT+ZaxIZrSGuwiEeyK688s5/lpN9f mtaDJjYtj/cLLeeg2VYHfLgUpAxs2ZUnCwxBb/m+r5jZCOAknm0Zpkm1AdjTeolVUJ7xIBJ8OWlEg 1hijdEM8GwszPS9BdRF1TRCnWY7JJrYESiS+EpjbUrnN/EaYvqMuSMhmrRN2gezltk1AD9Jsa9d44 NoO2IcJbFkLZqr3JVgSYgFG+xhhTTjm7M9/Q9DirL3DZL7hdha/7e7bYy48kpu8sugrMrHaZlGlsk AnUM/2F+g==; Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1oo-0007mX-Mm for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id A70221FB8E; Tue, 23 Oct 2018 20:54:05 +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=1540320844; x= 1542912845; bh=k3hRch9kwYKaig1/554liSX6evfpQRGPH5Lx06DPVFc=; b=S 4ZFqzUXVboMJEr1rfqPU3TbqncDyUcXGKB3T6EwLST9b/GjRy4eZCC7Xh3tloDDX SDNbwS7uldXqE54Vj2mGMoHF1B5WO6kiUMUx5Ij1NAKx86JZf/wqyuCkOLlsa/ZV GS0eAz8eFYyGhIKXLkJBk8bmkNNgrOvrMhOVbfX+BfT7QfNOjKIwZSRTGpsvpJF6 LucyuDGXZieTKop0Q7j6i3rXSfx+i77isIoX7VtzTLrG2dverzeQ1fC3Lo6bGmy0 p+Nv009hLRojMuGenZpB1FsXn0eeFe5M5thjeiDNxz0SxeeqI9lmGegQOaDYknNU /xKSdWzczsj4dhkzRXk6DQ44yMVqF2i2UD3D7eELX5e0BdWTXD985BC6D9fOhG3B wk8GmFZxwfFFxcg0EUCaDrISn0qwqHk+w2wGuiER6gk/5yFG/1n0ImHD6KaTkF65 12D/ozsfXuaJnIgLbncwyQ0urOKp65nzio9rPULwgSH1HlohJsf3bLZtC+C0O4F7 2Lm8NaSx+pYGBWAg579lXuiU7FzBjcHXxaC2DIYFNaRDJgizVES/am5RWATf7COG 0eFO1vj3jjB/SJGR5LXm+W+B24xVjzJUKxkZpI94F/GHDCl6cRejuH9TPkb9Edcw mEQbCTUIPm7w7j3J1MDngC+Y2+lE7UyN8k+gAhfHbM= 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 qAkoHgeLnzrL; Tue, 23 Oct 2018 20:54:04 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 2FCB41F984; Tue, 23 Oct 2018 20:54:04 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 02/11] dt-bindings: power: supply: axp20x: add AXP803 power bindings Date: Tue, 23 Oct 2018 21:53:21 +0300 Message-Id: <20181023185330.10472-3-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_195418_804591_65669FA4 X-CRM114-Status: GOOD ( 12.99 ) 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-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 The AXP803 power supplies are compatible with AXP813, but add specific compatibles for them. Signed-off-by: Oskari Lemmela Reviewed-by: Rob Herring --- .../devicetree/bindings/power/supply/axp20x_ac_power.txt | 1 + .../devicetree/bindings/power/supply/axp20x_battery.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt index 7a1fb532abe5..acdeb4b8f4cc 100644 --- a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt +++ b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt @@ -4,6 +4,7 @@ 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. 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. From patchwork Tue Oct 23 18:53:22 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: 10653591 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 2B2E113A9 for ; Tue, 23 Oct 2018 19:52:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16E0B2A36A for ; Tue, 23 Oct 2018 19:52:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A1582A3A2; Tue, 23 Oct 2018 19:52:12 +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 6A58D2A36A for ; Tue, 23 Oct 2018 19:52:11 +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=3Ajnrxxr6+Xua06rYTr76zRW2+EGRm4m20fdQCDNwMk=; b=fsZLNeulPoSu0XjdjjAJswg8e2 T1MOAc6xFN26O4dDCu4oEszjjpX288NF4pIMGcJOjjSEbAY8Ly03+90UZ/uzPdGphy4NxV6bZqlJL b0EUQdgIeaioXzGcgx2iuE/xIjdsBe5JPNTj0b8FczLZjx66YUZWPrnuPATNaWrYFi/wQ4sh8XRXL Y6+Jhna8Cxli+N7NLYDxTHYfalMAuvz6FMkHXoU7TIe5cQUZflOf8TScgN3Nd+ON0qDh9g8olFIZn NXSVjYjc3KDqmZemDnCkawUZQYJTeYUuFl823bVo0HJDeeDmgKtk45dwUcKRSZWykZPkblubDMY3m w7kYTb6g==; 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 1gF2ic-00016Z-SO; Tue, 23 Oct 2018 19:51:58 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dt-0006HC-2i for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:47:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1GPUILVhG7oUY41egzBH6o1OkoXxYALl6LwmpeGZEXY=; b=yjww8kD3ESIrtpx/shFrjC1x6 5C7OMUBCxvbFVxq0RFcUm8r1UF+RN8KWYH0v1R9YpyFaH9E3Ha5UmJS05jaMDvhMua+N7/dctouz8 qmMs0+HZQbBOYMTeUENDXUDd6otxJB2Z89g3calFUdFcum0hBECKA3i77KPjvYROniOp4AHwOtGIL 3QO3EZEuT+2+rIoXMzxSfn9g4wDqPzsyZaUlCApsC/C64cDaduOhgELeV3IrPu9IYFHlpmRxjL+Yw NOR4ED5QGs9LwV9H5TZPjtVJ8YmO6UaJgw/qqXY/0LPMkpdeBQT0dwQnEKZqe/3hrsz5ctk6AT6Wm mVrnAKTwg==; Received: from mail1.kuutio.org ([92.222.216.83]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1op-0003nJ-Ts for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 8B2491F984; Tue, 23 Oct 2018 20:54:06 +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=1540320845; x= 1542912846; bh=k+kTbGl1n+ueOP3o5mm0IoFq297iGo/lnnK2RBhrLtY=; b=t L8GagX/zVygEwXH/aNXTWCk+XnQLTyYNRMkljuhrjpcM65o/VPVCuxzzN10TpVe/ GEGt5n40utUkn75UPsNbDKyIpURE7c4c0gxnEgN1Ze0aFPh4i2hUSYD1e9JKB5fh qhrg7ImbxS8U5pbIYM02SjCMyZxTyXeBY8LNTz2fE4tJzuX8SHBugspNxr0t+llL vfhkIV1JMm0nILudk8/SBeoqvPz69kjsFVH1DbLdJzCWYRSKf+et7L7u6BiIkcvC Xvz1dTCeTP0YqUUxrRuyMLLGqcqfh4c4vsaKeog6I4OwxqtPoaNrBie0+cEWBgfp rW8H+QlYuDh0QVUCFgevMn0knK10yY+H2cZPxdxR6Q0q5jzHxabxQ3upLpbBI8r+ CCMd2PC+fzY90/8s7leEpcyqAawOL7ah2NwkEO7gaPUospWRJKYv16Ua7ganGZX3 TRvaRlr6e2pdOyQ+Vbk7D0jgFSBLePjBdHk/kK2GwakxaItb4VSPAcpviDAjmn+h ShOMaeRna2fH5bH1Kg5a7bdPMTykaVOM+dMWRLxDaZ/kCfwldAoH+8hW+xsTl5kL uVmlFPWTdKOEvBljbg3G/EJEO1NkTIyWlgv+fOtS+hYsaZJTLjpbT8eog0N649q5 OW+ZRuFvZ2vCNfZ33p5bjhu+OdTlH4vQzq6HzdhbTY= 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 OqTG2bZUFDN8; Tue, 23 Oct 2018 20:54:05 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id F13AA1FB8C; Tue, 23 Oct 2018 20:54:04 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 03/11] dt-bindings: gpio: gpio-axp209: add AXP803 GPIO bindings Date: Tue, 23 Oct 2018 21:53:22 +0300 Message-Id: <20181023185330.10472-4-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145420_076642_01B642E2 X-CRM114-Status: GOOD ( 11.27 ) 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-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 The AXP803 GPIO is compatible with AXP813 GPIO, but add specific compatible for it. Signed-off-by: Oskari Lemmela Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/gpio/gpio-axp209.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt index fc42b2caa06d..5337a21d7bcf 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,6 +68,7 @@ GPIO0 | gpio_in, gpio_out, ldo, adc GPIO1 | gpio_in, gpio_out, ldo, adc GPIO2 | gpio_in, gpio_out +axp803 axp813 ------ GPIO | Functions From patchwork Tue Oct 23 18:53:23 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: 10653587 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 513AD13B5 for ; Tue, 23 Oct 2018 19:51:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D3A32A3C7 for ; Tue, 23 Oct 2018 19:51:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3101C2A3CF; Tue, 23 Oct 2018 19:51:26 +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 9870E2A3A2 for ; Tue, 23 Oct 2018 19:51:25 +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=FbiSNIgCO7DwJw1ZRq2PxPJn/rgUc6vD6iNQjYCRx4c=; b=KiYjwgGYpAB/AgedWXeud9aPCl s63qYeYxgOT9JR3mQQpTaTJu9U3H8ifo9mTiin7uSRap29dhGA/kVtu9geLJo8E6bd2BMesqyzTAP lN67cAqCYxRe5u/fIiLQ+Dww9FPYZrcakkuwKwvsvxQ6/rHee/8T6SXJJxA4MlzHbI6dL5Muqb5XF OLkMiAuQTDKfc5AoIjb4mQDDU0r2RyatsjrNacIPpIpbhhv6TvYxw9R4cFQex1p2mVm5EDkFgZj6C CHycz/FvG9ZYsQw31W7XOSeaElx2SP9YXouncxz2Iv2rhblfAEX3ewDljQ54laKiOgvcf6E/rYOPL XXOKud4Q==; 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 1gF2i0-0000qP-Ix; Tue, 23 Oct 2018 19:51:20 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dr-0006HC-Eu for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:47:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kJid/811DF6s4Qs9OvehL4mZyWKWuo74tdKckrLxt/E=; b=Bsls1auwGh6/S3YDbM3fU1RNK nSC1TwloSOHQNU9mkhu7oO3y+ZK6aSa7xwg/5I7WfSI4X1tlmWvdPkhG6YJyqhBAJPOKQom/jYpy+ BZXy9Jwb98esabYIi9JjU5PmvCx6vPMYlZrvOKBb4MRC0H6fL6+DzyExr2s8mCVIM6dm+3b++2vTd mxonHNEobx+cAgPf4ptFE+zAFJAsqEK6HChKk9W3AbowiOlyUPemJLbSrP30cyQdY98XUi8kwcTZx 5Xl4g7CMeGq7EUJiRRd17fUKyjU17T0McfVZg9ndBlTFoIa7eZsCOmlcup9Alpr+Tk16cZOuDWqoG ACIc/pD4Q==; Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1op-0003nK-NC for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 43CDF1FB8F; Tue, 23 Oct 2018 20:54:07 +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=1540320846; x= 1542912847; bh=pynibka8auirUqb0BTZoo/q8Z5wVAhJZgUGoIcWmgJM=; b=Z zpwxEyfc0BNtaduL2eN9Tn6MPM69ozM/IhLwQlBsI+Oz2qBxbrGEVLTwM9nruwYv s6kh/QvG7P9K1/OzTbZ2BwTUsJufPqpQQBwBq6VZJ/B8n7opfcFGtQ4BnWLg8SjE OJGo12YEU4nyDV7znHbWrmTu9Wa+2KQ5WNclu6y5PPuBZpvg0HginMkZUDr3Vfkm +L2iR0eVSdTfb/lpDKDZDe6fHom5cw6EeUoRfQgFaEIX+5mL2FmjGDrsTBmBfGb1 JtLuT0wyA47/u8n8NSxcBV9eqzZMQu6FROcrELOZgbGWVlo8mJEb91Ws20MXnmh4 dsCoKW9UownJD7WAfKv7O/vvFMPnG7/uvMWqcjWSflfL+j2m9CM2RzBHyEW9L9nU 9Q5halLku4l0Z9JQC8EuMdUAnlfu0C3f0fcPCQfq11dm/88Bjszl3wQf8jMRZ+9B U8y0X+m73Nawaqf1CwoCeYZyhkpVjv65ZGXfrRcksKaO/IZvwwSnXtbsC5Mv60qE MCybpY118uI2svGFHeba0Y5RMKAKaoXPkBj4iYV7bvv+Tda4DApD0C7kb7TvddD3 CY15o8/cdZ/X50eqcDMfLis7gpK1NOLqtR+GT6UiVEmyPwM8fHhB4Bh8wv8tIV+4 1SqnfibnMy9d8oKzSwLSk7W8mQ2zosrHPYtYP2m9AI= 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 abn3hQvZK61p; Tue, 23 Oct 2018 20:54:06 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id CB89E1F99A; Tue, 23 Oct 2018 20:54:05 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 04/11] dt-bindings: iio: adc: add AXP803 ADC bindings Date: Tue, 23 Oct 2018 21:53:23 +0300 Message-Id: <20181023185330.10472-5-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145419_883522_9EC78D45 X-CRM114-Status: UNSURE ( 9.12 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 The AXP803 ADC is compatible with AXP813 ADC, but add specific compatible for it. Signed-off-by: Oskari Lemmela Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt index 7a6313913923..1dbd5e480acd 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,6 +40,7 @@ AXP22x 2 | batt_chrg_i 3 | batt_dischrg_i +AXP803 AXP813 ------ 0 | pmic_temp From patchwork Tue Oct 23 18:53:24 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: 10653551 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 2874E13BF for ; Tue, 23 Oct 2018 19:08:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 119512978B for ; Tue, 23 Oct 2018 19:08:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2F3C29F51; Tue, 23 Oct 2018 19:08:06 +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 984152978B for ; Tue, 23 Oct 2018 19:08:06 +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=tpiFJTtFJ5MVfybcB3+Ykna4sQJyb51wooBq78r2qdE=; b=Ji4BcS/XDjGECD0xcSDBExMxNA UcnU4aM/qkTdd/StdFG1Qjpl0yG6IDKZnXvj2J26rZGisjP7Jz0x547PVoO9YgSKIM80bPWo/dSaF KjlxVOhGRJoH/j4NjFYxP2MmcrJ/A6Q3GucJFwE30Bt1t/GWOXO+SPLOh4cYcHYo6aDgEhaJDrHvH DF4mHZkutKUEGXYwFZrvcdaw5A20lAeGdZdQL/GyLyz7dcekn17gVp1cuhpMmyeP5F+3awU2uabvR ZsLEr7AEhrDsKr9+C+QpiSRmf9Z6bVsr2iwzGl2GPubW3koPzQbVUxzh3pJz4jVXVCGrR5TTQ62hs JLQa6ktQ==; 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 1gF225-0006Jj-Rx; Tue, 23 Oct 2018 19:08:01 +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 1gF21P-00061p-Rs for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 19:07:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id A55C31FBE7; Tue, 23 Oct 2018 20:54:08 +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=1540320847; x= 1542912848; bh=jXIX8izX1CAuHrKZL/jrJD5rwgJGf7wij/BFmTD06Lw=; b=q r+JFNAQbLQbIj7sSiLXvKpatI8CoWVAt7GTE8e+tAp+neP1tDLehuWl5D27nUHtV dE3a4pIaRMcypSjmYQAo4Jd+hxZneWleMmiPq+r59UwPmIDsj44eQm803gRXdOw4 T4Iv05Ve6PbTyGC3AKNK9PTlLK4rGmkq/FqrZbtm8XCuFY+M6qPhB/U790dxFfDG OBugdTXAAmo4I8/EeG3aFqlJkQnCsA5aco5VA8r4B9TrFK9NGTDhaCb0es0pcY1F 28910siQluV0JylQkX2iMBzhWpDD100rBk2S+hHwCF7x0y6iG4JInG/bVlUxsB0h zoPwt6jR5BCrg6s5/SRbfI2drmXY86187K2rwiHIFssLkMjy1ViVYeqjzFx8wFji lFLKDqnaZNGicUgvuL23NUdPSTmTMvi6c4bufmz5Xx5tLNr0il3RUgjND5ElfPgv o4N+HSi9SiMU+ljSSswAqMQybnso8mglQd1nk66ATlduNZ8Uy4jZmWldAvnkLrPD nnQ0ohnH6Gsabn/Cg39xctskj1lPaRQQWKRwLtHuwNQpfWOB4agZYDp0pHo3fwIp g1E/kf31F71sMV7v1xRwB9wzkBV+oNYQ33V1sQNer5fhcxm2DsWNNjRXOvNcl38U W3NNhfwaPu7jr9iyZ0zgfeYjGxO4+Ym2PNy6SYOxIY= 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 TD1Vb_teMsEZ; Tue, 23 Oct 2018 20:54:07 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id A0D2A1FB8C; Tue, 23 Oct 2018 20:54:06 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 05/11] ARM: dts: axp81x: add AC power supply subnode Date: Tue, 23 Oct 2018 21:53:24 +0300 Message-Id: <20181023185330.10472-6-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_120720_065739_9D5EFA07 X-CRM114-Status: UNSURE ( 9.24 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 Add AC power supply subnode for AXP81X PMIC. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai Tested-by: Vasily Khoruzhick --- arch/arm/boot/dts/axp81x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 043c717dcef1..bd83962d3627 100644 --- a/arch/arm/boot/dts/axp81x.dtsi +++ b/arch/arm/boot/dts/axp81x.dtsi @@ -48,6 +48,11 @@ interrupt-controller; #interrupt-cells = <1>; + ac_power_supply: ac-power-supply { + compatible = "x-powers,axp813-ac-power-supply"; + status = "disabled"; + }; + axp_adc: adc { compatible = "x-powers,axp813-adc"; #io-channel-cells = <1>; From patchwork Tue Oct 23 18:53:25 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: 10653577 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 4304F13B5 for ; Tue, 23 Oct 2018 19:47:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EE982A352 for ; Tue, 23 Oct 2018 19:47:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 213C22A359; Tue, 23 Oct 2018 19:47: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=-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 A4C542A352 for ; Tue, 23 Oct 2018 19:47:47 +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=uRMYiPyhxfNZw7hrWDQjLDmiysnLAvqKH9GwfZ+3PAQ=; b=LqqaDveKD8Uu5ttF548wX9heBV nGcyHsgSDrfnBFVoEW9bM2lqV0robA8exiW4yIb3k+sn33SZZj9TY35pM7EL5HtRJlDNE3twPi7YK c1cho1eFP/P2AbCT8tRxlKZrrQvW7gRTc8YRcGXH6g79S9TN8gD9M64FwkI/3sXNFrVkihoH/DSvf BTaeYfLCQ3QpbQKJJFiQYAb2HZtg6GSUKlnhk9g2o84WQXW1PWZrjk5ICziJqwTc25zNu2yQqrmzs woziTsfVN7L8BcWbcy7WQwJz+IwdnvmVhcMM+mmi83lLuUV6tU/Dco5sHc3onK1ndAnpXlRSYOSDM EUxX83yQ==; 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 1gF2eU-0006XZ-UM; Tue, 23 Oct 2018 19:47:43 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dj-0006HC-Ux for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:46:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WwjRIsrT6bTzhmpVumScnutjRyFGi6ZaGv0sa1O/z6Q=; b=IyTg9VRDpQIzJQFgEn+gZ0RTp 2UpX4Wk+qRqWD46tLX5ZdahLkd0kxpjen8o8dgrdBrGW5CzR17n1sx1PH5RqMzPVxbVhjQ8AB20Ex 4J2fxhfCLaI+Tm3/RCzRBuEHt06PpKrE08E624yA4++pxTRuXJaUfzCdvoyz099+3pQU4D3mMkfna MhcT30T8KRIbPcBLreDTc1q3WDejCTxd2Mmj7tSa3k9w0zz+9E5zvkQGSiM7/mvQMbWjIP2TC5ZwT AYV+RKob7SlNqtgCAc/9smcAPIeG51Zj6A3VJHef6YuMq8KLCFBjJ1bArsk4TwxSCOcMe73f+4Vdp x0T48bDWw==; Received: from mail1.kuutio.org ([92.222.216.83]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1p2-0003on-4a for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id E261D1FB8C; Tue, 23 Oct 2018 20:54:08 +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=1540320848; x= 1542912849; bh=XhBuIRDdG2aMlY9HegooyOogRtObOUjnZIit422Z228=; b=h hjVGp5OZnhpC6gRfw56rnroG8DgW+557Kvkq00g7xWxUzxtB9xBK0AasO5Py86Jz VJMBJ/zWbo9FUrbU08ubPCXic65ZKZq2FF3gVXUJly8U/ykSJYn4CIK6VPgJyBkS thnpNdoj4DNK+tuGfy4TrjJVHtTeq2pDkWuhTcOeY3gWkDpJaXspNh2zMR9fnDz6 JIpsveo7w4rHbzBBcYwX/IKrgkVoZw8FSiCKt6zIH5iBVmk6VKUka9FDI0nA0Jlv U34ojws1hmb0dNRZzFs3xX9xyQGktL0ZZLY41I15zellvq64MMmJg+bVkGY3GMeO 8zByF/s/szk1iIqkDXhQZVeS5QKvTv1Ar04ljxjTa7tSJ4u7arhSSttHDsQ899lF KyQIucdkEOLV6KGMJdt8fF2FkbOWY0XXi+O+5Ncs5UtpbH1WTEFPe4+9yWV0rgn0 8hCSBJIMI0lqKttTjPTb/DTHH3Lseglg/QWG/Df0IB6biJu/0FEzhPrV/d1VVig/ j/vWS0s03jDWQaT/CWtlXO8x5JLbwr4cVskc4dJhmhDxO6cYMGDtqKgW5RMMIryk AF7hh0sQzaUonnjLvzOGtkr6XjqAbz5qvoONcGwb0uhVJRDhWzX1wtCmgn59FiuH EuTZKbqT0bwmnu6uYd+PRjVetPthQH/Y5JhRGRZFJY= 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 vvrhnbeh7EEn; Tue, 23 Oct 2018 20:54:08 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 791721FBA1; Tue, 23 Oct 2018 20:54:07 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 06/11] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Tue, 23 Oct 2018 21:53:25 +0300 Message-Id: <20181023185330.10472-7-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145432_460132_1CD44A04 X-CRM114-Status: UNSURE ( 9.11 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 Parts of the AXP803 are compatible with their counterparts on the AXP813. Add DT nodes ADC, GPIO, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz Tested-by: Vasily Khoruzhick Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index e5eae8bafc42..c3a618e1279a 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -49,6 +49,39 @@ interrupt-controller; #interrupt-cells = <1>; + ac_power_supply: ac-power-supply { + compatible = "x-powers,axp803-ac-power-supply", + "x-powers,axp813-ac-power-supply"; + status = "disabled"; + }; + + axp_adc: adc { + compatible = "x-powers,axp803-adc", "x-powers,axp813-adc"; + #io-channel-cells = <1>; + }; + + axp_gpio: gpio { + compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio"; + gpio-controller; + #gpio-cells = <2>; + + gpio0_ldo: gpio0-ldo { + pins = "GPIO0"; + function = "ldo"; + }; + + gpio1_ldo: gpio1-ldo { + pins = "GPIO1"; + function = "ldo"; + }; + }; + + battery_power_supply: battery-power-supply { + compatible = "x-powers,axp803-battery-power-supply", + "x-powers,axp813-battery-power-supply"; + status = "disabled"; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>; From patchwork Tue Oct 23 18:53:26 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: 10653583 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 5623E14BD for ; Tue, 23 Oct 2018 19:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41FE82A36E for ; Tue, 23 Oct 2018 19:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35BF12A393; Tue, 23 Oct 2018 19:50:12 +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 ADCF22A33B for ; Tue, 23 Oct 2018 19:50:11 +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=1LEwm2CXjKcNe/cZe64djMdxBYB5gHg3gO+HlPV4Ko4=; b=TsHyPGrZXfPprPfBYyRyqO9XgE KXR/cVNunsm1ds/yTpA7cdAemqbxCS03yKLtpnGv6OQ+3Oqfvp5aSrfFuKRM0qrDYhVnmpwcCApAe vKO2D26D7WsB3d67JbZg8ji0Drf4hieFjUNfLklWXS+29ngPIivcasi8HCOFlMUzRu6uWWGMrNiEx COM+I79OfxxsYAILWy9rEOQUyj6+WgSv85uo0/zytRdXZSPh20r7/BePj5ArZPu9avMzm6Pr0wzcY P5qfS5OMTqjlosDfttA3QcpAZevFBxGRC/cNuY+fNZi/mCQGiXZUJ8LMj2J/v3fxMmyat1MrTR5gi c7DDcMmw==; 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 1gF2gb-0007WA-Of; Tue, 23 Oct 2018 19:49:53 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2do-0006HC-FE for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:47:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bIpPjgMNHJNTqQIsemG+66m36guffzsGx33VeEcMz4U=; b=0Lc7/Xeyo45RIE1vYCZfWnsV/ hLgWQOHFNkMUykifroRO2CtZonaBUyGz4S2q3Qqhz7X6RoMW/fwzabah1Nyn1t3UJdHPiseRGPj4x JfEVOrvmvHlUm3K3q5WSca58VcQJEBA+O4tSdcIuwCOwxGcC6mOgqhsqqyythgaytW38C8xG1ytXZ X8A67tzqhstfgiXhwkEK9xcGdeEUhyEZ/7Z97IHTDowHlrnlGghxhf8qASctrWQW4FlTqfLNzePzs hrPBQeJ1AGxAYcpxT/m0Nxse8hIJ1/5w6jEijaU575HJ9InG+goKfc/+nyCvxrd+mG7jcM1A/EFLx Z2kIBpwzg==; Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1p2-0003op-5t for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 396C81F99A; Tue, 23 Oct 2018 20:54:10 +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=1540320849; x= 1542912850; bh=16hydqWDFV4OIAB5F2BhOcjYauIKKaxTnGprPU0pMcU=; b=C QfTFwDFUr1PU2MD4ghri2HxTFlZBmaEiksGb73q6JZCpdWpawNtLVViUzhVLDC1M LjWnquKbwHRL4vOdH31DPnuXxPv889ZF99R+P1PsdxAMxZ701TeYfJfEsqK4QIYY c7dQlxy8r2wFtd6/UFEC+Ehg76qD2XapXApzc8rVm3SdsEtniK3OfnoDx8Vm8t63 4mgBtcDwLrIVBkf25siB9TyI7UrwA3/v8CZv7GMjlgW2gohj02GOg1c5aQ8VkkmQ oU6IaPktbCnzn1PWlnawJ7AWRKklL+ZZSHi9cfki8By3cVud9NeZk7hfoQL64IP/ gLscyL5/JacLT6aB3aI3lXNId5Va1PoAECdhnBZzEDPcAmLGJqNL0u3g9oMbEnNP PDoZ1p2ubFEAKFuzT2KkvXPew6zSdr6y2OuMnSEWC2xMB/eoj7i2SfwqA+42cNFX P2rfS4tpOIi8ruHreKyvPIpQZmUP6NWNipG/TmWbE3kzDT1x1ANScVE2HdBk6oth BXRWBoKhuIR+frgrZez0CUNDMXfj6fFVDYoCr4aP1R4u5ah3Gr7RyaGzEgAgMqjt 7noXb5ZTwJD1oayc5LPLRFSOEuq8VSpHijPbI475Y4b85faYL9Gqv0ibqR4nrCaX UaT1GeH9FL3tys9+prM/UYbdBLEN8EAKdN92IwX/1Q= 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 BC6marmYcYdG; Tue, 23 Oct 2018 20:54:09 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 515511FBA6; Tue, 23 Oct 2018 20:54:08 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 07/11] arm64: dts: allwinner: a64: sopine-baseboard: enable power supplies Date: Tue, 23 Oct 2018 21:53:26 +0300 Message-Id: <20181023185330.10472-8-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145432_353841_BEAE8A0E X-CRM114-Status: UNSURE ( 9.11 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 ACIN pins are routed from SOM to the DC jack on the baseboard. AXP803 charger pins BATSENSE, LOADSENSE, N_BATDRV, LX_CHG, VIN_CHG and IPSOUT are connected via PMOS driver to SOM VBAT pins. VBAT and AXP803 TS pins are routed to the baseboard 3-pin battery connector. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai --- .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index c21f2331add6..335cf2263d19 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -69,6 +69,14 @@ }; }; +&ac_power_supply { + status = "okay"; +}; + +&battery_power_supply { + status = "okay"; +}; + &ehci0 { status = "okay"; }; From patchwork Tue Oct 23 18:53:27 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: 10653579 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 1C9AE14BD for ; Tue, 23 Oct 2018 19:48:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05E182A130 for ; Tue, 23 Oct 2018 19:48:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED99A2A18B; Tue, 23 Oct 2018 19:48:33 +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 752B52A138 for ; Tue, 23 Oct 2018 19:48:33 +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=fdDDAQQold5YSYILs6uR8dM3xWPL+aCagmjMUW6Ag0k=; b=VFEO/reqNA4tuJNfP5Wy/Mc4Qa Qp3hQhmUECrhNFBWH556q0/LW6pMufdWz8blmCDkn7mlkIRd4K8angW92GaygMpJbU+gRyirHjoyX wkpcX5hx79t5KliGJOqKftTpfF7M1V5l8Op/A8/GhO43Lj+IWWj8jNWNvc4HKgwNbPIN6iGFFOBjd InoSDwYa6Os/7XHN9aPdiVKyqDuglqxStq4icdjsY8dTNc9SHcFrhxKjUJfp5vrZQp5P6zivxvXBg S1TAuY02qcw2M3NUJdNCZ1q+fK1+6ObwRu2kUgis+o4GKUvdViDF9Hlba03LvjJZwlVE/Ibtmv6Bg VJG+SfLA==; 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 1gF2fD-0006ot-UF; Tue, 23 Oct 2018 19:48:28 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dl-0006HC-DV for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:46:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ca9ctSGmycU722yzwU+HuTo44Q3EYs69NXC7jkOvuAg=; b=CbriNYao3/o9RGZYqSWuKcU6A xKCVKw/glEM6uSIBw8UOxNWZhs8AnPgoH4rhESiIrwNBdfjRlBJp2H4xiZoaQckHXo7dRCkSz/30c w0J5DbdfZYSzzx1SS+C1637hy+Vdhsgr25fMIWUSN8I1JEKGpqoSOMBS7d3Zb1T8aFf6/TvDUaJDr LwkRMxBUZ+cUL2lA0P2J227cPWWVuXYl3SsMt2Xpn0ubDw0ohCEUtRd6uBleH/U32TwmUFckc0iPJ 898UK19X0c1VywGfUIrYTSEGkl6kQYEp8LnMPQ59F6YSVwuPVL4xS7wTY5zr7HvGr1stjocj1e3Q6 43FWe0YvQ==; Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1p2-0003oq-5v for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 1129F1FBA6; Tue, 23 Oct 2018 20:54:11 +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=1540320850; x= 1542912851; bh=5RROUQkSifGdtX7kU95flOowMcA+erVzsiJE8kzvFYE=; b=R sf61yTnK1iTXYkxOaQa9ON2s3JgmXMkImM+x2EKE26ZgI41umz8+OgYOR37Mjuuj UU6qoz2Vz/YFjhxXfwr+0VfUQo7WUDzYfoSNCDXGNC3wU3AQkF4NMH4bQyYWENJZ VcRffMfgEWZIIIUBDdAZHLHjKTXjY5tUKD1emfYLBXAQ91J1Ct2boHujWP6z2yPK 7+DBkL+JkjerigVCAcxrHWGWSS4snFS0SqpPMmLJ8LiOZxVSLrtObYoEeU/SJXqn PawtbazPsYweTUWy0x8b/c2+IGa1HZxeIj4c9vIAcquhJdFFqi4ox4ySY28/BAi7 M1wztrO+vfzeGfnMmTgSblt+vYWtJN90crzf2Au4h4gYa3FV9dz4YrtThxzp55ry NzQlLsOW+c9jCRLjWhaZCv5OZgxxS1qsq8qotiGJPlWgV0Fuag0pF0BmNdGWdPrM R5M6IVyaOQCF2N2u+t0ZEmGYxUfKggbZj1LNpdYKqG/j25HGUzIGZQuQWnj32taN ZiouKRcA60WWgRVsIKjlKAqF7IiVqqkXPq0JIGXeCt+K1FtyTVl4W1TGijXvIvIf /l8DL5B37QA1UKmMXr5ipSmZaqOO9JRP5d6ZGVC75avawGsPdTD2YSpWBmnWu+Cu 3otd6SlXoIXfmiFKelLVGtW5UgTpqVxlRR0/aaPa4Y= 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 ot7sKz_Ao7j9; Tue, 23 Oct 2018 20:54:10 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id A1E511FBA1; Tue, 23 Oct 2018 20:54:09 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 08/11] arm64: dts: allwinner: a64: pinebook: enable power supplies Date: Tue, 23 Oct 2018 21:53:27 +0300 Message-Id: <20181023185330.10472-9-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145432_352685_6302C049 X-CRM114-Status: UNSURE ( 8.72 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 From: Vasily Khoruzhick Pinebook has ACIN connector and 10000 mAh battery. Signed-off-by: Vasily Khoruzhick Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 897e60cbe38d..4fabe22ece47 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -149,6 +149,14 @@ #include "axp803.dtsi" +&ac_power_supply { + status = "okay"; +}; + +&battery_power_supply { + status = "okay"; +}; + ®_aldo1 { regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; From patchwork Tue Oct 23 18:53:28 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: 10653571 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 B8B3614BD for ; Tue, 23 Oct 2018 19:26:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A46C228A7D for ; Tue, 23 Oct 2018 19:26:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9710228D05; Tue, 23 Oct 2018 19:26:30 +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=unavailable 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 1283728A7D for ; Tue, 23 Oct 2018 19:26:30 +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=1zyj5rTNxira9BktCEKuKO9ZcaYsuTc7NJZOZEOG0f8=; b=i1vMYG1eMEk0xniSSysRl/lrA/ YNnD2BExFPPAU6GdnoGaNG5Cox03VwwusiZuekKWB4wcFElNlxKXyfSs8XXi/72/lER4ImKdRx/f1 QE8Ugq1ze2JNizyLe1OcNeBm5Y4VXPNJrcL7EUZ0aTQGZeaKEXn1ui7cXzbvAk3F6eRaGzniUgSEm YJkOYqbM+dK02tgPIz3cdnZdw2A5OCkulmIPjjHtXIn/k+F4+sr2tNOU7zN+P7KLcPgIpdVEI05P6 iwD16+X6NeplFyPu7fY4drjpNYChansKc2SkSx/5D2rRAWjOoYUOu6/YCiqjH8d7PGGcXz18JBbx1 i9ZHHxNA==; 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 1gF2Jt-000777-SH; Tue, 23 Oct 2018 19:26:25 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2Jr-0006mO-Ec for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:26:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DbXAheJTbBLU4dlAYEYsAATNIgd33CMrlVL4ed1ed5I=; b=Ov+5+9w3ZYRVd+Lt/hyXfnJUn gAvt55lrNwO9cXA6ZxDhKgZupoJkm/Sk8pQ04nDdrqgAb/R+FYb/IRmEVS5VQyphlx6CIKZW479rg RKvVbaVen0Z7B+ljeJ+SLZMa9HmwC7/Xa7vVEgOz0KO03hRDMOj9EffMrK/YJWufafZwcfXysTgdE n3kZ6XrClUhF+hgAYI4pCAQMNwqofhVATcfSZpPf64lztbAoMB/64q0xRFbjuWUryewoOEM44fGky MpK0zB/4KzKLnTNQRloIsl/5dhw01g2wpfaagJjBh2Fm5aACJg9Tzu3j5caWYaD7dCU7ex+saQsMs 5vsdobmsg==; Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1p1-0007np-W4 for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 4DF481FBEA; Tue, 23 Oct 2018 20:54:12 +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=1540320851; x= 1542912852; bh=VTqnN3XdOSfhFJGNVAMrr6Pwli+yu6G7D3SxrMjYacw=; b=K oSrQYuyBAkQUcvFDaPNxf5QL7L2+VbuRuT+F0oIT9YHDdT+L1FEtsKr/yB4ETVtU jb2coSycX+QjxUHswCWKVR3HMhaJljlomesKJxCp2Os5JMnv/MNg2FEy5RMtESrK oVt5dlrKbm9St5p3s8W3JDUXwZcLA0hSQJk4TaNeMCWSWEqniuqC69zgwAF34Jun C7OgFyxQAvDcLyDT34HzpUqbcfhOnZnk/w56bteBqwKZOZMTheOgFoGOblKuWrxp ZTcF4T0LwNQT64xn44JOr7MlQHrTv4I1vUDT3EdPPZ6xfWRoY479mCIt7mNS12tS 57dO39D7r2ob7NriOMcCTmVlgMOu0I2XM+6vXmCSuXSEPKDcHLcTwIG/qx9PjGMz Bu8jDa6UUOD+07MWgbuMDt6RVw2pKgNDJiO/iiCC1XeHG3WXjuSt5QGMeyOKZUiZ ViabVs8JYKY2CG8DMwbKdLZJWT3n1NeQawd7b4hHSfoYRo3ZoAya0M0QY8QhsZn9 RIR22RXBmkinAZhNeOcoWR3ABby5o+lgv4N09Jf7LOqZTOh7nmPHfIUelRxzmnby InCOZkIKcAKtDtDvDY3kohqFCWeE2iTCXG5eTevkSl1DQK6vhlZLygNLdvCj2Jf7 n7lZdsZesfDnJxOMO4Qo+nbmKrsznWH/OhewmfyHhY= 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 fwaj7tHpKyBy; Tue, 23 Oct 2018 20:54:11 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 73DAD1FBE8; Tue, 23 Oct 2018 20:54:10 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 09/11] power: supply: add AC power supply driver for AXP813 Date: Tue, 23 Oct 2018 21:53:28 +0300 Message-Id: <20181023185330.10472-10-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_195432_088661_1AC6B872 X-CRM114-Status: GOOD ( 20.28 ) 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-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 AXP813 and AXP803 PMICs can control input current and minimum voltage. Both of these values are configurable. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz Acked-by: Lee Jones Reviewed-by: Chen-Yu Tsai --- drivers/power/supply/axp20x_ac_power.c | 94 ++++++++++++++++++++++++++ include/linux/mfd/axp20x.h | 1 + 2 files changed, 95 insertions(+) diff --git a/drivers/power/supply/axp20x_ac_power.c b/drivers/power/supply/axp20x_ac_power.c index 0771f951b11f..59b4c8d3b961 100644 --- a/drivers/power/supply/axp20x_ac_power.c +++ b/drivers/power/supply/axp20x_ac_power.c @@ -27,6 +27,16 @@ #define AXP20X_PWR_STATUS_ACIN_PRESENT BIT(7) #define AXP20X_PWR_STATUS_ACIN_AVAIL BIT(6) +#define AXP813_VHOLD_MASK GENMASK(5, 3) +#define AXP813_VHOLD_UV_TO_BIT(x) ((((x) / 100000) - 40) << 3) +#define AXP813_VHOLD_REG_TO_UV(x) \ + (((((x) & AXP813_VHOLD_MASK) >> 3) + 40) * 100000) + +#define AXP813_CURR_LIMIT_MASK GENMASK(2, 0) +#define AXP813_CURR_LIMIT_UA_TO_BIT(x) (((x) / 500000) - 3) +#define AXP813_CURR_LIMIT_REG_TO_UA(x) \ + ((((x) & AXP813_CURR_LIMIT_MASK) + 3) * 500000) + #define DRVNAME "axp20x-ac-power-supply" struct axp20x_ac_power { @@ -102,6 +112,57 @@ static int axp20x_ac_power_get_property(struct power_supply *psy, return 0; + case POWER_SUPPLY_PROP_VOLTAGE_MIN: + ret = regmap_read(power->regmap, AXP813_ACIN_PATH_CTRL, ®); + if (ret) + return ret; + + val->intval = AXP813_VHOLD_REG_TO_UV(reg); + + return 0; + + case POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT: + ret = regmap_read(power->regmap, AXP813_ACIN_PATH_CTRL, ®); + if (ret) + return ret; + + val->intval = AXP813_CURR_LIMIT_REG_TO_UA(reg); + /* AXP813 datasheet defines values 11x as 4000mA */ + if (val->intval > 4000000) + val->intval = 4000000; + + return 0; + + default: + return -EINVAL; + } + + return -EINVAL; +} + +static int axp813_ac_power_set_property(struct power_supply *psy, + enum power_supply_property psp, + const union power_supply_propval *val) +{ + struct axp20x_ac_power *power = power_supply_get_drvdata(psy); + + switch (psp) { + case POWER_SUPPLY_PROP_VOLTAGE_MIN: + if (val->intval < 4000000 || val->intval > 4700000) + return -EINVAL; + + return regmap_update_bits(power->regmap, AXP813_ACIN_PATH_CTRL, + AXP813_VHOLD_MASK, + AXP813_VHOLD_UV_TO_BIT(val->intval)); + + case POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT: + if (val->intval < 1500000 || val->intval > 4000000) + return -EINVAL; + + return regmap_update_bits(power->regmap, AXP813_ACIN_PATH_CTRL, + AXP813_CURR_LIMIT_MASK, + AXP813_CURR_LIMIT_UA_TO_BIT(val->intval)); + default: return -EINVAL; } @@ -109,6 +170,13 @@ static int axp20x_ac_power_get_property(struct power_supply *psy, return -EINVAL; } +static int axp813_ac_power_prop_writeable(struct power_supply *psy, + enum power_supply_property psp) +{ + return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || + psp == POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT; +} + static enum power_supply_property axp20x_ac_power_properties[] = { POWER_SUPPLY_PROP_HEALTH, POWER_SUPPLY_PROP_PRESENT, @@ -123,6 +191,14 @@ static enum power_supply_property axp22x_ac_power_properties[] = { POWER_SUPPLY_PROP_ONLINE, }; +static enum power_supply_property axp813_ac_power_properties[] = { + POWER_SUPPLY_PROP_HEALTH, + POWER_SUPPLY_PROP_PRESENT, + POWER_SUPPLY_PROP_ONLINE, + POWER_SUPPLY_PROP_VOLTAGE_MIN, + POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT, +}; + static const struct power_supply_desc axp20x_ac_power_desc = { .name = "axp20x-ac", .type = POWER_SUPPLY_TYPE_MAINS, @@ -139,6 +215,16 @@ static const struct power_supply_desc axp22x_ac_power_desc = { .get_property = axp20x_ac_power_get_property, }; +static const struct power_supply_desc axp813_ac_power_desc = { + .name = "axp813-ac", + .type = POWER_SUPPLY_TYPE_MAINS, + .properties = axp813_ac_power_properties, + .num_properties = ARRAY_SIZE(axp813_ac_power_properties), + .property_is_writeable = axp813_ac_power_prop_writeable, + .get_property = axp20x_ac_power_get_property, + .set_property = axp813_ac_power_set_property, +}; + struct axp_data { const struct power_supply_desc *power_desc; bool acin_adc; @@ -154,6 +240,11 @@ static const struct axp_data axp22x_data = { .acin_adc = false, }; +static const struct axp_data axp813_data = { + .power_desc = &axp813_ac_power_desc, + .acin_adc = false, +}; + static int axp20x_ac_power_probe(struct platform_device *pdev) { struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); @@ -234,6 +325,9 @@ static const struct of_device_id axp20x_ac_power_match[] = { }, { .compatible = "x-powers,axp221-ac-power-supply", .data = &axp22x_data, + }, { + .compatible = "x-powers,axp813-ac-power-supply", + .data = &axp813_data, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, axp20x_ac_power_match); diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h index 517e60eecbcb..2302b620d238 100644 --- a/include/linux/mfd/axp20x.h +++ b/include/linux/mfd/axp20x.h @@ -266,6 +266,7 @@ enum axp20x_variants { #define AXP288_RT_BATT_V_H 0xa0 #define AXP288_RT_BATT_V_L 0xa1 +#define AXP813_ACIN_PATH_CTRL 0x3a #define AXP813_ADC_RATE 0x85 /* Fuel Gauge */ From patchwork Tue Oct 23 18:53:29 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: 10653581 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 DACDF14BD for ; Tue, 23 Oct 2018 19:49:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3D6D29CE6 for ; Tue, 23 Oct 2018 19:49:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B12342A21C; Tue, 23 Oct 2018 19:49:22 +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 2E27029CE6 for ; Tue, 23 Oct 2018 19:49:22 +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=rrs3d8TB4Cydo3PYt89hdp04GOqC0bRHk49vsy5ZGic=; b=ToqAG5BS7ptJ5uxgBcmk422xYa LzOBL6r++G79lQcKwEuKqoSzr7LElgYqodtnbGRx0q1FoDrfmS0Ry2Y9D4HKuPvWtFJ1xz3Ku/F+E kiVFeAaOFjs18n5u3zWUCdBL87wOWcwPn3Pnr2jvFenrXHuY9tESMuQyzYvVIT3TauonNsvpwrKE+ rISv88hJ9XCMOjotRtZ8Z/HZaJBG+d8KQun1d5kQD7/mQaF6ugzwbc31KdI3RwLrs2iQARSHTrgQv UZ/KaZeM8s2WZDb7jTDf1ykP7gxpaIQ7rznJaUlGwe+mw6XI5iP/M85M63fxN9b4ZbbaRerleH5WQ 72+JLeDQ==; 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 1gF2fv-0007BN-2S; Tue, 23 Oct 2018 19:49:11 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dm-0006HC-UH for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:46:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=byKC5Md4iSp3SA49a9Frt0juPdQYHro4Ev2U7KpPzwc=; b=Yqhd1AGm9CTtDHi0yiIVUU4eG VMbocnfO2S7CzNNnFY0kw5Vx5BnKL/UFjPYhYc90ipV56eMroeSMk98pPTXnKvZIBmHY1Vp9Zoq+g fGyLOOpP5ynzRFTWWjil1XC+IMx1mksUYUiPg1r5hrpGVOnyWYRdRTAWby+ygZUyRdm/m2xoGujhs aAPxWKDDPoFJl57DKeeUAT+HxmKkbHsOrUusK6rJ9Htoh6c8sL+BLPRG5BQj7lmTuNWNI5g4Nlel5 lwCPacyaGGs9oyw0/dSIb/1naAwAU/KaoltNGmEuZwqRLOppWcVksfOEhWgiTGLiP2Qg8AU7VcyMo ykjj73oVg==; Received: from mail1.kuutio.org ([92.222.216.83]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1p2-0003or-4b for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id E31851FBEB; Tue, 23 Oct 2018 20:54:12 +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=1540320852; x= 1542912853; bh=cfMh6AcbyeWrvCk50dMKmOhXsNrpnTzv4+nFyu7Nu5E=; b=W Cibitt6zlC4OB8+O9kddsX3fIZQn0ZkTW2hizSrpeCerh6u74dU3vgdk9pqU2RTz bYRyjZCyH6i4jD5xpn+KAAAAw1w/iDokfMizwIj6OeLzYJKPwYcaO9WYleCDqY6D KbQoiMdZTX9U9zKTcT28X64IbUqqWlCEu9BXEjAjOr8bteCLTBKN6P1cf/XUyQbg yLYnodQ0yrjM/V73fNft/neS9Fke35qe299EXkKFcOcpPbvUVUf7dmUgmQeZYWqQ /UFd4zTIEMDbcaZtcOq7YFOWmiItJN5mg88kEUdLVuvIyXO5zbPAvhtLpNrdVjpt DNvwcDNdUhYHbzbG1TqS2Al3i3oIYdWJkBvFEiY9MVGwzcVNjnHgfDuba5Xu76By nKfk1bd7ZDhXfALZCxX42zpK46WtBbQfAuWFNV90Jx5iw1LQZ8KNdbvZmmavjaE9 d3C1AE6Av45hgGnpSxenE0E3ITBbV+Zz0eQAPzUd4wSBlmTi3ZZuu8miQ3VpxSrJ NWH+qUs4EyxgkTH7LCJW/WBjFyLwTseMokUujBc3rn1OmeQuGlJY3jCsTVB2nSQO aDFJc5zll+c3bAlHHSitM9p9/f4ywH9xNu7TV7ixCbbcxcFYeZWYCyglxdjtsZyS AV3az2tNJOuTASwsl6evEM0BLwVMPecdkezcy63j90= 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 EC5jHfqoXKP7; Tue, 23 Oct 2018 20:54:12 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 49A881FBE9; Tue, 23 Oct 2018 20:54:11 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 10/11] mfd: axp20x: Add AC power supply cell for AXP813 Date: Tue, 23 Oct 2018 21:53:29 +0300 Message-Id: <20181023185330.10472-11-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145432_337807_7DA8BF38 X-CRM114-Status: GOOD ( 10.56 ) 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-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 As axp20x-ac-power-supply now supports AXP813, add a cell for it. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai Tested-by: Vasily Khoruzhick --- drivers/mfd/axp20x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 0be511dd93d0..dfc3cff1d08b 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -778,6 +778,11 @@ static const struct mfd_cell axp813_cells[] = { }, { .name = "axp20x-battery-power-supply", .of_compatible = "x-powers,axp813-battery-power-supply", + }, { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp813-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, }, }; From patchwork Tue Oct 23 18:53:30 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: 10653549 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 23B1B13BF for ; Tue, 23 Oct 2018 19:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04F8C2978B for ; Tue, 23 Oct 2018 19:07:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC94B29F51; Tue, 23 Oct 2018 19:07:28 +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 4A9A72978B for ; Tue, 23 Oct 2018 19:07:27 +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=SkKAl/pWODxequoVRJQKq0xQR6uOu9Jv39JXj7e3RCU=; b=OQ15bEwOQ8folvRPDc0cIEPkaq IxYjGJq2E4Iv9fIjRk3UIpQNL2pyjwyodzPkcJ8NrRW5mulj83Abh3jK6w2urm8NcNyYEywrVcrxB dqNh0KK/YGanyBiRTi2w/ZUgui1HXEnCqizc/Mq3X/L25PSxeFygKryeySPTUe+46Yi6zvrX5szum Ptq6UJeG+3mlovv7KBo0Fkpbaj8JJg92xPcAt/ER7BybMEv1OU9GUBtRVz5OcoUb+EZaghtXXDW80 auZ1Y9Jbz+f3+eTiTzXflyfC4N2/+chKHjEsHBupBdVdqCF1XQbc29+KGmFb6WU9XZttMDR9jmalE w/5EA0Ew==; 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 1gF21U-00063i-34; Tue, 23 Oct 2018 19:07:24 +0000 Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF21P-00061o-Ek for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 19:07:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id F0CF41FBE9; Tue, 23 Oct 2018 20:54:13 +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=1540320852; x= 1542912853; bh=pL7NHtztiwu1dc+uHme9yVhRXUCkKyzAdI+4FDYSySk=; b=V J8CZv2FCNKRND/yEfZbIvSDtXIRoj9jIzDam3EvnP88URgHNNHd6x2h3xqtMxPA3 8Zw5Y4vmfVmw98+Fa9/E2o0WJ0tzM2x3PDUVdAT+i8+jJQ8ACLhQRrOcB3knuhJz SMfFu/A/YrrGuxtEaNFP4wbnVCzn5kpseSdL1AF70NzkVHxFpM6G11byTi2uUcC0 p+SAGLNJdxPGE/QIv9TDpoEUk59BC81n8UOkk1jKaT1yg9r35jC3B5qQI9kPnSte kZKzfEmhocHiivMtNVL7f+FlBlfyNETtP863j6XwU4+s5XOESd/pzmrzvde7qu1E ptT8R4vFWtv+QyRMfaXwsM6rnF3LochDF6GvmzFbMQgb16bKuR61+CpJBT8TU6Rg 41t99GMvYEqFT7kirHJydxFgFDWkPkxVox33VA3c797yE2pzty4QK6PJb4r9WScK AVo/5Di8YuY01sAyUTUM7POgP+Upgf5Zqha4jC8biIkjBuyGe1ahBDf6PDoNOu4q kdZuPI0JlF/vW7IYxjp/S7fSuMtc5Xxtd/txaNO3T4Gjs5bCSNismbmws0p2Z7ac BWtI+Pk3rw2frJiWO+qLfDowlkBw/8SuPgWbb22kv2U8XUcwVOkkUyUu/hD7kNnh T3OBq3kzuJoDrjgNhXW1MRVTLygwAc1FKGtqmdtBUE= 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 CULtAGdBqEao; Tue, 23 Oct 2018 20:54:12 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 306EE1FBA1; Tue, 23 Oct 2018 20:54:12 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 11/11] mfd: axp20x: Add supported cells for AXP803 Date: Tue, 23 Oct 2018 21:53:30 +0300 Message-Id: <20181023185330.10472-12-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_120719_805659_F2BF5D92 X-CRM114-Status: UNSURE ( 9.95 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 Parts of the AXP803 are compatible with their counterparts on the AXP813. These include the GPIO, ADC, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Chen-Yu Tsai Tested-by: Vasily Khoruzhick --- drivers/mfd/axp20x.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index dfc3cff1d08b..e415b967d38c 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -728,11 +728,26 @@ static const struct mfd_cell axp288_cells[] = { static const struct mfd_cell axp803_cells[] = { { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp813-gpio", + }, { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, }, { .name = "axp20x-regulator" }, + { + .name = "axp813-adc", + .of_compatible = "x-powers,axp813-adc", + }, { + .name = "axp20x-battery-power-supply", + .of_compatible = "x-powers,axp813-battery-power-supply", + }, { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp813-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, + }, }; static const struct mfd_cell axp806_self_working_cells[] = {