Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3826535ima; Tue, 23 Oct 2018 11:55:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60WPfuMoW9gacybPDKzVtnXjIiyo9+zrdwXmmvwkOtm0ayesDZGDA8Xy5HsVxXuNkrqxUlE X-Received: by 2002:a63:d64b:: with SMTP id d11-v6mr47383141pgj.450.1540320947827; Tue, 23 Oct 2018 11:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540320947; cv=none; d=google.com; s=arc-20160816; b=lFL+ip5y77q4wow3Hc0JGwSqaKCFaaCahl8KMhfpOz9MzE0nIfLOSghexc3ShdXT+0 ZG3Ywvb9J4XtorgzmNhqPbu/lnzgqpNUQlLblKOADurUtNAIiXpv4rXH9JgLaqKudJOJ U95nzE7FOeH+40VR7VovB45PUHhZlevwEfkrWv6kYs8UGvLUbiAXpvn0Zx/lBmRzXJNi 56u5QsbaTpE6dwKBa8Z0F/sKDyMuMQLfOUu97F/mdezhpzLzV45gJXmJG8dhZtD5QcN4 Kxo9JVzAQjC8UCEv2HcKUvLuhH0jGzwwtaP9UVdEnUlFOAAa4mgF/36Wwqp84NDv+Ah1 xxdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WwjRIsrT6bTzhmpVumScnutjRyFGi6ZaGv0sa1O/z6Q=; b=PzYJSYN9o3fV+1WCjOumhMj3DJhBuXZ0lrAkhDN+T5vE0vAn6Y+k1O8XtkJ39Uw78K CRWKTtDy9OBTI+XrN9ls6cP5V7FfNWpXL4oLRngrlYSvhJdoabS9P/GhUr5JCMzWg4g5 LG5YH4IyJdCTjEOoStoOxCdHo2cdOQ83apFLnvdCgpQj9vfW6qmNvHwFjVPI8y1G74o2 lAFIC2eYGqsqGOF6GHzx1WTz2gLNwcKlgvsrTKwXEaEqVLHjsPR7v1XAKFUEJsau1mt8 sSUte0cDzlYILshTOW8xDmTbY9ebPxLKPQVe/pvSMyYxnboqVez5yNxX75FZfS6nT7Bw HzHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lemmela.net header.s=dkim header.b=hhjVGp5O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si2056953pgr.32.2018.10.23.11.55.32; Tue, 23 Oct 2018 11:55:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lemmela.net header.s=dkim header.b=hhjVGp5O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729156AbeJXDT0 (ORCPT + 99 others); Tue, 23 Oct 2018 23:19:26 -0400 Received: from mail1.kuutio.org ([92.222.216.83]:45942 "EHLO mail1.kuutio.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728864AbeJXDSs (ORCPT ); Tue, 23 Oct 2018 23:18:48 -0400 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 Cc: Lee Jones , Hartmut Knaack , Lars-Peter Clausen , Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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>; -- 2.17.1