Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp408470pxb; Fri, 29 Oct 2021 12:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmidcAZPx5pZn9xRsoWAJ4lO8ecsJLDN0x2JWwlmkfcJB4oniQf1749bmnPb3LEaNPbXXk X-Received: by 2002:a17:907:b0f:: with SMTP id h15mr9086088ejl.498.1635534594697; Fri, 29 Oct 2021 12:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635534594; cv=none; d=google.com; s=arc-20160816; b=c9dfh4X1jem6OVeMcVCx7oaRsnv02vbzuAx5ALpJ9id5l3dwilZ0RvVYSjdryyxgeA +RA+qmHlf7PobTPMLIBRfS5c/CV4n3+B2WC9msh60O5HsdhabAzcKF/ohFA17jOeTxuC IEns65Iq/VektHItw6z6IWd26bmukI4NLrihin1lV5j6zFjsIu3TfKinaf6cePdgGozm +w10/lPIxvdPaNcFA/fQ3OsnBH4FYYnm5cuFX+apOlM8pSTDbKT1N7fUqnA7xDWXNaaP ICTDQvpostbbSqaF7OtJJDDCcmuegh0zl6NwaLgskK668X+EE1jafQ+y/roXjIsFHFCC uY6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=XrtEv0I4WsSSxKWDA07JfBbz3bZ9+ZB3B3Y9Ggez2Go=; b=AtPIzqyQao0qYgTZJEjRUd3orkT8c0dsEJWum6nNGF+f6rWGdddlqEB5ozOTLPMbSV jlKJ4K5oMMjVyYSGu61V4bYjrC80WZUBao9PUm3ocubGMdENdNGGJJgcEkc/7bR4jW0n Z1mUobnEtNg6LcKBHyobzkg42B3wWQ0kZjYD6FxemK6C5Z6wRrk6bME6ueJdIailHFBE phwq5cr5unOPqb5rumBKR3F1bMzAAHFmNWsnad/cp3iMIaBjKjA+UpXcc5HhiJlgyVFY OB4qobvYIX0LZPe3TM8tHtXYoHJktPmJ4VPiCYGUhtogSELmtY4XjaFzdE+ENz/ieU5C KQrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c2Yo4PxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si14905879edc.103.2021.10.29.12.09.30; Fri, 29 Oct 2021 12:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c2Yo4PxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbhJ2THn (ORCPT + 99 others); Fri, 29 Oct 2021 15:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbhJ2THn (ORCPT ); Fri, 29 Oct 2021 15:07:43 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39049C061570 for ; Fri, 29 Oct 2021 12:05:14 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id x16-20020a9d7050000000b00553d5d169f7so13208138otj.6 for ; Fri, 29 Oct 2021 12:05:14 -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=XrtEv0I4WsSSxKWDA07JfBbz3bZ9+ZB3B3Y9Ggez2Go=; b=c2Yo4PxZ9egNJp82XI1pGTkuAyzNXcy7wXjAsXJ86jd0NN1PX5YTtJagzG9TtSP27Q WFCn+oT7xajIz4IdEqmFgxlsc673cFsVZeIhs9qWO7jF7zUW8oMD6tyJnCIgXYlEGDE0 z3WjQ9SK3GOcE/Lcsyti2+4e6VdnqaeCGCQB8= 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=XrtEv0I4WsSSxKWDA07JfBbz3bZ9+ZB3B3Y9Ggez2Go=; b=jL/2JRRoVDHXJVyjrQGw5tKWHTftzM+vGzR0Bsn4E3eqaPLiCeHrrIH5/s5errHuL3 Hh9C6dLXjFK7+zXYRBCN6UU1QORITeIph9DNdkxhYIqHUSTE2WjV/iMOLMJRH34I54mC WRCvGS3jZUF+ChfX9Aw/vWnxvJWEywWhINGulR6j8NKTQrzmaTWzskaU7eMp04dc9Rq3 rZufnXjWT2t2b4c76IXcw2zJu+IcWpyeZDXf5D3ctxb8j/8435yhWMtkL16x6iWIQN2L +hv7D7D6ZMpPwF8wW424gHBRVbEPsE0dg48W2eJmuhJrgyZZiEiuUqzsG7NlasgBvBWM LaGQ== X-Gm-Message-State: AOAM533wRyVX4kdZ5X/L/6unYdLUvIgBoOziTvAguhuaKuCLcSk5um5g 05B9rwewIm7RXW47QPtfiMzceGWEfoiPDMcpHsdN+Q== X-Received: by 2002:a9d:7655:: with SMTP id o21mr9907159otl.126.1635534313642; Fri, 29 Oct 2021 12:05:13 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 29 Oct 2021 14:05:13 -0500 MIME-Version: 1.0 In-Reply-To: <40fa13cd-f24c-e3a9-9b49-23ad26507bfe@codeaurora.org> References: <1635250056-20274-1-git-send-email-rnayak@codeaurora.org> <40fa13cd-f24c-e3a9-9b49-23ad26507bfe@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Fri, 29 Oct 2021 14:05:13 -0500 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-kernel@vger.kernel.org Quoting Rajendra Nayak (2021-10-29 03:19:04) > > > On 10/29/2021 12:24 PM, Stephen Boyd wrote: > > 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]? > > No, the driver in [1] actually manages the LPASS TLMM instance, while this patch > makes it possible for the 'same' pins to be managed by the SoC TLMM instance. > On sc7280 SoC for instance GPIO144-158 maps to LPI-GPIO-0-14, and GPIO159-174 > maps to SSC-GPIO-0-15. How do we make sure that the LPASS pins are actually muxed out of the SoC and not blocked by eGPIO in this driver muxing out the pin as a gpio? Do they avoid conflicting with each other somehow?