Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp464245lqt; Fri, 19 Apr 2024 00:40:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQ0cYLLxpG4t1Bjbqw+8MprQ09DSIJ8Y1UlkjwlxgKp0luuimz8QqU1/UHpMSo6LRl+YQkbaJYeoq7236Akey2brjdMzWaGmqVqI5cUQ== X-Google-Smtp-Source: AGHT+IHZm05Y+LVrUQA+ExuvHuMUJ0Co7RUkcDrl6dZBHuG80TRu17uz9v+pG9jozubUR2OEYlPk X-Received: by 2002:a50:8e1a:0:b0:56d:f035:7db2 with SMTP id 26-20020a508e1a000000b0056df0357db2mr893372edw.24.1713512436608; Fri, 19 Apr 2024 00:40:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713512436; cv=pass; d=google.com; s=arc-20160816; b=RisnkljM7yXom/eptxD5jxgOy54eL6h+4vmXY0Bmf74tYhG5BaskZHzrbKJu1SalNl v/FCYoPZryxa4RcDpGXS6GGKPWILgjPzu5UnY4eYYlc0IT1pOymZV3YRrAIL1kd360X3 ujiQ1mbnUVEAWJm/l7DDO+pgxi3WOaMMvLRcXCOGnuOImYZ7d0QOuTBRphZDItto9S9N YLaCOIvvAu6EPMNG+GZOWIvxAxHl+FLB9O/sw7jhXaRVgVPcPxYp9NaOH9ZcbVDcK/UA 8HSEXE/NwIGnCQJZD+yQYOBEGiQ8Oc8xphPjL82fzX74p6RAc8W+TMfGnLh1PNx6AhDy sZNg== 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=5aG90mJwE0wV8OqgC3ItLk7pCDFbUraKa4kViefq2sk=; fh=0J7faoeVkTzapajfTPlHNy/t+8NGHf6Q4sbtCDHvp48=; b=so+i/mtqfU1jf6hyF9ypr/2S5Bx8e++KBweGrqO5vWKNqEmSFrxjWq1DVGIPZWYNtU CUzkoqp3/r9TwoRupUbYBMTcDaA33SDXa1nlIM8bI7k4Z3GSv2r1iwkFeN5nIGwgdBnK zKIAwqSIIXrAgR0YjsbvWpRG4O9x0x/RUXYCxPsRd9Ra4EOH24tSdI05yFv+YK1sht1/ YeBY3TkZKS9/yEURkNz4qTC+Y0Bne4x5JFU4lVapsEHVaTCri4+Yj1QUMbYY9T81bv+L ln7/FuP5K7dzb1kZ7IoQc3dQup3HVo+VLd7LHBrufXL8vWOlaWw7PPjbgqwdBBkqvv78 +bBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gOCiSZp7; 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-151120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151120-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 ay9-20020a056402202900b0056e3fa0fbd1si1819396edb.495.2024.04.19.00.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:40:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151120-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=gOCiSZp7; 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-151120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151120-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 0623C1F224CE for ; Fri, 19 Apr 2024 07:40:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22C6446453; Fri, 19 Apr 2024 07:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="gOCiSZp7" 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 D09B91DFC5; Fri, 19 Apr 2024 07:40:26 +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=1713512428; cv=none; b=vAKocTZmamBk3pwkzJtwpx6Q+qSZIeO49vCjldUGCEaRtd3FDSm4oXoPdr9iiPxKB/DWTjHDZgbHIPDNPS0p5dP69GwGBBekYoz1grSk2p0sA9U22M6dLB4+tKj0e+5DpsLluqIAStZaKl7Qh0RZnemqpH1/I+1gEYBi8y+Xer8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713512428; c=relaxed/simple; bh=W/wi9e5UBK+Wu+Dsx1s02GeUnADp2GIoRZR8c6T4osA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZsN0165UY0Ywa4JlMiu0JURitcB4ChxVkWT2rpl8W3PDBF4E9uPDI9xPn1581E78SQ4qHZMNsvs6mJSN49lS3wgygf7hoCEOQ8VbNkwZ/WZhBI3+MIfFwEM2NjH9qUVi8QVqq/yrMPVrhg/BBRSJM9o3BvGuoUEVScpK9bJVJ3Y= 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=gOCiSZp7; 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=1713512424; bh=W/wi9e5UBK+Wu+Dsx1s02GeUnADp2GIoRZR8c6T4osA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gOCiSZp74yYzUrOFKOX2tlJw04+WM/R4MfrvttLuUnU7i+tzNH5NAA0E142iiSwAS pFmOu0dGZdFfKJuubuHztaVs98IxsKPfLwfKNJPP/LmW7RpaEqhqQ3HhGRZFPU9BAS cYDtio0y+GRc/Oi5z0V6+df5sVLitmBMAjoDNe1Fsv/1SfYfJGIq0wYlhYTaWzqSSi cfu9ew/ROizc1XomMH7DR7aNbG0o8/X+s3r0vuh/hf4LyGdbNzG+BQMuforbTQr8zJ t02M4jwW6blvnRXg0VCBMiHkrzE/+oc4ArbG5CFPl0qMB4MsY6pbFpj41SXoxUoT/X fJPHvQpuvaf+Q== 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 86D0A3782149; Fri, 19 Apr 2024 07:40:23 +0000 (UTC) Message-ID: <28b0eeff-55ed-4e30-ac0b-a7bcac276fe9@collabora.com> Date: Fri, 19 Apr 2024 09:40:22 +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 v2 1/3] dt-bindings: display: mediatek: Add OF graph support for board path To: Dmitry Baryshkov 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, wenst@chromium.org, kernel@collabora.com References: <20240409120211.321153-1-angelogioacchino.delregno@collabora.com> <20240409120211.321153-2-angelogioacchino.delregno@collabora.com> <8600acf8-7b51-456b-8a81-4233cfd6f121@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: 7bit Il 09/04/24 17:45, Dmitry Baryshkov ha scritto: > On Tue, 9 Apr 2024 at 18:41, AngeloGioacchino Del Regno > wrote: >> >> Il 09/04/24 17:20, Dmitry Baryshkov ha scritto: >>> On Tue, Apr 09, 2024 at 02:02:09PM +0200, AngeloGioacchino Del Regno wrote: >>>> The display IPs in MediaTek SoCs support being interconnected with >>>> different instances of DDP IPs (for example, merge0 or merge1) and/or >>>> with different DDP IPs (for example, rdma can be connected with either >>>> color, dpi, dsi, merge, etc), forming a full Display Data Path that >>>> ends with an actual display. >>>> >>>> The final display pipeline is effectively board specific, as it does >>>> depend on the display that is attached to it, and eventually on the >>>> sensors supported by the board (for example, Adaptive Ambient Light >>>> would need an Ambient Light Sensor, otherwise it's pointless!), other >>>> than the output type. >>> >>> With the color and gamma being in play, should the configuration be >>> board-driver or rather use-case driven with the driver being able to >>> reroute some of the blocks at runtime? >>> >> >> The driver can already set some blocks to "BYPASS MODE" at runtime, meaning >> that those will work as simple pass-through, performing *no* processing at >> all, so that's addressed from the very beginning. >> >> This doesn't mean that a specific pipeline must always support the "DISP_GAMMA" >> or the "DISP_CCOLOR" block(s) alone, or together, or in combination with another >> specific block. > > I was thinking about slightly different case: do you have enough > colour blocks to drive all outputs or do you have to select them for > the particular output only? Sorry for the very very very very .. very late reply, your email slipped through the cracks and I just noticed it. That depends on the SoC, but generally... no, you have to select them for the particular output. There is a restricted set of outputs that support this block, but between this set, there are still not enough blocks for all of them. > > (excuse me, I didn't check the platform details). You (and me, and everyone else) can't really invest hours of time to check on how each and every SoC on the planet works - that's normal. No worries ;-) Cheers, Angelo > >> For any other question, clarification, etc, I'm here :-) >> >> Cheers! >> >>>> >>>> Add support for OF graphs to most of the MediaTek DDP (display) bindings >>>> to add flexibility to build custom hardware paths, hence enabling board >>>> specific configuration of the display pipeline and allowing to finally >>>> migrate away from using hardcoded paths. >>>> >>>> Signed-off-by: AngeloGioacchino Del Regno >>> >> > >