Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1190194ybg; Fri, 18 Oct 2019 13:30:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVb8LZhsQiDyTaCaIKGfc76Fbp2+6G5VjQdQ05iqf70NsVpcnnpgIDfdQg+PLlwCOaQyzy X-Received: by 2002:a17:906:160f:: with SMTP id m15mr10236174ejd.217.1571430643983; Fri, 18 Oct 2019 13:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571430643; cv=none; d=google.com; s=arc-20160816; b=kevXULDh+YIc6p5N5S4BBEwLysj540AXd7OwitZ+AjEfNRpbeIwJKYbi23x3I7cdi+ Wm1t3DTGkeAcSqg2DWpTmUJU5QW7TTuuka5lXoDDTkxdlkA4MOiHSPZdUokzXQB2+AVP ALH0MvNsvDACjKti1iGR8ylB/Nx6dE+QAH3i6HmKFugihWkKLStIQS6S60jznkXla1Ff Pnb25sozMLqTcf98+htIb6xxV/2atcYmdgTGeDw/pIkWm0kD1Yg9zHjdt2nT9XDf+zAE N0VLBuRO1Dlp95T9LmaKyeRYd4BSKRG2m/RvCxDy0FHu88mQAQE14v4EHf/J11/aQxTp dvkg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6tlDHmC6wlZ5TK6UmlVKTwMVjF5/yhTWEc3F91aKg24=; b=weZxntQLLfGKfyZLMFTGM9gSEeu6LW2YPbxQwhbLzdDKgqbPKN9p6YVR3AFY/1IqTO 8XnFpZKU10IVDzuTIvB3mfkqUuekI0SGhxACtR+WdV50tI17vlhOPWSPjQrSR+54y0Xc KgbqILO4WpcCVr3ujfm/ZhGhCxVYYVMZzeO/P/dCc3JaYlNQD7TpQm8v0O7GJ9GaLI/T BUtuJjx3yzxEpnD21iyZEPP5Udpm9e9+VUUVjl/iXP41UBt/ZUIFgUjsZYPPO+2MPhgf Jf+jWZo3vKe91CD16BGUBbsYMQUkvuulE4nUMzVSOM4yESrHy5Zn+J6au8BUJWDlSiTS CZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kVFYtNML; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si3853293ejf.53.2019.10.18.13.30.21; Fri, 18 Oct 2019 13:30:43 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kVFYtNML; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406200AbfJQPRw (ORCPT + 99 others); Thu, 17 Oct 2019 11:17:52 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41344 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405685AbfJQPRw (ORCPT ); Thu, 17 Oct 2019 11:17:52 -0400 Received: by mail-oi1-f194.google.com with SMTP id g81so2457230oib.8 for ; Thu, 17 Oct 2019 08:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6tlDHmC6wlZ5TK6UmlVKTwMVjF5/yhTWEc3F91aKg24=; b=kVFYtNMLoieGIHim43g4qoHdRv+TfrHMppysmtPYdQmFpQ8AAVGtvOS5SFDe79ELLD ZFC8PJZL31LKEnbLFaAcMHxM840aoGBhMAdxX1rue5Y+DvX0cEwvXPD+cNjQWnaaVvLX EKxymEzRR+BQLmhWQ2OwFbhclVX08imRm3wWFjPC5dOYVKgxolaO89nSjbayGcm30K8/ MO0u6oDdsGptvpsxhQcv+TfONcrc+qFTYiG2AtYBkuJf/+jsOCxVUH91gM+DS+uO+eEj pTXgyRSSd9bx2uQThNkVkAfoQUroVL82i7pvZRsnTn9MOvig2YisHYB5Ba7eVqupy6pB Tadg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6tlDHmC6wlZ5TK6UmlVKTwMVjF5/yhTWEc3F91aKg24=; b=D3lFYfXtTMj3s1VfTzBLoJ6Bx26CqHShV1AzNeGmvFhRqHhF3NLwbucV8L05g96baz 4HdmkYKHyW+JtY5gibu0hfPu8zmJ5wgXYLvF1KN3TRb5bKESvrU1/Ko+t19+J3iSnDv2 t6nu1T44Xj2LFlre4rrcuTEgH80K/sPKXkNlDOrxwTF43SiDU4y/62z+zg1E0z3R0l4I wvc1cVt0ZHwwgZviUP55ChUWk3uRc75Ua3YZzoyjy7tZEqlsDkuJ6/lwR8dSONYujGEz ACVdx4Crq6yxeSlcH13xmJFMrXrLy4tq6lfMQH09FT+7FJUsk1QCklMhhujz98m+7KjN dorQ== X-Gm-Message-State: APjAAAXLfLlublm7yu1XvBkG7dg0/B8a0F47aS2zs0WbCyx62mXe8MZH 8TbYeInoPNK3rVfmkuMVjrFu+SAzyXVKguNcPA5L5w== X-Received: by 2002:a05:6808:114:: with SMTP id b20mr3772123oie.114.1571325471084; Thu, 17 Oct 2019 08:17:51 -0700 (PDT) MIME-Version: 1.0 References: <20191017031051.20366-1-chris.packham@alliedtelesis.co.nz> <20191017031051.20366-2-chris.packham@alliedtelesis.co.nz> In-Reply-To: <20191017031051.20366-2-chris.packham@alliedtelesis.co.nz> From: Bartosz Golaszewski Date: Thu, 17 Oct 2019 17:17:40 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: gpio: brcm: Add bindings for xgs-iproc To: Chris Packham Cc: Linus Walleij , Rob Herring , Mark Rutland , rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-gpio , linux-devicetree , arm-soc , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 17 pa=C5=BA 2019 o 05:11 Chris Packham napisa=C5=82(a): > > 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 v2: > - Document as DT schema > - Include ngpios, #gpio-cells and gpio-controller properties > > .../bindings/gpio/brcm,xgs-iproc.yaml | 83 +++++++++++++++++++ > 1 file changed, 83 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..71998551209e > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/brcm,xgs-iproc.yaml > @@ -0,0 +1,83 @@ > +# 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: > + enum: > + - brcm,iproc-gpio-cca I believe this should be: const: brcm,iproc-gpio-cca Bart > + > + reg: > + minItems: 2 > + maxItems: 2 > + description: > + The first region defines the base I/O address containing > + the GPIO controller registers. The second region defines > + the I/O address containing the Chip Common A interrupt > + registers. > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + > + ngpios: > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 32 > + > + interrupt-controller: > + type: boolean > + > + '#interrupt-cells': > + const: 2 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - "#gpio-cells" > + - gpio-controller > + > +allOf: > + - if: > + properties: > + interrupt-controller: > + contains: > + const: true > + then: > + required: > + - interrupts > + - '#interrupt-cells' > + > +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 ; > + }; > + > + > +... > -- > 2.23.0 >