Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp520563pxb; Wed, 14 Apr 2021 23:28:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkqDqqYOhkkOnttVvFTS0Kc0bGk4bUQUmegzPjyo8vPsuR5pRtgynsIT6Xakm1Q7NLeDH+ X-Received: by 2002:a05:6a00:2301:b029:247:7208:1d6f with SMTP id h1-20020a056a002301b029024772081d6fmr1790826pfh.43.1618468131950; Wed, 14 Apr 2021 23:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618468131; cv=none; d=google.com; s=arc-20160816; b=ILyZp7BNyWZEgBeu2T/EKIy65eozOA3QGEFZPPdYIzx4OCX42PZ02p2kz8eYxyACmS yy+8eXMwRkjngI+w7acNF1klHbfvTXzPNE4xFODfPPDEVenHK/O/K8+O1RwoLL5iQS+W 4j3qV1PmB+6qBCnQpGVwR91p7XPkXGADNdDGFUBeC+JVwu4uCu4EYNlGwzVOfZG5U7Bn kY9MW1wg3whBGgbc49zZ1XqB9DPiQ7FgCcA01yM8UdtY/yHCcdl5hOJ9mtaF5BmxvP5u mfYiESfcrZQtyIpwwS2nSmCTlM3ZzvMjtg8PFmVG//vwV2Fxk7bNZyC1010W9uLyAMw/ 7ULA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=T1VGJWaSnZe1FPW2m57oyGHqhnqnwLtMvN8UhVow6dY=; b=t2DUEgS48V1axJdVF/XWwNS1pgl/8g+IJEkG+sEu03nwp3GDyz5JM3s/QneQ+YwZ79 KUx9DJVBCTlNjU7DQra71aBRccLr4Z3N4R5F77SV0vVyB9BppQvJ0VUznMcMGC47RUwu 2e79pcexCswmo0xEbgRONTssdQ3s+WiRrDWXXnJJ0X658pDMIfrGX6A4vQVxmdlEsxNl WHfiydZtpaRVWGdbdM6wLsxiem1EcYdsTi5xS+y9t02DzYt3ZjRTBTGoo0TMEM2VlKwz GTmnHaExaht6Y72K3LwJhJSwDNpvuJ2xFg70HdZD0aRN6q09R96z7GIx1VUML0vL9yWe zpBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MgHlXsbX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q13si2110637plk.238.2021.04.14.23.28.39; Wed, 14 Apr 2021 23:28:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@ti.com header.s=ti-com-17Q1 header.b=MgHlXsbX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230264AbhDOG2N (ORCPT + 99 others); Thu, 15 Apr 2021 02:28:13 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:57810 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhDOG2M (ORCPT ); Thu, 15 Apr 2021 02:28:12 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 13F6RSRu056407; Thu, 15 Apr 2021 01:27:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1618468048; bh=T1VGJWaSnZe1FPW2m57oyGHqhnqnwLtMvN8UhVow6dY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=MgHlXsbXunc6B2jYzadb2+EQoQATkCj3eHcocRLODnfT0Mw4aX1II+ZWHdKY3TPQw +3/wW85M+pIGnHlb/ynLl7Wfx7/QlPX19e3YCSqCOUXc/dhGBtAppo7igRU0oH+5Ta K9N3o0Y12VdSwsu2mzWCZL8KB8r3ZVT3wGGCPOIA= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 13F6RSod078266 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Apr 2021 01:27:28 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 15 Apr 2021 01:27:28 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 15 Apr 2021 01:27:28 -0500 Received: from [172.24.145.148] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 13F6RL2o127491; Thu, 15 Apr 2021 01:27:22 -0500 Subject: Re: [PATCH v2 3/6] dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers To: Marc Kleine-Budde CC: , , , Chandrasekar Ramakrishnan , Wolfgang Grandegger , "David S . Miller" , Jakub Kicinski , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , , , Vignesh Raghavendra , Lokesh Vutla , Grygorii Strashko References: <20210414140521.11463-1-a-govindraju@ti.com> <20210414140521.11463-4-a-govindraju@ti.com> <20210414153303.yig6bguue3g25yhg@pengutronix.de> From: Aswath Govindraju Message-ID: <9a9a3b8b-f345-faae-b9bc-3961518e3d29@ti.com> Date: Thu, 15 Apr 2021 11:57:20 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210414153303.yig6bguue3g25yhg@pengutronix.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 14/04/21 9:03 pm, Marc Kleine-Budde wrote: > On 14.04.2021 19:35:18, Aswath Govindraju wrote: >> Add binding documentation for TI TCAN104x CAN transceivers. >> >> Signed-off-by: Aswath Govindraju >> --- >> .../bindings/phy/ti,tcan104x-can.yaml | 56 +++++++++++++++++++ >> MAINTAINERS | 1 + >> 2 files changed, 57 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml >> >> diff --git a/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml >> new file mode 100644 >> index 000000000000..4abfc30a97d0 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml >> @@ -0,0 +1,56 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: "http://devicetree.org/schemas/phy/ti,tcan104x-can.yaml#" >> +$schema: "http://devicetree.org/meta-schemas/core.yaml#" >> + >> +title: TCAN104x CAN TRANSCEIVER PHY >> + >> +maintainers: >> + - Aswath Govindraju >> + >> +properties: >> + $nodename: >> + pattern: "^tcan104x-phy" >> + >> + compatible: >> + enum: >> + - ti,tcan1042 >> + - ti,tcan1043 > > Can you ensure that the 1042 has only the standby gpio and the 1043 has both? > In the driver, it is the way the flags have been set for ti,tcan1042 and ti,tcan1043. >> + >> + '#phy-cells': >> + const: 0 >> + >> + standby-gpios: >> + description: >> + gpio node to toggle standby signal on transceiver >> + maxItems: 1 >> + >> + enable-gpios: >> + description: >> + gpio node to toggle enable signal on transceiver >> + maxItems: 1 >> + >> + max-bitrate: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + max bit rate supported in bps >> + minimum: 1 >> + >> +required: >> + - compatible >> + - '#phy-cells' >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + >> + transceiver1: tcan104x-phy { >> + compatible = "ti,tcan1043"; >> + #phy-cells = <0>; >> + max-bitrate = <5000000>; >> + standby-gpios = <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>; >> + enable-gpios = <&main_gpio1 67 GPIO_ACTIVE_LOW>; > > AFAICS the enable gpio is active high. > I will correct this in the respin. Thanks, Aswath > Marc >