Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp423635ybv; Fri, 7 Feb 2020 01:52:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyqwm9Untc7Nars0csIi4hz4V/SHLEOeQUPMO3Q+QUdmLuhCYx4HBserYQZkFnnvpqfUnsm X-Received: by 2002:aca:1c0d:: with SMTP id c13mr1455254oic.44.1581069175003; Fri, 07 Feb 2020 01:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581069174; cv=none; d=google.com; s=arc-20160816; b=OO9kXRTTGuzm3vTymvdVDY8Ab2fw/6G4/4ot/af8YlQcOi7LjiwSxcBQbL0txljYP9 DF9Dt8b8n+WdGZo1nEWvofvpCmEivvK+PNdk1Qc5yGpPpQFyns5kxElfIMUdQ+SSCIZ2 D6KTJsv0rLu3u7+7Z/aqCcSOPK6MZ0jiMEH4sGAMSppS40VvPA7ydOb55mW5AdQaqtAC erPDS/itSbWoie4Y1967mdDqfMrZ1nb0emIRa6zPWssb6Pr/52LrZfxeuTayYy7MwVwu rxL8xnNWWFg2tFPAWBwD53a/a5NjqXXyaCzxt1LX0SAWxFvhpEGujWyMW52pzDOswoCU GAww== 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=LvRo2ianNIXwHlT/arDbjp+7Tac7mpP6tm8d93M1zS0=; b=bloT4uQMyz5kpUhqTsqhUOruZO9ZJZh0nxwJBSs2QeIC37RZ1PzbCyauXmmwgJD6wv AfvGTH3OdyQrA818bqcuCHSH7+GgsK6FPwlBfjKZJsabv6WAiEabbMS/kQJw0yfbiW07 FY3vTO5qX53aLdV8MCqfceXZ0ouNH0yvc/15Pi9T/qvhdGxMFCBz5tVGuH1O2Qe6w9b3 Zxl54dW68Yc3bOHgzReBd4JnucduoK0UjP0vV8iOX/xSrPbcMfl4ajbIeyHsW9dpqTMP Y328j0AB5GvQaNczGJCEZNIGdaLKEOUo/62mppO+tvV1pDyYrNQSmOUO4Kt9SNw3G0Ae afWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=TQ7qiMme; 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=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si3496553oih.70.2020.02.07.01.52.43; Fri, 07 Feb 2020 01:52:54 -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=@st.com header.s=STMicroelectronics header.b=TQ7qiMme; 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=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbgBGJvt (ORCPT + 99 others); Fri, 7 Feb 2020 04:51:49 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:17314 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbgBGJvk (ORCPT ); Fri, 7 Feb 2020 04:51:40 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0179nHNC028269; Fri, 7 Feb 2020 10:51:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=LvRo2ianNIXwHlT/arDbjp+7Tac7mpP6tm8d93M1zS0=; b=TQ7qiMmewvO4dyXmimOJS242Hls1ifbB/Pk4LfSRS21zAIDBsvWtaWkab9RwVOXRsoTK WrkhGUGGM+ov3T/Z8XgWD02DEOhrrcx8ZjgA4QD4/GOEHkw0OrJ0Ir9dDM0+MkVJvW4Y fLTx1LQZAFk5npfvZN+wKM2OAr0oaJbauN1O5XUHREhFZ332nr7UKxwfupyjVyOVAHEa z3ngrY+WI0+KtV7KZ91vuGWMQMAWeaYUURUlwQoGqcVqSRDG+37Ys+6tbhQxVchy3XqF vef8iGaKS+EwI+3pnlkaZfkU2La+8es6hCEO3/DVAWKoj04pABS6LC594Ifu9dt762oE wQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xyhku9upw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Feb 2020 10:51:23 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4914B10002A; Fri, 7 Feb 2020 10:51:18 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 39A5D222CA0; Fri, 7 Feb 2020 10:51:18 +0100 (CET) Received: from localhost (10.75.127.49) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 7 Feb 2020 10:51:17 +0100 From: Benjamin Gaignard To: , , , , , CC: , , , , Benjamin Gaignard Subject: [PATCH v3 1/2] dt-bindinsg: net: can: Convert can-transceiver to json-schema Date: Fri, 7 Feb 2020 10:51:12 +0100 Message-ID: <20200207095113.14489-2-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20200207095113.14489-1-benjamin.gaignard@st.com> References: <20200207095113.14489-1-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG6NODE1.st.com (10.75.127.16) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-07_01:2020-02-07,2020-02-06 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert can-transceiver property to json-schema Signed-off-by: Benjamin Gaignard --- version 3: - only declare max-bitrate property in can-transceiver.yaml .../bindings/net/can/can-transceiver.txt | 24 ---------------------- .../bindings/net/can/can-transceiver.yaml | 18 ++++++++++++++++ 2 files changed, 18 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/can/can-transceiver.txt create mode 100644 Documentation/devicetree/bindings/net/can/can-transceiver.yaml diff --git a/Documentation/devicetree/bindings/net/can/can-transceiver.txt b/Documentation/devicetree/bindings/net/can/can-transceiver.txt deleted file mode 100644 index 0011f53ff159..000000000000 --- a/Documentation/devicetree/bindings/net/can/can-transceiver.txt +++ /dev/null @@ -1,24 +0,0 @@ -Generic CAN transceiver Device Tree binding ------------------------------- - -CAN transceiver typically limits the max speed in standard CAN and CAN FD -modes. Typically these limitations are static and the transceivers themselves -provide no way to detect this limitation at runtime. For this situation, -the "can-transceiver" node can be used. - -Required Properties: - max-bitrate: a positive non 0 value that determines the max - speed that CAN/CAN-FD can run. Any other value - will be ignored. - -Examples: - -Based on Texas Instrument's TCAN1042HGV CAN Transceiver - -m_can0 { - .... - can-transceiver { - max-bitrate = <5000000>; - }; - ... -}; diff --git a/Documentation/devicetree/bindings/net/can/can-transceiver.yaml b/Documentation/devicetree/bindings/net/can/can-transceiver.yaml new file mode 100644 index 000000000000..6396977d29e5 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/can-transceiver.yaml @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/can-transceiver.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CAN transceiver Bindings + +description: CAN transceiver generic properties bindings + +maintainers: + - Rob Herring + +properties: + max-bitrate: + $ref: /schemas/types.yaml#/definitions/uint32 + description: a positive non 0 value that determines the max speed that CAN/CAN-FD can run. + minimum: 1 -- 2.15.0