Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp927243pxb; Wed, 29 Sep 2021 12:42:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXiWx7136KMo7m9C5r12FAkulIqT6Jm2cQibAewGDXc5oL635RhGvzMzPv88TfIDkz/Bos X-Received: by 2002:a17:906:7ac4:: with SMTP id k4mr2013641ejo.430.1632944548643; Wed, 29 Sep 2021 12:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632944548; cv=none; d=google.com; s=arc-20160816; b=l1+UxQs0Gcx+/4/3WWPA+LWjC2Umz4sClYNCfcIjqBHTZWrKKGB2jduqqRKsWIEgLA WlTyKLM2kAIZr+APLGSLk/DU/gpyqD+SkxNUoZoxXsVHbSUG3UJQ5tULb3BQwHSri3hd WZ6ZWDBf9PRv8i5Rw9uzSpsLA5M5Y2Iz5Ywwb7GIy4JSIjrhVp6Cuvz80Xd3eTus33iq LwoCSqa7T9Xhmbg7NwCA82u76M2IgR8nrxEmSDjhZRjwfb/l9zXkMKuq0pPFi4JF/QEN yVcK0bbfpmF7aNd+R8UrSylhIAPxdVtSmNKpa1Ae/kzXSn/VOy610QctlUKa43NFqGq5 Zqsw== 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=ny2+77Uus4H/nPXbEE4fOfi5YTib/j8MfG7t5iU/Qjk=; b=wizNDAkGjlYDojV39RlgNPktuOHMdXdowD181da8aQO27t9NNoxEkL3pQPnTmIgyEm qss0+5B81x2GdX1M1/9EHdagDhti6vKJZGSQPlu8OocNxEO+DQ1UUoTZmfrl4DzweMuY 1z4O7kPkzZGSHdndRiLgL8aeY7G3xyiVlwMGCvghbU8EDSXANunel+5a5RZ4dYMnp4Si dx0EzckQnEyZ3h71Oeo2H4n3cg3cClUCgz+Ip0HsdktwX0sWwrG1C0bIUtEMPpilvAQQ 9+TxRBmC6yV8VZQdaxInRM3Bo99FStjmp2T4E92qjx1tUwuF6+ybfqo9kG3Bk7cGdf+2 YkUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u6OGwlgD; 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 k17si973624edf.574.2021.09.29.12.41.51; Wed, 29 Sep 2021 12:42:28 -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=u6OGwlgD; 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 S1346421AbhI2THr (ORCPT + 99 others); Wed, 29 Sep 2021 15:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346389AbhI2THh (ORCPT ); Wed, 29 Sep 2021 15:07:37 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1231FC061764 for ; Wed, 29 Sep 2021 12:05:56 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id b15so14797007lfe.7 for ; Wed, 29 Sep 2021 12:05:55 -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=ny2+77Uus4H/nPXbEE4fOfi5YTib/j8MfG7t5iU/Qjk=; b=u6OGwlgD9IMdZ2HdoL8lkGBaqUb5DoK6/ym/uunK23jP7PeZNuys4OF0DfZjcc71mS wSaga3Tz+eoQfYV0I77DEE+PbtHypvTZ/hqRMk541PeMfXxMoxuGqlNVo6GKIhgqBbtm w4CE6GxIgsoXcTdf0P78xhEPcZsN2n4qskMRL9Pso9qTEa0nE66xFL/I5iPwRYB5XEyZ ZI8Rbt2eumS1xSR4toHy0Z7Aqwi84+S12v0eY3n9N7BiGO3yEUodzVmc6BbfSI3q3Syx EhFNtc07A3S93kgvOonDkfZaLwDimfeSFWceB/mxA5hxY8a6ldJ3f52N3kCwWFaHdbDI bpLQ== 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=ny2+77Uus4H/nPXbEE4fOfi5YTib/j8MfG7t5iU/Qjk=; b=bSytmqyHnz/2yliw6ukbMRsRyIKGEDPy2nUCVjv9gGvCnNKYRCj/8u3hssSqKGD+c1 RAVeVdatfxiVpTOiopMJUla7PbcZbxHIsuG6UP/Mkhu8ZkHBPnfC/FwSu/yhledvcKbE 1iYy4EI0WBdJghCli1SLO+K7zwTrWl7DEYeg5Z1iEaHVY/6yKroTJNEkxqztVVSyVdt+ viB8IIDW3P1T3v67tJEe5qGKXngqE7Boe6jBhrQ3k+LFb5SnDE46hl04FmvN2qZ4tMtN P7lo48NJ2wCSAbqZn+vZiW6t5zA9mBjgvvhXa/AIvauJ0vqRfXulCN9c5iDKKLMs6sJU PRmQ== X-Gm-Message-State: AOAM53075QLLnRKxmNRLaw/byxdKMBMDDKDi7h5Er5IdyZsnp5ermien RwiqRDUBj7Jk1qQYebA1qOBwaUTrhgJaa2ojnYeM3A== X-Received: by 2002:a2e:8011:: with SMTP id j17mr1513715ljg.145.1632942354388; Wed, 29 Sep 2021 12:05:54 -0700 (PDT) MIME-Version: 1.0 References: <20210929163847.2807812-1-maz@kernel.org> <20210929163847.2807812-11-maz@kernel.org> In-Reply-To: <20210929163847.2807812-11-maz@kernel.org> From: Linus Walleij Date: Wed, 29 Sep 2021 21:05:42 +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 Wed, Sep 29, 2021 at 6:56 PM Marc Zyngier wrote: > From: Mark Kettenis > > Add pinctrl nodes corresponding to the gpio,t8101 nodes in the > Apple device tree for the Mac mini (M1, 2020). > > Clock references are left out at the moment and will be added once > the appropriate bindings have been settled upon. > > Signed-off-by: Mark Kettenis > Reviewed-by: Linus Walleij > Signed-off-by: Marc Zyngier > Link: https://lore.kernel.org/r/20210520171310.772-3-mark.kettenis@xs4all.nl (...) > + pinctrl_ap: pinctrl@23c100000 { > + compatible = "apple,t8103-pinctrl", "apple,pinctrl"; > + reg = <0x2 0x3c100000 0x0 0x100000>; > + > + gpio-controller; > + #gpio-cells = <2>; > + gpio-ranges = <&pinctrl_ap 0 0 212>; 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... Yours, Linus Walleij