From patchwork Thu Dec 8 10:31:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E32FC4332F for ; Thu, 8 Dec 2022 10:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XMIJm7JHKTSfXHV11TqZjnipC6oWoG4LqtHdhwCtlQg=; b=SaLi+rabb4eNba EaKvK8foytR48UrP5TMgkwSot9TVU3ubr7rUnTvOJC4x8qX4mvSkrQliK9HgsZju4TNB14b4F7lhc JKy8Xez7tTdwwGod50N47cfVrivm0NIFm4kUf1dyHhrNuKKRbUPPJdVHnG2/qBNWBboyHQZnQ8npN W8upDuCKtMSzoxODi+CxlI5aUWfLDyWQFBjsliGM6Vm4A8i7EsT4RpvqnmadKoO1h1FaSmTSvEhnG X4fALNDeB9KUfsnUVzcKUJxpk1tYQ56gryYWWopIOPXIu7LoQ4pZ7gwmhLEGoeObS4lR7cML3hHOe maSjkCitol1rY+hygQ0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EC0-00CbVN-PJ; Thu, 08 Dec 2022 10:31:52 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBh-00Cb23-Ei for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:36 +0000 Received: by mail-lj1-x22d.google.com with SMTP id x6so1070617lji.10 for ; Thu, 08 Dec 2022 02:31:29 -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=/AxgtdSHYHP1YbbzJqlPfT18aEYuRk09InbeSd0JHNg=; b=vRC/imatoHVwHYY/xYn/XxRuhvdx+OB/SREDy14/PgQFlvrcB0EQ4id+Ayn//84QYK arsf1sF22Nuv9HYLsJZwEdrxi758C5vfm5ZOaHEJtq0l7mSlFY73m118j5bw0eEzZpEK 7Xp9QuvafRfPFLxYttCVahNoYSTwtOcU9Os+EwRSUZK6QgYONFNQPqmoIef+Gc5FzOsc r2hrYVDys42CmHewFWsn4iF/mp6c9uznU3JcXO2DwcMrSWsM+fELE3+Zlg43ltpAOqxZ 8O12HQw3aOU4Pykni54J7as2y1Pkb1ySFTZzA6k4V5WwMbs8gf2/A9CzcxP9jWEnF5gq rHWA== 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=/AxgtdSHYHP1YbbzJqlPfT18aEYuRk09InbeSd0JHNg=; b=aiav3S/OFV2mPVBAxnesQb9s7Zjdke0P8udVWwk5CYjOmC/EpcuQnHHo1+UrxQd+m8 +E1iL3fiGjF9wfTWEsmAVaMw00L6aeh3kvZ6wJR28V+KYgAzOd7cCLuah06emDXsVEWm P+hla1jY2cAMIjEapJvtFa9fIPpeNuinRBZfJbJnRAlqcWe8TKJJsIa3wnfLbOzxzyj8 O+hg7lMDzFqqTOniTrlmfjTkoObNvGbq7KPqZ8Q6KfxNkdKXmmfO0GJL+s5+uo/rU1cJ nXxDdLyjc6Qz8g6kXPw1ZXBA865FTFFyGHJi2TA5/Zkl1KaqYmHlPauIdwEMpYFphFMK Cphw== X-Gm-Message-State: ANoB5pnRGMggb8NZrZ4Yg7leXKOgsIXc9bkSyC0S6w0Def4sgNNsxh90 KUYrHkDUFycVcIzAWZ2SeJz2Tw== X-Google-Smtp-Source: AA0mqf4r+c/Cu2q8bu68UEJNNYlGepHPtzLV4IoukgbIUFguwupiwwM2w6EmGx8lDIrN2xvRWlHB6w== X-Received: by 2002:a2e:2c15:0:b0:27a:773:7054 with SMTP id s21-20020a2e2c15000000b0027a07737054mr3931835ljs.169.1670495487827; Thu, 08 Dec 2022 02:31:27 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:27 -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 1/9] media: dt-bindings: amlogic,meson-gx-ao-cec: move to cec subfolder Date: Thu, 8 Dec 2022 11:31:07 +0100 Message-Id: <20221208103115.25512-2-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_023133_532381_33A0B1AA X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Move amlogic,meson-gx-ao-cec.yaml bindings to cec subfolder and drop unneeded quotes. Signed-off-by: Krzysztof Kozlowski Acked-by: Neil Armstrong Acked-by: Rob Herring --- .../bindings/media/{ => cec}/amlogic,meson-gx-ao-cec.yaml | 4 ++-- MAINTAINERS | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Documentation/devicetree/bindings/media/{ => cec}/amlogic,meson-gx-ao-cec.yaml (93%) diff --git a/Documentation/devicetree/bindings/media/amlogic,meson-gx-ao-cec.yaml b/Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml similarity index 93% rename from Documentation/devicetree/bindings/media/amlogic,meson-gx-ao-cec.yaml rename to Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml index 8d844f4312d1..f65c9681a9f7 100644 --- a/Documentation/devicetree/bindings/media/amlogic,meson-gx-ao-cec.yaml +++ b/Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml @@ -2,8 +2,8 @@ # Copyright 2019 BayLibre, SAS %YAML 1.2 --- -$id: "http://devicetree.org/schemas/media/amlogic,meson-gx-ao-cec.yaml#" -$schema: "http://devicetree.org/meta-schemas/core.yaml#" +$id: http://devicetree.org/schemas/media/cec/amlogic,meson-gx-ao-cec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# title: Amlogic Meson AO-CEC Controller diff --git a/MAINTAINERS b/MAINTAINERS index e3f3c3e53f77..07cb85cac4c3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13553,7 +13553,7 @@ L: linux-amlogic@lists.infradead.org S: Supported W: http://linux-meson.com/ T: git git://linuxtv.org/media_tree.git -F: Documentation/devicetree/bindings/media/amlogic,meson-gx-ao-cec.yaml +F: Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml F: drivers/media/cec/platform/meson/ao-cec-g12a.c F: drivers/media/cec/platform/meson/ao-cec.c From patchwork Thu Dec 8 10:31:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068196 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF2FDC3A5A7 for ; Thu, 8 Dec 2022 10:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z6n9bPNXuRpeTtcxAvJP+LHOC/W1OBEJaO4jLjVtKgo=; b=CqYTgYzuZiXUjP H6paEo8lx5JX/Gzm0Fad8KRvJflRcIEmVg+fIc9UjeSsi7+UqDsY+DOEcInPje9mbaVCihXNKFD18 ShK5W5Sa6ZDs1/0oV2WEMBL8DEcGqBK1416B7lmeiGO62NG8tMAb2znf7SFUgemT5+bXjI4sfdRHo KSyjHWiQdKG7mHI55iPSJexPm8f2Z7tBbLlciDZ6Tig3o/ZskuzA8lNGC6wYD1rYVHwRSIb7G5/P3 uRrn9ZRUcmI5SuadOU2I1M++NffN0G8OaFPYfdxFs4i619pdKSyMJdwHd00Jb408eZ36bSlqnHWFw tdIoQoVJoaNPFPXwvepg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3ECL-00Cc8g-Iq; Thu, 08 Dec 2022 10:32:13 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBh-00Cb86-SY for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:36 +0000 Received: by mail-lj1-x22a.google.com with SMTP id b9so1085719ljr.5 for ; Thu, 08 Dec 2022 02:31:31 -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=LfazEVXJDWm5fHCm2MG3wz5cKNMzAQ0JQdcxbxRWLtQ=; b=XywpUyuyrTrwqePpx3XTlRujHvxMG+3pHb7ngR6jGsuAw17y9EdMWUKEnsrcCgoxup KDM1Vt/cmizDvcsSL7I+sKHZBVKGDYgZCMNuijXhVBmYPHiR/fzlyt4HnlxF3tY3a1JQ eWxKI/1J12krckmCiQqdM6mH7GzKnmLMLqfWXO6VHIEu9l+ehdecyfQG9ejCyIbil09n t86W3++/+Ncep9rUYuZd/fpMZzsKyS/HqVsagE98tdZBcKpUPCVjnDeHICHIzeIg+WZE xB/Fi4wZuJKEjiTLOJRGXC+imy390973op4N+9LKjDKhbWsbBGt0sUSGR+4zgepkfZ0a Sw8w== 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=LfazEVXJDWm5fHCm2MG3wz5cKNMzAQ0JQdcxbxRWLtQ=; b=vL80kgtMj+USqswfCBss/mbFBXNnQ87puBKU0SA3BhIBt/t0zGMic+j6dYm3ImHaHu 7/zRnodTG1SADjY1RdCN2cYg4oP3d7ZDZzBqE3A5sVcpBvuS7IsXRP98BogBa7K+aYwn 8o5pnGFPbVdrajEFd9NCS5aLXzBE1EvWN955+XQGbjunYh6xv6cFxxaxt8EtIDYViChy 1vwRNgwSlUVkGzSUPxj9taJnA8LeMQ/TasFso7G+l1SNI6vZuDlARdiHEzD5pxsfduBh m7VYd5kj2mu90SXqneiVMNx5yG5aZvQRJJlkuNhtwFGpyyCP+77JJk0M8Ki6ypB0cNrb 9aLQ== X-Gm-Message-State: ANoB5pkdhEBtgsDV+Y4v47bTnw2rYDIxHaN1tzMFlRoZICR4MK4Vkypo aJxRlsyxTb2pZkv/ja+tinh+qg== X-Google-Smtp-Source: AA0mqf6XKX5jq957jK+woicXsTTntfBxeoK2aGNS6zdyv/C4XbbAHE+MqylJi7c6xm66RFaiQKFCiQ== X-Received: by 2002:a2e:b526:0:b0:26e:494a:de3f with SMTP id z6-20020a2eb526000000b0026e494ade3fmr29828870ljm.85.1670495489928; Thu, 08 Dec 2022 02:31:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:29 -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 2/9] media: dt-bindings: st,stm32-cec: move to cec subfolder Date: Thu, 8 Dec 2022 11:31:08 +0100 Message-Id: <20221208103115.25512-3-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_023133_927441_C3A2A570 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Move st,stm32-cec.yaml bindings to cec subfolder and drop unneeded "bindings" in the title. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/media/{ => cec}/st,stm32-cec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename Documentation/devicetree/bindings/media/{ => cec}/st,stm32-cec.yaml (89%) diff --git a/Documentation/devicetree/bindings/media/st,stm32-cec.yaml b/Documentation/devicetree/bindings/media/cec/st,stm32-cec.yaml similarity index 89% rename from Documentation/devicetree/bindings/media/st,stm32-cec.yaml rename to Documentation/devicetree/bindings/media/cec/st,stm32-cec.yaml index 77144cc6f7db..2314a9a14650 100644 --- a/Documentation/devicetree/bindings/media/st,stm32-cec.yaml +++ b/Documentation/devicetree/bindings/media/cec/st,stm32-cec.yaml @@ -1,10 +1,10 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/media/st,stm32-cec.yaml# +$id: http://devicetree.org/schemas/media/cec/st,stm32-cec.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: STMicroelectronics STM32 CEC bindings +title: STMicroelectronics STM32 CEC maintainers: - Yannick Fertre From patchwork Thu Dec 8 10:31:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068197 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5538EC4332F for ; Thu, 8 Dec 2022 10:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YSi8SHJbZaCPEb42oqrGPcxYwPUpUqnHpWAq0ir61Os=; b=Rh32I5c8JXUd20 kAgB/KFUmOZuQOeUnupFZP8xG+xIJ7ukIpMmptlapWodtwW1Jb+gjJaJSujuYM6yXGU9B/4OZYiMI FXUAw6TJLHOwW+OUKxtlNvvpEQJ9m9b2ewNYGHPgKX9WuNHn3I0g1bNijPJogrkU2J2CDYqbtvGdC i7614fwYovshFDqsG9FFfY/onCBwPuqe6tXg9+zUNXhrmRKXDiHXgO5ZdLYe19OgzQBejsvydOafA inNKTY0ZV4QfSr9FAay1jvwsIk9NPeTjStGiGn1t7vjyh0KXp9th59yv9w9w7sxO0QtTcSvkXl5i4 Z77m9luj2ucMsaOwPYVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3ECr-00CcvI-Aq; Thu, 08 Dec 2022 10:32:45 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBk-00CbAr-0E for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:38 +0000 Received: by mail-lf1-x130.google.com with SMTP id j4so1422915lfk.0 for ; Thu, 08 Dec 2022 02:31:33 -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=ftjSB9JJ8yBkXE+8vCPq7doIFKzD/Pbisdda5DVy8ec=; b=dbfh3g3XU/oJm/3BLec2LP+qdKfwx3FxgxohCpre6Ghy/mZbm681ARz0qOr+DO9taR 9CRIzs33N0WRZuTnzWLQJ3cPZoRfoCnzVkgwHIS/HwZpYdFOw7RlpP2MOBJWgEx8XGIt qDOxAzSs8lOFyeP1vp3kETNwQSg0ZjkvQi+LzXcfh0oiqQ9zZkFz+OaQNVlNjQNckQ/3 1P9Z87L/E3KnjRGP9hO612DdRCn4R41dqucH4woOZZr5DiBXaaIxUUb1ClsUkVoxSsp2 M8UwR8CrF5sKT6QaMtDTU/3Ecl5SKGcfgg6ZV7uwnZ5l0iP4N5IkLmyPWZYrMMCMvaQ1 PGQQ== 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=ftjSB9JJ8yBkXE+8vCPq7doIFKzD/Pbisdda5DVy8ec=; b=uo0EYXAltWXHbOs+g0/wq0c/6m8ZuV0J0I7a6GBa1AAScnHjExKRlD1yRFgjGBsCiC zmZd3o26fFpIqbXfUKLS1FbKJPUqA3qKigbaXQet3IUOnSS069BQyTfJmU+EqZzs0q7o s0FrzAqun0yMbB4k+5KZWvMNmnwc3q8trdu37lijxFTodzCD3QydWgQ9UXv2v9mS1Gx+ BRRmRt5Tu/SdjCFnea1tjfjdP45EsS+yNXAqQbTJ/bYEJOCvRiHN9LpOZjB162ctd1B/ m87AYGZeBi6zy8cyaQ8eforNcCVAi+XcAZXa1mwz3AgqaetX2CHjHUD8sNv2sW2cAQ01 MGvA== X-Gm-Message-State: ANoB5pmvzQQldxVg0ToCjDb/MqAQVbFSEJTlOmQhwGSs6mpHqO7rDmZf xryCUJhBmNkrskxptMStxl1cRg== X-Google-Smtp-Source: AA0mqf7mJ7hPTjTyDYOTCN/aOz4Q4Nmpm1b3/sJOmvJy3YMAcQdtmB8QWjRiPE44lHuTnqxw5QeA2A== X-Received: by 2002:ac2:4219:0:b0:4a2:2701:7d29 with SMTP id y25-20020ac24219000000b004a227017d29mr33808284lfh.322.1670495492059; Thu, 08 Dec 2022 02:31:32 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:31 -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 3/9] media: dt-bindings: cec: convert common CEC properties to DT schema Date: Thu, 8 Dec 2022 11:31:09 +0100 Message-Id: <20221208103115.25512-4-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_023136_059764_00F73EDF X-CRM114-Status: GOOD ( 17.45 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Convert common HDMI CEC adapter bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Acked-by: Hans Verkuil Reviewed-by: Rob Herring --- .../devicetree/bindings/media/cec.txt | 8 ------ .../bindings/media/cec/cec-common.yaml | 28 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 29 insertions(+), 9 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/cec.txt create mode 100644 Documentation/devicetree/bindings/media/cec/cec-common.yaml diff --git a/Documentation/devicetree/bindings/media/cec.txt b/Documentation/devicetree/bindings/media/cec.txt deleted file mode 100644 index 22d7aae3d3d7..000000000000 --- a/Documentation/devicetree/bindings/media/cec.txt +++ /dev/null @@ -1,8 +0,0 @@ -Common bindings for HDMI CEC adapters - -- hdmi-phandle: phandle to the HDMI controller. - -- needs-hpd: if present the CEC support is only available when the HPD - is high. Some boards only let the CEC pin through if the HPD is high, - for example if there is a level converter that uses the HPD to power - up or down. diff --git a/Documentation/devicetree/bindings/media/cec/cec-common.yaml b/Documentation/devicetree/bindings/media/cec/cec-common.yaml new file mode 100644 index 000000000000..af6ee5f1c73f --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec/cec-common.yaml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/cec/cec-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HDMI CEC Adapters Common Properties + +maintainers: + - Hans Verkuil + +properties: + $nodename: + pattern: "^cec(@[0-9a-f]+|-[0-9]+)?$" + + hdmi-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the HDMI controller. + + needs-hpd: + type: boolean + description: + The CEC support is only available when the HPD is high. Some boards only + let the CEC pin through if the HPD is high, for example if there is a + level converter that uses the HPD to power up or down. + +additionalProperties: true diff --git a/MAINTAINERS b/MAINTAINERS index 07cb85cac4c3..45402e03cda5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4832,7 +4832,7 @@ S: Supported W: http://linuxtv.org T: git git://linuxtv.org/media_tree.git F: Documentation/ABI/testing/debugfs-cec-error-inj -F: Documentation/devicetree/bindings/media/cec.txt +F: Documentation/devicetree/bindings/media/cec/cec-common.yaml F: Documentation/driver-api/media/cec-core.rst F: Documentation/userspace-api/media/cec F: drivers/media/cec/ From patchwork Thu Dec 8 10:31:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E428C3A5A7 for ; Thu, 8 Dec 2022 10:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VzIYQZpolCuIuJC/kPBlTVx27iF3N2jjN+rSh/hOflg=; b=kNdYPx4KpY9320 wL1DYB8Vw4YAHNSLsrZ+Zx3r608FMBp7xq5JrpdHlj6eRxMwRclJbgfJCy+DOmpsY/+MtzIJLzFR4 hNTyLx1UNnB5H2SJCNBAvRDGI4JPqWEc9NE+4V6w562/3ZrlqxcAfzQO4bpCZ4r6WqEEbu6e3YalJ LNojGYS+MKduF/qmXbsERkf1pKuMxDaMlSQxzcTuegcVsLqOqg5D7l1Vrs4QYShuQH4mJugneYjXG HhuoE69D5qS9iBbmyMLBCCtrI1+lF2NGYFCB897wIx7iiGT8z/pAcbFlztYlDmS6hZw/dTtv5Lsx1 2QvrQMmaNrHvhWRaR7pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3ECv-00Ccyi-57; Thu, 08 Dec 2022 10:32:49 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBm-00CbDY-4C for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:39 +0000 Received: by mail-lf1-x12f.google.com with SMTP id g7so1374489lfv.5 for ; Thu, 08 Dec 2022 02:31:35 -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=NxOwaXNbTiEohgYyBqos3ms0rULNHpJBLRwyMfOuuH0=; b=SNdyGSv85VbVAi3pneX2JkKUEzvN0PW4W9IL5g4DRhHvrBMOeni6Z+pOOEUpcInHC4 8Oe7zRj7yqve48LHxc9nGSZ8mjyRRCvJpCF3Z+HStSkQrZAQaWw7GQJclRQO/E9VVVfd Buw7kNckTMw6llktH1TFtA8zYKuFyKlQfBHRHR2N0gMd5aCUYKIQZHVTqSpTEg/De5ZJ /7DYMHhSqyEC4K8AQQoiej8iBaSgPHsLttayPnDRwNPyQdAbC6HBdlCjQciE5QjQ2mgc Vx23NFx3NOCox+iJMxdZPi1LNdtRivWrNNhADRl2USslYsznJEGxEtTQac8m8oo5Up8r ayQA== 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=NxOwaXNbTiEohgYyBqos3ms0rULNHpJBLRwyMfOuuH0=; b=1DfUO5uJuYuTA/00toz2l6wtarjgj2Vlbpa1ypuvvgmbDCRtEy55+FiSDUWjIaXC6B 2y6qLFX/IAuMxVYhCkEEBz9/ue+x3kRCMiKVgqIpQmV7oZJWz4OiN2oshNrphvRtoJYk 5sb0+R764rllKp/tH1IG8Eyun0XesulZF0XU6LAGO7DipYgtCmmfIGx9va3vzMXpPIux 3LQSRnQgOgmkheqOOx6va/xiv/J9fr0IsMwTPeZudtgHqy/9KK4SdCaT4tv9CG8mVEbM IxO0fAvqhutJqBgcQyJMj+mWfXbVAPejayxm5jBO88xD5fPaSR+kOo9pMh9KPfyRGNo4 JuPQ== X-Gm-Message-State: ANoB5pmqh0b2/vNBZzzRm+zg2ZzkT2mFlj/mfw++k0qvjGRH1o8AF3z/ F7q+nERwoKRycajhOOIWBVeBbA== X-Google-Smtp-Source: AA0mqf4diiVxd7W4vZQ0KqLCAk/r4Pm72qA2Aa2aQQA5cwubEv5SXUy9nz5yQdu/ga1nWqYYYtXzrw== X-Received: by 2002:a05:6512:3a96:b0:4b4:f5da:fb28 with SMTP id q22-20020a0565123a9600b004b4f5dafb28mr20618283lfu.169.1670495494230; Thu, 08 Dec 2022 02:31:34 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:33 -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 4/9] media: dt-bindings: amlogic,meson-gx-ao-cec: reference common CEC properties Date: Thu, 8 Dec 2022 11:31:10 +0100 Message-Id: <20221208103115.25512-5-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_023138_243475_075A8D68 X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Reference common HDMI CEC adapter properties to simplify the binding and have only one place of definition for common properties. Signed-off-by: Krzysztof Kozlowski Acked-by: Neil Armstrong Reviewed-by: Rob Herring --- .../bindings/media/cec/amlogic,meson-gx-ao-cec.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml b/Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml index f65c9681a9f7..b1fab53418f9 100644 --- a/Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml +++ b/Documentation/devicetree/bindings/media/cec/amlogic,meson-gx-ao-cec.yaml @@ -33,11 +33,8 @@ properties: interrupts: maxItems: 1 - hdmi-phandle: - description: phandle to the HDMI controller - $ref: /schemas/types.yaml#/definitions/phandle - allOf: + - $ref: cec-common.yaml# - if: properties: compatible: @@ -81,7 +78,7 @@ required: - clocks - clock-names -additionalProperties: false +unevaluatedProperties: false examples: - | From patchwork Thu Dec 8 10:31:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0EC5EC4332F for ; Thu, 8 Dec 2022 10:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Lvrh2hmMTR1vyW2i3mfbWvbJen1uOdQ3cimhrOAY0oU=; b=vUEyyVzo7b5tto reo/1ZHMb1rxG1UClsH7dswm1wfbQrUH2CsaQAQpA66sWU8MUEY2UN6BtqJE67bOC5y4+VdgXBdlQ W5820lRyhs541ObN6YoyoJhxl4ihUi6oOlOtnu26rUgx6LCmtVw0cLjCELzC11BRyxLUyzRcxCnV6 fdG62FjGQiba+8f0ftOnQx2RiQBj/qq3Cpqu+z48Yt5qOBQ3GnznkKd7kJjRMRRe5ckBny35oebUB OOZMSsRlN9YZIRonn9abebNPM41lRHhcSyHpB+r/FtjKksnP8LBgRx5u+q657kg2M2kNBGTFsKTd3 mFlA/31oYEMNKfIx1L4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EDw-00CeEg-HH; Thu, 08 Dec 2022 10:33:52 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBm-00CbEv-T8 for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:47 +0000 Received: by mail-lf1-x131.google.com with SMTP id bp15so1336021lfb.13 for ; Thu, 08 Dec 2022 02:31:37 -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=d5ptnyM8tU9KK9vuHrqJhLp9kBHzmtP8NOjNL98W6O0=; b=Zqdk9FLKb1U+056szYPwGwZZOCtduYqr9pYvnZ70agJ8neRKwJbE/0KXoVf9PGud/3 WUUDU/fEZhoXXFg7hf9+IhzSsBiP64yONaa7u5T8aNsgIJdYGPQuba+HXXhMaeC6D5H1 Rzilnv2cjG1wKqajm+kC9DBF9p2SAL4WDD6JNKqCfElln9GeZVsjaVwzyTVyYJgeipEM Csnc1Cy9CHiwtzHyu5sOypvruVbwF4Dckt6L8lOKrui5Ts4xiBE0rlgNDnP/yJ71x/Ep QUzxoCtns51f5ylw3SjAEvbdbMCGK16oDkOSKEiYp88amzXcDBhw+o3cDnWsXTLx/n5r A1dg== 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=d5ptnyM8tU9KK9vuHrqJhLp9kBHzmtP8NOjNL98W6O0=; b=QD15s1h0KOy/UkTp/li5LyUbWI+Lq6F1eTubSKQG9WPKxAZ/Ze5FGDFR+Gx8V10qMU Yy05pVdrL3MOPrgXMa1wGxQHQUdCNkPj2yyJwzZRnePl37ov5dW22+zNRtzipVjMOKEM 2/38gDegRK6zTT6KP1cXQJCHGmHqlrCSAMqvKj378Ccwc7VVs0Wbn99SJsXJI8XvOTZh S0MBfahGKaE1Oj0JZUhBq16F8DF2HMXunEuWLgkmD6vKo5HBhjY9XtbzSoW1UAmA7QIf LjZDecdq66amUHaQ/kCtYY1fGfOnKaGObrXGfCHv1fxpUAYU/abOquQmY7pCH83634fJ kdug== X-Gm-Message-State: ANoB5pnFdbogGRJfAo/T2yY17yevBoJ7uXtCWJDeRhte+twPBz8TVF6G qEyyE/zJFqrqkB18whjnkarIsQ== X-Google-Smtp-Source: AA0mqf5tpHiPpZHCEhpkHs1cV3jMDIzMzb1k+nZXnOkFjY2FhmuCd2fWYcDhxvNhmKNesC4O0TZ6CA== X-Received: by 2002:ac2:4acc:0:b0:4b4:10ca:5240 with SMTP id m12-20020ac24acc000000b004b410ca5240mr34308930lfp.482.1670495495875; Thu, 08 Dec 2022 02:31:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:35 -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 5/9] media: dt-bindings: chrontel,ch7322: reference common CEC properties Date: Thu, 8 Dec 2022 11:31:11 +0100 Message-Id: <20221208103115.25512-6-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_023142_849192_19654EAE X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Reference common HDMI CEC adapter properties to simplify the binding and have only one place of definition for common properties. The common CEC binding expects also node name to be 'cec'. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v1: 1. Fix node name to cec. --- .../bindings/media/i2c/chrontel,ch7322.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml b/Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml index 63e5b89d2e0b..af8ada55b3f2 100644 --- a/Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml +++ b/Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml @@ -13,6 +13,9 @@ description: The Chrontel CH7322 is a discrete HDMI-CEC controller. It is programmable through I2C and drives a single CEC line. +allOf: + - $ref: /schemas/media/cec/cec-common.yaml# + properties: compatible: const: chrontel,ch7322 @@ -40,16 +43,12 @@ properties: if in auto mode. maxItems: 1 - # see ../cec.txt - hdmi-phandle: - description: phandle to the HDMI controller - required: - compatible - reg - interrupts -additionalProperties: false +unevaluatedProperties: false examples: - | @@ -58,7 +57,7 @@ examples: i2c { #address-cells = <1>; #size-cells = <0>; - ch7322@75 { + cec@75 { compatible = "chrontel,ch7322"; reg = <0x75>; interrupts = <47 IRQ_TYPE_EDGE_RISING>; From patchwork Thu Dec 8 10:31:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068200 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A8FDC3A5A7 for ; Thu, 8 Dec 2022 10:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iaIWXFC9LMmg3F4Vuf+UG6qYuxe8CeELJA6SLU6wyiE=; b=cxmDVTn4TcjofL EXBaJOyeGjP2GROGExr5csEHGBcpwBauM4JDgxa7NRadYgl0jnNyKMpqwHfFlhsyxuPSJehHKt8n2 4DJTVzhoigvtc+2CcGLQKD4tqDZhSx1Orj3WlzKv2moRfBUQLhzURh7GkDG3BRW5LxFIkRIqYw8FS Ps+caDD8nq7KgOQK4HRLJCNdpDnma6Zbur/99FPJFXz3c7NXU5jkLQhJksRI4oKgXJR4+mXvIIei7 pCGpt2k/6xNVjYxYE93wEdbytVbiP08aeJZSSkdhQjkOlKqwvqFpxXnfjRN/QfDvkufV6B5KFlvms C4FSIO+VqZnFC3MADzNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EFQ-00Cg3j-9u; Thu, 08 Dec 2022 10:35:24 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBq-00CbI8-8L for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:49 +0000 Received: by mail-lj1-x231.google.com with SMTP id q7so1076599ljp.9 for ; Thu, 08 Dec 2022 02:31:39 -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=4WOjKBqSX/bJNurWawr9UIxOhCwY9AfTE5WBw0ZvK0s=; b=kJQb28YflwpK3NESU5gQU95yRGilk9HUL2yuzHgwREaj29yOLuHsU1d+muWxXj9JTc 4ZasRdRWBXFHtROhwYT2c2SjDKJMQK3264B5F5pUDnUkphXf/ypIYtHzl7Sa8PcmUdp7 S885N8LUQ42hBZRbT6oapU7ac9R6jr8mx8xbWWr6p4yIOGoUM8DyaLr5+vU1IP/WpxKO C5oaZYvN9LD+kCoGXXnlCmz/tgHA2Ns6gldZsRNy4N8DoNgJwCwTPn0vMTsP8OuoFEg0 HDRQ8H9oDJr/pTe7BE6ED/A2Kyxc9aNg6Km7ePO2VH50qDmv/MGiMhjpkw/y/Vzw507M c63w== 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=4WOjKBqSX/bJNurWawr9UIxOhCwY9AfTE5WBw0ZvK0s=; b=1mVxkQFjostoWU8nhPMQHKqZT30oPmXPoSKo7ZCUiZj9o5aJhYiKnuHnWc+gv3+3C+ ApsvPIAeGsZopmXtxMGgoHzUeE+FU4NGRtBf6prrexhKvfdwnPRaTOCo2y6WfLwoz2uB DkaX4/ia95tjG2QPQ7L0wXecaa/lClQWAHBXfjTLVFCKZ6MrJ1oqoqODIRuFcj9ZoD5c IzUabLskOQZGNkpXush18BK2RcVzlbJYZeebw/MJfd3T3rTRbgTxZPkLQ4XzFlGqPRl+ 2G/tiYXAJKaW6P8FfDE/YU3+HN+HRuYSIja2pYRNplDNj8YT0DgemCwAj+C02XogbJJe Prbg== X-Gm-Message-State: ANoB5plbBoDJnAnlwDVtOktFd4ixsrabOszBRt6GHWxSrOdpOKJ6sLAV xSL8Z1D/2UVbzOgszw2JTljHuA== X-Google-Smtp-Source: AA0mqf6m4mBUWnejewtw0czAsyfVH1o6wdUJZLZZZH/Uv9O0p48as/hiEsZvE9q4V5RCh7+GTk8YYw== X-Received: by 2002:a05:651c:2388:b0:279:d60:ee7f with SMTP id bk8-20020a05651c238800b002790d60ee7fmr31670490ljb.404.1670495498246; Thu, 08 Dec 2022 02:31:38 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:37 -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 6/9] media: dt-bindings: samsung,s5p-cec: convert to DT schema Date: Thu, 8 Dec 2022 11:31:12 +0100 Message-Id: <20221208103115.25512-7-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_023143_049367_D6587AC2 X-CRM114-Status: GOOD ( 18.10 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Convert Samsung S5P HDMI CEC adapter bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/media/cec/samsung,s5p-cec.yaml | 66 +++++++++++++++++++ .../devicetree/bindings/media/s5p-cec.txt | 36 ---------- MAINTAINERS | 2 +- 3 files changed, 67 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/cec/samsung,s5p-cec.yaml delete mode 100644 Documentation/devicetree/bindings/media/s5p-cec.txt diff --git a/Documentation/devicetree/bindings/media/cec/samsung,s5p-cec.yaml b/Documentation/devicetree/bindings/media/cec/samsung,s5p-cec.yaml new file mode 100644 index 000000000000..016c8a77c1a6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec/samsung,s5p-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/samsung,s5p-cec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S5PV210 and Exynos HDMI CEC + +maintainers: + - Krzysztof Kozlowski + - Marek Szyprowski + +allOf: + - $ref: cec-common.yaml# + +properties: + compatible: + const: samsung,s5p-cec + + clocks: + maxItems: 1 + + clock-names: + items: + - const: hdmicec + + interrupts: + maxItems: 1 + + samsung,syscon-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to PMU system controller interface + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - clock-names + - hdmi-phandle + - interrupts + - samsung,syscon-phandle + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + + cec@101b0000 { + compatible = "samsung,s5p-cec"; + reg = <0x101B0000 0x200>; + + clocks = <&clock CLK_HDMI_CEC>; + clock-names = "hdmicec"; + interrupts = ; + hdmi-phandle = <&hdmi>; + needs-hpd; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_cec>; + samsung,syscon-phandle = <&pmu_system_controller>; + }; diff --git a/Documentation/devicetree/bindings/media/s5p-cec.txt b/Documentation/devicetree/bindings/media/s5p-cec.txt deleted file mode 100644 index e847291d4aff..000000000000 --- a/Documentation/devicetree/bindings/media/s5p-cec.txt +++ /dev/null @@ -1,36 +0,0 @@ -* Samsung HDMI CEC driver - -The HDMI CEC module is present is Samsung SoCs and its purpose is to -handle communication between HDMI connected devices over the CEC bus. - -Required properties: - - compatible : value should be following - "samsung,s5p-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 "hdmicec", - corresponding to entry in the clocks property. - - samsung,syscon-phandle - phandle to the PMU system controller - - hdmi-phandle - phandle to the HDMI controller, see also cec.txt. - -Optional: - - needs-hpd : if present the CEC support is only available when the HPD - is high. See cec.txt for more details. - -Example: - -hdmicec: cec@100b0000 { - compatible = "samsung,s5p-cec"; - reg = <0x100B0000 0x200>; - interrupts = <0 114 0>; - clocks = <&clock CLK_HDMI_CEC>; - clock-names = "hdmicec"; - samsung,syscon-phandle = <&pmu_system_controller>; - hdmi-phandle = <&hdmi>; - pinctrl-names = "default"; - pinctrl-0 = <&hdmi_cec>; -}; diff --git a/MAINTAINERS b/MAINTAINERS index 45402e03cda5..05acbaecef52 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2866,7 +2866,7 @@ M: Marek Szyprowski L: linux-samsung-soc@vger.kernel.org L: linux-media@vger.kernel.org S: Maintained -F: Documentation/devicetree/bindings/media/s5p-cec.txt +F: Documentation/devicetree/bindings/media/cec/samsung,s5p-cec.yaml F: drivers/media/cec/platform/s5p/ ARM/SAMSUNG S5P SERIES JPEG CODEC SUPPORT From patchwork Thu Dec 8 10:31:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13068305 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A950C4332F for ; Thu, 8 Dec 2022 11:28:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qzU2aQEp+BnVYd/Z2Ipgy31OPhy/Ua/VXUJV5zICKWQ=; b=JitpsEDH9Kg3H4 pB96Emoo5UAyR28tJ2bgsveOvNtKXhh7Q/kVS6H3L9zCVccS4DhVMgOLxWIC/XvdcMyue0e6USKMx qvRY/bQhkmaK69nR3PvK8AxIWsp33WHAauhzSMuMZFFsOIfBPkXEDB+HbigPOpF/2H8140UWkOjSt 6yfQSIVJs8S1rXma3jj3XarQp0YOz1ptBEhhNcMJQWc9i+zAxFev55g4ql1Wi81QCBYR66CA4v2xZ BFMAF9X8rdu98hrPiH2rQGgjtvSrc1omVRB81jmHYJnluyc5RZpVdSPSTFcNRG7TAVUUAkE+6vYuB 3hD85fkfMU3x7Sj8g5EQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3F4P-00FEYS-5Z; Thu, 08 Dec 2022 11:28:05 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3F46-00FDQp-1i for linux-amlogic@bombadil.infradead.org; Thu, 08 Dec 2022 11:27:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=1+xgakROSa2tyyNfQUbDwsLUYdUS/rSfQ5IgxtrQvUM=; b=jViYQn0B8pfa4auS3/ti2rLbjw gJiNoJWKnGmmKwTJeW/BZbqtdmYYV6U8mnj8Hqm6JPODP7U9hMOKMD/KVujFv/jIOWCjcC+u6wiLx 5tuny0iRDfhi4XTMqyMLsDI1fYva3QO3ZHg6uteDBH5d4yyn6uRRkxeMaLXMxf1trMNnlv1S80jwk eZ/STvi65YUMuutjbRfavbW1e51owxefenOZYy8fwT5EszBF91Pk0WzMolRTME3D656swh446gYTs Iv2GInHdvpvofFYcSN0KhBGkN453+S9+bWoi80FW9GiQXwn9dSPjIgZyxs0fgemsk5E30xHO3vSzR EQamhE+g==; Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBt-008ULG-8b for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:48 +0000 Received: by mail-lf1-x12e.google.com with SMTP id cf42so1394799lfb.1 for ; Thu, 08 Dec 2022 02:31:43 -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=1+xgakROSa2tyyNfQUbDwsLUYdUS/rSfQ5IgxtrQvUM=; b=LWYhpiQGZcljQmKqXE0nzGnQ+/Xt4SK3zRwV0uDp4Sa5q5GaZMEb3tKeG3bFvYMrFK MrGzfhJ3kGPa856SsR3tflHMiU4nByAp3ECuciU5Q7abOa365oluhz3zmOGT42nTVhye z/9lX8nMtCI58JXJiBmEM0BM9e39Hy1X/6oygVowka6jOiEQH7kJ3hhED5wYhwC5slB4 pkklhnpJ5g+7YI09TdUX7o/sk/X/vEd8XR8mLJpcvm1GyVFwPYBxsBTu4r0K/+HF5hRK GrT4yDKldhHuxLF+Jd3RigIXC+Rqykt9qV3sAnUIIGevqnA+MrCspDIyL5MmB99NDBdw 6bCQ== 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=1+xgakROSa2tyyNfQUbDwsLUYdUS/rSfQ5IgxtrQvUM=; b=rMAReqYkGrGLp3DUUNF6YuXoXmTXfohBCoOyOQsnH8R8BD7gHnFoY6jjPYdEWCdzPU v8MSX9DDA/8QBph6kTRi6wFaeQJ8faDkQFuinhg09nYwXo39MvVRkga4tB8jbpCOgH5O Wzr7l/n5wmRjvnN6r9CuDPbN9FXz7GS5A9og42XZmO2rBqgbPfWLFgEy3/ZNN3ZEsr9Y 9HJEC35Yw8ieDABFD+scqzEphcRoLFPZE3cYXrFPzT1qTwQDsqtLp2ocA1NbQHFj1jBX WrqVgk3CgwSgJoTRafNDUDlUkWNtmu/NzBf7eJG3NvxvQzP+GfYKViNowZyjrkbEP+JD Xv9A== X-Gm-Message-State: ANoB5pknbACrYJyhu9lUX6DR1cNZcb/9Q2Yh8289m0eFbCpFzCN8Sjyb ua9uaLJe2EwEQ/GfuvFPX0xmEw== X-Google-Smtp-Source: AA0mqf7IIpnAZdER30ZNR4/8dvaWUTKWeHA+46Hr5MPcrEEGtcgkvblAk2HVaimF1GRTwBTFp6kXeA== X-Received: by 2002:ac2:4ac8:0:b0:4b3:ac9d:9354 with SMTP id m8-20020ac24ac8000000b004b3ac9d9354mr30478020lfp.85.1670495500019; Thu, 08 Dec 2022 02:31:40 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 02:31:39 -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 7/9] media: dt-bindings: cec-gpio: convert to DT schema Date: Thu, 8 Dec 2022 11:31:13 +0100 Message-Id: <20221208103115.25512-8-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_103145_516615_2F52F245 X-CRM114-Status: GOOD ( 19.45 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Convert HDMI CEC GPIO bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Acked-by: Hans Verkuil Reviewed-by: Rob Herring --- Changes since v3: 1. Add missing SPDX. --- .../devicetree/bindings/media/cec-gpio.txt | 42 ----------- .../bindings/media/cec/cec-gpio.yaml | 74 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 75 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/cec-gpio.txt create mode 100644 Documentation/devicetree/bindings/media/cec/cec-gpio.yaml diff --git a/Documentation/devicetree/bindings/media/cec-gpio.txt b/Documentation/devicetree/bindings/media/cec-gpio.txt deleted file mode 100644 index 47e8d73d32a3..000000000000 --- a/Documentation/devicetree/bindings/media/cec-gpio.txt +++ /dev/null @@ -1,42 +0,0 @@ -* HDMI CEC GPIO driver - -The HDMI CEC GPIO module supports CEC implementations where the CEC line -is hooked up to a pull-up GPIO line and - optionally - the HPD line is -hooked up to another GPIO line. - -Please note: the maximum voltage for the CEC line is 3.63V, for the HPD and -5V lines it is 5.3V. So you may need some sort of level conversion circuitry -when connecting them to a GPIO line. - -Required properties: - - compatible: value must be "cec-gpio". - - cec-gpios: gpio that the CEC line is connected to. The line should be - tagged as open drain. - -If the CEC line is associated with an HDMI receiver/transmitter, then the -following property is also required: - - - hdmi-phandle - phandle to the HDMI controller, see also cec.txt. - -If the CEC line is not associated with an HDMI receiver/transmitter, then -the following property is optional and can be used for debugging HPD changes: - - - hpd-gpios: gpio that the HPD line is connected to. - -This property is optional and can be used for debugging changes on the 5V line: - - - v5-gpios: gpio that the 5V line is connected to. - -Example for the Raspberry Pi 3 where the CEC line is connected to -pin 26 aka BCM7 aka CE1 on the GPIO pin header, the HPD line is -connected to pin 11 aka BCM17 and the 5V line is connected to pin -15 aka BCM22 (some level shifter is needed for the HPD and 5V lines!): - -#include - -cec-gpio { - compatible = "cec-gpio"; - cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; - hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - v5-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; -}; diff --git a/Documentation/devicetree/bindings/media/cec/cec-gpio.yaml b/Documentation/devicetree/bindings/media/cec/cec-gpio.yaml new file mode 100644 index 000000000000..64d7ec057672 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec/cec-gpio.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/cec/cec-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HDMI CEC GPIO + +maintainers: + - Hans Verkuil + +description: | + The HDMI CEC GPIO module supports CEC implementations where the CEC line is + hooked up to a pull-up GPIO line and - optionally - the HPD line is hooked up + to another GPIO line. + + Please note:: the maximum voltage for the CEC line is 3.63V, for the HPD and + 5V lines it is 5.3V. So you may need some sort of level conversion + circuitry when connecting them to a GPIO line. + +properties: + compatible: + const: cec-gpio + + cec-gpios: + maxItems: 1 + description: + GPIO that the CEC line is connected to. The line should be tagged as open + drain. + + hpd-gpios: + maxItems: 1 + description: + GPIO that the HPD line is connected to. Used for debugging HPD changes + when the CEC line is not associated with an HDMI receiver/transmitter. + + v5-gpios: + maxItems: 1 + description: + GPIO that the 5V line is connected to. Used for debugging changes on the + 5V line. + +required: + - compatible + - cec-gpios + +allOf: + - $ref: cec-common.yaml# + - if: + required: + - hdmi-phandle + then: + properties: + hpd-gpios: false + + - if: + required: + - hpd-gpios + then: + properties: + hdmi-phandle: false + +unevaluatedProperties: false + +examples: + - | + #include + + cec { + compatible = "cec-gpio"; + cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + v5-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 05acbaecef52..197351d3bb57 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4848,7 +4848,7 @@ L: linux-media@vger.kernel.org S: Supported W: http://linuxtv.org T: git git://linuxtv.org/media_tree.git -F: Documentation/devicetree/bindings/media/cec-gpio.txt +F: Documentation/devicetree/bindings/media/cec/cec-gpio.yaml F: drivers/media/cec/platform/cec-gpio/ CELL BROADBAND ENGINE ARCHITECTURE 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: 13068303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 540EEC3A5A7 for ; Thu, 8 Dec 2022 11:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aIkMHk/MaAkpqachlS8NMcgcKe2wflbV599y3xAJjvs=; b=s3q6s7upeCLXfL MqXcpqZr/T39Zd86eYRiVVjGLfbcam5ZWG2GRfkaP8t5PW92Q4uW/yb2zobFd/SGdME3wyBSOwndG 89cGz0qBTJG+xqeV9hHPil/sc2o298Ky95MPBRwQxHnWlEmFnfFsNvyCGGY/FuvuVt6JpNDZ9vk/p 1ZO9z32eHarrTCkdnB63pGRomqTyxUY+RMvyjrF2yM7uhFSRcrCfY+YTLErva09lXf/7IW6cOrgFB 9xx/N/yAsiKIjvuy68SkWyb0Nd47nBu+7DC2QJ6CuCBq+7inmbzwRPl/cYSSLyc7x2Lpp9PyikRWK lxPn3QjhZhStgoMNR1hA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3F47-00FDic-3H; Thu, 08 Dec 2022 11:27:47 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3F45-00FDQp-6g for linux-amlogic@bombadil.infradead.org; Thu, 08 Dec 2022 11:27:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=tOenoxBAkNYKXtwJphgPxrD71eAFNMzynp+gZ1XToN8=; b=J2+pxlYw9PwgMpiAwzmsyKiQXv r8tlhfEEnYdsBunmgrKQhYVVqI+NLGVGq4RC5mcaiMw6c1AkZLpkmpSMsjXzqLHvKWxgjSu4TLMdA V4ALiT7FYOoz7jmoEdL3cBF4Ek1T18CztBXahVXkMldC2BZHiihCBuk2TD8K7ngHPmcKzKHd2WxqK Js2HDGeDnoPVarS6UieZgiWfDdzTtwz4Kt+O+1vUti8Ji0goiB8O7OVcunij5kmg8dY48ZFhrrbd5 NgNGpGEfW4Is5MyAKq32NUyVlX31YDjBgzsiehap3vd+1HDf2Bsypb4x6OmGLQsz6dchSJZf4V//F HGakeKVA==; Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBv-008ULz-An for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:50 +0000 Received: by mail-lf1-x12f.google.com with SMTP id p8so1346489lfu.11 for ; Thu, 08 Dec 2022 02:31:46 -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=58cioLS82zso6F/eS/Uhw1BgHvqoVQ+6dCrVXkGiF6XlZmBJlNtMrA234oKMIKmBhp YNgsR//0sjE3W2roDvInd/3fvfJQ7OneT/vvKTku2NC5N9ZL2riBipe6UzfRTe2PP8as qRZJLxZX0SEr0lvW6eJZ080iWdpcCNNFVMxMF7A8GoSjKpftbwRw7pIwD0n1uXsk5ABw qL9xz9tB5MH5EPkd2t/zWmQnq58uE3R12A6M0mGQXIf/o36/MpjHngb/NtEwWdTcTK9v 3SEj5lQXtamuUch6uEQo5vM41kq++WuSoy+0OmssIv1KZEGK116IXJHgTJIN1DOK0n21 PfhQ== X-Gm-Message-State: ANoB5pmtFVOQym0Gd6CHEpPPX1QJN2220z3n9pRCtRrJcHaSN0rhQhOo vYkZh9/nD4eBotBTSaqLBys0BA== X-Google-Smtp-Source: AA0mqf5Y2tquohXS7bzsUue4GL0BjG+LX0Iq+Q1kZ6k810S5E2OSvWojoqn8UWHdEWQhan3K4yYo1w== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_103147_516499_39CCD0D0 X-CRM114-Status: GOOD ( 17.35 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.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 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 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: 13068304 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 232AEC4332F for ; Thu, 8 Dec 2022 11:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x5LEPkGbfeLhuyUdBlWxsvCgTtyGVXeKWFa8hQpdUbU=; b=V9ztcMvtfokEZx 4zbqbkeeCI9RTC3aynLaFl6hw8pi5VKDQdvDiUoFPqhL03wPJjVXnVKrso3zf9xq1kbyeSaTqYsxL RJh/GD7j5LfT0IbyEEXQQ7w/x5muqaiBk4ESTIL4NPUuhWoLL47Ybk4kOCredAoDsFu+0awjnJwx0 jIJgXZMeEmPrmraSHkvbdOAXPRZks+TMWqHIL5Q1c5/kOLaWRjzO+mVwf4+/d7IwFgk9mFNslz21k vn/pxNQNUv53kczZkMu2XeWbKUowU0Kpe0O80UFal775lGvMrZKNyra5eLZUETCDOproErP/+5NVY lsrbfCoB2q+Nr689Ay+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3F45-00FDcV-La; Thu, 08 Dec 2022 11:27:45 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3F44-00FDQp-Nr for linux-amlogic@bombadil.infradead.org; Thu, 08 Dec 2022 11:27:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=GdMCi41BRhoRVn7tJmgZDPG+60TkiWedqCw4ysK9tk0=; b=fvXvC6EeigX7SYVfIHt6BMw+Fe QsK40o0zMl++hncqaQ8ic/urC7qlRqryv/ddMRHr+kRMMC1Z9aADVhQdbCpVlRyzt7APJer/A8YU+ aN/w4Ugo/jlEUTBn21yDr5eBLE2OmByUCTbb6Dy00kXUW49EZClDjmGt+d7m7n+cwjAaQ0WYJUM4X KSalKx4eqEJmqUhGAsSZkbP7CjnUPshbAHCSi1CV/tF6FzVSFBMx+50a3vkjy4d9CCLcJouNHSqfW bgKYPuQ9eN/OMP2csxvHvzBTHA9WBXb5xrDPloav/NM8EC4mPp9bR9kGQFKlfrt+RSykloCDy/SCh dFB8C3gQ==; Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3EBt-008ULH-RA for linux-amlogic@lists.infradead.org; Thu, 08 Dec 2022 10:31:50 +0000 Received: by mail-lj1-x230.google.com with SMTP id z4so1078989ljq.6 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=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=syypu0tzHYo6z1eeDFdl1BMOTi9lwXswIO1mjTuX7YaT/xJCc2qb4zWmluIJVFKHun uenlD+0ByDLhUb3Rgz3jtYESE6zfLJz/NLrx2nv8Xv9POEp1MdlpRsMWXXg77Qju5oeY WPITOHe7XuKUpTQmToPze1K9QelkJKr3bX9NzAo28ksR3PNWsKEO7vtqtHlmspZFY2Dn LVdSNQgWohJMz+pYMps64awWQbws9IFnrztGoDTA+m4FP5TKbcUqR+DlRg7WecFvR6Pj G88T5GnYJ1bWj18D3jbHcFlir7QwAMzHZC69l0Q2sBpJ/rqe8DemZn0IsbHk2Rq9Kdgb G/Sw== X-Gm-Message-State: ANoB5plJgwSb5XNFm6TI4kuc1DE9acL1k0xOuYWIikfgcOhGSRgcxgRg LtWq+NQGVSO78xsFWFGb90E7iQ== X-Google-Smtp-Source: AA0mqf7PxHyaFqnbm9AneVRfDtcor/UK1px7NfgtBLnuUx3d7/tdOhjSb70zTR6W11rGcy5bWMAsRg== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_103146_062548_3E815254 X-CRM114-Status: GOOD ( 17.04 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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