Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1326715rwd; Wed, 7 Jun 2023 14:39:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6InAabkSGghMmVJed2x+dSCV8B9Nl3yDLBy5N1Wa8E++VIPMiGbfABHwylXDi4ns1PoXIM X-Received: by 2002:a17:902:f54e:b0:1b0:524b:e597 with SMTP id h14-20020a170902f54e00b001b0524be597mr7801458plf.2.1686173953004; Wed, 07 Jun 2023 14:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686173952; cv=none; d=google.com; s=arc-20160816; b=hZZAhO4DmKZNQpRB7aWyiKcAdHl1lWXWBo2i87m2j1l9zBprc6/woV8WEpC427gmGe yu34zdrNwblXif+ZI6ySMk3Ua2zfYgrrnLsMpt8UVybhFZRPtwFUHPochc8RYLEf0wkK 0mHsUuhkUzHcjQCpyz3inoAuQnT3cF9wHx++yu5Hkk7C6R26rzvHrJ8rVmkAD3bxB0uc MusdYIET6Rx+ECYNtvPiHwjy8L1gqd8sJ4jEtbQeNXB+0ex61+1Fdv9Bk3pG8hTai7e4 VZS8qg0xhywYsB9RaW7R7QwhhSzIEzivPV+2LOmYxQrt3pOl9UsBtAsJwQL7DQbeIpBX YQ+A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=2ODT61TphyftSLJ6O1NQGmCrNsqKtl+gxSjHbKJ1Vck=; b=EHTKoCOfP+lwTKb/mWAma5x145qxeRSuu3LSgiuiYL9icwObshqQLiIOY5gIidamLB aOIF1+ud7jY8KRB3BJ0wc59TFYxNE4I9R6fSC51V2iR7zjpQC5Aru70C5/3DJ0mo42IW tR8uMZCw5hL84GGTXe92bmDDxxJQSVsrpV3crM9JSOec5RzgQA/LGJaoW3HaBsj7mtLZ RyFiupuyomfrbBgywbmNaff+CNgrXHKVQHXEmsL3/6Xs5aoJI8Gz+91hyyOSYbxbbKaI fdpV3HMn9Q1onf4XTSa8kuk9420kTwmGyiyBD4Sk99HaRAq45B2kdLOyXHCSHvwprshP zPbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Hjy4ZAVD; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a170902d2d200b0019f33cb669asi9749296plc.615.2023.06.07.14.38.59; Wed, 07 Jun 2023 14:39:12 -0700 (PDT) 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=@collabora.com header.s=mail header.b=Hjy4ZAVD; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235623AbjFGU5i (ORCPT + 99 others); Wed, 7 Jun 2023 16:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235527AbjFGU5g (ORCPT ); Wed, 7 Jun 2023 16:57:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86EB51BEA; Wed, 7 Jun 2023 13:57:31 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8C01166032D2; Wed, 7 Jun 2023 21:57:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686171449; bh=3Ss4Xbs+eUeVm0wwUGrfx/rLq0kUmO44VcFrpD6blPQ=; h=From:To:Cc:Subject:Date:From; b=Hjy4ZAVDbkJPCL4X1AXfEB2Qx119GEsaxIbUuBS0OMEF7Rq9rtwOugPt2aFyEie0i fKbdk32a3zQF8wT4eUuV1aZVpksNTJFwhr1BVsRUkaY2VDNb64IagZxnCyfEsm7JSr YlHGXXbaw7WuKIiJcc2wQRA2jBRFc7JifUkg+wBW/1UahWkwhXJKRg21WkAJGR8o1Q hbXEVn06a0H/rFhsnkHyqGx8hSBdVRfnm9TguMpGP5QYPUYqh4VdfIR+/EFNI1YVO7 8YON8g1BUz0/1/D/NrO/+3mbbWR8o9CumX2U8FczxHYottf3ww5OiUX7wzyH+udumm lxmDVGfI+tEOQ== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger , Hans Verkuil Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Andrew-CT Chen , Chen-Yu Tsai , Conor Dooley , Krzysztof Kozlowski , Mauro Carvalho Chehab , Michael Turquette , Miles Chen , Rob Herring , Stephen Boyd , Tiffany Lin , Yunfei Dong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/5] Enable decoder for mt8183 Date: Wed, 7 Jun 2023 16:53:37 -0400 Message-ID: <20230607205714.510012-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 This series enables the hardware decoder present on mt8183. At first glance, the only missing piece is the devicetree node for it, however, simply adding it as is would cause an address collision between the first register iospace and the clock-controller node, so a rework of the dt-binding and driver, as well as addition of a clock, were needed first. Tested that H264 decoding works with the hardware decoder on mt8183-kukui-jacuzzi-juniper-sku16, giving a fluster score of 98/135 on the JVT-AVC_V1 test suite. And ensured other SoCs (MT8192 and MT8195) still work as usual. Changes in v2: - Merged commit 1 (media: dt-bindings: mediatek,vcodec: Allow single clock for mt8183) into commit 3 (media: dt-bindings: mediatek,vcodec: Remove VDEC_SYS for mt8183) - Further constrained properties in dt-binding - Added CLK_IGNORE_UNUSED flag to active clock - Reformatted reg-names in DT node NĂ­colas F. R. A. Prado (4): media: dt-bindings: mediatek,vcodec: Don't require assigned-clocks media: dt-bindings: mediatek,vcodec: Remove VDEC_SYS for mt8183 media: mediatek: vcodec: Read HW active status from clock clk: mediatek: mt8183: Add CLK_VDEC_ACTIVE to vdec Yunfei Dong (1): arm64: dts: mediatek: mt8183: Add decoder .../media/mediatek,vcodec-decoder.yaml | 65 +++++++++++++++---- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 30 +++++++++ drivers/clk/mediatek/clk-mt8183-vdec.c | 5 ++ .../mediatek/vcodec/mtk_vcodec_dec_drv.c | 59 +++++++++++++---- .../mediatek/vcodec/mtk_vcodec_dec_hw.c | 20 ++++-- .../mediatek/vcodec/mtk_vcodec_dec_pm.c | 12 +++- .../platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + include/dt-bindings/clock/mt8183-clk.h | 3 +- 8 files changed, 165 insertions(+), 30 deletions(-) -- 2.41.0