From patchwork Thu Dec 8 10:31:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 31266 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp117756wrr; Thu, 8 Dec 2022 02:36:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7L7N+MYDMgqTp40W7Tq09LtFaYMMls75Oyggc0faUtC044JkEHjTqe7WvViL/rvzoYMpP4 X-Received: by 2002:a17:906:5e42:b0:7c1:22a6:818d with SMTP id b2-20020a1709065e4200b007c122a6818dmr3497701eju.43.1670495781665; Thu, 08 Dec 2022 02:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670495781; cv=none; d=google.com; s=arc-20160816; b=F7qQTwsv38+USZv/bQPu//8ImJnKV/WlfTs1RstTVr9fBtF1KYl8KoxsHK5TuQJ5FV glPy/wUjjrCDNw0O+ddaOYWUaYpajsL1m3E122NAVozUqZHe9JuxICqd4827YCIWCUDR /MyKpiLnpdWVwOisO7HRmce50EbdjyPwN3aE92Stlklj+6Q6tEGguE+VT2bOSnYegyVR /cJ7gT+MFy4YfdgyUEZXoAHXI1To/bhh+JIDPMg62wkL5Q1XE6CzH+aw6pCg6qTN4eur iGuVszvHStjNUXKBEjwBn2N+T6sYmRNgJUy6K6kDuhcUc4lJPNebSp2ELS0X6AXLxHRm YUfQ== 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=tOenoxBAkNYKXtwJphgPxrD71eAFNMzynp+gZ1XToN8=; b=hhgNMBIPZDB0yZObBJQNnboEWmLgabu9Pb++/47hCAmHuM4wQh/dTOTqS0xkdswe4o c7wl5IhFdF3uZ3rbeU0z0JgK8FEahmeAsHQUv0fyilA+Apsq8F396+kjwEPCA4CzwCkb T1MMUIrPKPPfuCZp0gOo+BquNSMMHdj5swdczKPY549tCBHaxsNZ8K9/5x3dJeEEV5GN LWBOh31GhjxY2RaYDciK4uCHuFI0QJnQlU1aEinc1rjh9tomrRrpmX5WRVzHzQkA1Ouv gZPIvFn7XWOA2bxn215CXH1OXdbo/jQpat8aRnHQ+iiqoY4qk5T8qrPbHRCYAGzmsiRt 7X8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o8XngGoc; 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 f16-20020a0564021e9000b0046b0dcc24dasi7509788edf.403.2022.12.08.02.35.58; Thu, 08 Dec 2022 02:36:21 -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=o8XngGoc; 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 S230227AbiLHKe0 (ORCPT + 99 others); Thu, 8 Dec 2022 05:34:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiLHKdY (ORCPT ); Thu, 8 Dec 2022 05:33:24 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9D383E81 for ; Thu, 8 Dec 2022 02:31:45 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id c1so1365254lfi.7 for ; Thu, 08 Dec 2022 02:31:45 -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=tOenoxBAkNYKXtwJphgPxrD71eAFNMzynp+gZ1XToN8=; b=o8XngGocPIidvkgu1fvEeMsGR11tSM/kYyqUqKm7FpJQJ66qrn3pqm+bYgclP5ofk+ TNmKnBzMOk4TwnRyzP2jmoJZku7RjbAvM88wzsS8+QB5sylMOkdkvaYLNdi1Noz/fYOP zTl0P+Q1wY3I7pSmhYzJwaeza5idzjZkWEANuEtUwxsyes8RoRMbGd0O4bN9x2zvjW0S 5GL8YXAfRtvGM5BVvTofghv6RUF1GLUQ5lmDguLlinFoA6I1UosPgqMdDOnkKdflgL51 jJyllTWEoCsEJEYj/eYw8KdWdugJrpL2ua1EAxclSWCLUS1uXQICMaSAVTwXpkWbcRn1 0lbw== 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=tOenoxBAkNYKXtwJphgPxrD71eAFNMzynp+gZ1XToN8=; b=MK7GEX7D/nDY+AkGRC9mzaFF5oNPuwPWXsScQWG1/gVZ9KrOQuGjww5FfefzpZk9C1 XIH93N+p2VDDilp4ih9vi3j6cUoMG+YUF1Y33Gs8vuZKSrGm+SQ3EmQVK/iCku/6UnXx 7fothpDduhXXRmR2QyDVVgNxVh6I9WVkoJeyym9HR0y1sXkAMagxwxEqVCRuHX6YDsyL LvepoUkQJ3x4FqSVb/CtJElR4ipbhXKKzMe3tAZgQi1iBfJJVlnM+DbbaLvtlQ2rk0bF TEtY514E3LtUWOK8p2TFtMqvHkPh5Xk/rRzyu2jzc1rSa1BusL4MGDkz0+DLTEdGIVuv J0hQ== X-Gm-Message-State: ANoB5pkVejGJTb6CBbj2mkAE2xKxdmcovxuGUb/kBXQDcL8Pmiyu8DCO ngJJQOfm8RQ4lHIj2PPl/RceyA== X-Received: by 2002:a05:6512:acc:b0:4b4:bab7:d5a8 with SMTP id n12-20020a0565120acc00b004b4bab7d5a8mr25682371lfu.404.1670495502030; Thu, 08 Dec 2022 02:31:42 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:41 -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 v4 8/9] media: dt-bindings: nvidia,tegra114-cec: convert to DT schema Date: Thu, 8 Dec 2022 11:31:14 +0100 Message-Id: <20221208103115.25512-9-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?1751641784844914935?= X-GMAIL-MSGID: =?utf-8?q?1751641784844914935?= 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 v3: 1. Correct path in maintainers. 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..5c2593f346f8 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,tegra114-cec.yaml F: drivers/media/cec/platform/tegra/ ARM/TESLA FSD SoC SUPPORT