From patchwork Mon Sep 24 09:26:31 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: 10612123 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 6745013A4 for ; Mon, 24 Sep 2018 09:38:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5085629EBD for ; Mon, 24 Sep 2018 09:38:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44E3A29EC0; Mon, 24 Sep 2018 09:38:54 +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 7267129EBD for ; Mon, 24 Sep 2018 09:38:53 +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=7ap1shPg0by1eWKst3d8HgYSweF27OUdV82Htto6HTM=; b=hHvjEWQeqBml+D VzXlfGCZ9h6Aq38rRSqw0Ewvi9K0B8Z+e3zDP/k3P3APmWiOIOKQfx948zSs5LjAIxUZNNjelcC8V SpccJWpwil4b4F817moy44Mtz9pet3b1YmrF5QwHm3kJcq8O5wf4EVJfc2sTpf6jbQVrZh9hMufwV 5cqi60A80szpqRl3Sz+bN/FwmZWOw0KLfx51sIfG+jdFuCO5vm7iOrBdVqMuK8OCbzLjXLC5hntp+ n8k2/+2nZZ81tcBnNJBR/x4Iw4ELBC9NVlI0taZx4BWeGkUlKtt4ssAUJoMq4SApfn9vcfjLF6+Fk H4aTGZijNiK9R1M5D01g==; 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 1g4NKK-0005oX-0J; Mon, 24 Sep 2018 09:38:48 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4N8u-0006eI-5G for linux-arm-kernel@lists.infradead.org; Mon, 24 Sep 2018 09:27:52 +0000 Received: by mail-lj1-x244.google.com with SMTP id m84-v6so17522111lje.10 for ; Mon, 24 Sep 2018 02:26:47 -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=Szr4sa3OM0QlbO0KX2tumVvCeIIHUlaG0aiQrt6Uu9U=; b=ZBZsAqmtbUbcn9IYS8k3lIYxKwtByv6rPCcQ8rBNLcEyM57Ypplz+98oA/SX/tqlhk CbqhYI5hC3Ukby+wJW8FczcKdfTYG8DtLbhw5rityhtKf7a2Y4W+eijRMLodah3atFLI I/jXxyaVYQD2LQiDSzKE1NPXJBzo4azYThv2hdAoive+UZd3rKzE/SekW12oRzB0I6t4 org34DOIRjepr4F5TuC8X5RCKrWaQe8ixBrVHbmJ245ru91LbVo7TQ2j8Xvcm2Z4wVc5 2CJwDP3CDh5d08D3GK3cbNVWCUE8EH8rAFC/gA+mTBu9TW18LVIyIte29i66jF7OdzDJ YHIQ== 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=Szr4sa3OM0QlbO0KX2tumVvCeIIHUlaG0aiQrt6Uu9U=; b=Lo/nWVixNOmj0S881fA6NkTcp378gVgyn1GwCBIUOyWzcqyUeLb1B0j44o6q5rR2M6 EuIn9jVSMhr8fdD8snhulOhK6vB0UZV4I8sUvlvs7pn7xAVMxLnu87KllgclFupqV7Xj DQ3wUd4eXt9IywBt6Rv6N2nm9C2C+FXiIW0bBMAVpd7k/RWDSGho8PIl4QaZRd5N413+ waDXIrdJ/N9cuc09rR7itNC/Jjb82LjySIwrYzPcaIiR6ERiHWWzSQf73sZfCJItM5UA 0rPs6hSfwNX0Vgi914I1nNFDoET7xsdldBMtf6ZTZ0hStsLx1H+9OaTynEGtRcZVbLid AsJA== X-Gm-Message-State: ABuFfojtm1ZBD3utpTrkSTj1Y1Svm5KVH5w9WRA1H/zF0+1lPJNbyO7G vJ/JIJt4kEwVsk4y8gy+sIg= X-Google-Smtp-Source: ACcGV61TGeCpz7Gbxh6GUxZ5d4+7ev0TsJCW7ZREsC7f3yaMPU/U6toD9gLzKIUxDwRboE9vEw8B/g== X-Received: by 2002:a2e:6301:: with SMTP id x1-v6mr10637193ljb.9.1537781205768; Mon, 24 Sep 2018 02:26:45 -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 d6-v6sm1677212lfk.83.2018.09.24.02.26.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Sep 2018 02:26:44 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Linus Walleij , linux-gpio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Subject: [PATCH V2 1/2] dt-bindings: pinctrl: document Broadcom Northstar pin mux controller Date: Mon, 24 Sep 2018 11:26:31 +0200 Message-Id: <20180924092632.3788-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-20180924_022700_382390_355C3CDF X-CRM114-Status: GOOD ( 13.63 ) 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 , Scott Branden , Jon Mason , 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 Northstar has mux controller just like Northstar Plus and Northstar2. It's a bit different though (different registers & pins) so it requires its own binding. It's needed to allow other block bindings specify required mux setup. Signed-off-by: Rafał Miłecki Reviewed-by: Florian Fainelli --- V2: Use "cru_gpio_control" Add more functions & groups Include Florian's Reviewed-by --- .../devicetree/bindings/pinctrl/brcm,ns-pinmux.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.txt diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.txt new file mode 100644 index 000000000000..f56b7516dde4 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,ns-pinmux.txt @@ -0,0 +1,33 @@ +Broadcom Northstar pins mux controller + +Some of Northstar SoCs's pins can be used for various purposes thanks to the mux +controller. This binding allows describing mux controller and listing available +functions. They can be referenced later by other bindings to let system +configure controller correctly. + +Required properties: +- compatible: brcm,ns-pinmux +- reg: iomem address range of CRU (Central Resource Unit) pin registers +- reg-names: "cru_gpio_control" - the only needed & supported reg right now + +List of supported functions and their groups: +- "spi": "spi_grp" +- "i2c": "i2c_grp" +- "mdio": "mdio_grp" +- "pwm": "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp" +- "uart1": "uart1_grp" + +For documentation of subnodes see: +Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt + +Example: + pinctrl@1800c1c0 { + compatible = "brcm,ns-pinmux"; + reg = <0x1800c1c0 0x24>; + reg-names = "cru_gpio_control"; + + spi { + function = "spi"; + groups = "spi_grp"; + }; + };