From patchwork Mon Oct 14 09:20:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin GAIGNARD X-Patchwork-Id: 11188123 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99ECA14DB for ; Mon, 14 Oct 2019 09:20:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A54D214AE for ; Mon, 14 Oct 2019 09:20:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="e1BGKH3/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730770AbfJNJUk (ORCPT ); Mon, 14 Oct 2019 05:20:40 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:23132 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730397AbfJNJUk (ORCPT ); Mon, 14 Oct 2019 05:20:40 -0400 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 x9E9BQ3F027216; Mon, 14 Oct 2019 11:20:25 +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=SJX1WTguEpkXxZ96S9hCxl3iKdotKPilW/FNR+qQW64=; b=e1BGKH3/O71t42mvkIBFhPsa2Cs2yEFGWhYKxcfbJ+kQpj/0sXvuEcm8IcrvlbuKZ7xk fLj4Vtk8jY4Vesb3iKGVOC0MrQ462+1fbj0/N6wYVya3cO+wWF1j34t/SBniOdzgRfwP s7m4OzsQ/3wR+MpNVxNelePa7TuaGhUYcYysU9PiY0GTfb6xUoUGdRpruZnrBr3VEEn2 rY+7frr8UuUzJkJx39niwTRNLF4Yfno6tmlUzWaxSRIaAVOy5bhkoO5L7Xxrh2riPIUn 1BFMQkzpM2N8Q8ZCVZFSu9/UAq8pppKHxTbtDvnZKtoktrVWgLWA11R0ujPF8uJ8KAMZ JQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2vk4a11dx9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2019 11:20:25 +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 5239210002A; Mon, 14 Oct 2019 11:20:24 +0200 (CEST) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 410232B8C56; Mon, 14 Oct 2019 11:20:24 +0200 (CEST) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 14 Oct 2019 11:20:24 +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:20:23 +0200 From: Benjamin Gaignard To: , , , , , , CC: , , , , , Benjamin Gaignard Subject: [PATCH v3] dt-bindings: media: Convert stm32 cec bindings to json-schema Date: Mon, 14 Oct 2019 11:20:20 +0200 Message-ID: <20191014092021.24020-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Convert the STM32 cec 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 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..d75019c093a4 --- /dev/null +++ b/Documentation/devicetree/bindings/media/st,stm32-cec.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR 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"; + }; + +...