Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp87255pxb; Thu, 30 Sep 2021 01:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAr+vtGdwwtdAjxfMGWYKGPHnOSPJ6bNPzn3uvaOUnoAAYYxe00T0RttXCbsjMQDkMyeBg X-Received: by 2002:a05:6402:336:: with SMTP id q22mr5481132edw.53.1632990868797; Thu, 30 Sep 2021 01:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632990868; cv=none; d=google.com; s=arc-20160816; b=oEGZP/n4Tf1wtqlnDgsyYz0EyyjqVmDlWnKhsD9+GqGB7EAU4eBk56nZL4GPxXe/AK Iru+FTqFkHdLXMxTJIh65DKKGeyRx9sOg9Hb8J4mO9Eo/VxdualY6Wb3Ho2wOLnQFjPs jYnJ0ICczjpB428IFvtbF37ED3BXCVKGB4UgYd3lZMeUgllTKMIQioIRjRfT41Q3PC+q Wtd5he2w4mKHrfyVltVw9R5B7Le04dWQJKLr+PfstyYR99nyyOOAzdxosGgXu3xjTh8P Bf/pKt9VKMB0teD3LYzQU+B+yD4/UMeP/ppIF0pyy51jk6cjTSql2pVWOZpPPRXG9mxj k1zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=aiKLam7Pwy/AUD+OjlN9cwOmcHq3cEnpVZx5Seqkp8g=; b=sQdzlldT5m2WqdQObKqZZbwsyWo8KSOGNH39OZG3vY0iNR5+9cmA7/4nXSTq9B785R QObmkGh57dQLx/PyuBzFKaKfn61vsOdII8nUWBKFpuup/5+p6rYuVgqirtCWZr/tIJCM gmvTR5Fw6VCZ1eBC16ifpwFJULc7HVanqhyDy+sbuRsMXdM6fArwslF3beZkuoV7jTR6 pzdRao+i/DD98oC8PZmvjx20QzStzp7mJltZt2wrA/hg5kAd2gG4vUOC2LjUXrO//8Lm hM2OYTP0TL0jaLgETOP+yO1dzl13C0IZq0ZMWFdEP/unVh9aVsqpdC97EisRMkX49bLJ xFiQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si134823ejx.484.2021.09.30.01.34.04; Thu, 30 Sep 2021 01:34: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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348838AbhI3ICz (ORCPT + 99 others); Thu, 30 Sep 2021 04:02:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:60410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348840AbhI3ICe (ORCPT ); Thu, 30 Sep 2021 04:02:34 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28AF7615E0; Thu, 30 Sep 2021 08:00:52 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mVqzq-00DuHm-4a; Thu, 30 Sep 2021 09:00:50 +0100 Date: Thu, 30 Sep 2021 09:00:49 +0100 Message-ID: <87fstmtrv2.wl-maz@kernel.org> From: Marc Zyngier To: Linus Walleij Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , linux-pci , Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Alyssa Rosenzweig , Stan Skowronek , Mark Kettenis , Sven Peter , Hector Martin , Robin Murphy , Joey Gouly , Joerg Roedel , Android Kernel Team Subject: Re: [PATCH v5 10/14] arm64: apple: Add pinctrl nodes In-Reply-To: References: <20210929163847.2807812-1-maz@kernel.org> <20210929163847.2807812-11-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, robh+dt@kernel.org, lorenzo.pieralisi@arm.com, kw@linux.com, alyssa@rosenzweig.io, stan@corellium.com, kettenis@openbsd.org, sven@svenpeter.dev, marcan@marcan.st, Robin.Murphy@arm.com, joey.gouly@arm.com, joro@8bytes.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Sep 2021 20:05:42 +0100, Linus Walleij wrote: > > 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... Is it the driver that needs updating? Or the binding? 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. Thanks, M. -- Without deviation from the norm, progress is not possible.