From patchwork Thu Dec 8 10:31:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 31265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp117731wrr; Thu, 8 Dec 2022 02:36:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6i3/8E/tHpstNFnX3L5BxzSBX8f+c1r7LwRciUy2jb0m03/MYOhWfXpw+Fr1gZKydeFLwH X-Received: by 2002:a17:906:f84d:b0:7b9:631b:7dfb with SMTP id ks13-20020a170906f84d00b007b9631b7dfbmr61183211ejb.32.1670495776660; Thu, 08 Dec 2022 02:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670495776; cv=none; d=google.com; s=arc-20160816; b=DMxjvrnaPKhlEFjn78ZH4Yz9cpKiSI7Uygah0xf3hZptQCXUQnm9ZHU5VtzzRSgPk3 baigDiom3PgyCDgDtXaKq8w+2G6Q4uGjg6S4sAgm6KrQT4LWNwL28KOTdmDb52GDbXi3 SxcPfcVQejQJe8D2HY8oj1Y65cl3FK4jV/mnJAOD/6BsGMueTKmq105vh0/BpmznyArE IG2UPThDvAgbZx5U44U/1EYjjk9YhdccJJWU+B9BS03ueACmL0L2jcPCGkiwFKxBLLAL XWy3pXmt26XZvYWkrb/aPpCchoS1ujLmtd9LOQiLhCNCRUKj//qz1HoOHHAyr7ZaTJYx mhaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GdMCi41BRhoRVn7tJmgZDPG+60TkiWedqCw4ysK9tk0=; b=TTV76zUpbzfXsSgFW6G70zJCZ9s9ZODB6aeeFrmP6nZsQmPG/rAByQ/Up3sDbfwr/r EEupOs/3GdDEwWbcaKkM6bHZKgfaUpQlv2vQqyWz1lW+guM5D7mOoyEyYU8E1nx6gEU/ aE3hrUhNGJfWYVlysdaK8jDPG7gdol+1oHQpJ4Rf3KDlDbWSowib4U1mrGxhL5EBRyHC wNaIJLX5ZuX7dpzrmtHEz6z7WDKVbTB08sy0Eu+4SWjijtGcgt2BxvL1vvFpXowYrMST XzkOfqulOsSE6iKzbOcbITAgXlh1YgQ9oDclTIOJO6nv+teLMhc5gnRph5V7Jokr+KgE ATSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lRIiBy6p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a05640240d300b0046c641a3108si7004541edb.148.2022.12.08.02.35.53; Thu, 08 Dec 2022 02:36:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lRIiBy6p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbiLHKeX (ORCPT + 99 others); Thu, 8 Dec 2022 05:34:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230086AbiLHKdW (ORCPT ); Thu, 8 Dec 2022 05:33:22 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5418326C for ; Thu, 8 Dec 2022 02:31:44 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id b9so1086304ljr.5 for ; Thu, 08 Dec 2022 02:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GdMCi41BRhoRVn7tJmgZDPG+60TkiWedqCw4ysK9tk0=; b=lRIiBy6pSMLBYxynao/nIi1eDsNXlLTyCPFstwfxAluBEIsM6LiU7Plqhn1aJ02Yq6 2YJdwZYqtp5SUDN3HjG8GhAdVu762AjwFrIhiLmMDo+/00U1QEUfrdxnnY8+JxFp2uPJ 2UYDhpLJAL6B/y+H9+VzKsi7aadEJjjhvkzC/UHQ1EBYgTJOCwfCibi7quEmPArd3F+X FAysDVc0mFhSzNCGA+sXa3nJM2+nODtpkXx2XWAXTSyOLjOiD/4fwSGhvQfbsosyBohS xJncVnJWk1EZGOlLaEax8AtfdXsmnjE6ZV3mzb8dI2Z23PrpJYC8Rr45WQYiVPutyQen y1ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GdMCi41BRhoRVn7tJmgZDPG+60TkiWedqCw4ysK9tk0=; b=sIFcC3BMsBUzLeiB0wQTCOucW5uQG565mus90qo2r9kVEmn4zfrsDQOKw0BKJaI53E Q6/7cJ5J+oBHV6YimJPQqnUoCGJUIhX+RMgDA4ymvsDN0urnsbEj6RiWc79gCVBxpRuh 7tWQNOUuBOwCPLaDd/Q2z23F4IYyx4ewVQ9CoRI3zrrml++RWxsCShiAx7Po0TeyyGzK hrJRaw+2NzHs3S+1CHjUfZ8l5HDqFxi/0YUyS1+hwIz1f9mEGmVg7VcZ9esFEMqDA9mz 2zXUCUjIZmvP8kalu0/PupqUwDAuZyw2U/vZnS3WnA/suZAIGjO0L+8ki5C5qYhWMjrf J5WA== X-Gm-Message-State: ANoB5pli/ynVDlHGAUHDkVyq7LqMINOe+dwER+GSqEHEQMYPW6UrpySk 3mf7PMxYFkPkcPCD6HkG0crzig== X-Received: by 2002:a05:651c:2328:b0:27a:eae:9ecc with SMTP id bi40-20020a05651c232800b0027a0eae9eccmr3403499ljb.248.1670495503950; Thu, 08 Dec 2022 02:31:43 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id h18-20020a2eb0f2000000b00279e5247dabsm1699580ljl.18.2022.12.08.02.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:43 -0800 (PST) From: Krzysztof Kozlowski To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Hans Verkuil , Thierry Reding , Jonathan Hunter , Marek Szyprowski , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Joe Tessler , Yannick Fertre , Jeff Chase , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v4 9/9] media: dt-bindings: st,stih-cec: convert to DT schema Date: Thu, 8 Dec 2022 11:31:15 +0100 Message-Id: <20221208103115.25512-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221208103115.25512-1-krzysztof.kozlowski@linaro.org> References: <20221208103115.25512-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751641779259315813?= X-GMAIL-MSGID: =?utf-8?q?1751641779259315813?= Convert ST STIH4xx HDMI CEC bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/media/cec/st,stih-cec.yaml | 66 +++++++++++++++++++ .../devicetree/bindings/media/stih-cec.txt | 27 -------- MAINTAINERS | 2 +- 3 files changed, 67 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/cec/st,stih-cec.yaml delete mode 100644 Documentation/devicetree/bindings/media/stih-cec.txt diff --git a/Documentation/devicetree/bindings/media/cec/st,stih-cec.yaml b/Documentation/devicetree/bindings/media/cec/st,stih-cec.yaml new file mode 100644 index 000000000000..aeddf16ed339 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec/st,stih-cec.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/cec/st,stih-cec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STIH4xx HDMI CEC + +maintainers: + - Alain Volmat + +allOf: + - $ref: cec-common.yaml# + +properties: + compatible: + const: st,stih-cec + + clocks: + maxItems: 1 + + clock-names: + items: + - const: cec-clk + + interrupts: + maxItems: 1 + + interrupt-names: + items: + - const: cec-irq + + resets: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - hdmi-phandle + - interrupts + - resets + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + + cec@94a087c { + compatible = "st,stih-cec"; + reg = <0x94a087c 0x64>; + + clocks = <&clk_sysin>; + clock-names = "cec-clk"; + hdmi-phandle = <&sti_hdmi>; + interrupts = ; + interrupt-names = "cec-irq"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cec0_default>; + resets = <&softreset STIH407_LPM_SOFTRESET>; + }; diff --git a/Documentation/devicetree/bindings/media/stih-cec.txt b/Documentation/devicetree/bindings/media/stih-cec.txt deleted file mode 100644 index ece0832fdeaf..000000000000 --- a/Documentation/devicetree/bindings/media/stih-cec.txt +++ /dev/null @@ -1,27 +0,0 @@ -STMicroelectronics STIH4xx HDMI CEC driver - -Required properties: - - compatible : value should be "st,stih-cec" - - reg : Physical base address of the IP registers and length of memory - mapped region. - - clocks : from common clock binding: handle to HDMI CEC clock - - interrupts : HDMI CEC interrupt number to the CPU. - - pinctrl-names: Contains only one value - "default" - - pinctrl-0: Specifies the pin control groups used for CEC hardware. - - resets: Reference to a reset controller - - hdmi-phandle: Phandle to the HDMI controller, see also cec.txt. - -Example for STIH407: - -sti-cec@94a087c { - compatible = "st,stih-cec"; - reg = <0x94a087c 0x64>; - clocks = <&clk_sysin>; - clock-names = "cec-clk"; - interrupts = ; - interrupt-names = "cec-irq"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_cec0_default>; - resets = <&softreset STIH407_LPM_SOFTRESET>; - hdmi-phandle = <&hdmi>; -}; diff --git a/MAINTAINERS b/MAINTAINERS index 5c2593f346f8..b110c6d5133e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19924,7 +19924,7 @@ F: sound/soc/sti/ STI CEC DRIVER M: Alain Volmat S: Maintained -F: Documentation/devicetree/bindings/media/stih-cec.txt +F: Documentation/devicetree/bindings/media/cec/st,stih-cec.yaml F: drivers/media/cec/platform/sti/ STK1160 USB VIDEO CAPTURE DRIVER