From patchwork Tue Mar 12 12:12:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 160094 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp13034337jad; Tue, 12 Mar 2019 05:13:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHtZ8pNHblBqRCLpA1ymKzjHVcbPF4YebWa59ZQjKhclgToLZ0EKCLrU9UjPlXy73Tc1gX X-Received: by 2002:a63:4b0a:: with SMTP id y10mr34669410pga.66.1552392807149; Tue, 12 Mar 2019 05:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552392807; cv=none; d=google.com; s=arc-20160816; b=O9s0ae63J4RwtWmqnNG0N/GwC0uXpdKpzaFqqUOdJTEnDSUkoXlJYYwX14pco7wO1X fhe7OtiYgjMatSXgIDDYOPzWQH6t2XMbLyf5OX8YgsiGXH2ZyBWEFxrdScFeC5R9oBIp a/UL4TXzNE4No/bLO0P34mFufvFg6VsohM27HLBtu61+dlgIO3B5VbgSYv9pvcznm7Xz PvYLFctllzQYqsyrLTlwzFRBQn51OV1oU/lCeyxc6Luvlaxe4FmzhJkGNVF5UlLi2ya9 mN+bEHZye2GT6FJp3lUUnNDc9UlfsxAXuNzSWPNLZo6UBVDQkGzdPkhBuX0+XdOPPuv6 rpOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=viexpK+FZZj0CvF4rL6whWj7EtK1v5oo9gAAKXlKU2s=; b=qb8nDyaQhRB9JKFvYZlgTpW+gOxFDE/E2JVvtHmmap6pF9etGGGmjE2XIUtjiXUldZ I30jEf6FGkaljVVSD2G0F3bZBjn/EDfdYf2ucufaNjTEh9hMS6uimWF9ulO8SBUJW7Rq hRquFWLo1lNFdCEmW871g1kSYNGMhYuCbnbBGI44UTDViA8Wcso7IZU00yhNhL4lGev3 wQG1sTYkPaQD/ME/VaVMl3D0tfr/2RWcp5MYbnBSik5Bkc8+UJxtYvmINTAp98EJbUXe LL+ZJaqP9f1Mf15Zcd8+b0egNHTfV+MDssNcWayXQZ880drnO5jTEZdbr9po1MrqzdTs jbyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ohGlrQBm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25si8023611pfa.259.2019.03.12.05.13.26; Tue, 12 Mar 2019 05:13:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ohGlrQBm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726690AbfCLMNZ (ORCPT + 31 others); Tue, 12 Mar 2019 08:13:25 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37396 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbfCLMNY (ORCPT ); Tue, 12 Mar 2019 08:13:24 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2CCDFrC068284; Tue, 12 Mar 2019 07:13:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552392795; bh=viexpK+FZZj0CvF4rL6whWj7EtK1v5oo9gAAKXlKU2s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ohGlrQBmHgUCAQka+B7MEy4dhv6SPPx3N6YF5jDigS6hJo/3tFOq8vHrnP6EszNxn DwFRCbkM+21mSr9iPs4Hl9OSHGUEQPPzOre9sl1792VxLHhBaVur7amoG0MI0yMqXd zhAQla/nhMPSdBNoO3grFw9x4ioCMoP6ASQ1dpSA= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2CCDEG3086628 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Mar 2019 07:13:15 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 12 Mar 2019 07:13:14 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 12 Mar 2019 07:13:14 -0500 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2CCDEn2014033; Tue, 12 Mar 2019 07:13:14 -0500 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.79.221]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x2CCDEU09263; Tue, 12 Mar 2019 07:13:14 -0500 (CDT) From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v8 3/4] dt-bindings: can: tcan4x5x: Add DT bindings for TCAN4x5X driver Date: Tue, 12 Mar 2019 07:12:53 -0500 Message-ID: <20190312121254.8043-3-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190312121254.8043-1-dmurphy@ti.com> References: <20190312121254.8043-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DT binding documentation for TI TCAN4x5x driver. Signed-off-by: Dan Murphy --- v8 - No Changes - https://lore.kernel.org/patchwork/patch/1047981/ v7 - Made device state optional - https://lore.kernel.org/patchwork/patch/1047218/ v6 - No changes - https://lore.kernel.org/patchwork/patch/1042445/ .../devicetree/bindings/net/can/tcan4x5x.txt | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/tcan4x5x.txt -- 2.20.1.390.gb5101f9297 diff --git a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt new file mode 100644 index 000000000000..c388f7d9feb1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt @@ -0,0 +1,37 @@ +Texas Instruments TCAN4x5x CAN Controller +================================================ + +This file provides device node information for the TCAN4x5x interface contains. + +Required properties: + - compatible: "ti,tcan4x5x" + - reg: 0 + - #address-cells: 1 + - #size-cells: 0 + - spi-max-frequency: Maximum frequency of the SPI bus the chip can + operate at should be less than or equal to 18 MHz. + - data-ready-gpios: Interrupt GPIO for data and error reporting. + - device-wake-gpios: Wake up GPIO to wake up the TCAN device. + +See Documentation/devicetree/bindings/net/can/m_can.txt for additional +required property details. + +Optional properties: + - reset-gpios: Hardwired output GPIO. If not defined then software + reset. + - device-state-gpios: Input GPIO that indicates if the device is in + a sleep state or if the device is active. + +Example: +tcan4x5x: tcan4x5x@0 { + compatible = "ti,tcan4x5x"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <10000000>; + bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>; + data-ready-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; + device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>; +};