From patchwork Fri Sep 15 21:11:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Fricke X-Patchwork-Id: 13387711 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 36684CD37AA for ; Fri, 15 Sep 2023 21:12:40 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Euka6rEtFrUfXUjdASN1kFv0rn9TaLcdtFekzPdxryQ=; b=sx9dnpElJcpUPi mVUoXijSPHg27Lh1C+a74cmIeSXpZFqNXRplSAYohl/2Wv/cBGn/c3AwH/g0Clwc1bbAjcHzoavn6 Esp3eUAMUKpFdhLNvr5N8IgAg1gEAWpH7E2YnjFQkkgfczrMiTDwpSISGFeXQFIW9Zv1jEYc5qk4c CBgeCZfeSU0bbnVBsg6pcjLqatrUV7Zre9Jp+M8Rlkwkt7U9W5WunZ4l47vg0zCnZRtd6s+8QYqqU MOV8e8hEDtOdsPEkcsxs1RxR1ZNs8jhbbsQ84gekwH+M4H2RiCmkQXvoHL3iv2LKQmsU9kticxH/n iAu3UxUb5+Xksmzy3cag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qhG6r-00BPM2-0e; Fri, 15 Sep 2023 21:12:17 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qhG6i-00BPGo-16 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 21:12:10 +0000 Received: from localhost (89-26-75-29.dyn.cablelink.at [89.26.75.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0D09966072A7; Fri, 15 Sep 2023 22:12:07 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694812327; bh=7Lxtjmk1/qRcWsB4o2wXEaxqVLu5DK3Ks2Ix8VDhYnY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nXnu/kKBknnhxvjhroSt3laffiYwhM7aUrfg3UvC39Gyx6zpOMOwSXI4KGoo0YfFt tD9L6Lf+gEk1Eu8PtTt5cngU53auVkaNccb5NoQuc2ILCSc+fNrq8EU4S6w9TucYEE 9cq6TlkI7CfAk7Lo+urJ63+r1YVBzNk6cmNTvu5L2YCztjr7MdotkDPzWiROVYtK0b 2UqiAbCEvKQnvCFPd8GB4e/JqUTumxCGrdv50DQryN/mCsqfuRUndijJqAgcKARI42 dbuf+AOaG2iAtZEZJWjfDPAfU9sy+vRYBg03nZMWmhi8ikMX2yywjLzpI0YQvb6nTy YDaL5zxPg9SZw== From: Sebastian Fricke Date: Fri, 15 Sep 2023 23:11:35 +0200 Subject: [PATCH v12 6/7] dt-bindings: media: wave5: add yaml devicetree bindings MIME-Version: 1.0 Message-Id: <20230915-wave5_v12_on_media_master-v12-6-92fc66cd685d@collabora.com> References: <20230915-wave5_v12_on_media_master-v12-0-92fc66cd685d@collabora.com> In-Reply-To: <20230915-wave5_v12_on_media_master-v12-0-92fc66cd685d@collabora.com> To: Mauro Carvalho Chehab , Nas Chung , Sascha Hauer , Fabio Estevam , Rob Herring , Shawn Guo , Philipp Zabel , Jackson Lee , Krzysztof Kozlowski , NXP Linux Team , Hans Verkuil , Conor Dooley , Pengutronix Kernel Team Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Fricke , Robert Beckett , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Nicolas Dufresne X-Mailer: b4 0.11.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694812307; l=2098; i=sebastian.fricke@collabora.com; s=linux-media; h=from:subject:message-id; bh=esedjOY8SBHPSIyc227QY3kx3X1eSB383IkfTQhD+aI=; b=rxl3rh1h5yM8veA3az7YDZOlgIGzEGmEvbUNghxisJ6Z6Rq0IZUK95mgmMNscyxIHhXDvCw9pr0z wAVIpt68CUCtaFBmkGiUo+we7X2tcpyPT9p5C/yIL6mlPA5fXbCs X-Developer-Key: i=sebastian.fricke@collabora.com; a=ed25519; pk=pYXedPwrTtErcj7ERYeo/IpTrpe4QbJuEzSB52fslBg= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_141208_517651_EB543121 X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Robert Beckett Add bindings for the wave5 chips&media codec driver Signed-off-by: Robert Beckett Signed-off-by: Dafna Hirschfeld Signed-off-by: Sebastian Fricke --- .../devicetree/bindings/media/cnm,wave5.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/media/cnm,wave5.yaml b/Documentation/devicetree/bindings/media/cnm,wave5.yaml new file mode 100644 index 000000000000..b8f383621805 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cnm,wave5.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/cnm,wave5.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Chips&Media Wave 5 Series multi-standard codec IP + +maintainers: + - Nas Chung + - Jackson Lee + +description: |- + The Chips&Media WAVE codec IP is a multi format video encoder/decoder + +properties: + compatible: + enum: + - cnm,cm521c-vpu + reg: + maxItems: 1 + + clocks: + items: + - description: VCODEC clock + + clock-names: + items: + - const: vcodec + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + sram: + $ref: /schemas/types.yaml#/definitions/phandle + + description: + The VPU uses the SRAM to store some of the reference data instead of + storing it on DMA memory. It is mainly used for the purpose of reducing + bandwidth. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + vpu: video-codec@12345678 { + compatible = "cnm,cm521c-vpu"; + reg = <0x12345678 0x1000>; + interrupts = <42>; + clocks = <&clks 42>; + clock-names = "vcodec"; + sram = <&sram>; + };