From patchwork Wed Nov 24 23:04:35 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: 12693593 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 9D937C433EF for ; Wed, 24 Nov 2021 23:06:52 +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: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=BEyg324qYl73VPPFrCbo6jqqXIIl3pmZ9N9qVELKfMA=; b=zVF6HTGzSMgFqa lBburyKSv88kwGDNDrrl/TYNKLOrL48xx/CVd1/7sopWZ0RThRxOhwUnBuxG1g3TdwC/Y3upKApwU Wh9ghbyY2H/SJEk++MXoA006a1OCrqmaC/9fk308S+wjg8jpar/0oIPxc4SeQy3Lqn3Pc7cuHTLuM 26BHy53y0fLwnPwf+LaooQFcVRiceVctJLfvBzI3fokcCkWIzvTPU/dfNfef0J2zwrWGPwzAySV4w E9DBhRc8QLwFNPvpf3JZNHSi3gZn/aTfrelIGcOGUxfBMRRfYfUMvE9qSZWcgmaESLG/NVR4aYjwM QnGtU/9kYPVToXCNX9wg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mq1KI-0060yL-Nr; Wed, 24 Nov 2021 23:05:18 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mq1Jx-0060tA-0P for linux-arm-kernel@lists.infradead.org; Wed, 24 Nov 2021 23:04:58 +0000 Received: by mail-lj1-x236.google.com with SMTP id e11so8548398ljo.13 for ; Wed, 24 Nov 2021 15:04:56 -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=t5U1SyZfZoNpGvHsTDHh7UaG3kdZXZO+eWrR/VnLjrk=; b=lCDNG9jpw+/etEW6mwyL4EzIUojTEv+dOGBBzgrrZB2DbGynnUmiV83vYs5DXdOUIy T5U80pnSUEq1tYgeHhySOJZe7lTdOEj71TkP+XU3JZK8uTbcAy3HA4J51Oe0v7CJQg1w 7ywe+qhLGu6Ze6qA+cJB5S9SMYxjOFe1acreWzja7KvbjJHa05DDdtOMYJpTXov2Hll+ oQ7/6Oa8qR1rLuIS8OiBFazPtbjgWp5QMhSfIiHeqS9wvIqR5EQ7i/3cf8D+n5hCy87W /u7Oes8iQC2Fev+B+L/taTDoJxcYYfQ/++RqdOEYi+4uDnvwNHEyki25aSrP/x2exnot F2FQ== 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=t5U1SyZfZoNpGvHsTDHh7UaG3kdZXZO+eWrR/VnLjrk=; b=8PqmR1AvyuHz8oyV5RWaiiNWKkB7Hy5O4mtpG488yaY1eJWeDYaZNDMFebWLqf6Bt/ fevYhB1ShUULcqwYZ1lakAg06mTWcjtLFj74D9/1pOBOVqmPkUVObMmZ2dF28fnzfhbZ 0sCHpdUW1Fw8iLMUeSpCj2cE242eGCrm1DKdqgra6VL9Av+83pwp8Wacvgr21/1L3oM8 4E8myC2pSQYnbSZ+pcaIFA7dNrRzMU+kGWFTTO864Qg6DrwwpjwhD3f9uP2MT55l6umz CB7PcV6sn2AQIIl41MFP0KL5fOErvWkdftD3zbIWOSp3Z6ZKhq1uHvunGjeLqiLYD2Ge p1WQ== X-Gm-Message-State: AOAM533UElkicwI0au6yZup0Q5+VJqgK11iMJvzWGDE160O656VGN6ta Mb/xlMEe2zSvEEO1a/YOrh4= X-Google-Smtp-Source: ABdhPJx6vDIEcyUtB+GGU0RO2j8UW/qmW6qWgbrVozwXJdnq6GLsQfLFu/fmFeWwCylyo3vB3wo+Ww== X-Received: by 2002:a2e:904b:: with SMTP id n11mr19791007ljg.120.1637795095369; Wed, 24 Nov 2021 15:04:55 -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 t15sm106243lfp.181.2021.11.24.15.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 15:04:55 -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 V2 2/6] dt-bindings: pinctrl: brcm,ns-pinmux: extend example Date: Thu, 25 Nov 2021 00:04:35 +0100 Message-Id: <20211124230439.17531-3-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211124230439.17531-1-zajec5@gmail.com> References: <20211124230439.17531-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211124_150457_082625_AA637225 X-CRM114-Status: GOOD ( 13.27 ) 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 --- V2: Update "pins" to match new binding --- .../bindings/pinctrl/brcm,ns-pinmux.yaml | 24 ++++++++++++++++++- 1 file changed, 23 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..e5816a10938c 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,28 @@ examples: reg = <0x1800c1c0 0x24>; reg-names = "cru_gpio_control"; + pins { + i2c_scl { + number = <4>; + }; + + i2c_sda { + number = <5>; + }; + }; + + groups { + i2c_grp: i2c_grp { + pins = <4 5>; + }; + }; + + functions { + i2c { + groups = <&i2c_grp>; + }; + }; + spi-pins { function = "spi"; groups = "spi_grp";