Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4301673ybp; Mon, 14 Oct 2019 02:24:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqm/ndqaHtkh4RKquGj0EzZfbtHD9j8WnA3z5PeyryYDkQqvERZBLH/kzSN1fHd83E9rym X-Received: by 2002:aa7:cb55:: with SMTP id w21mr26936677edt.163.1571045096366; Mon, 14 Oct 2019 02:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571045096; cv=none; d=google.com; s=arc-20160816; b=a9VTuErgsr3Dl3xyCEzzdPC+H31nCoaDYIU/yVqw60mYLcmrDHr7zz5yIdw4JZLZSt QDaLG2Eu/oxppZ2x2k4lSR59B7RzbuFrJpcsP27QztOMuEARh6c3gjwBPWiGf7tWaBMw 4kPcyV1TW3E8ubkeqrqxWYFRVXGkn/9F1XddaO7dJ9Mfimowol2pZR3kcS2X2QgAZyX2 TKCZ0gOeK9XD6aP4WDqHxrDHbEbSqAom8otBL9oX3inSlyMAeA3ofPljwbw/Acek8aF2 zjXLtbUlBrD1JqSlaG+kbdkAvH0WfMAMCtyWQjmKyxGoZ7dWHmjpJCw+AnGksJ5BK+Z5 ijjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=gEmBsIEorhGPSpDkFEP6FJmifXJuypR7WyitQNE9F3U=; b=l5mnEXLefLQodWE6fmK1N8WZEWF+JHbRY8ox8l9vFrApcFde/ZkdOx9VzrP7Y+QuXL 70aL4wzgUQLkV8vn8iEkbA7eoGN7W2aLMuGL0Y83Jue41TYopA3yLL7jofl3j6OWw4T2 3vCKt723CPSytEI8a/efTz2vaPcxyaFTzigL69OX5bKEfc4RV8DvWNPAlcEGvdJlH5ng bYCe/g8dHQoJebrzAdH+f6GnuM97nO3WiLt+tOExwdTehZN0M1eijJWnxuFOS6UEaAJY 4CnAlx5so+17a8UTUSXi9aHcWDMKkxJONIUANLQcAYLYrSLrw1RMa6uJ+qPfmO3Bha2V ppdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=IFqMGZb+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j21si10900316edr.376.2019.10.14.02.24.33; Mon, 14 Oct 2019 02:24: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=@st.com header.s=STMicroelectronics header.b=IFqMGZb+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730818AbfJNJXm (ORCPT + 99 others); Mon, 14 Oct 2019 05:23:42 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:24986 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730676AbfJNJXm (ORCPT ); Mon, 14 Oct 2019 05:23:42 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9E9Biq9022257; Mon, 14 Oct 2019 11:23:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=gEmBsIEorhGPSpDkFEP6FJmifXJuypR7WyitQNE9F3U=; b=IFqMGZb+TTWAv7lhNQiinPV3XsSxyxdw6e/u3hIocGh75+SUDJ52xgajrfxq2PIxOZ9T O/U6R+Jk1PL8X2a1Kxh476tABtb5XWgeTuzzMLOjTWKqWFgF13XVn6vSP01kvLgxkbav 2el7XkOb22YokGc/v7MlbkVdH6c8JdVperl5hlEvgPqbGv/zUAY1P1cxdzoKUmIiwOp4 nm+m8Z0ld5DRzlauPqP7gJ13kRXhUzZBfOcy/e8JTmNn4MvsHcm5cEDH2dFyazqlBDSn gquyoiW7aRZhBEmlakpzjvIYpxaF/tgEROKMNBbwAsjDy3bPYnW2iyZMZ3Kkfs/k+/Lr BA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2vk3y9hshw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2019 11:23:19 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B2A6510002A; Mon, 14 Oct 2019 11:23:18 +0200 (CEST) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A2F032B189A; Mon, 14 Oct 2019 11:23:18 +0200 (CEST) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 14 Oct 2019 11:23:18 +0200 Received: from localhost (10.201.20.122) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 14 Oct 2019 11:23:18 +0200 From: Benjamin Gaignard To: , , , CC: , , , , Benjamin Gaignard Subject: [PATCH v3] dt-bindings: timer: Convert stm32 timer bindings to json-schema Date: Mon, 14 Oct 2019 11:23:16 +0200 Message-ID: <20191014092316.24337-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.122] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-14_06:2019-10-10,2019-10-14 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the STM32 timer binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard --- changes in v3: - use (GPL-2.0-only OR BSD-2-Clause) license - fix identation - add additionalProperties: false .../devicetree/bindings/timer/st,stm32-timer.txt | 22 ---------- .../devicetree/bindings/timer/st,stm32-timer.yaml | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/st,stm32-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/st,stm32-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/st,stm32-timer.txt b/Documentation/devicetree/bindings/timer/st,stm32-timer.txt deleted file mode 100644 index 8ef28e70d6e8..000000000000 --- a/Documentation/devicetree/bindings/timer/st,stm32-timer.txt +++ /dev/null @@ -1,22 +0,0 @@ -. STMicroelectronics STM32 timer - -The STM32 MCUs family has several general-purpose 16 and 32 bits timers. - -Required properties: -- compatible : Should be "st,stm32-timer" -- reg : Address and length of the register set -- clocks : Reference on the timer input clock -- interrupts : Reference to the timer interrupt - -Optional properties: -- resets: Reference to a reset controller asserting the timer - -Example: - -timer5: timer@40000c00 { - compatible = "st,stm32-timer"; - reg = <0x40000c00 0x400>; - interrupts = <50>; - resets = <&rrc 259>; - clocks = <&clk_pmtr1>; -}; diff --git a/Documentation/devicetree/bindings/timer/st,stm32-timer.yaml b/Documentation/devicetree/bindings/timer/st,stm32-timer.yaml new file mode 100644 index 000000000000..176aa3c9baf8 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/st,stm32-timer.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/st,stm32-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 general-purpose 16 and 32 bits timers bindings + +maintainers: + - Benjamin Gaignard + +properties: + compatible: + const: st,stm32-timer + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + timer: timer@40000c00 { + compatible = "st,stm32-timer"; + reg = <0x40000c00 0x400>; + interrupts = <50>; + clocks = <&clk_pmtr1>; + }; + +... -- 2.15.0