From patchwork Mon Oct 15 09:30:13 2018 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: 10641417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 50311109C for ; Mon, 15 Oct 2018 09:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C986296E5 for ; Mon, 15 Oct 2018 09:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A3692970F; Mon, 15 Oct 2018 09:31:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC89D29709 for ; Mon, 15 Oct 2018 09:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CSqYCCYb3birTlC8hWtb2+fM4ukv4aftK5h3nwVZnJY=; b=phmaqiiKK5Ol6R jbejv46TB+G+Il1gLkIAQV3mKhL8cB1KDBnFti5DPc2YX2v0duOzGbhAi2uKE7xcg6MZ5JAWMOowR sRroXmLTIYffoI66Fdl00R/3c6X2Hhpbd5ZKGE/mdL6PbCIrb6GV2KSRQ/k2fmzF5w+M6sUKLjTBk xP/CcgH3TXmg5IXybYaf1vLVrvbRqNGaQkX/3SFNgKfse2rU2lbw4TABEEMEdKBl9kXG7+uciNrMT QyTnBufuem96BcPQvnqHzctSNMcNFL8UaR5U2+Yuw+Lx2somTHaZS1e2/Nszy6o5dmPTz4tr5WcRQ VcNb9fTlYdBf8JgirAvQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBzDK-00060S-La; Mon, 15 Oct 2018 09:31:02 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBzD1-0005vt-Jr for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 09:30:59 +0000 Received: by mail-lj1-x243.google.com with SMTP id o14-v6so16867409ljj.2 for ; Mon, 15 Oct 2018 02:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zCOIpps3/sNVaHanjjC9AC3ecDbhIU1bD0upGn0bwXw=; b=JUPxIdGE7Djj+Q8ZpbSH6qJeV7ldlosQoywQWZ+/a4Q6ERgX8CSkqwycbfdB2tQkqA mWR8D90CSdFzEirs7ULFQM9LKbVN3ZDNDX/o6Q3C9VMj7gC3tmhR6Jdj4RLoM2J6G2fv d1PeuxFHCW2DzhlnLH1W/xImW/JIAyTe1wzUKSj7uwOVZnSXCj0OzMZsgOqezVOhQsBi rhciH1HcxZn6T8S2Zx0OTjoBxYjx8cpjVaM5GKO1p0urrCW9xzHlz9VBxgBmVkpfEp0U hWlKdrL1+a7k9jYCukmEoUyEv/iz/QujIkrhHJ9zB1Wj1UXqGmtjGM7J4/ie5zN1nV+C UvMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zCOIpps3/sNVaHanjjC9AC3ecDbhIU1bD0upGn0bwXw=; b=U3dIqJBiKLUBdtBquW8nK4NyeqmGcvToaibIwz+wc6Q3qs0CxhfAFGYG2wYhQmzpxI udBteQRaOdfCsTIyIVjMvPqKwf+eU7KIZfDTF9Z7AappOqloPJQyvDyrRSOYmwft/qRe vusizRwifg9nVGBOExhxp9HJD4VOpaPxvNeySyLicr+VMw+myrE7nThOux7xayzmWvJb mfHvNL6MNiGvHZsgBoFS7ayU5Jjx3uVTb1Y+YZBKmIztDMd5rkURYXZwBY6UfC0plbT4 rqcxu7J6Oty3fhG+LJKrLl38NCHSSkSLgN68ljQms5HylmwyENCiWAB9WOxCUFKMb6Jy jh0Q== X-Gm-Message-State: ABuFfoge72+b97Ykrjw8CxTjCvJ7swqsi63DpsDc5eRboVuXDjah83Gc OYrQ1ppNQ4v5jVkPy5PA4fk= X-Google-Smtp-Source: ACcGV61zBAvSZGtAxe/eI9hSju9CfX1Fmr20rocQQ3ag9jZTKmHEzRzWGg6cR2NSZnz0WuAOA4fuPA== X-Received: by 2002:a2e:2b08:: with SMTP id q8-v6mr10552250lje.128.1539595830835; Mon, 15 Oct 2018 02:30:30 -0700 (PDT) Received: from linux-veee.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id v1-v6sm2251571lje.50.2018.10.15.02.30.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Oct 2018 02:30:29 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Linus Walleij , linux-gpio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: pinctrl: bcm4708-pinmux: improve example binding Date: Mon, 15 Oct 2018 11:30:13 +0200 Message-Id: <20181015093013.31651-1-zajec5@gmail.com> X-Mailer: git-send-email 2.13.7 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_023043_698325_A66DF0F8 X-CRM114-Status: GOOD ( 15.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Florian Fainelli , Scott Branden , Ray Jui , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki Broadcom SoC pins are controlled using CRU ("Clock and Reset Unit" or "Central Resource Unit") registers. There are more CRU registers and functions so CRU should be represented as a separated block in DT. Moreover CRU is a sub-block of DMU ("Device Management Unit") so that one should also get its own node. Signed-off-by: Rafał Miłecki --- .../bindings/pinctrl/brcm,bcm4708-pinmux.txt | 31 ++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt index af906f196e8c..0ce132c7e04c 100644 --- a/Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm4708-pinmux.txt @@ -30,13 +30,28 @@ For documentation of subnodes see: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt Example: - pinctrl@1800c1c0 { - compatible = "brcm,bcm4708-pinmux"; - reg = <0x1800c1c0 0x24>; - reg-names = "cru_gpio_control"; - - spi { - function = "spi"; - groups = "spi_grp"; + dmu@1800c000 { + compatible = "simple-bus"; + ranges = <0 0x1800c000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + cru@100 { + compatible = "simple-bus"; + reg = <0x100 0x1a4>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + pin-controller@1c0 { + compatible = "brcm,bcm4708-pinmux"; + reg = <0x1c0 0x24>; + reg-names = "cru_gpio_control"; + + spi-pins { + function = "spi"; + groups = "spi_grp"; + }; + }; }; };