From patchwork Mon Dec 5 15:18:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13064737 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 CA67DC4332F for ; Mon, 5 Dec 2022 16:28:23 +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=m6Ue7wYMt4XZikAlWib1hHP0Nm+ogW5yhni2EdSE+L0=; b=oWFwiy3HPsaAVY oSSl26Gc0TTId5ftxV/+IZLSHFh/igsk69raV3Iqq2HFk/YTUmtJccwLU0pCRm1BeA2uuIs9V7m4a cDzpBeAZzUN8CjDTDwCKCTUzfmGtbH47pCw+ri2Is18B7kQrmSUKKGm+CMdcHAsbQTTtXbNj6XjEw cNZV0p8/v8X9BbXV0pEqAnnof/VsdNvue7NxVN1jcAQVcU1hJ5JU+rAncxBQ/LcJpyn7IE5M0EqR4 edbVLt/N4FOGt6FRHaDs9iRfc+Qn+xMyuKOViLwJp/yhX4ezJOhKcmEpZa0pYHfq9bXAKE0dPU6C3 iSLDkF778F6rtEJUTL6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2EKD-006TVM-LD; Mon, 05 Dec 2022 16:28:13 +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 1p2EJo-006TFi-OB for linux-amlogic@bombadil.infradead.org; Mon, 05 Dec 2022 16:27:48 +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=ioUCktL+IK6H1GUGfnY9+vm5EQylIwow6IsLvhdaPps=; b=oL0dWkmYVnOQ6TTRHYuq4fTIEz 4LZfaLhz1YrgSUCEXdH8txZ6rtAgfTRbUTH6AL6c3FrpTsLY45C7LRGDI5Gt+ahrcr3VGkrvAgLp1 BYU6jkXWQmwYysJart1uUlMNaqZUjkA0afRtNVd6TdYnUFzVsbiFHL4FQMrVhEsXqH5Q5cdgJhJJC gLF9HdaopixpGpXOj54fgXOC0MhPY/j/6VPVIDvkN7s6Czlj0apfbvbLKfcFJ4AohX8vmTz1ERGFD KlgyT4doJ3BiLAD8CwFk/XkITC//HY17SHSYf4PJPanirpU5l3ESqs02y9nuo1YjuAIVDSfj02dCo 19u/qKLQ==; Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2DFI-007eZo-T7 for linux-amlogic@lists.infradead.org; Mon, 05 Dec 2022 15:19:08 +0000 Received: by mail-lj1-x22a.google.com with SMTP id a19so13949887ljk.0 for ; Mon, 05 Dec 2022 07:18:58 -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=ioUCktL+IK6H1GUGfnY9+vm5EQylIwow6IsLvhdaPps=; b=nnx6OKTVzfXmUV/qzBjqtIvYFUG6lav11x+8CegKGxuY28Od5YkTolemEYibkhiioG 6Oc/XG9hh+1Oi/SoASANqhoM7xRcDC4Uq+3c7NdgkXt2aiSxn9MqdWdMVjknMuAe09IL B+raWsVh6G1GcmruMg30i6seUHBa8OyptK5gOiqeA1lpS0sn7nb8YhIQlQUW6AICjvzT NIsJxfNUNjYJQJtgjKYv+i0msCnPWugx0ahz6cmbQRS/8eSmibbaoxDk4NnpDDy/6IfF Lp0gKTp2wbhAkjXG6/E5CNS2Dm94fkDfGLDOUJn4+tTUO94oTHPc/sxqNx6S+hgZ/cU8 zirA== 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=ioUCktL+IK6H1GUGfnY9+vm5EQylIwow6IsLvhdaPps=; b=NWkUsoQiK81lKmh67lUpQ7kMBAS4/VbaqHWqnSTmd3D6Kw/Nj21AX5dM9rquEwtA/n SGdDl51oTySyVmWpWCByzc7ZhwHTbKs1+GalOXruoXM0PXhUHWcU5SbYJuBrGlfhOgIo 6/g2aDt6mUcNwHpJRqtcMzHnrT44JHjjU19eixOx6JxCRGgPTIApbPDFpKlLzJkc3531 0rse//jbkuaaMB9k9MoTC5T+B2sa0lX36P/9KmBD+pw2GZoQJSjQni1q//xQVEfEnO4t UKrD+In808r4IFucJoiyrOQVfOSpZVKuwSz9QLxeTOtTlzgAJ6ullyl8Xqgs0lFf6gVE qS5g== X-Gm-Message-State: ANoB5pksBBqetX1/ur2GgfcI05LajdDglGpEkwZWzAHpcpeZ9f7onDdN uPQr8CnUpTpTcLZmuFdyrtuKdw== X-Google-Smtp-Source: AA0mqf5pCnKjhB0CxYAgsq1H6IsuoK9pBoRfVOxMwzyWSwYuaFMOWmpuI205KvYDZ4jXZIX9dYKSAQ== X-Received: by 2002:a2e:aa93:0:b0:27a:24b:a9b3 with SMTP id bj19-20020a2eaa93000000b0027a024ba9b3mr1283470ljb.391.1670253537111; Mon, 05 Dec 2022 07:18:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 07:18:56 -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 6/9] media: dt-bindings: samsung,s5p-cec: convert to DT schema Date: Mon, 5 Dec 2022 16:18:42 +0100 Message-Id: <20221205151845.21618-7-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221205_151905_165355_A83A42F7 X-CRM114-Status: GOOD ( 18.14 ) 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