From patchwork Thu Sep 10 13:38:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 249693 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1111857ilk; Thu, 10 Sep 2020 14:36:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylTd78mjaqMOqqJgUBrLGuy23bTywG9r2kEQYNpuFeRm7R1iTuzu22z2CE/kHXRZy1qSme X-Received: by 2002:a17:906:8543:: with SMTP id h3mr10734807ejy.258.1599773796835; Thu, 10 Sep 2020 14:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599773796; cv=none; d=google.com; s=arc-20160816; b=zAG3crl45jSFMIx9ioFXZAJ0Y5Hfo986QK3FYrjs5mKIl+lM5PP+Y8KggQzSLvN52B iBsp4F/1aOTUPAogDXRPFwQIto/dabmRasbcjzXr+ZsyGDWm3t/8ASWJQ9hOI9VcTCWn Dm3mlkJfvygXvVrXh4KfHxwnumDDQrGGEuJs9m24XBakyOjb+I1ORaioRfS8c4OHze4w QOVkdoN4wXRWtC4N/RWJNpRBiEJlyA4INfG3bajs6YxMrgkH96hIu8ZK6FRrDzbRSG9y ME4dNCnph2x/po8OTcuajkOqx17kjNb8egviTOc5GIg8ZiSbUvmVdg1npJVFTXIZJUuz us9A== 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=iLHRBASNYEmkuiDuFe0SBkN4vlTm2qDSJERpRCtFbFA=; b=xsDgYbk71U280hFW0qNalXMa89DKPhKKaj8tHL+MvkA8GWG5KzMIxzTFepBO6pE935 YZ0nUHE8s7oFbSVc0eLIXDlm6bi/xjv/kmP1ZMD4otHB9JNNUqOoHtmcA4gJGbxrMt6I rhQH2sPjT3Hns14E5IUJJq1uOQ798UoiBog/RQoiNtCISxTxXDjZBD3Ttg2nTVawRYDf ettnLfVR5wPYUnM+HZ2OLOjfdpX3km2UD1wJTPMpwTrNi8pJWmru/wnja3yUDG2H8Wya eKL8qaUs68vfsFeLKJaHtAn/XLsfaApXdLhChpogohCdwNaJ3zgvqcMluFJLVi2BbfwZ okUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vEnJvArt; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 r7si4491717ejy.514.2020.09.10.14.36.36; Thu, 10 Sep 2020 14:36:36 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=vEnJvArt; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726913AbgIJVgf (ORCPT + 6 others); Thu, 10 Sep 2020 17:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730937AbgIJNjw (ORCPT ); Thu, 10 Sep 2020 09:39:52 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECFCCC061795 for ; Thu, 10 Sep 2020 06:38:34 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id a9so36273pjg.1 for ; Thu, 10 Sep 2020 06:38:34 -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=iLHRBASNYEmkuiDuFe0SBkN4vlTm2qDSJERpRCtFbFA=; b=vEnJvArt/jV0tucYprJiUPmNwaW3jWlqQwEcsKSihRWgrM8pMPo1UEWkeD7wLyJ6B9 BqZCp3BAD57mPSKl6tForgxMWdF4TWrEL/PplwAsPWRmqm+kUipqzcyzUoi0opDv261Y t+IgVsFA6a4onPVxt0ULMwUyVwm0ZpmLO77dcF/3juGtwdYUYWzLa3VgDl1msKV+/xuK Yv+ddumuoJjCRfAzM+tEtm+Ux6JBXCl/gATaROEnpSnXRfVyf1esldpCG9WNjnvwNU48 srhGrK+ThsD48PMEom/iZ1ppJpptRtIP5GHMQIiwCXa33b6WX6sCWmWnP1MOK+gHFyEC rgjQ== 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=iLHRBASNYEmkuiDuFe0SBkN4vlTm2qDSJERpRCtFbFA=; b=PUqn2EB7jGyvBLxRro05fblnG8HcjGMzzyi737ErInX7paLPg7S9Bx04KdyYIlxjeC IQjse+lDqe6IPiupecYfJ/32zwTBQuv9hvrecKIbnSAKLj1wz/5zakQwsivNaEdJU1g3 uGWaN7sdGPfR/KRCoTmLjvxvtzYFDB+xZPrxmtY9mMS2FFvROOoPn61rtmMO+OxR4TFn 3y+R9Zj/h8/OK0mcrUAK87n7tOTo3DkUVdGrpQ44VFgbe7a16JZjdnnpNSe6ZV1GypUp jyEcxikTFjEX+I2/9c4D2Kr7UvepScV8oZ21ZD6Wja2JxoErBpdasqJT487+jK6/X5VW M1hw== X-Gm-Message-State: AOAM530ROVZHE/SNF1AhUmyNaXNp/HV/tmf0FKa/LQhAaiiLMTZg3ZDv 4c7uMW5LC7/imH7sTEPsZ5pI X-Received: by 2002:a17:90a:d3cd:: with SMTP id d13mr33821pjw.70.1599745105313; Thu, 10 Sep 2020 06:38:25 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id o30sm5603801pgc.45.2020.09.10.06.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 06:38:24 -0700 (PDT) From: Manivannan Sadhasivam To: wg@grandegger.com, mkl@pengutronix.de, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dev.kurt@vandijck-laurijssen.be, o.rempel@pengutronix.de, Manivannan Sadhasivam Subject: [PATCH 2/6] dt-bindings: can: mcp25xxfd: document device tree bindings Date: Thu, 10 Sep 2020 19:08:02 +0530 Message-Id: <20200910133806.25077-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910133806.25077-1-manivannan.sadhasivam@linaro.org> References: <20200910133806.25077-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Oleksij Rempel This patch adds the device-tree binding documentation for the Microchip MCP25xxFD SPI CAN controller family. Signed-off-by: Oleksij Rempel Signed-off-by: Marc Kleine-Budde Signed-off-by: Manivannan Sadhasivam --- .../bindings/net/can/microchip,mcp25xxfd.yaml | 79 +++++++++++++++++++ 1 file changed, 79 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..aa2cad14d6d7 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only 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 MCP2517FD and MCP2518FD stand-alone CAN controller device tree + bindings + +maintainers: + - Marc Kleine-Budde + +properties: + compatible: + oneOf: + - const: microchip,mcp2517fd + description: for MCP2517FD + - const: microchip,mcp2518fd + description: for MCP2518FD + - const: microchip,mcp25xxfd + description: to autodetect chip variant + + reg: + maxItems: 1 + + interrupts-extended: + maxItems: 1 + + clocks: + maxItems: 1 + + vdd-supply: + description: Regulator that powers the CAN controller. + maxItems: 1 + + xceiver-supply: + description: Regulator that powers the CAN transceiver. + maxItems: 1 + + microchip,rx-int-gpios: + description: + GPIO phandle of GPIO connected to to INT1 pin of the MCP25XXFD, which + signals a pending RX interrupt. + maxItems: 1 + + spi-max-frequency: + description: + Must be half or less of "clocks" frequency. + maximum: 20000000 + +required: + - compatible + - reg + - interrupts-extended + - clocks + +examples: + - | + #include + #include + + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + can@0 { + compatible = "microchip,mcp25xxfd"; + reg = <0>; + clocks = <&can0_osc>; + pinctrl-names = "default"; + pinctrl-0 = <&can0_pins>; + spi-max-frequency = <20000000>; + interrupts-extended = <&gpio 13 IRQ_TYPE_LEVEL_LOW>; + microchip,rx-int-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; + vdd-supply = <®5v0>; + xceiver-supply = <®5v0>; + }; + };