From patchwork Thu Nov 18 13:21:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12693045 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D3A8C433EF for ; Thu, 18 Nov 2021 13:25:12 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id EF6B961401 for ; Thu, 18 Nov 2021 13:25:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EF6B961401 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=i02hghGEaC6rA/yW6Fg7Ki1qMi1tDpQXn+iBaTtVGx0=; b=T5ddD+c4EMHcdw vAOVRUl2abwQOBFdvg2Dmu1deSeALH1oFqDWAvDrxV7IocNtrKAc1Mlq9m+9jHSNtlmv+ct+9pu0d JMrVmp5whw7/fClCmwjz209wyupjqckXBRH6h5qgm4yq2ZV9YOpYlP8v9jv8oZAZeMnpf3rRqPUiP dYkLJd0zMf05BZh1OoBu01ATTUkUGBJZid+Wn5GATHWRu98SNWn21oLxhmEHRsEYiapnUBntBYGEQ iXSuaIbOU2C1UhHNNnx0xaRbzCsLJyILwEIGIQWS5bSKpcgD+E7f+js8NHf8XbuDutKWB7Cv0ArGG QBfXIPwK9yqRC7IfRelA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnhNA-007sU2-Fb; Thu, 18 Nov 2021 13:22:40 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnhMk-007sNb-8U for linux-arm-kernel@lists.infradead.org; Thu, 18 Nov 2021 13:22:15 +0000 Received: by mail-lf1-x132.google.com with SMTP id t26so25872080lfk.9 for ; Thu, 18 Nov 2021 05:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=174CEl5sUThS8tOml+wwTF/Xr+vsAMlJVHCu3hrfWMg=; b=PlSGCIn3Lzoi2xf6WxHIplkWynAv/3TsAempQK46oBAwSGCp9mMqkGoORe2MhB6Q7m 884mF/Opi0ZG7Kn06pJkaQi4kA02+7Xc9FdmaT/F7OffXHsQat2hclMMFYb2bhYgImHK AtQs7sDG6g8Vg1rLyxr8ZYTgJsZ1E9HW58ppmwqehX73kv6scBSR4l9zTDyX9me8nos8 NHO0Mbr9lpk3spl0Zw8W/iMA96wcagDyt3FMRnn7VyIHgHKDzfdOPDR+GfAfclMoB56S 13YbHa8NE1TvQ6fUMznbOBA2s6nILAcC25gztIM0W2y6ggNBq4FbESWUx+E1osNTsOwe LSPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=174CEl5sUThS8tOml+wwTF/Xr+vsAMlJVHCu3hrfWMg=; b=D6g7yRoEiQmupUO0rNIdjY4wp7BlaHu9m9q21gz/1hnRBKtJJ28RNLMlEKjlBEze3I XIyuuEfnfCh8PKyjClK+4Dlk+bYDVbwnFRqy8u8t6z2E9ENJx0pUwBdBt4AHnDt+waFD GrFKufrroAp+Q/svVKex8FIef4DCuNOYaBSLwzg41drzFEaYcdcgD4Ewm2bxRr21/Arh WW7YkKx6rW4/gvZT1KjdDNV2WLIYXPBTFUpW//uX1B6R1iTTsDly4WKxywwhl1+0S/KU 3tPSKLYlDTkkMwAHtBw9grdAQOScLgd2l9no4XB4bpGzShTOVfXQbeeNEoiEO5RvbaRz YPjA== X-Gm-Message-State: AOAM532uv2hkf/S9w5TWneQhRh32PlhLiWcITP4m9gqXhoRS9xle8JFg U6NEt5SMm3WQ8xiTFGNR+i8= X-Google-Smtp-Source: ABdhPJzLm7sgYuOh76sg+B7vGcs0Z3hKYVU4Di3/rKQySXcGgtRcqPpGnE0RYpQQ+zXyPhnEyRnfpQ== X-Received: by 2002:a05:6512:3216:: with SMTP id d22mr25088204lfe.604.1637241732260; Thu, 18 Nov 2021 05:22:12 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id bp36sm356550lfb.0.2021.11.18.05.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 05:22:11 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Linus Walleij , Rob Herring Cc: Tony Lindgren , Andy Shevchenko , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 2/5] dt-bindings: pinctrl: brcm,ns-pinmux: extend example Date: Thu, 18 Nov 2021 14:21:49 +0100 Message-Id: <20211118132152.15722-3-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211118132152.15722-1-zajec5@gmail.com> References: <20211118132152.15722-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211118_052214_334248_5A22800A X-CRM114-Status: GOOD ( 13.24 ) 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 From: Rafał Miłecki pinctrl bindings allow specifying pins, groups & functions now. Put some entries in binding example to help writing DTS files. Specify pins, groups & functions in the example. Signed-off-by: Rafał Miłecki --- .../bindings/pinctrl/brcm,ns-pinmux.yaml | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml b/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml index 8d1e5b1cdd5f..154119981ad9 100644 --- a/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml +++ b/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.yaml @@ -74,7 +74,7 @@ required: - reg - reg-names -additionalProperties: false +unevaluatedProperties: false examples: - | @@ -83,6 +83,33 @@ examples: reg = <0x1800c1c0 0x24>; reg-names = "cru_gpio_control"; + pins { + #address-cells = <1>; + #size-cells = <0>; + + pin@4 { + reg = <4>; + label = "i2c_scl"; + }; + + pin@5 { + reg = <5>; + label = "i2c_sda"; + }; + }; + + groups { + i2c_grp: i2c_grp { + pins = <4 5>; + }; + }; + + functions { + i2c { + groups = <&i2c_grp>; + }; + }; + spi-pins { function = "spi"; groups = "spi_grp";