From patchwork Mon Dec 5 15:18:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 29723 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2315150wrr; Mon, 5 Dec 2022 07:20:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7pIEK4Tn+PBywe6PEw+F4CWSqOMdkLlCvJrjEFUr2H0o3uUAI8NezzlAIR2Rgsiab5xToc X-Received: by 2002:a17:906:fc0d:b0:7c0:d4c7:c00d with SMTP id ov13-20020a170906fc0d00b007c0d4c7c00dmr9237054ejb.345.1670253652569; Mon, 05 Dec 2022 07:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670253652; cv=none; d=google.com; s=arc-20160816; b=PGJnm1sCWFrNWOG8BXEtaQWC0u+5PDMW/juMDSoV/JDbNnmD2HaljJzluCeZ5l+yfS ztCpbospx41j0MakENKNcS5UwR+xnlEsa8OftMyrOSVaIOxkCvQVJNHvytk20Xl8BY/V fyjh/H0/LdrM24eV7lbH7NwPiir+cY19zoopyPsW90aI+Z6AT2EqOq3gtKmhfwj/Cge6 LaljBlnNxGhu7vwis4PzZUEYIroA3/FTadYHBP0VX6sNEVffQ3qhq1/QWPdC6rlIhLiR qLMG95F+mKAorWtxSh2vB8dK6uupaAIBUl/yW20YSMPw0PhVibIeuvGBqCnPDz7bXM6Q 78mg== 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=yR2BrJ7GlNzz1L7RbApb6lqQSBsCQtyE8vkfgp1+AEE=; b=Xbwd3YN3nqVWbGuYTwUKsfQ2bPTyEqz/TsOtHbFEwKwT2CSK8kiDZqJv9U4iIb7mfv 1mMWNj3USXt0NMrDkbboM/98ikC4aKf1Guk71BFpjwBNHa2/Z4MwZ9Ay1UTxeRAik9tN Ymgr1FZHPrfs5s6TljN4RpmoWHh98uEPvrQ4Fs5FkY+gqDVDo7MRGNL65nJpgvF/Lqpa FRvFrg7sftlQGO41em45hkjAmPyooUONBHwHSBqj1AQkFgypYdyGQlJvYqlZanJ+fQ8v zApKDbAB3LvZGltaN6Mwqmi2TRut3aEIxt6HFV+aIOePUMSecel9Q2jOnmOJl5RXh3JY OtCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bpk0qIW/"; 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 sh12-20020a1709076e8c00b007b5ce4a436csi12520742ejc.227.2022.12.05.07.20.27; Mon, 05 Dec 2022 07:20:52 -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="bpk0qIW/"; 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 S232463AbiLEPTZ (ORCPT + 99 others); Mon, 5 Dec 2022 10:19:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbiLEPS4 (ORCPT ); Mon, 5 Dec 2022 10:18:56 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50BAA15710 for ; Mon, 5 Dec 2022 07:18:54 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id 1so5455150lfz.4 for ; Mon, 05 Dec 2022 07:18:54 -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=yR2BrJ7GlNzz1L7RbApb6lqQSBsCQtyE8vkfgp1+AEE=; b=bpk0qIW/bil+RnwI4y5r1x0yknZWOjMReR/ROabJRNfvVnaoEn9+IT4/FGHDeX3NWI 9NRIxlum7z6N7EbBScDmROvabFVDZrDeaWlbzknOGItsv4cJpec5Tirgd0MD2c+aNvlN KVh7C18Hc2CvFVWwGY1rweHNRK52JTqX07XqSo+QEvs82wcKeC1rRr+5ZnyLXonD5y23 ZHIvZyLcin1SOZXsQ2igFSSe96Ikh9aBuMMO2onXchKPLWrYTyyLLCEYeou1XUpST81f D/C5rG7cOEQLM1nUMz3wwV7nDchV2yYGVecPYLOK3QdP73YiaCESB+TwJEDaidXrPgA2 hqPQ== 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=yR2BrJ7GlNzz1L7RbApb6lqQSBsCQtyE8vkfgp1+AEE=; b=4aH1KO8O2mG4tDQS+GHltzUcGcycQOX1zkDxbPln4j+XR6BhTZ1koKqkFihauDPwDJ zb1LIsvDblrER1tuN0TkPE4+aJR1gEEp/n9lTcgbm+W+T+7w3liIOUMNaOrdAgkadMJ4 +RMg2qYmrRFQ60oF3HWEyMkMxCvUGxwa27WiBSMn+Eck7nUoDH3ZeMKysFs9ZXtLDiZx L10McNOX7O3P66F70iFgri3jz7HDAOlYE5AmLIwimj3Mshaob0Q/kiphnCNqYPovnr0N tA6kWobrkgjF+lvbgs4ta8v9Ml5aRxQjVliebFpvhNqRtqA2FCVY7a55gpPEvnvBJFRd ww/A== X-Gm-Message-State: ANoB5png3b0b/dqpSwTqOvexFVGFICdkAMA/Pw19dXsZqi0qB+zziAfo q3ZYvcSfaRUHQg8PpyjwiHdjMA== X-Received: by 2002:a05:6512:1698:b0:4a2:4b43:9aad with SMTP id bu24-20020a056512169800b004a24b439aadmr30144514lfb.213.1670253532624; Mon, 05 Dec 2022 07:18:52 -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 w26-20020a05651204da00b004b55f60c65asm1012470lfq.284.2022.12.05.07.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 07:18:52 -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 Subject: [PATCH v2 3/9] media: dt-bindings: cec: convert common CEC properties to DT schema Date: Mon, 5 Dec 2022 16:18:39 +0100 Message-Id: <20221205151845.21618-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221205151845.21618-1-krzysztof.kozlowski@linaro.org> References: <20221205151845.21618-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?1751387894106191405?= X-GMAIL-MSGID: =?utf-8?q?1751387894106191405?= 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/