From patchwork Wed Apr 24 18:50:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 13642387 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06542C4345F for ; Wed, 24 Apr 2024 18:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=U2xCdtI/KOuT6RDComuvL3/sm38V3xZO2Wx6U7xtnbA=; b=m69cPAed6XXqOp JMG/Eydmm8r/OWQ1mFQ5GsNLQsuSCxZ/eGEFuD7M7WeRgV4SOjemvaBXXnOfzMCOr6m96Sbu3P9lL g3CDv7LdWJbRhC/tS3qpSxQUeDZi12ooGX0oRpqJSpvoSsxTNG/A/X6Jq8F2Tnn+nv06HH0r8Idqu xuhfODDfp9dIsR0jIaUqbJqE8wHHuH1Qnbp20Uz9Nnr/UbDnFPp1OIQb+jztIZcEF7A+fyX8C3CBF 3yx031ES3rTFklCI855zHmxdWqWQX4dcpia3QMrSUuUKLreEMat1nbOouhpGoZZPkDU6T+qtbGq9b S73eIKPyBhSkYTVHkdcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzhiM-00000005UAp-1hC4; Wed, 24 Apr 2024 18:51:30 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzhi9-00000005U38-46yw for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2024 18:51:20 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5f80aa2d4a3so179577a12.0 for ; Wed, 24 Apr 2024 11:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713984669; x=1714589469; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=48mxMFWxRPbfhbz62qZsFgeMgLn9gqf3uPCw7ejtzBk=; b=kJ2lBRZjObAP9GgAwEspRnBhAmRo7CJwvPiYAqB3J1Ti9b0nOYHzDlkkX+RFh0bU0b 0mYQPdK4KPydti+rrNcWuYPW40opuf1jg2381cNxDhh9xUZUDmMWXkPCPlTF1B5ulr7d W4Y/6cLEL+20GVe42i1VtkHZDO3bOnMWXG+Vo0Z0pm+94epmahhM9Lf8SXYG03FsTrKd bn5+xwKcS4Dyvzcv9FROBnmCRjEucErJKBUBHt47o63XX1/1q+2KSgSJf9YUACo7MKwc ywma1slk8KDz7YAw1xSKSkYFTDm8SlqGBYaCSjbkPFvYA499tUwOwAbQOGdThe3hj0iv apgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713984669; x=1714589469; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=48mxMFWxRPbfhbz62qZsFgeMgLn9gqf3uPCw7ejtzBk=; b=BjUxvEYSiEdcwFhrAM4e/7CyrCCD//kzck2SWQ+h+XrUCAjFZ6+UtWgLeAbmKPuvFH SUSASxSHXqyY4p3Hqqj/6xiv5akvaqEOpialnaHjugjj7Mz50CSezyU7hUb7WZNFA3gW ZAtZDGCVGn2Z6h/Y41pdgLDH4U+ZORbH01s5mY95Nrzv2FR6Shgo/9F6DWaQl6NWT2jg PFMGSEOmp2beiUf7eBbWEl+rNJMVKMdjphh+D2bYOVseDrf9Vmvy59fK/w+Pjj08Yrjb JB2VhqmVBMJk0UAqz2gEwzAgcg7Wfz4tg10OUJ2ul4cDYLdQ9A8T9ZMGcYT0xNx8XM6Q B/Eg== X-Forwarded-Encrypted: i=1; AJvYcCUfbtuLt2zzEB8aWyuORWJcKLYw206EhQFZfmffU9HZKpmHfCHoUOZtkzbCyPGfhL2IdmGeIEkV3iQ6LhpGH8R3ipSkPiGX98sEXl07pncAumzt5C4= X-Gm-Message-State: AOJu0YyPGIqvokAP1k34Nt+hNFlVIbpAZjz41Ln0SNKDsm0rVCDWCw68 PTw14xRFJoGMHn4sk7A9QX2eftDIria6fqu0XPTYs1ELB9E5YcXW X-Google-Smtp-Source: AGHT+IHkqSQ1b6O6+sYib4DgIQ/4zA0iPn9beMEBsE9puyrhvi9JxgtyrS6CkUdDbAEWb4Ui+Cy73Q== X-Received: by 2002:a17:90b:4b0e:b0:29b:10bc:acaf with SMTP id lx14-20020a17090b4b0e00b0029b10bcacafmr2947707pjb.30.1713984669425; Wed, 24 Apr 2024 11:51:09 -0700 (PDT) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u8-20020a170902e5c800b001e425d86ad9sm12268728plf.151.2024.04.24.11.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:51:08 -0700 (PDT) From: Doug Berger To: Linus Walleij , Bartosz Golaszewski Cc: Phil Elwell , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Doug Berger Subject: [PATCH 0/3] gpio: brcmstb: add support for gpio-ranges Date: Wed, 24 Apr 2024 11:50:36 -0700 Message-Id: <20240424185039.1707812-1-opendmb@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_115118_039168_A7A70D68 X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Raspberry Pi 5 includes Broadcom STB GPIO IP as well as Broadcom 2712 pin controller IP. The community has expressed interest in linking the two drivers with the "gpio-ranges" property in device tree. This commit stack implements the necessary changes. Doug Berger (3): dt-bindings: gpio: brcmstb: add gpio-ranges gpio: of: support gpio-ranges for multiple gpiochip devices gpio: brcmstb: add support for gpio-ranges .../bindings/gpio/brcm,brcmstb-gpio.yaml | 3 +++ drivers/gpio/gpio-brcmstb.c | 2 ++ drivers/gpio/gpiolib-of.c | 23 +++++++++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-)