Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp900484ybp; Fri, 11 Oct 2019 06:13:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlaOKs44fhoqGrgzLQtqcv3Cz+pFTtTEGHLgywo06IXnxBh8y/cKdFxHdJWPh3m6y07Y8a X-Received: by 2002:a50:fc86:: with SMTP id f6mr13555042edq.233.1570799608179; Fri, 11 Oct 2019 06:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570799608; cv=none; d=google.com; s=arc-20160816; b=eAuhb7ZZ9EKPQ4yIfUPldu3XEsTIhYGgxL1Oo7e5ceeVLg64hE8qa+kXeHbqYfwa/m CXgmm1pJvcioU3c/VSvxb6hQRm+tfuAZhAG2g0GBwDbNYgNUSyDWUWKNVx7z2lJU3XUn TLq+sfcSs255Szyf8PbEbJkwZo+JMX2nqOX4ekRrE0mQ1k1YfQbPHYZxB+8u9ZMlxMPZ ArxtfxYwaEUyfwz2zqNrJpevHrmQK2Wq4HoaVtc7PkROgihF79bWsEUOvA9PL40ceCdg lGHS9H+wYixEncwRjznzKz320nvY/t6qy3QA5/sd1Ldmf+yZwEHeuAc0BBOOkyygYwnF fFTg== 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=PWduPs3pmXgoDQ3rhQPq+MwH5Bty4MTM7xJsS5IAIeM=; b=vc4cINWQrthmsWJJrANHDaTgOOQQf9nZCrG4LOX6IyMRS1GVUapnpipx+tkjaGfOAT f6vYIliXiGb9YpbzwTl1wFsEmrsjRbysp+HfgTTv0Cyn1ymPrYmmdliYaAlxb2ECpWiJ f5q/VmqRji3ndjxJZa1NwWnemtI8OKUluYIrWU8xRj45hWJukZjx9XmEjgZdz1FhSsu6 gkVhyRm7YRm6qndNdIHpyCD+N9gbnHaE8n0wLaMbThiqA4Jb9W8a6g22DeO/x2OOj38v Rn50lpZqoHPx0MB4gDav3NjhgciHSmQyj94yXm/FLqi2Ub/s98fq7UjYcbUvQAg5IxrX UHNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ejGC399U; 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 j7si5133528ejv.225.2019.10.11.06.13.04; Fri, 11 Oct 2019 06:13:28 -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=ejGC399U; 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 S1728343AbfJKNMt (ORCPT + 99 others); Fri, 11 Oct 2019 09:12:49 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:46368 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727950AbfJKNMt (ORCPT ); Fri, 11 Oct 2019 09:12:49 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9BD6HRY025650; Fri, 11 Oct 2019 15:12:38 +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=PWduPs3pmXgoDQ3rhQPq+MwH5Bty4MTM7xJsS5IAIeM=; b=ejGC399U6Tnz8nmHJ9yJotwtZtlPXZUDPGRyrPGLzyYfIRdlGjCTsGimeyuXs77gDxoJ xdtGKejSWEYJnO3R7v2aue1+oP5r2/jPkyI9kAg+PkQB1QnAYthQTYH5uyvfKGTFAtSl ypSuaQ/92dVytI8/bJ9EzDWPljmexR+Pg+9agla8XHPMZfKJ4rt8rj8cBAYpdujAyqTe pZ2FJH68iPBc1eIJiQ6WZQayre4WZuuyOz13zNHW1AR5lK9dEmd94eOzLmLKftoqtszi jySfOAh//e2UM5L+fvw07VqRHEem7jpswLb2zrhdXKA77uN2NnjoIEKU69ZYDGKGZOH9 3g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2vej2ptd96-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2019 15:12:38 +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 EBDFF10002A; Fri, 11 Oct 2019 15:12:37 +0200 (CEST) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B8EF02BEC5E; Fri, 11 Oct 2019 15:12:37 +0200 (CEST) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 15:12:37 +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; Fri, 11 Oct 2019 15:12:37 +0200 From: Benjamin Gaignard To: , , , , , CC: , , , , , Benjamin Gaignard Subject: [PATCH v2] dt-bindings: media: Convert stm32 cec bindings to json-schema Date: Fri, 11 Oct 2019 15:12:33 +0200 Message-ID: <20191011131234.24290-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-11_08:2019-10-10,2019-10-11 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the STM32 cec binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard --- changes in v2: - use BSD-2-Clause license - add additionalProperties: false - remove pinctrl-names and pinctrl-[0-9] .../devicetree/bindings/media/st,stm32-cec.txt | 19 -------- .../devicetree/bindings/media/st,stm32-cec.yaml | 54 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/st,stm32-cec.txt create mode 100644 Documentation/devicetree/bindings/media/st,stm32-cec.yaml diff --git a/Documentation/devicetree/bindings/media/st,stm32-cec.txt b/Documentation/devicetree/bindings/media/st,stm32-cec.txt deleted file mode 100644 index 6be2381c180d..000000000000 --- a/Documentation/devicetree/bindings/media/st,stm32-cec.txt +++ /dev/null @@ -1,19 +0,0 @@ -STMicroelectronics STM32 CEC driver - -Required properties: - - compatible : value should be "st,stm32-cec" - - reg : Physical base address of the IP registers and length of memory - mapped region. - - clocks : from common clock binding: handle to CEC clocks - - clock-names : from common clock binding: must be "cec" and "hdmi-cec". - - interrupts : CEC interrupt number to the CPU. - -Example for stm32f746: - -cec: cec@40006c00 { - compatible = "st,stm32-cec"; - reg = <0x40006C00 0x400>; - interrupts = <94>; - clocks = <&rcc 0 STM32F7_APB1_CLOCK(CEC)>, <&rcc 1 CLK_HDMI_CEC>; - clock-names = "cec", "hdmi-cec"; -}; diff --git a/Documentation/devicetree/bindings/media/st,stm32-cec.yaml b/Documentation/devicetree/bindings/media/st,stm32-cec.yaml new file mode 100644 index 000000000000..e3ff7b077ff6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/st,stm32-cec.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/st,stm32-cec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 CEC bindings + +maintainers: + - Benjamin Gaignard + - Yannick Fertre + +properties: + compatible: + const: st,stm32-cec + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Module Clock + - description: Bus Clock + + clock-names: + items: + - const: cec + - const: hdmi-cec + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + cec: cec@40006c00 { + compatible = "st,stm32-cec"; + reg = <0x40006c00 0x400>; + interrupts = ; + clocks = <&rcc CEC_K>, <&clk_lse>; + clock-names = "cec", "hdmi-cec"; + }; + +... -- 2.15.0