From patchwork Wed Jun 10 07:47:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 187736 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp255351ilo; Wed, 10 Jun 2020 00:47:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpvatBUieah44TdOlF6o9cqDjazrH7M3fJQ4dl9JmNn3/P5e6Wg5AIdR3fQStKtSOMjP4X X-Received: by 2002:a17:906:1dce:: with SMTP id v14mr2151469ejh.46.1591775257375; Wed, 10 Jun 2020 00:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591775257; cv=none; d=google.com; s=arc-20160816; b=dq5KfT5yftt0DnghMxqPoTz7raXs6GvXkECmVxvlAR5T0YgG5baAkjaGjbE+hRWecG weCtxLJrS1P4GtRcXUYhy0iniAc8+G5kg02f2R8njO5Xh4hlwcryd1h0WUSQrAfafz2R PVH1ry8KHE9Zh38FG3gMLxNziEDpzRCJgngD0ESAlkMY0XCuhrkTlAF9iBsE28zk3pgn BHEE/lCBTIpeAu9AikH3tZfO1dNuog3cU34mWIWbtCHY/QpG5UECf02Phbqxwy7F3Kvc s32bcPPzY9egTDvplKzsU1KyH/juadbztIMNgLtgDLKKHF964e62F8Ix/vYc6WMK7Y/T 1gZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=D5wpVa2/XN6m1sQCYfcdRcpjlnTpDyn4pCl/sB+sGr4=; b=dj0Y2rrGmSUlj9DqVoJBuv5Y0r9NIUZZW3CEHn4L97uhBq5AcRpVBZWDsfwG+YKWU+ UKGCavefnWRVVKlqMNP7oUcaLXtx+Y1gsgSp3goYf6fOjbn4vLwTExZsJGyK00teBhOc WJTEiMoTh9C5DSL6um6y2H32FYVqXpZfez9+8oA27JacU3qkp+V5M0hM4XeAszCgtKrp ax/eksN1kLBrUIK5y34DkXkjIKIhIcPp0/Vul0Dswoo81RUOAaZSOpgAWZaOP/KF+kMn swV8ASDsYAEZm8JGFlmirYPbdLEBXxAp5mw9HiDRwBv0yCXlCd8lktV19XLKwIdkxX66 A33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PhN0M8Zo; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si12909463edp.594.2020.06.10.00.47.37; Wed, 10 Jun 2020 00:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PhN0M8Zo; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgFJHrd (ORCPT + 9 others); Wed, 10 Jun 2020 03:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726682AbgFJHrb (ORCPT ); Wed, 10 Jun 2020 03:47:31 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2647C08C5C2 for ; Wed, 10 Jun 2020 00:47:29 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id bh7so637876plb.11 for ; Wed, 10 Jun 2020 00:47:29 -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:in-reply-to:references; bh=D5wpVa2/XN6m1sQCYfcdRcpjlnTpDyn4pCl/sB+sGr4=; b=PhN0M8ZoAvKB7gn48oGxxNQNjY/3uWTb4TbP84JJOqTujF+orc9kDVA5lM3jz62FWe OfXTr72NcVMesi2EYapCyGM32JEo4RWi1l53gJ+80fgeBm2+zS0bNaaTWv0Ittsgg8Ig 8UPsx5tmdCGwQef+Kfn4X2Zr2zTB9OQurHcoWeQd3O5BcUBBiicytcLTpy6NJpcPHgPI m11NMbY6B1yygA7K1yuxw0Oyl8ySbUu47iohDQaq+YP8kM0ZI+4IbDOvAgi57/eufQkn yPg3nnp2DNU7dq5q9BS4u0p+RZh9T2rTxIfKU8fntOFSJNxsrR3N4ejTL/HLbasxi1j3 rvsQ== 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:in-reply-to :references; bh=D5wpVa2/XN6m1sQCYfcdRcpjlnTpDyn4pCl/sB+sGr4=; b=mE+dLqblJCdqQvKhtYbVxZr/AW+4aa+i3pOkzKwHfCuAXtti8esM40BUNIDrBjim8Y iVaspMaKRtB5wHQX9yeQtMayWrOSehFwCY3TYRoyuWTbZrJTjxBsHa5nUmB+11S5aHSg vqE621Y6VNv11n+oftHC8CGg/91UUdZoZRmUYlSQabQZxsoCO90A7aYBG7d+nlL7hTrz qgsEZtHW4f4BhGIaIFRlc4TBlGrjsbl2iZLsCGw0w4FCq6G2TvAtvIGh0mJRjrPNnDjX hPk2wE8qCAuKsUZhymZkahDdSXAj5i2SXfQPcpOuoUDXudht1QkkzCkCEZVthkejkfiV A4vQ== X-Gm-Message-State: AOAM532nZ/igq56axzb7idh8J8kVidlH8FgRloSC7GxcqYZLieMgePMj 20+kTYFOoDUKbk5ZK+SswGbz X-Received: by 2002:a17:902:7c81:: with SMTP id y1mr2036371pll.236.1591775249377; Wed, 10 Jun 2020 00:47:29 -0700 (PDT) Received: from Mani-XPS-13-9360.localdomain ([2409:4072:630f:1dba:c41:a14e:6586:388a]) by smtp.gmail.com with ESMTPSA id u1sm10075040pgf.28.2020.06.10.00.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 00:47:28 -0700 (PDT) From: Manivannan Sadhasivam To: wg@grandegger.com, mkl@pengutronix.de, robh+dt@kernel.org Cc: kernel@martin.sperl.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Manivannan Sadhasivam Subject: [RESEND PATCH 1/6] dt-bindings: can: Document devicetree bindings for MCP25XXFD Date: Wed, 10 Jun 2020 13:17:06 +0530 Message-Id: <20200610074711.10969-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200610074711.10969-1-manivannan.sadhasivam@linaro.org> References: <20200610074711.10969-1-manivannan.sadhasivam@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Martin Sperl Add devicetree YAML bindings for Microchip MCP25XXFD CAN controller. Signed-off-by: Martin Sperl [mani: converted to YAML binding] Signed-off-by: Manivannan Sadhasivam --- .../bindings/net/can/microchip,mcp25xxfd.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.yaml b/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.yaml new file mode 100644 index 000000000000..7b87ec328515 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/microchip,mcp25xxfd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MCP25XXFD stand-alone CAN controller binding + +maintainers: + - Martin Sperl + - Manivannan Sadhasivam + +properties: + compatible: + const: microchip,mcp2517fd + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + vdd-supply: + description: Regulator that powers the CAN controller + + xceiver-supply: + description: Regulator that powers the CAN transceiver + + microchip,clock-out-div: + description: Clock output pin divider + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 4, 10] + default: 10 + + microchip,clock-div2: + description: Divide the internal clock by 2 + type: boolean + + microchip,gpio-open-drain: + description: Enable open-drain for all pins + type: boolean + +required: + - compatible + - reg + - clocks + - interrupts + - gpio-controller + - vdd-supply + - xceiver-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + can0: can@1 { + compatible = "microchip,mcp2517fd"; + reg = <1>; + clocks = <&clk24m>; + interrupt-parent = <&gpio4>; + interrupts = <13 0x8>; + vdd-supply = <®5v0>; + xceiver-supply = <®5v0>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + +...