From patchwork Mon Dec 3 10:15:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709107 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 0A38613BF for ; Mon, 3 Dec 2018 10:16:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF7F62B06C for ; Mon, 3 Dec 2018 10:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E37472B06E; Mon, 3 Dec 2018 10:16:38 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82CA22B06C for ; Mon, 3 Dec 2018 10:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725888AbeLCKRA (ORCPT ); Mon, 3 Dec 2018 05:17:00 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37688 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbeLCKQY (ORCPT ); Mon, 3 Dec 2018 05:16:24 -0500 Received: by mail-wr1-f68.google.com with SMTP id j10so11477072wru.4 for ; Mon, 03 Dec 2018 02:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wg4zCKkS5SfqlTRPj9JdiOkThqwhYO31sOTuFqJbv8g=; b=P4REhBT+SdcfxIfpb6eF0vbf+VMAT8ksV6a8YaOzCwDqLMOQx7fsYDoG6NREqfZsht csYkt25uMUuqcf6TSBQO7c57wNp4s7tlEiQ4rgmoQgjHeOnZM5bdEM7mE5sWhFbwd9/Y JzGC0CPNQfrCc8oHzKFL7G18BY+mWAJOdDpH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wg4zCKkS5SfqlTRPj9JdiOkThqwhYO31sOTuFqJbv8g=; b=XHAwzytmNEemptkciIX0qhFo3DowXPGIlrreRVcW8Qp9NkHP/SDd1J1qJFq3BeJ8j3 l3hLTSuI6SEoBsLWPjUZiuv+usF9Kr59UfTiftuZkw3OoqKUURQhC2sIv7vDw3G3eA7U +6e4Wuh+VoCSsvbwz1x5OF2imIpOOWl9iS6YOqoHoYAS9stLao0+fEJAQi0wQLYTMQfJ 9EYz9rbsEbALvIyKafcCBYFvRxISIjpuWZAExhtkfaZIeYvCSeKDi5ViF2ekN80V6iep ywmAFL9oMv0PrPWS3vP2irX7K6Bo4cWAoDC09cWH3e7ePAIafFC3QnYEo7taRdsO0aCD 1J2w== X-Gm-Message-State: AA+aEWbaSj69lTDq+2QPlDOx3sT00oeLBFx6gCpoFmT7KTfO1IlBxg5Y D1Q9zbu+8gwtN2OkIasrICDMfw== X-Google-Smtp-Source: AFSGD/UOV3gw0B7fO0cTvmV+8AhL+IERt/3Sh8OSHR90BdAk+ZC3xvxFiQia66+W1PEyVGFPnn8kjQ== X-Received: by 2002:adf:e983:: with SMTP id h3mr13012473wrm.232.1543832159477; Mon, 03 Dec 2018 02:15:59 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:15:58 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 4/9] arm64: allwinner: dts: axp803: Set GPIO0/1 pinmux for LD0s Date: Mon, 3 Dec 2018 15:45:42 +0530 Message-Id: <20181203101547.16835-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GPIO0, GPIO1 can be used as LDO like ldo_io0, ldo_io1 in AXP803. So, attach the LDO GPIO pins along with pinctrl properties. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index c6b95980d476..b0d6b3c3cf38 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -54,6 +54,16 @@ "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"; + }; }; regulators { @@ -137,12 +147,16 @@ }; reg_ldo_io0: ldo-io0 { + pinctrl-names = "default"; + pinctrl-0 = <&gpio0_ldo>; regulator-name = "ldo-io0"; status = "disabled"; }; reg_ldo_io1: ldo-io1 { regulator-name = "ldo-io1"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio1_ldo>; status = "disabled"; };