Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1242857lqe; Mon, 8 Apr 2024 03:16:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJ7lcg8sQIEEm3NVWl1q4OpUX7HOFP8O5p+SRK0415hjGalw0Gzk6rQtckwWW9EPWSaZbrSlC9BgioIBwRj3he99zqAI/apbKBveJyxQ== X-Google-Smtp-Source: AGHT+IHB+8AQp2KO1zP6ufAb5aSE5UVvQfV+dhkZ9Ckyiuiw4Efh/RHPeTJ/UO/wCgjAvq30oAEB X-Received: by 2002:a17:906:cc99:b0:a4e:7a8f:2101 with SMTP id oq25-20020a170906cc9900b00a4e7a8f2101mr6073965ejb.2.1712571384085; Mon, 08 Apr 2024 03:16:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712571384; cv=pass; d=google.com; s=arc-20160816; b=dJBr7Dzb0KpZk9WLG3s2TVcKWzhJrzQHNp7DLJ41yxxAiyit92nJTRarnPaA3jNgB1 TUmJOXnd0eSokYDbge4ylC27cQWZCwfaFCJUgEMCLG2iHjDpCQwdOqLLAu4NhH0UU7d6 I8QNb3JQwZsk7zJBqQ0I1wPFp+6cSo3GskkWW/YVp1QX0xTLccUF5etKm5/JEEtd9Hzz XvztAfob7GVidjQ0fBg+tKa5L4tUe0A9KRTxVCUBNBZoBQ/2ICX4s5xcOQxll5jpyd63 dghPaAebTWglTDEPohmgWmcafi2auop5vidB2pOGieBmhFFE/C5aU+1WJkDA6jXyXHKU FdXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6pVekdkrQBPc4D4jebsomNbQ+DnizhbQ58ZJeq6rgCc=; fh=hxcggP3kkvBogQbBH3ygtRlhize7+9PsWrXxrco4uvU=; b=i/2MXdjYc/XTN83fu7hb2FszPniK940YsRdDnPLXOqzazUKx+tB0BK/31NBFf0FBKD LFu4iuM1QLpsa45qgh9zCXvbY9SV6z5V84XcFGzWNF+SR3rv/pVPQaPzvDW47DxioNfX ok5xs2ca51ELnPLq6+vAnr6ITE+5DFFh3oOrPKYGLCciGY0JJgeiQR0Gt+tG32FmaoUL Y7WQNvmoJldXHNydZhiWwQrILXe8N7k8xxC6iXv/0kb/np70+f814PhEbPOiwGmULPxg 0nAfWe/T4CfFrrDxNYU5RvS97PGloNFzL0+PnwPX5RqInLJGJJRuAzPu1c25A1unyxXs t+Bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aaY5QGWE; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-135214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hs11-20020a1709073e8b00b00a51c35a4e64si2100266ejc.112.2024.04.08.03.16.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 03:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aaY5QGWE; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-135214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CD7A21F226B1 for ; Mon, 8 Apr 2024 10:16:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C282153385; Mon, 8 Apr 2024 10:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="aaY5QGWE" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B509537E0; Mon, 8 Apr 2024 10:16:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712571375; cv=none; b=DFWL0sMCNHadhWhm0FlFk9opSRNs7lN2O3a9+yUFvuRYx6BGj+E3msGkUS6D6BQihV3xszpXQSrTsqU24MVgNOt8f1VaqqL+AUXvZVXdekWlvOH9hjylQ3FhvtCM/qo2fTjzoxBTqy0NlsJYM7bU3WW6pTbQcRPzVosAH/FCqZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712571375; c=relaxed/simple; bh=su42lLW6PD3z+UBwwbFQ0posL3pq3ei8eZhPwV7J1QU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=B7skTfHRczhZzJBn2Pa5QN1J/ZPbAcNepThYOguhFylpIpB6Evls1kR0l4N9boGsAsOUlN7Os61lFHC4VkVD9K1iMHz5bShYzbjAp38GoHwigOqlHGXeNJKOha+f/GQY24w4cfXZBs5c9fMKF7CS4E7c6ECOU/ZshgG8byxuzZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=aaY5QGWE; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712571365; bh=su42lLW6PD3z+UBwwbFQ0posL3pq3ei8eZhPwV7J1QU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aaY5QGWExwVtL7oX5bMM2dEOfNtL1HOeztXi5FJXuvvhWIuxrbzODt/767fCfgNvi zFUowTzx0VKnymoQvkXzj73u5/ZHw4o/2BC7HmPwmdUT3jojDy1H1vCFpTxsmGv3KI tqXGNeshynXl0YQS/vODDfUl5DWbZb0jAF5cJTATPg+tJOiV8rVXVnHSk5nMQUsJnf jNnAHdgwqkmoVMzktYrKnyEfxgO5Xjf9GQL0MdukR/htkCPqqzBsVERbgLMZNWNky6 JCeLMA0hrNlXYb0IisVRdkZzWodc6l3iK4n+qLUxeV3mn+zWLAp63ZhnESId8gZoMb 3B+cTnpnSZDew== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 398633780627; Mon, 8 Apr 2024 10:16:04 +0000 (UTC) Message-ID: <5e385c2e-6509-4347-96a5-4606b32d20ff@collabora.com> Date: Mon, 8 Apr 2024 12:16:03 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/3] dt-bindings: arm: mediatek: mmsys: Add OF graph support for board path To: Chen-Yu Tsai Cc: chunkuang.hu@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, matthias.bgg@gmail.com, shawn.sung@mediatek.com, yu-chang.lee@mediatek.com, ck.hu@mediatek.com, jitao.shi@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com References: <20240404081635.91412-1-angelogioacchino.delregno@collabora.com> <20240404081635.91412-3-angelogioacchino.delregno@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 08/04/24 05:20, Chen-Yu Tsai ha scritto: > On Thu, Apr 4, 2024 at 4:16 PM AngeloGioacchino Del Regno > wrote: >> >> Document OF graph on MMSYS/VDOSYS: this supports up to three DDP paths >> per HW instance (so potentially up to six displays for multi-vdo SoCs). >> >> The MMSYS or VDOSYS is always the first component in the DDP pipeline, >> so it only supports an output port with multiple endpoints - where each >> endpoint defines the starting point for one of the (currently three) >> possible hardware paths. >> >> Signed-off-by: AngeloGioacchino Del Regno >> --- >> .../bindings/arm/mediatek/mediatek,mmsys.yaml | 23 +++++++++++++++++++ >> 1 file changed, 23 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml >> index b3c6888c1457..90758bb5bcb1 100644 >> --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml >> +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml >> @@ -93,6 +93,29 @@ properties: >> '#reset-cells': >> const: 1 >> >> + port: >> + $ref: /schemas/graph.yaml#/properties/port >> + description: >> + Output port node. This port connects the MMSYS/VDOSYS output to >> + the first component of one display pipeline, for example one of >> + the available OVL or RDMA blocks. >> + Some MediaTek SoCs support up to three display outputs per MMSYS. >> + properties: >> + endpoint@0: >> + $ref: /schemas/graph.yaml#/properties/endpoint >> + description: Output to the primary display pipeline >> + >> + endpoint@1: >> + $ref: /schemas/graph.yaml#/properties/endpoint >> + description: Output to the secondary display pipeline >> + >> + endpoint@2: >> + $ref: /schemas/graph.yaml#/properties/endpoint >> + description: Output to the tertiary display pipeline >> + >> + required: >> + - endpoint@0 >> + > > Technically the mmsys device serves as an glue layer for the display > pipeline, providing things like clock control and signal routing; the > device itself is not part of the pipeline, and probably shouldn't be > part of the graph? > That is (only) partially true: in the case of older SoCs, the MMSYS can only connect to a single first IP of the pipeline, but in the case of newer ones, and especially (but not limited to) MT8195 onwards having multiple instances of VDOSYS, that really becomes part of the pipeline. This is not because of the possible different first IP in the pipeline, but because of support for dual-interface (DSI and DP) that, in even newer SoCs, can be done with cross-mmsys (cross-vdosys, actually...) as some of those do have the two in different VDOs. So yes, this can be done without the graph in MMSYS *in this precise moment in time*, but we'll anyway end up adding it sooner than later - and I'm doing this right now, instead of later, because it's also simplifying the implementation so like that I'm "catching two birds with one stone" :-) Cheers, Angelo > ChenYu > >> required: >> - compatible >> - reg >> -- >> 2.44.0 >>