From patchwork Mon Jul 31 21:30:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 109056 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp685310qge; Mon, 31 Jul 2017 14:31:01 -0700 (PDT) X-Received: by 10.98.75.148 with SMTP id d20mr13079472pfj.48.1501536661202; Mon, 31 Jul 2017 14:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501536661; cv=none; d=google.com; s=arc-20160816; b=kuCJR3TmxzdP0rUyPUo+zcJHOdUajrdroFQfbtj6IfXSOGCb5uK79G3K2RfF1qFoR2 mYNTq0aLoUm8Y/cBFPiNkPO1S1nByRUR2CfPJyqvlDrSwGnWDzFzNqAf/vSHhYCn0TAF 5M9dNxgsIjSWWccVsdQcvQrrldnAXoElKoQimvX6ttUwprQe7vfQOCFIXdqagbJD2wOu 8uVniVPGSxOs3uQouWON/+S+VIZxpoVUnbt8CBlufWV/RcJTaK/cbtJCiAy+nqgMmNIi neYNvjjsJ3qHh2RDmHwDT332vVWoWCSDBBsFNo2JQaT4rVc4dYXC9Rn1164MR0FeCrPF 3M5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=19K6oSo4tVqu3LgJuMfia4fJ8eo8j/DMrQpTyNz/exA=; b=w+f99Priuv1l5HEf7VFKdhbql6wm4vgGUNo5KN1duhOubiC+WHNKtt72vKWGrR9o0k n8VMSt0nCMwScY5ViQsHfEC+Ib9IS1nAwjMUrQco+UPstpVEdJ+YKDiHLj0Hvm/9G0Pz f8P31qhaF8PxvadGlVBwq5y5FH3OyDYhLQxCXRHDYiCTLT5PrRZAtnP2gGpB1Y8bH3EP 3FPsiJJHoAcJ6LG446hMP2WXtwffaaEZXGrWxcHhrWZXr0OCY1kEmS7nLugjAmkw9RK3 Se6kqygT+V/eq3YER14D/1Xjkt7IfRvy39GIFbZ5NHOVtZkUzbtGuVANCJVChAJPOm4k VjKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Zsi1sDNY; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si9426138plh.712.2017.07.31.14.31.00; Mon, 31 Jul 2017 14:31:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Zsi1sDNY; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751566AbdGaVbA (ORCPT + 4 others); Mon, 31 Jul 2017 17:31:00 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:38400 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbdGaVa6 (ORCPT ); Mon, 31 Jul 2017 17:30:58 -0400 Received: by mail-lf0-f52.google.com with SMTP id y15so118824742lfd.5 for ; Mon, 31 Jul 2017 14:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=0PBOzCfWv9iFqYtxp6iLdAsbqEv0Y5nIPq+Ql6NWhX4=; b=Zsi1sDNYigky+uI+Qaw4NRP5j/J8XIwUjCy8DnCC3H0lFqDaocLtzT0wez50FDtXVc THKywRqPWElCykkWXSzksT/ie92ls3sGyFo5BJeTNgnrwaLNIgrqN2KiLUIedopGSzoK ST7ZSb7q3GnLL9sOFBGLV/5DQzogPyNlzgN8U= 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; bh=0PBOzCfWv9iFqYtxp6iLdAsbqEv0Y5nIPq+Ql6NWhX4=; b=rwx755gI1q7IUNn9H21+163E7qCf9Fyq47XbJKeAl/r0YPn0NfjoqFUSp8ML07EBUs dDhAe6Q5httIBYrf84qtAOf2dJrWDg7msUOCmRroMtX3TdfBfEW0tiq1zJHn+i05Q2ZS H8vNk+EBXTGIBz/x8ZMvtg6R92SWa32dIeZtmGoYvwtWSO7spjiFQA16LX37BBMknuyc +H03nbKjQBNRAmMnu5VFP0FxKLx1DQZjzcFnbdZUsNGr3n+XxXuMFMm6wziU7knvrGTS Da1XMbwMJDJmbbCCikbQX5wNAw8C5p8OGL5o3w96ykDNW/UdMIZsnDzB4g4ftUdW2eKF OFkg== X-Gm-Message-State: AIVw112YkPRmcuiLkNX7ByGe/xv3beDh1HTjZE65vlX/Q4s/yQ2mrQqn nGBZMB576F5fJ7BB X-Received: by 10.46.83.10 with SMTP id h10mr5257857ljb.44.1501536657494; Mon, 31 Jul 2017 14:30:57 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-1d0be055.014-348-6c756e10.cust.bredbandsbolaget.se. [85.224.11.29]) by smtp.gmail.com with ESMTPSA id u13sm347723ljd.69.2017.07.31.14.30.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jul 2017 14:30:56 -0700 (PDT) From: Linus Walleij To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-gpio@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/5 v2] pinctrl: Add DT bindings for Cortina Gemini Date: Mon, 31 Jul 2017 23:30:50 +0200 Message-Id: <20170731213050.4794-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Cortina Gemini pin controller uses the standard pin control bindings for muxing functions with groups so these bindings should be entirely uncontroversial. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - State that the pin controller must be a subnode of the system controller. - Drop the phandle to the system controller: we can simply look up the parent. --- .../bindings/pinctrl/cortina,gemini-pinctrl.txt | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/cortina,gemini-pinctrl.txt -- 2.9.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/pinctrl/cortina,gemini-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/cortina,gemini-pinctrl.txt new file mode 100644 index 000000000000..61466c58faae --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/cortina,gemini-pinctrl.txt @@ -0,0 +1,59 @@ +Cortina Systems Gemini pin controller + +This pin controller is found in the Cortina Systems Gemini SoC family, +see further arm/gemini.txt. It is a purely group-based multiplexing pin +controller. + +The pin controller node must be a subnode of the system controller node. + +Required properties: +- compatible: "cortina,gemini-pinctrl" + +Subnodes of the pin controller contain pin control multiplexing set-up. +Please refer to pinctrl-bindings.txt for generic pin multiplexing nodes. + +Example: + + +syscon { + compatible = "cortina,gemini-syscon"; + ... + pinctrl { + compatible = "cortina,gemini-pinctrl"; + pinctrl-names = "default"; + pinctrl-0 = <&dram_default_pins>, <&system_default_pins>, + <&vcontrol_default_pins>; + + dram_default_pins: pinctrl-dram { + mux { + function = "dram"; + groups = "dramgrp"; + }; + }; + rtc_default_pins: pinctrl-rtc { + mux { + function = "rtc"; + groups = "rtcgrp"; + }; + }; + power_default_pins: pinctrl-power { + mux { + function = "power"; + groups = "powergrp"; + }; + }; + system_default_pins: pinctrl-system { + mux { + function = "system"; + groups = "systemgrp"; + }; + }; + (...) + uart_default_pins: pinctrl-uart { + mux { + function = "uart"; + groups = "uartrxtxgrp"; + }; + }; + }; +};