From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24A12C433F5 for ; Fri, 29 Oct 2021 06:54:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 03AD361151 for ; Fri, 29 Oct 2021 06:54:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232117AbhJ2G5V (ORCPT ); Fri, 29 Oct 2021 02:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232108AbhJ2G5V (ORCPT ); Fri, 29 Oct 2021 02:57:21 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B257C061745 for ; Thu, 28 Oct 2021 23:54:53 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id o83so12057418oif.4 for ; Thu, 28 Oct 2021 23:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=ePIHoriLIVjhSnt0MZ2sr1WXfIYtpmc6bctB4GvfYk4=; b=OmHAJEK0zMenmccOMKcd39WUjZj9QUxY9vCl1ZLJKSHtEpCU2CvRwDbSSrZkPutUU2 gX+QqkSxQXFBC5O7dJRy43ietqnteApz22NzV73I/3OSfpy/Qf6R0eZ/pCSM38K865Ay c7ZxdBbTnxPm88SHFEV2cQuHvBbs0iAJNoxVI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=ePIHoriLIVjhSnt0MZ2sr1WXfIYtpmc6bctB4GvfYk4=; b=irQKVgBbXQKixTGyI7pFWEo9h3280gK/ugktjMdOVj6/QduuDdGlE45jdn0EdZXFE6 5/9tKByRPJqoaWj+cRKgJQ//m6LvvOJtC8bEXuqvee94KbwagjG1yT5/jo62ezZerbUm X2O/p2Eij1loQxoozXdrG2c9Qtr2t2DseXhdfl9W/IHNbCH7SwSKxXFS6pW4rf+8Fcr1 48w+AXl5JJT4o2j9UhpnCwMYffa21Vwfv2D7F7KB2kKGwq4OaRSEm8BoLfvfm7x0kMwW mAcawBq/pkM2+JO/CzLoqa/kRwQwLTnikT1lggUmO00RYGpI1N7zZkbfmmsDfQxwtnxx jEgg== X-Gm-Message-State: AOAM5334ZOpg5gpLDajLrIDfG8iPpnJNSMmwSv+5HKV4fYgIKjdTtL9E 1Ztgh6HTSTsBDj9T3m4IHBlx+KnwL/5iBphctivS9g== X-Google-Smtp-Source: ABdhPJyHUrHkYGLOqR3AfqoEd3h8Vg+Y4D1mydhapVCma/WU0xYA2fXjbJHnOH9sVOH6bK0UdSXOBdl4bzfroyj0XWU= X-Received: by 2002:a05:6808:2128:: with SMTP id r40mr4917340oiw.164.1635490492859; Thu, 28 Oct 2021 23:54:52 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 28 Oct 2021 23:54:52 -0700 MIME-Version: 1.0 In-Reply-To: <1635250056-20274-1-git-send-email-rnayak@codeaurora.org> References: <1635250056-20274-1-git-send-email-rnayak@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 28 Oct 2021 23:54:52 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] pinctrl: qcom: Add egpio feature support To: Rajendra Nayak , agross@kernel.org, bjorn.andersson@linaro.org, linus.walleij@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, psodagud@codeaurora.org, dianders@chromium.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Quoting Rajendra Nayak (2021-10-26 05:07:35) > From: Prasad Sodagudi > > egpio is a scheme which allows special power Island Domain IOs > (LPASS,SSC) to be reused as regular chip GPIOs by muxing regular > TLMM functions with Island Domain functions. > With this scheme, an IO can be controlled both by the cpu running > linux and the Island processor. This provides great flexibility to > re-purpose the Island IOs for regular TLMM usecases. > > 2 new bits are added to ctl_reg, egpio_present is a read only bit > which shows if egpio feature is available or not on a given gpio. > egpio_enable is the read/write bit and only effective if egpio_present > is 1. Once its set, the Island IO is controlled from Chip TLMM. > egpio_enable when set to 0 means the GPIO is used as Island Domain IO. > > To support this we add a new function 'egpio' which can be used to > set the egpio_enable to 0, for any other TLMM controlled functions > we set the egpio_enable to 1. > > Signed-off-by: Prasad Sodagudi > Signed-off-by: Rajendra Nayak > --- Does this supersede adding support for lpass pinctrl in this series[1]? [1] https://lore.kernel.org/r/1635342097-2726-1-git-send-email-srivasam@codeaurora.org