Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1288272ybl; Thu, 22 Aug 2019 12:08:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZYBBlTlh95z9qBVTGhwq6aMpSdlCJS1dWfX0eIcF8rbI0yNg5ZPs4gY2LZzRnz7AMdE82 X-Received: by 2002:a63:ec48:: with SMTP id r8mr582491pgj.387.1566500936030; Thu, 22 Aug 2019 12:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566500936; cv=none; d=google.com; s=arc-20160816; b=N2jrtxrKajx/zIc5uRIaeDvfGmmcs92GLLrfJITU5FqXXTvS1uVWjH8kUt0g64mXz8 cojfH4A56gqXuaD7LOHxuIToAH6TbeGqGBqEnOvxr9Jgy/yD/XUQsObG/ijysewsnGUX 3higj6RFOo0ZAqycqzp4RLmaTmVzIZu7MSzvsU7WWUzb2ShmuGMoNHdczUV4bQC/cmmQ Gppl2+Lmlea6YlPPsmcsaN96w8FkzqOUqGCsf4yG325aDOugmx3kn8rMT9q4T4+uRXS4 ci4jGnb59wlLUq5UrjuH0wznNbDZUHY68q8iw5VMPlE76eEl8wThhUW0zgihN9doZd0g nXoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=amKlG2IVK/AlYef9CbdzVUck10xnAYyxWrzHwzN9Okc=; b=s1M29tEwsn2//TxYDfFOTUn+v/P0xiExDU5Erw0iD1ApWDE2A2dipX/HgHCOejRs/Y gK5Y0mGQlzQ142+Hj8gegaQeouHWZ+diI+YRtZu7dK+5IVasqQn7eFvzuWCGd8wd92Kr 8PHfbKlRUQ2FkdOV4sgafr1P4PVljrpGph2ye/NBmdXic4BY8wn02RkytGPbXU6k6gE0 MyAOB/JxUsp9/WLdTzaKFVZUef70ht4slYjZVmaJGrS77+eJcfcd6xuDHkNYJ8S3nue1 yO35fOGBzpm8Z/EvRRVpaIDgmbVcsIuP9hu475+SoeWnFgLfFPhP0hhab8I61eN8f290 PtUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TxGYKEJZ; 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 3si296159plu.154.2019.08.22.12.08.41; Thu, 22 Aug 2019 12:08:56 -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=TxGYKEJZ; 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 S2387866AbfHVOUg (ORCPT + 99 others); Thu, 22 Aug 2019 10:20:36 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37622 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732693AbfHVOUg (ORCPT ); Thu, 22 Aug 2019 10:20:36 -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 x7MEKOU4130908; Thu, 22 Aug 2019 09:20:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566483624; bh=amKlG2IVK/AlYef9CbdzVUck10xnAYyxWrzHwzN9Okc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=TxGYKEJZHIJ5HyjcrPhdNq7xJLFAtzavONZP8av4iQ29PWP7OV8PlElv3T9vsRGo1 dqzVjpiSEat7GFuwJ7BZsM3ICYJeT/UCHXc4fJbMQYoMK505lS/rZeYPVRbeAdxTLj yYGpyWIpMXBS+HRrtxMg3ksTsBbY8i6bAeN6kmQ0= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7MEKOUY063221 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 22 Aug 2019 09:20:24 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 22 Aug 2019 09:20:24 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 22 Aug 2019 09:20:23 -0500 Received: from [10.250.65.13] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7MEKNnV076638; Thu, 22 Aug 2019 09:20:23 -0500 Subject: Re: [PATCH v12 3/5] dt-bindings: can: tcan4x5x: Add DT bindings for TCAN4x5X driver To: Marc Kleine-Budde , , CC: , , References: <20190509161109.10499-1-dmurphy@ti.com> <20190509161109.10499-3-dmurphy@ti.com> From: Dan Murphy Message-ID: Date: Thu, 22 Aug 2019 09:20:22 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 Marc On 8/16/19 4:38 AM, Marc Kleine-Budde wrote: > On 5/9/19 6:11 PM, Dan Murphy wrote: >> DT binding documentation for TI TCAN4x5x driver. >> >> Signed-off-by: Dan Murphy >> --- >> >> v12 - No changes - https://lore.kernel.org/patchwork/patch/1052300/ >> >> v11 - No changes - https://lore.kernel.org/patchwork/patch/1051178/ >> v10 - No changes - https://lore.kernel.org/patchwork/patch/1050488/ >> v9 - No Changes - https://lore.kernel.org/patchwork/patch/1050118/ >> 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 >> >> 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>; > Can you convert this into a proper interrupt property? E.g.: OK.  Do you want v13 or do you want patches on top for net-next? Dan > >> interrupt-parent = <&gpio4>; >> interrupts = <13 0x2>; > See: > https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt#L21 > https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/tree/drivers/net/can/spi/mcp251x.c?h=mcp251x#n945 This second link says it invalid Dan > >> + device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; >> + device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; >> + reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>; >> +}; > Marc >