From patchwork Wed Dec 7 10:22:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1713222 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=XB4U+5Zl; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NRtg13GMYz23yx for ; Wed, 7 Dec 2022 21:23:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230259AbiLGKXx (ORCPT ); Wed, 7 Dec 2022 05:23:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbiLGKXR (ORCPT ); Wed, 7 Dec 2022 05:23:17 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B60192AD for ; Wed, 7 Dec 2022 02:23:11 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id x28so10636151lfn.6 for ; Wed, 07 Dec 2022 02:23:11 -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=2AUwX2bZWFPRltw54sKVrGy9ss5uTmSF0GAbGdEL1cY=; b=XB4U+5ZljqR/bbvMKNFN+vU986ORmhbBYnwpj6Uoaam4TDmCl6l8ew66p5/mQ47Epa z0o12IwUwbpEyhZcDHgTqQzPDIE5NrGOBVhdpEKEb0NGLGt/XpOkcGNL3LQRzggQftXp Jiha1ZD1+2g9OZZMRkK3JM2Vegm7aRTb3FHLE696vEYIfSgdkIW615VQ8/VnfpnwXnNL F9MYW0+YuG1aa3h/KjQ7Qh9jLBaIQAKMX9/DeIqWh5Y8VMIJo5BpBlJ098LdAUCwfGS8 aBtx7RWJNGRqUD4stzuz9inChA7HS4LowmCH0RW3VGtGv00Gbe+Ft5RQ1BVUiXwbthu0 o91Q== 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=2AUwX2bZWFPRltw54sKVrGy9ss5uTmSF0GAbGdEL1cY=; b=HAG4sgfrU3UGFtuB49wZm5ZhfwUnPJE5bBBxCBnWniWanCD62EIq8qudTIOLyRwIaz UoU37Rqk3hLu6q8mIbH2QNmvJu3hJm4b7E+k0L6KyqMbYXHGjHAOa/yzuZm8ZFXW9js7 Vi/aARGmIBOoZPzelJERZ4Y3V8QtoNUw0zhpPhhahmk8raVfVUsbDBjxn7su+moUXNYq SbZwuLuS4qr/rrwcxRpgiLfX5JdGbTVTIdInoiofAlFpuxqg9rANWhhrO/WQrY7+Z9uZ PUUwgdqkFo6CbpRbkgVybQZqNiL/K3ZpBSC+jMLGUa1xagNU87akcfjih1AzOoE0pXPI FEzA== X-Gm-Message-State: ANoB5pm09xRI0ggudadXPBGt92mpM8OhBPu2ZDkiX7jo7MZfaMcsF9xu crATm/7Sc7GhTtk/dkxhovcb1g== X-Google-Smtp-Source: AA0mqf4yC5k5Vs4wsmk6nVdssr0tS1Ijg5ULzsObdS7ZFIejpoMI85/cYKftYxb5UoYNwRrKvQ9Ilw== X-Received: by 2002:a05:6512:1291:b0:4af:eabf:3c57 with SMTP id u17-20020a056512129100b004afeabf3c57mr23092457lfs.449.1670408590286; Wed, 07 Dec 2022 02:23:10 -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 bu31-20020a056512169f00b00499b27a329esm1953183lfb.300.2022.12.07.02.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 02:23:09 -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 , Thierry Reding Subject: [PATCH v3 8/9] media: dt-bindings: nvidia,tegra114-cec: convert to DT schema Date: Wed, 7 Dec 2022 11:22:52 +0100 Message-Id: <20221207102253.26663-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221207102253.26663-1-krzysztof.kozlowski@linaro.org> References: <20221207102253.26663-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-tegra@vger.kernel.org Convert NVIDIA Tegra HDMI CEC bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Acked-by: Hans Verkuil Reviewed-by: Rob Herring Acked-by: Thierry Reding --- Changes since v2: 1. Rename to nvidia,tegra114-cec.yaml 2. Nvidia->NVIDIA --- .../media/cec/nvidia,tegra114-cec.yaml | 58 +++++++++++++++++++ .../devicetree/bindings/media/tegra-cec.txt | 27 --------- MAINTAINERS | 2 +- 3 files changed, 59 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/cec/nvidia,tegra114-cec.yaml delete mode 100644 Documentation/devicetree/bindings/media/tegra-cec.txt diff --git a/Documentation/devicetree/bindings/media/cec/nvidia,tegra114-cec.yaml b/Documentation/devicetree/bindings/media/cec/nvidia,tegra114-cec.yaml new file mode 100644 index 000000000000..369c48fd9bf9 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec/nvidia,tegra114-cec.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/cec/nvidia,tegra114-cec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra HDMI CEC + +maintainers: + - Hans Verkuil + +allOf: + - $ref: cec-common.yaml# + +properties: + compatible: + enum: + - nvidia,tegra114-cec + - nvidia,tegra124-cec + - nvidia,tegra210-cec + + clocks: + maxItems: 1 + + clock-names: + items: + - const: cec + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - clock-names + - hdmi-phandle + - interrupts + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + + cec@70015000 { + compatible = "nvidia,tegra124-cec"; + reg = <0x70015000 0x00001000>; + interrupts = ; + clocks = <&tegra_car TEGRA124_CLK_CEC>; + clock-names = "cec"; + status = "disabled"; + hdmi-phandle = <&hdmi>; + }; diff --git a/Documentation/devicetree/bindings/media/tegra-cec.txt b/Documentation/devicetree/bindings/media/tegra-cec.txt deleted file mode 100644 index c503f06f3b84..000000000000 --- a/Documentation/devicetree/bindings/media/tegra-cec.txt +++ /dev/null @@ -1,27 +0,0 @@ -* Tegra HDMI CEC hardware - -The HDMI CEC module is present in Tegra SoCs and its purpose is to -handle communication between HDMI connected devices over the CEC bus. - -Required properties: - - compatible : value should be one of the following: - "nvidia,tegra114-cec" - "nvidia,tegra124-cec" - "nvidia,tegra210-cec" - - reg : Physical base address of the IP registers and length of memory - mapped region. - - interrupts : HDMI CEC interrupt number to the CPU. - - clocks : from common clock binding: handle to HDMI CEC clock. - - clock-names : from common clock binding: must contain "cec", - corresponding to the entry in the clocks property. - - hdmi-phandle : phandle to the HDMI controller, see also cec.txt. - -Example: - -cec@70015000 { - compatible = "nvidia,tegra124-cec"; - reg = <0x0 0x70015000 0x0 0x00001000>; - interrupts = ; - clocks = <&tegra_car TEGRA124_CLK_CEC>; - clock-names = "cec"; -}; diff --git a/MAINTAINERS b/MAINTAINERS index 197351d3bb57..dee3f776be32 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2999,7 +2999,7 @@ M: Hans Verkuil L: linux-tegra@vger.kernel.org L: linux-media@vger.kernel.org S: Maintained -F: Documentation/devicetree/bindings/media/tegra-cec.txt +F: Documentation/devicetree/bindings/media/cec/nvidia,tegra-cec.yaml F: drivers/media/cec/platform/tegra/ ARM/TESLA FSD SoC SUPPORT