From patchwork Thu Oct 5 10:49:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 14949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp341397vqb; Thu, 5 Oct 2023 07:34:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4sQ+swRmV1VyqQy2vdBpyk2UkvikZRbA2fTRT45KpnmIiYogNIqw5f+DvyfxdPjutsi30 X-Received: by 2002:a05:6a21:66c6:b0:148:f16f:113f with SMTP id ze6-20020a056a2166c600b00148f16f113fmr4450702pzb.12.1696516483368; Thu, 05 Oct 2023 07:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516483; cv=none; d=google.com; s=arc-20160816; b=POaZLwbirsM13JXEfHbtv5vM0U0gYxuCoCHHukqRu2q5mrKvdHCBPK8zDlgdhoNICf EY6mlu28zwp13i9anftFRbSabDvlZnvjNWbkYuMb5mwYlqBWcT9tags6r9sIUGCyIAKp TYYgo4WMPwWySDJUixSEZ4s2ONfTII3hMKuTrZtV1XlpsQAb6YbxmSh9oIpQJ/EC9iIu jymm+wXWInDcp47pNQjBzaRpFO/jLc5MYzU+OgaimaO0gHVuHBu/pxB3x5TgT8xeN2da f8EHU8PSvNoU9OO0OlL2n2rouAvj0NqxW0JcUabhH6YUonaLjAcKaDw7xuTXaFvmVNXJ ov6g== 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=i+97jlASJeCUra0UgJ+PVFfR8PvK//Er0EZ9AVj4iws=; fh=i/LyJkRmgZBAMJ8yXV9iaklUoYAFLn5WBFFibvwWXtM=; b=LSHcgnC1cH7ECvanAuy93A0q8nVhjx7FvkHGUx9vbHqYSB577Yded2MNWzsvNSqwLV PKhN4JuIMXf8+fl2peqOIFfZj9izYDOISu4BHPGbYqUUmR45Aizoimiy895gNTNEJIVU LuWcSaiNDfjRUsZlLl4Zf/GIqbn3N0BbuJukno3KF942J5KEWecs+3ekweeCbxExsB25 uvjh5sNcN4/6mOBOlj3hiXnmRqnV4OKDDidtSQtMO33OoPBn/1N/+PLvZtBsyWSS09H4 nfO1IAO0NA5cVGDwdUG+dml6GKajRh7lCJwK6jfVr7q+P6FwvR6nS2vRGId5gFySmGaF UboA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K9wZ35Fl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x34-20020a634a22000000b005694492c259si1487543pga.282.2023.10.05.07.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K9wZ35Fl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AFB30832DCF3; Thu, 5 Oct 2023 07:34:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235218AbjJEOd0 (ORCPT + 19 others); Thu, 5 Oct 2023 10:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235137AbjJEObc (ORCPT ); Thu, 5 Oct 2023 10:31:32 -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 5DB7822CAA; Thu, 5 Oct 2023 03:49:17 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id DDFC4660731C; Thu, 5 Oct 2023 11:49:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696502954; bh=lFr30I+Cr7avNK4wzwGybpTkaEAtq/uM7VOwFYqZwUs=; h=From:To:Cc:Subject:Date:From; b=K9wZ35FlCGgxB/NKW138gQiIJYWnO/3EuMst1hxKCbXMEHzVpGsaRfzYehABqODKK 9nf/PW+08IxV+ID1qM2N5A6tAlXn9ciXWA9/py4ikoRRwxcFyv70fQ04Fdv1rVIvLY z4YwXjyPfUlajcNrgK9AmXm8Zma8fBA8mKZMkP/LwfE++uE4KbMXkmqYXzaDyFwOFr B3ZiDYY6ZZrUIXdaNCj3khhqlltii5P3FfxM++96SZyummWHIu8V3uTYqB30hW4LZY QLM1CRCluC4KeS8YHe7ve/gcKguhEg9AfU/0zXMFiQvgPEK9i0ssyhry4wZRm/fCqd QzzY24bkIgOyg== From: AngeloGioacchino Del Regno To: mchehab@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, moudy.ho@mediatek.com, hverkuil-cisco@xs4all.nl, sakari.ailus@linux.intel.com, u.kleine-koenig@pengutronix.de, linqiheng@huawei.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, wenst@chromium.org Subject: [PATCH v2 0/2] MediaTek MDP3: use devicetree to retrieve SCP Date: Thu, 5 Oct 2023 12:49:03 +0200 Message-ID: <20231005104905.120544-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:34:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778926467856516435 X-GMAIL-MSGID: 1778926467856516435 Changes in v2: - Rebased over media_stage master as of 05/10/2023 - Reworked description of mediatek,scp property in bindings - Dropped Conor's and Chen-Yu's R-b tags from bindings patch due to the description rework. Especially now that Multi-Core SCP support has landed, it makes sense to retrieve the SCP handle by using the "mediatek,scp" property (as already done in MediaTek VCODEC), both to select one specific SCP core for MDP3 and to avoid walking the parent node to find a SCP node. AngeloGioacchino Del Regno (2): media: dt-bindings: mediatek: Add phandle to mediatek,scp on MDP3 RDMA media: platform: mtk-mdp3: Use devicetree phandle to retrieve SCP .../bindings/media/mediatek,mdp3-rdma.yaml | 8 ++++++++ .../media/platform/mediatek/mdp3/mtk-mdp3-core.c | 16 ++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-)