Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2039784ybg; Thu, 24 Oct 2019 04:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+SBtb2vBPLqRgd2MGwUp1XDrLxaGbMaSSHvJbjv+deLLkvViTkc7dDs/sthVfLGbCsw0d X-Received: by 2002:a17:906:b347:: with SMTP id cd7mr2356639ejb.105.1571914814616; Thu, 24 Oct 2019 04:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571914814; cv=none; d=google.com; s=arc-20160816; b=bsOV9Ut899c6mtc08uop26e5Ze7GPO+yE6qFd7dEj2VQ7wnCPqmr9uUwSn0loKA+uB VjyEUnfjD1M2TmlUMzUJJD2mRIcn9hkSxExtDoraEV5D07n+aTWPbx1K7vjcV9xIDbsZ Dff6RcXcsKxnw0YaCtjnsNYAWYPwiSlXETlQW8AmaNUYHKfBiVS8vf9EoPU4kGrVVD4S p9kUXQTeb9I7CONDAYiTtIZlgEP/gN9Oi4sbfJQDbmzD/gPceKaVOPhflnjZveco1vXB GCqyH0JIMAzG/+Ulp3/uhqe9G+s6Cl0d3LopJOALJ1j2+dTJqi3x5bMe9FDJ7oHgSeB7 0H4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Hjx2JI6pureQLHmmNJuUqkEbwbT6++g9hZ8eI416dYQ=; b=lD2B1UJUCVaF7ZXjEoseJjr2dbWJ45EAcN/+Cuf24fa7r1cb2aaQ/AC02ekFWRa151 TI+rEQ2O6SZq6qpSSP/NGCTx3kh7AfjpUU2RUwE44kmUsxCXitZleCXvDjSvXUHvxA+W 9wUJn1/xjGnUxAyvntfJ9GwMwd2csfYphQJTxGuN5X/Vz+B1dgvE8LXmJidzl3gJd51r t+VBNWurL8/g45YtPF1wJ7Zb0YrbV1PSdK4YHjRLWTlC4a1thD8GUJBsXXf7CvC1PK5K Hmc7P/eNjv7mizfZmcMNTjZbH4Sb5wJkxhGM7ObhTYgMMWc7Hd4ytREMeYBmF/CpvVhE 9X1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=o8wsuhOq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gg10si13996816ejb.206.2019.10.24.03.59.50; Thu, 24 Oct 2019 04:00:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=o8wsuhOq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407661AbfJXAs2 (ORCPT + 99 others); Wed, 23 Oct 2019 20:48:28 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:58342 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405818AbfJXAsV (ORCPT ); Wed, 23 Oct 2019 20:48:21 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id EFDDE886BF; Thu, 24 Oct 2019 13:48:17 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1571878097; bh=Hjx2JI6pureQLHmmNJuUqkEbwbT6++g9hZ8eI416dYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=o8wsuhOqs9YZLRGHDdAoCPKI29xyQ+qobp3y3jXloW/HQqA1NzOxdGNw+L18XdZ+c GHxfTuNmGAvgiPhaT6XOb1QqKXnq2sKQb2f8hHpfWkXM0smjXb8KTLjwloXGbISDxV 5U0sWZJDZu9bAieprmNsN3IsOhcDoJ2gZe/S2o5Odhv2YJ3HQdMU78PQFA5UN9vh+k K8Ef34z3QpukxDXYvXtfxrwNO5LSxvfEmveWEg/XtFlH/Qfc/MgDkJw8/Ym6DNLGDd JyO9r0UNtbof5KXzewAwiHEZwv8vA8G96SSxs4yFUvGRW/FLfxdv6ZJZV4vYGeinjd uYjjYZkaJXROw== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Thu, 24 Oct 2019 13:48:17 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.20]) by smtp (Postfix) with ESMTP id 0202A13ED56; Thu, 24 Oct 2019 13:48:22 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id C5D8128005C; Thu, 24 Oct 2019 13:48:17 +1300 (NZDT) From: Chris Packham To: linus.walleij@linaro.org, bgolaszewski@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v3 1/2] dt-bindings: gpio: brcm: Add bindings for xgs-iproc Date: Thu, 24 Oct 2019 13:48:14 +1300 Message-Id: <20191024004816.5539-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191024004816.5539-1-chris.packham@alliedtelesis.co.nz> References: <20191024004816.5539-1-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This GPIO controller is present on a number of Broadcom switch ASICs with integrated SoCs. It is similar to the nsp-gpio and iproc-gpio blocks but different enough to require a separate driver. Signed-off-by: Chris Packham --- Notes: Changes in v3: - incorporate review comments from Rob and Bart =20 Changes in v2: - Document as DT schema - Include ngpios, #gpio-cells and gpio-controller properties .../bindings/gpio/brcm,xgs-iproc.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/brcm,xgs-iproc= .yaml diff --git a/Documentation/devicetree/bindings/gpio/brcm,xgs-iproc.yaml b= /Documentation/devicetree/bindings/gpio/brcm,xgs-iproc.yaml new file mode 100644 index 000000000000..ec1fd3a64aa2 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/brcm,xgs-iproc.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/brcm,xgs-iproc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom XGS iProc GPIO controller + +maintainers: + - Chris Packham + +description: | + This controller is the Chip Common A GPIO present on a number of Broad= com + switch ASICs with integrated SoCs. + +properties: + compatible: + const: brcm,iproc-gpio-cca + + reg: + items: + - description: the I/O address containing the GPIO controller + registers. + - description: the I/O address containing the Chip Common A interr= upt + registers. + + gpio-controller: true + + '#gpio-cells': + const: 2 + + ngpios: + minimum: 0 + maximum: 32 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - "#gpio-cells" + - gpio-controller + +dependencies: + interrupt-controller: [ interrupts ] + +examples: + - | + #include + #include + gpio@18000060 { + compatible =3D "brcm,iproc-gpio-cca"; + #gpio-cells =3D <2>; + reg =3D <0x18000060 0x50>, + <0x18000000 0x50>; + ngpios =3D <12>; + gpio-controller; + interrupt-controller; + #interrupt-cells =3D <2>; + interrupts =3D ; + }; + + +... --=20 2.23.0