Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp421500pxb; Thu, 30 Sep 2021 08:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPqCPVf0jvTLWgLvlwDT46G/Q7FHG151HgOFRC2K6HZdfSkctp1yAuQ4Akkla3M4vvTtl7 X-Received: by 2002:a17:906:3745:: with SMTP id e5mr7462464ejc.400.1633017067597; Thu, 30 Sep 2021 08:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633017067; cv=none; d=google.com; s=arc-20160816; b=PGEtxBqggpPNrnGzyp6US2KfaXZOFFwUuEez7E+AI45XQe5egSMYB/+Bfk0+s3FCQc tXMIikYC08rVsQD5VrgAl8tV/5bbDcZnkYX5PjxNb8QJ6NM2D9p1edvj7Yui5DadveK5 ZsGXNxQY3bkdseTO3nM5AQ7w5rF5zA+uTJeXsNLwrT14ojxxbWJYz9yIDA45ymsE9Rwq iPt2fbH8JzeR2+r65HA/3E2kFsxHOo01TiUqwxiibWsoomzXJltcV23D+fSQZYKIkI1C tqOWhZH7Jt0SYY1Y5C4b7YZzYO6ohwRmkA1pb+6mU0qDGsEZPwpyqo76W6opUTnJRVNM DhXw== 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=d2+hq+nxbbXAkaT4qaeWpisMiqGB49qBmA8xSYn2QSI=; b=Exiw1mYbcdLODMcS5GRhYsRX/SlsfTZGk2Z8ftspMXOVMC75LW5rbetSqZlsRDrBnx tbPsEUQMU5hvaQVZw2dHvtJqUFFuSYChVM6qLaOMfYmavXkp0fkbigjjfHa8qwxYBuHN V+huzurJTm/f3NEMhgJBscdH8scyOHfIbea7tXQcJSaD82gZw6tZ0MuApKvJ1OCWUVZz QWP+SPPjoBP+ml2PR3Uq/0QTakQb7Jps0/CN81f6cim4oNmTESAGaWwDCMShlo6ClHHL LEXvA8qqMeAj9USGd88EXfoXBhPWB5NbqU2buCaqyDUFTlEUo18AwjYpmNYZWXGQ1ilK chwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ts/avt3k"; 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 mf14si3717371ejb.724.2021.09.30.08.50.43; Thu, 30 Sep 2021 08:51:07 -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="ts/avt3k"; 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 S1345971AbhI3Psl (ORCPT + 99 others); Thu, 30 Sep 2021 11:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345801AbhI3Psl (ORCPT ); Thu, 30 Sep 2021 11:48:41 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B06BC06176C for ; Thu, 30 Sep 2021 08:46:58 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id z24so27220500lfu.13 for ; Thu, 30 Sep 2021 08:46:58 -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=d2+hq+nxbbXAkaT4qaeWpisMiqGB49qBmA8xSYn2QSI=; b=ts/avt3kzHzoGq7Ak5AV5Wxe9QuECdMvB1s1HFzD4+ry82idewTaLUO+lCQuPa4DyT +gW4lWvWT46H7IaGSWgIxkI+ddVuNPHD7B4ZwzvfDM6vf/mfP9X4OI6AQuOiSypfGtZB h3JFyOa4UBoWcHjaFYDexjo/9CzkqZyngQqJG5pdHE1mbP39PuOkPs0T7cpyNxEjM5Kz UNFPvziWlKLKCBEVCTO6UtQGZazE4HPSsfNBQMMIEQoAQH8hu+mCqFP3HcABwh4l4y5v WNZ9l1NNn4dCJYMrhtFz6JNdL92AvTTZeVcJ9g+V4XP+NEnb+VXo5HzLlIdET+Ht+L3K Cszw== 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=d2+hq+nxbbXAkaT4qaeWpisMiqGB49qBmA8xSYn2QSI=; b=Q6na9r48f5F2LSCrV/lROoTx4PF1JZnJhTAsvYTY3hKjfOT41AXvB8B9yTb20+b1jU LLa0iAvEcSGDGEkJiV0w5ivM4/+8WAyRkSEtVQaqDKJcZwxXrC2wWst11Cx71SOLZKM4 UK4ifhgex1fl8FrxNt+5xEV1kViFNIqXbpUfvyWjRmfLBrKX0v2AMLnrjc6MNSiPPWGf ugQSjGIzc7EMil3FzE9F50fQyP95b1OJjqyPVG3sn8FZlky61j3J/aLfggnwfLtnmcsx pwrFxRTqhw8qUTH6Xj2xSN5GzevqXkR3gCtSH/dGyvLpvg5vVui43Ivrn/h4vEvuG3SU p2bA== X-Gm-Message-State: AOAM5303kP1ZBa5PBjj2Ura7HF5gr0va4wjXEFS8b/QAeEHKjCkuquuf Y4oq/YPPHdkG+TGUW2jmIorlSKLNbelwLAI8Ysxvdg== X-Received: by 2002:a05:651c:4d2:: with SMTP id e18mr6742952lji.432.1633016816515; Thu, 30 Sep 2021 08:46:56 -0700 (PDT) MIME-Version: 1.0 References: <20210929163847.2807812-1-maz@kernel.org> <20210929163847.2807812-11-maz@kernel.org> <87fstmtrv2.wl-maz@kernel.org> In-Reply-To: <87fstmtrv2.wl-maz@kernel.org> From: Linus Walleij Date: Thu, 30 Sep 2021 17:46:45 +0200 Message-ID: Subject: Re: [PATCH v5 10/14] arm64: apple: Add pinctrl nodes To: Marc Zyngier Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , linux-pci , Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Alyssa Rosenzweig , Stan Skowronek , Mark Kettenis , Sven Peter , Hector Martin , Robin Murphy , Joey Gouly , Joerg Roedel , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 10:00 AM Marc Zyngier wrote: > > In other discussions it turns out that the driver is abusing these gpio-ranges > > to find out how many pins are in each pinctrl instance. This is not the > > idea with gpio-ranges, these can be multiple and map different sets, > > so we need something like > > > > apple,npins = <212>; > > (+ bindings) > > > > or so... > > Is it the driver that needs updating? Or the binding? Both, I guess. > I don't really > care about the former, but the latter is more disruptive as it has > impacts over both u-boot and at least OpenBSD. > > How is that solved on other pinctrl blocks? I can't see anyone having > a similar a similar property. The Apple pincontroller is unique in having four instances using the same compatible string (I raised this as an issue too). Most SoCs has one instance of a pin controller, with one compatible string and then we also know how many pins it has. The maintainer seeme unhappy about my suggestion to name the four pin controllers after function and insist to use the same compatible for all four, which means they instead need to be parametrized, which means this parameter has to be added because ranges should not be used in this way. I guess the code can survive using the ranges as a fallback at the cost of some more complex code. Yours, Linus Walleij