Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2070968lqe; Tue, 9 Apr 2024 08:46:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfGGaOeddsQ8jdY9hTskBld0GemKmKC+h4gpkSY+MOUdot+UCqgZ3EECYVns3XuJ3PJIT+UG6r9Ch6LNaSAHA3L/clG4+K+aLaa6w04g== X-Google-Smtp-Source: AGHT+IHEywOQ2zC66wm7iSWNumDHcVu+NGtLA4nAdCpXtv1H09d9TgqLOaVtsE8vSmnitVoZ9CTd X-Received: by 2002:a05:6808:614:b0:3c5:f658:4cc0 with SMTP id y20-20020a056808061400b003c5f6584cc0mr5425262oih.5.1712677560226; Tue, 09 Apr 2024 08:46:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712677560; cv=pass; d=google.com; s=arc-20160816; b=y2yL0ZBy1DxO416MO54NsL7naxqIPe2iYF0yW5ba3Sgv4YWcyifNYkVVjW54jjCMja kHYcwbvUZpyc3I7ES6npLm/cC0zhWkSh03E+vWZihGdX3/o03QkBmmpLIte3f61ZElz8 sA6TPuNBVaIg/Hst4V9V6bkmxiMnblNbgnpf3A6i+H9ozPfl88yndYmjZRmYM0ATbB+b nwiyOIE4n4ZwIA0kqFfQ5pd3Xt4yWZJxIM2CkaxLtMNxlEi1dAx3ayL18lcm8k4rKijU EkhCn/dksCBrEtj/GhwwJgIGYbFb+ZAWNsgiSlZqvNmUPCR20dSvL8DGNRih9F+jIyLX Kuiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=buNYP7p7u2SjN+B3Y9aoQObdwXquT6XXRaxxD1OD6hQ=; fh=gutHiQM6PY2oGOs94yk0C5CsXTlOes4g972e8CBXfJY=; b=MgZj2s/4t/K+ScgSpR6ZTByHcMRbx2/LVjIw0aFg/XcxYZGuu3o9bvvoXfB3gZ0VNk OX8o0xOJps+mMtDnqPb9USJhzNHnqLm1XEtK1h4ambdAYkS3Jqs8OePbGsCPc4jTIKF3 YUwgm5dVeYiO30d9Qp8+k4SVhvcxepaxEaCnr7SR1rHYGg/a0fdV5Q/u+kZrb78HltNQ dNSnulpbsYNjGOaUidxu+w8n0NRhVtLXMLKWny5hWZMMyPfLZ+yXlHp9DedTJ6c/6Hyk S96YnLJ5D0zqMF4W2KZxjZBdSz8TVcY4puWku0zR/kGzQTXN0H/l/LF9yPKxHrngHZjG 0GkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zBw1IUGt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-137251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u22-20020a05622a011600b00432ef4d64e9si10422387qtw.405.2024.04.09.08.46.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 08:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zBw1IUGt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-137251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id ED51D1C20F87 for ; Tue, 9 Apr 2024 15:45:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6EA4136E17; Tue, 9 Apr 2024 15:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zBw1IUGt" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40D8913698F for ; Tue, 9 Apr 2024 15:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712677552; cv=none; b=dpUA9bC0662RF9JITA6RIeR5rZwCmws4U+1KbXn/HrX4PdUChwW72NmKzPvqStLsRJu6ibKWw1Gv+XmU3PCzR9aYqvML0B789/8AYCn8M4jld0Wvdu3jSd2MrMDjUYEzyZjVcNEmt80McwxsrBhLqRdzWCrCJd/qgxPMuR+Hu0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712677552; c=relaxed/simple; bh=Js/2BXIRra/FHVv6CsCNlDO3xAx0z0yGlizmQ4Qvh50=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jY3fVOcmBACXumqSXIE9Qz79UT1cxzR2Wrsf5t88GDupRYH0cDz+RDC68+gkBjgNyClJs1IONSW59k8EsOJBV7kX0MO2XqVp18ES8tfMr86Ex3zADkDTjHYPfO4++tLlqO4ojftyD44ELf83cgku7jF9SZmPpg2z2PYW8gn1uKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zBw1IUGt; arc=none smtp.client-ip=209.85.128.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-61500da846fso46209857b3.1 for ; Tue, 09 Apr 2024 08:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712677550; x=1713282350; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=buNYP7p7u2SjN+B3Y9aoQObdwXquT6XXRaxxD1OD6hQ=; b=zBw1IUGtrGyzphbHO42j9oPNWsugNdc6EEIamFYdRse+bHLfJtAREhLkaL5A4x3CPB w6++Ua/kYXOFYhJ0e46Rqsmf4gPQ//jkZUwbg9ZVihh7trnlvIJ4NXU1w6QPd0tpePOS j5MBidsFKz0cjRALAf/3abw9auYS3lK3g1rQ9E9JtwrRnuw2B7gtdLCpAUesEXYswvxQ rK+EfkeJwSi/ZF+y0Ll8hBgQtqc4U00SmH6r7hKTuoIQcKbJI7u+TRE1KAcX/+ZP7WPp 1Dbny88Tb+X0IoVo8xkw2Eqg2yQOCbsBFp4YFp6BCnjR6HO1H65ZAycf+raOLSm28zPz R4hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712677550; x=1713282350; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=buNYP7p7u2SjN+B3Y9aoQObdwXquT6XXRaxxD1OD6hQ=; b=iV0Xuz9G1B49v3O7xVZbDZy24zMbssYkBpQiNY1JJLAq2Rp5nQSa01RC3g1a9YcUj/ IsKm+9n30HY/EAdu3JGv5FreMbu2rdYHl4jmPAlFT/bSKb3qx1m+oxnxD38ja8rB1moB 1ZaYtaxwYo7Tiqqt7hzUozTPYN5Y+62qluwzcR9zOv0cUhm60WEwg1djUX9QQmbadBh7 RfCzvRPaEKf++e3xfT+n0BwuBe/QPJWqwJqPe+zzwaxLPwHfmoUEw2APX+dyh9qoj/8+ s2jTQ2K+uhkwK/aK5CJpYt6RZddldpOSNaYcHD3zDgfNwZCKZnUFSEyYUeylOxjmc2kf 3ZAA== X-Forwarded-Encrypted: i=1; AJvYcCUM2In2KHcDSZuruxoJ/xccTCDMn282xo/KFF6lkZbI8cOYtsdrPNd5gst70bDVfhA94a1ubWT+Kk0+f+BQScrXevff+eteOKmS1EbD X-Gm-Message-State: AOJu0YyhmUeYBWAhIZkdVGSZe+IPZJjfhcDxd450nFdiqNTy2FS/8o+1 3BINeVDcpG/NpTPafNZg+CVOBaG0GGmbsyaw+vgWTmdMJE4wD1IiQXp7d5O28a9lb1BsGI8X4mq PN9z6nO7oLBFe2boheVkcoDpRC3qSlBAEg1ReYw== X-Received: by 2002:a25:ce05:0:b0:dcc:1dc4:15e4 with SMTP id x5-20020a25ce05000000b00dcc1dc415e4mr122551ybe.47.1712677550216; Tue, 09 Apr 2024 08:45:50 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240409120211.321153-1-angelogioacchino.delregno@collabora.com> <20240409120211.321153-2-angelogioacchino.delregno@collabora.com> <8600acf8-7b51-456b-8a81-4233cfd6f121@collabora.com> In-Reply-To: <8600acf8-7b51-456b-8a81-4233cfd6f121@collabora.com> From: Dmitry Baryshkov Date: Tue, 9 Apr 2024 18:45:39 +0300 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: display: mediatek: Add OF graph support for board path To: AngeloGioacchino Del Regno 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 Content-Type: text/plain; charset="UTF-8" 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? (excuse me, I didn't check the platform details). > 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 > > > -- With best wishes Dmitry