Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4468051pxf; Tue, 16 Mar 2021 14:27:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrIWzs6vIl5NWpQAlsFkyNeKMlXZc1e5nnbkQLAb4MforU+BnF2/CyBs1fJ9tK5Tag7hff X-Received: by 2002:a17:906:b14b:: with SMTP id bt11mr32975389ejb.162.1615930023292; Tue, 16 Mar 2021 14:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615930023; cv=none; d=google.com; s=arc-20160816; b=vo5UM9TxdOHvgQEePlH1hrHqcFvoMWnVIALDEv25wnaxtxUP81dVsOF6flgZYSWi59 hLeRnzmyXfHJUbixjdh5/T3HlIyNCsxfFg2aoeU/Cu/c72pVtAIXitbtfcX0g9h3oZlC pAPJZkI4GWotEBGPXMqcK4EgqI7Pdx34oUw8xBi6yjry8HQcdezhjSNztsjRRChcwdGE NsTYmCxksz1i0exQoY8vT2wCbWp2es+zphsK4n94zr7aTtI6RgOzZ4xigKfz4R5q1XBs 9ljzUnRiadO0plALHbkONTaI/DYnxvfjMjazFqKzcPZxWqTXj9FGgngbIciNRwbfs8/u hLmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xsVrLqfFpXKxNuoRZpVin2JaTCzQFHIEf5rAhS0t1jc=; b=dpZKojig5+lQOQftsWpc8RbMpGmRYW2JKz/IS6Z2hGTksr7xp9QmVKxZCy0D0Gxbqm WP5D90Vt2xm1r9E1cvs+uZtaVUsCiZi+D1PJR4r/wAqfUX1YvyNlMZk8zSSwBOh0ffN3 9uwAL1jxN8HwQJJwVdLxXnljF+hbg/EFrpFqm+UAnk9ppYdxF+qjrls9uGoFW1z6kjdR SAy/VLGf+nXjQyngoclYvoEtO8vMBhpLGgvbvtngCdyleycEpN2LMlFvHnRMmvTzqKaR A4VafDntRBidtlGVKQEX1i6Y/PmGEAELBLmuhlHaeeAHKAuIHf8ZteSkbShoJcPF8f6v DZgw== 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 qu2si14577964ejb.373.2021.03.16.14.26.40; Tue, 16 Mar 2021 14:27:03 -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 S232134AbhCPU7n (ORCPT + 99 others); Tue, 16 Mar 2021 16:59:43 -0400 Received: from mail-il1-f175.google.com ([209.85.166.175]:42106 "EHLO mail-il1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbhCPU7J (ORCPT ); Tue, 16 Mar 2021 16:59:09 -0400 Received: by mail-il1-f175.google.com with SMTP id p10so14041573ils.9; Tue, 16 Mar 2021 13:59:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=xsVrLqfFpXKxNuoRZpVin2JaTCzQFHIEf5rAhS0t1jc=; b=uetsiHxGzCvdaYcDnNwM426E+oETstT4wGVG20uUbnkIe7D8irE99guviaBuzu1qop 8VpdYFyqyE+Rox4QFeyTisTf3wUMzme2dwJU53jlgYxXyEatzQ6554aNds4vrOvj/VXF Zp86DkyXGxYwbXJMJksq3zhm1oEhEYGUm9Z/PSHuUNnczMOgzy7wYQ68Wb2HhgVTATCl Hkwtb0ofmsCWhod3pMIeR6+qScT41Q6PT67to19Fujpjfegv7kcsSqibKzQ49Y8FaKbJ gcx9WXAcy+q64HGqrGbF8PH4kROMfX97eRuccDBRhi3Qs5rJb+KrnBA3dc3ns24ISwR3 RC4A== X-Gm-Message-State: AOAM530bLg52EzN9igKJdpwmaEhMF3mumtvywyL1FOHBQgUlUcGE2T8h 32tWGiVIurdovJqahW7rfYPZjPkLtA== X-Received: by 2002:a92:4a0e:: with SMTP id m14mr5359432ilf.117.1615928349009; Tue, 16 Mar 2021 13:59:09 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id t9sm6303046ils.76.2021.03.16.13.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 13:59:08 -0700 (PDT) Received: (nullmailer pid 3653740 invoked by uid 1000); Tue, 16 Mar 2021 20:59:05 -0000 Date: Tue, 16 Mar 2021 14:59:05 -0600 From: Rob Herring To: =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Cc: Linus Walleij , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Lee Jones , Michael Walle , Jonas Gorski , Necip Fazil Yildiran , Andy Shevchenko , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 05/22] dt-bindings: add BCM6328 pincontroller binding documentation Message-ID: <20210316205905.GB3629500@robh.at.kernel.org> References: <20210315114214.3096-1-noltari@gmail.com> <20210315114214.3096-6-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210315114214.3096-6-noltari@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 12:41:57PM +0100, ?lvaro Fern?ndez Rojas wrote: > Add binding documentation for the pincontrol core found in BCM6328 SoCs. > > Co-developed-by: Jonas Gorski > Signed-off-by: Jonas Gorski > Signed-off-by: ?lvaro Fern?ndez Rojas > --- > v7: add changes suggested by Rob Herring > v6: add changes suggested by Rob Herring > v5: change Documentation to dt-bindings in commit title > v4: no changes > v3: add new gpio node > v2: remove interrupts > > .../pinctrl/brcm,bcm6328-pinctrl.yaml | 132 ++++++++++++++++++ > 1 file changed, 132 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml > new file mode 100644 > index 000000000000..e1ecdc578f32 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml > @@ -0,0 +1,132 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6328-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Broadcom BCM6328 pin controller > + > +maintainers: > + - ?lvaro Fern?ndez Rojas > + - Jonas Gorski > + > +description: |+ > + The pin controller node should be the child of a syscon node. > + > + Refer to the the bindings described in > + Documentation/devicetree/bindings/mfd/syscon.yaml > + > +properties: > + compatible: > + const: brcm,bcm6328-pinctrl > + > + reg: > + maxItems: 1 > + > +patternProperties: > + '^.*-pins$': '-pins$' is equivalent. > + if: > + type: object > + then: You don't need this if/then. This should be: '-pins$': type: object $ref: pinmux-node.yaml# additionalProperties: false properties: ... > + properties: > + function: > + $ref: "pinmux-node.yaml#/properties/function" Drop this as you need the $ref up a level. > + enum: [ serial_led_data, serial_led_clk, inet_act_led, pcie_clkreq, > + led, ephy0_act_led, ephy1_act_led, ephy2_act_led, > + ephy3_act_led, hsspi_cs1, usb_device_port, usb_host_port ] > + > + pins: > + $ref: "pinmux-node.yaml#/properties/pins" > + enum: [ gpio6, gpio7, gpio11, gpio16, gpio17, gpio18, gpio19, > + gpio20, gpio25, gpio26, gpio27, gpio28, hsspi_cs1, > + usb_port1 ] > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + pinctrl@18 { > + compatible = "brcm,bcm6328-pinctrl"; > + reg = <0x18 0x10>; > + > + pinctrl_serial_led: serial_led-pins { > + pinctrl_serial_led_data: serial_led_data-pins { > + function = "serial_led_data"; > + pins = "gpio6"; > + }; > + > + pinctrl_serial_led_clk: serial_led_clk-pins { > + function = "serial_led_clk"; > + pins = "gpio7"; > + }; > + }; > + > + pinctrl_inet_act_led: inet_act_led-pins { > + function = "inet_act_led"; > + pins = "gpio11"; > + }; > + > + pinctrl_pcie_clkreq: pcie_clkreq-pins { > + function = "pcie_clkreq"; > + pins = "gpio16"; > + }; > + > + pinctrl_ephy0_spd_led: ephy0_spd_led-pins { > + function = "led"; > + pins = "gpio17"; > + }; > + > + pinctrl_ephy1_spd_led: ephy1_spd_led-pins { > + function = "led"; > + pins = "gpio18"; > + }; > + > + pinctrl_ephy2_spd_led: ephy2_spd_led-pins { > + function = "led"; > + pins = "gpio19"; > + }; > + > + pinctrl_ephy3_spd_led: ephy3_spd_led-pins { > + function = "led"; > + pins = "gpio20"; > + }; > + > + pinctrl_ephy0_act_led: ephy0_act_led-pins { > + function = "ephy0_act_led"; > + pins = "gpio25"; > + }; > + > + pinctrl_ephy1_act_led: ephy1_act_led-pins { > + function = "ephy1_act_led"; > + pins = "gpio26"; > + }; > + > + pinctrl_ephy2_act_led: ephy2_act_led-pins { > + function = "ephy2_act_led"; > + pins = "gpio27"; > + }; > + > + pinctrl_ephy3_act_led: ephy3_act_led-pins { > + function = "ephy3_act_led"; > + pins = "gpio28"; > + }; > + > + pinctrl_hsspi_cs1: hsspi_cs1-pins { > + function = "hsspi_cs1"; > + pins = "hsspi_cs1"; > + }; > + > + pinctrl_usb_port1_device: usb_port1_device-pins { > + function = "usb_device_port"; > + pins = "usb_port1"; > + }; > + > + pinctrl_usb_port1_host: usb_port1_host-pins { > + function = "usb_host_port"; > + pins = "usb_port1"; > + }; > + }; > -- > 2.20.1 >