Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2848399pxb; Tue, 21 Sep 2021 08:57:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbUb4KvtqaREOebSxp4zBH/uxuTqesu8RAW+5FKfW0fdkjPY3D3QFzciTbDBI+9xewcHEW X-Received: by 2002:a05:6e02:110f:: with SMTP id u15mr21892524ilk.6.1632239864974; Tue, 21 Sep 2021 08:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632239864; cv=none; d=google.com; s=arc-20160816; b=VUSyz3/OtLZZajCmslY/mmmdAu+7ePlembilS5Xo96cGdghP+/prIYHIxvb+aCSIUB CcGyku7CeqYCRxZCoy6BrJlNA3ToDhOa0kz87PmeCBorUWLJlFxJUOLGFNVnVms+07Gy cJSt+l7jlQZHKvMYGXzz+8+t3tohFdViOpBK6TlgkRMjeqXwsyd8znCbYMq/WOitgkBr 60qQx6g9rnJ9TDSoWc5TnJwtv3Ntrh3NK1iiDTvEbozFWcU1bSEahnpm3FyZwEsFRRDn rgKjkY2agHrlvMHSAbz+hFRH7ll+r3ewqviddk5JMq29vG8qG6EF+sFbPE7W10GEBeBt MpXQ== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=3dRRvOoGnmIrwwlsxrjhXDNUq+Kqf2aFZjcm4Fpvb7k=; b=Ueqc1H4s131sSYBTeY9klNXxK0f0iBbNyj+P660ohdF6PPRZNV6/fyHkPRruUO+ubb vcczDQrtLPWLS9FjhgDapjKfVE0Nik9FcdDBMfIBLqOPy5ViIn0AF5M263G5wxf+AzCR eVI2PNMjVA0pLtDimaKgHcm+Vzj22DAFhymcK4CbJ4oNUe/3NtiaAB4Bg8AKRQMZVV4P Q7PshZI6damrrDlmr6h3F4AkIRtYws4WISkP7kGtdg7JZMBFVgHz1t9ulYbRx87999os aj5bzwTJ+B0lDL5D0zCPW1Ud3fS+R3fJCO88zhDF3KcGLpYO3uGeTIZoCNEYoSaPd0v4 Sgdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XjT8euJ1; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si15579321ilj.70.2021.09.21.08.57.30; Tue, 21 Sep 2021 08:57:44 -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=@linaro.org header.s=google header.b=XjT8euJ1; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234211AbhIUP57 (ORCPT + 99 others); Tue, 21 Sep 2021 11:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234168AbhIUP56 (ORCPT ); Tue, 21 Sep 2021 11:57:58 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F38C061574 for ; Tue, 21 Sep 2021 08:56:29 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id u18so7358702lfd.12 for ; Tue, 21 Sep 2021 08:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3dRRvOoGnmIrwwlsxrjhXDNUq+Kqf2aFZjcm4Fpvb7k=; b=XjT8euJ1tczso29kfHXmNCJHZRMAS1oX71/URiU3zEEb64+9uDWgmIwauvqNThaKd2 LY6KbMerapB+rxaOPqzMXMMoo13WjSu99La0jzgxrbYC3oRmbVXsvwOc2eDBkPiST4AE Vx9Y2HZ3utTbU1zwoIfIwYQ+f72e96CJ5i+98x8/LpRPLGQrfmZd5Vg/WlsDPIFtkbA9 8kAuY8odwAUT+MFeuVlE9RbB11tnFs90USfJY66NmOhc7dplcF6vSuI2yrSdO9+9lu+L 9I6tocdkqJ7EcfnoXSqvvJfk2mQ/2gDyYNoFBYC30GH0lx/hspNQtok0n2XFWFxX4J1d IWvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3dRRvOoGnmIrwwlsxrjhXDNUq+Kqf2aFZjcm4Fpvb7k=; b=tSaQZ8ogUlhJT1ACCSb+/5sfF+APFg61fK/mDC2Ae5BSM/sdpgazT81GB884cQep/o OF37753GNUs4G0raCuI/uCdI+LxASKW+oQJxMBGAi1qRWskwNI5bn2ugRGqV3IzcnHcf nvs2ct/ystCMXJVHPWauLe47VI3UVYihpNne5txemNXpe2FgsKUrP3ZmrLy+GjHaFrF9 RX1FrUEILrKkmygdDN9z5H0Vw5cByz4PNdUR2CIUsDWSA6Xyjp9/wnZIUGe91VmJ1xPI i8Fkh48V74veU56ahxgpjGp8RUcdMtd7o5gFOFkClRniv4WB2aDta+ThZiiXzwWBvNS9 y/uw== X-Gm-Message-State: AOAM532aAF/jsGX1bSzhj/cV6DS+lUllXLYu4NrwH0KHnllWZjJng2tm IMrMDEDj0eNVVNOhh74DSGeQDU1yzfa+5P38O5+iyw== X-Received: by 2002:a05:6512:10cb:: with SMTP id k11mr13874613lfg.72.1632239775245; Tue, 21 Sep 2021 08:56:15 -0700 (PDT) MIME-Version: 1.0 References: <1631860648-31774-1-git-send-email-rnayak@codeaurora.org> In-Reply-To: From: Linus Walleij Date: Tue, 21 Sep 2021 17:56:04 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: qcom: Add egpio feature support To: Rajendra Nayak Cc: Bjorn Andersson , Andy Gross , MSM , "open list:GPIO SUBSYSTEM" , linux-kernel , Prasad Sodagudi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 21, 2021 at 12:39 PM Rajendra Nayak wrote: > On 9/20/2021 6:14 AM, Bjorn Andersson wrote: > > It seems reasonable that this would be another pinmux state for these > > pins, rather than just flipping them all in one or the other direction. > > hmm, I don't understand. This is not a pinmux state, its a switch to decide > the ownership. > These egpio pins have regulator mux functions, some for apps, some for the > island processor, they might not always be used as gpios. The pinmux API is for muliplexing a pin between owners, and that is what is going on is it not? If the bit(s) select different processors that is changing the owner and creating a usage matrix, e.g. TLMM_GPIO ISLAND_GPIO TLMM_I2C ISLAND_I2C etc etc They become different muxing states nevertheless. How to encode them, such as (a) bitfields in the enums, (b) more cells in the device tree or (c) ... that is another question. Shoehorning it into pinconf is not the answer IMO. Yours, Linus Walleij