From patchwork Tue Mar 5 15:52:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 159668 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp5119415jad; Tue, 5 Mar 2019 07:53:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyDmMo0ei24FylDkcxOKWkO30jzcCnsA9UODqES8Py9eIV9WCcQkPClUBrqXvebwvUPSnR3 X-Received: by 2002:a65:44cb:: with SMTP id g11mr1959128pgs.29.1551801193390; Tue, 05 Mar 2019 07:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551801193; cv=none; d=google.com; s=arc-20160816; b=FuBRM/aZ3kyufvHS17+g3KrbPy2vLxiMDGXCqJb4WnLI5S6cLBWJqLE3n+XFUItbMS uquzXAGEYwiVT7ArzAB4C1cHzJC4oSY3PnrbSk97/5/IFxOA0BvlmUTnrYe4NBD9qiCw AdSX0JYxbneb3jzU40+e0xKa+5JCNw5VmsI4u8pAnVL0kfclWRtNTAFw8uKrovfDrw80 jUiL7yxjbneTXXtaIYrhWw1lifar8/9vkjy3NpJnYrD46gkRJyeQ//k4e39QizsEdtZj Hi0mPSjpmGRXVfAZk/RCTJEpImIzGTy5eRf3FZV8Rh8a5b7H8unw9JKmDveL8exDWtRh N3+g== 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=5raF2BBzA/MPB8MxpCh4q+p42RjInP1ckXCpdT20HS0=; b=OfP4O5aBx6or1G5+yHQO6tMlOkTTELOPpEbAW+eH+2Kva6+HhmnBgIb4cqALhbo8xZ YHTAbOOOkwXh7pkWRMmVuuzAAMGWE4kpLOj365GnyNaIKmlB2FD9ehjx8rCN1Yr+9pDJ zC0m3VvSZAXADc4vOgAkm/31HOf3wAvfsvM0F9x78c2T8JiWIarBOOfZpKq/PKndYdd9 gIk4BKgS9dxRW+wr7TtXdUFIZhTkvKdnk1TrSSls4/SZDhkxkrLoqjhbZ+NI+OVb8Nfj LuT1CINolRqcRzZBI9Qbrg9ANvxZbcfuskmk7vLx2B3mKpOnWr6muMSNppCj14IUd7Io A59g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tnEG3+dU; 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 p4si9535564pli.159.2019.03.05.07.53.13; Tue, 05 Mar 2019 07:53:13 -0800 (PST) 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=tnEG3+dU; 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 S1728690AbfCEPwq (ORCPT + 31 others); Tue, 5 Mar 2019 10:52:46 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:50172 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727626AbfCEPwp (ORCPT ); Tue, 5 Mar 2019 10:52:45 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x25Fqc20065509; Tue, 5 Mar 2019 09:52:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1551801158; bh=5raF2BBzA/MPB8MxpCh4q+p42RjInP1ckXCpdT20HS0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tnEG3+dU7EGmwE8ipPuHa1RR/fMKS21PbePfgrNrc50A/jECvAy6uwtEQ8yz63RYG yHZjEzZ9nkHWPmdm5xRL2YLy4aAirAdP8w3TN5o/O/vwPD8HuOKaQ3j6Izaoq407xe EfN+DALMqlEr0S/UeJbJ/NayrDYKgDCg4PzaahoM= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x25FqcR0112402 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Mar 2019 09:52:38 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 5 Mar 2019 09:52:38 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 5 Mar 2019 09:52:38 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x25FqbRf016597; Tue, 5 Mar 2019 09:52:37 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.71.209]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x25FqbU00547; Tue, 5 Mar 2019 09:52:37 -0600 (CST) From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v7 3/4] dt-bindings: can: tcan4x5x: Add DT bindings for TCAN4x5X driver Date: Tue, 5 Mar 2019 09:52:19 -0600 Message-ID: <20190305155220.14037-3-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190305155220.14037-1-dmurphy@ti.com> References: <20190305155220.14037-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 --- 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>; +};