From patchwork Mon Dec 3 10:15:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709113 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 388D514E2 for ; Mon, 3 Dec 2018 10:16:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 298362B06C for ; Mon, 3 Dec 2018 10:16:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E1CF2B06E; Mon, 3 Dec 2018 10:16:46 +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 C9A8D2B06C for ; Mon, 3 Dec 2018 10:16:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726204AbeLCKQW (ORCPT ); Mon, 3 Dec 2018 05:16:22 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36566 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbeLCKQV (ORCPT ); Mon, 3 Dec 2018 05:16:21 -0500 Received: by mail-wm1-f65.google.com with SMTP id a18so5035506wmj.1 for ; Mon, 03 Dec 2018 02:15:57 -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=/Q2u/tsrKoFDIiu0ywRZGBRmyE9C0XxC7FQu/e+jYmo=; b=Dx0gfsblRMX9FXRsJeWDOVVS1Ou2kN17Ghlg+jFLYYBX1w5e0bAAchVy7BVj//q8Bl u26+f7NuhTrm7wYMrohRpsoahmqOft/uwXZBGESohEAcWfmGGeUnar/iqFeV2UiJ8DOP gP+wX804ilnrQPaEE8Lwd2aK7l8A9QAQ+AZB8= 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=/Q2u/tsrKoFDIiu0ywRZGBRmyE9C0XxC7FQu/e+jYmo=; b=MjmNdNg1c3vJB1MYlrX/Mv0s30U85KMApTbO/NulCY/koR0Ey8Z7i2+rHquEupnTRH SNNVqM2YdPgiUdvC078j7d5EfQzjB9+hHnM5AZSPOTjvZZmbnC5MtmXRTyfny6hN2LZz hI0mx68RPLL1KpY/hBYBpbnq0wrGVt4Z10eS9j8VKw6pHwVPwTUfyy5FNXIQ6wJBJhae f3F+AwaZ3nSEJYxndi1Wi4zY09zj8DgaruoV8cOgynVqo+EP1G88XJlbFrGj53GYn1gE rUi3FxIvH+555hvLJMBnyVPWGG31Zjs/Cduwb9tiDyJTtT03SsUdex+Rp3UGxIaAASG5 JwHg== X-Gm-Message-State: AA+aEWamfdA3U4nW2A57jYsX4wofNfRFUpI9FZkpNZq5Xl/qhENztTlC vDc6e6rme0SozfXBdbuu0xIW4g== X-Google-Smtp-Source: AFSGD/Xkb2Xg2dWYgiGc5OJlhI2rqzN65UM2OiIMep0FsUPJ+jjr+tORjc21oDot04SvQjaILZV0KA== X-Received: by 2002:a1c:13d1:: with SMTP id 200mr4440209wmt.4.1543832156825; Mon, 03 Dec 2018 02:15:56 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:15:56 -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 2/9] mfd: axp20x: Add GPIO/pinctrl support for AXP803 Date: Mon, 3 Dec 2018 15:45:40 +0530 Message-Id: <20181203101547.16835-2-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 Add GPIO/pinctrl support for AXP803. This will reuse the similar compatible to that of AXP813, since both PMIC GPIO's are same. Signed-off-by: Jagan Teki --- drivers/mfd/axp20x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 0be511dd93d0..bc705ba49c3f 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -731,8 +731,12 @@ static const struct mfd_cell axp803_cells[] = { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, + }, { + .name = "axp20x-regulator", + }, { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp813-gpio", }, - { .name = "axp20x-regulator" }, }; static const struct mfd_cell axp806_self_working_cells[] = {