Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1757171rda; Tue, 24 Oct 2023 02:13:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbeY7+C5GIPGPCSyWDcURsP+bkAeJ7pzd39060hBdMSUodZPkU5JCwp2U1McOxyyJ0w79K X-Received: by 2002:a17:902:ea0e:b0:1ca:20a0:7b08 with SMTP id s14-20020a170902ea0e00b001ca20a07b08mr12428666plg.50.1698138782812; Tue, 24 Oct 2023 02:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698138782; cv=none; d=google.com; s=arc-20160816; b=vVYOckE2JtvatFlWVgKnshI3LXgYIDdpgsnV62b1CRzJL1/0+hR1FlVxCwK6dO7nex 62fKQQwoj6yHOGdZI++nuKMmjWBQX6BQU3DldFksm36wssb07azyFDzSZ55bVWNFZ/3U Rl0Jug/P9c4IDG3C5Ji00CTv1inC28BoVGu48n/Hi4OmyXhBWEzjoLMlbC+7Go8YAbvH Lzp1O0nWujj7MxLwmFCbmk/AS1tFa/AXCpzKca73ZeYdqxtIdmwwbukfftoUWRs9ztY8 d3L9eWQBM6WedALfAAr4FkQSeErrIefROtINAi5/PTP0ujjxK7+p5eQAz9PW9M6U5v95 6J3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sybnXNhD5+oCArfJxuphx2AU8zUd+pBN0TGU3ZyVgPU=; fh=NaKEKbS8QddH/mCFsN6PC9bSdKkE5Hatv8CL5XlZ6lM=; b=qQhpSBHG//67eeNIUgcqB/JyVh/NQtHBIbmx205dLBepg7D6LhBVs9QOVTVpxEjEsT dSuu31MghkM1a2Z9UYTTFjAjhI1Cok7slVu6NeSprkmPTH8aBPuBNm8ubXsPbL/XYuff UgCZRUG4qbITDQHFbXQ/yXfCWjqZHjg8E9c5hrYkc/oCx73anPoZqtxWF3w1td7VwbbJ uz8YJP1sGjJXVDcRfcuaHHEX1O0eFaSJORitNKUVX7rV1fKDa3QROetshKlepEVRWJve HJXbJ9U746fsxs/tbsNKEtWJhsPxkIAPugdBE+f4V9dp8BLbrmxCe0e+vxT9RwPNPVT8 RJkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZAayU1HW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id g19-20020a170902869300b001c9c733c422si8023251plo.95.2023.10.24.02.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZAayU1HW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 4417A803B370; Tue, 24 Oct 2023 02:12:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233770AbjJXJMx (ORCPT + 99 others); Tue, 24 Oct 2023 05:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjJXJMw (ORCPT ); Tue, 24 Oct 2023 05:12:52 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9434D8E; Tue, 24 Oct 2023 02:12:50 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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 madras.collabora.co.uk (Postfix) with ESMTPSA id 271BE66072F6; Tue, 24 Oct 2023 10:12:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698138769; bh=XfXPQ0oVnRctPph3CPb1I9j9606bGUTiH9V9O3ZMIGk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZAayU1HWjcx40JeBjgKxWYWr2uAdaRzRDwg9CptGRQK3F8N4pyyUl2MsZhjqgUsQD fhbujYDWpmUiB7lf2ZUIY/Xu5puKX9BnVL5bj/iwpU7ejqKeJGJ6QbSFys85w9jz0Q kbioJO+PH7U7OYD0xsCDzUgpA/uWV4NE9CPdTF02KEEc5cONRV686zrqpC1gL8lZYE zlOo8aeMWJR46gNbtozQval7ZcQpcrrmQFPKf9lg7yH565yJyyiSrBSPtDfYCyKSMu aJN/1EZcPEim62/9Ew16sOnkydctMMXSRwMOtR6x2wlHI2uFOxKc+AJSNUkdG2TM2f 6FrBSYu0Pe33g== Message-ID: Date: Tue, 24 Oct 2023 11:12:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 14/18] drm/mediatek: dpi: add support for dpi clock Content-Language: en-US To: amergnat@baylibre.com, Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Jitao Shi , Xinlei Lee , CK Hu , Thierry Reding , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, Fabien Parent References: <20231023-display-support-v1-0-5c860ed5c33b@baylibre.com> <20231023-display-support-v1-14-5c860ed5c33b@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231023-display-support-v1-14-5c860ed5c33b@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:12:59 -0700 (PDT) Il 23/10/23 16:40, amergnat@baylibre.com ha scritto: > From: Fabien Parent > > MT8365 requires an additional clock for DPI. Add support for that > additional clock. > > Signed-off-by: Fabien Parent > Signed-off-by: Alexandre Mergnat I'm not convinced that this is right... at all. From a fast check of the MT8365 DPI clocks, I can see that the DPI0 clock declares parent VPLL_DPIX (a fixed clock), but nothing ever has VPLL_DPIX_EN (which is the GATE clock, enabling output of DPIx VPLL?). But then, there's even more: no clock ever references the CLK_TOP_DPI0_SEL nor the CLK_TOP_DPI1_SEL gate, which is a PLL parent selector... in other platforms, that is muxing through the TVDPLL, but on MT8365 that is LVDSPLL?! I have many questions now: * Two PLLs are apparently brought up, but which one is the right one?! * Is the LVDS PLL really used for DisplayPort? (dpi0_sel) * Is the VPLL_DPIx PLL used for DisplayPort instead? (dpi0_dpi0) * Why is the LVDSTX_PXL clock using the same PLL as DPI0?! * Why is the VPLL_DPIx gate never enabled? * Are you sure that CLK_MM_DPI0_DPI0's parent shouldn't be dpi0_sel instead? * Where is DPI1 in this SoC? Why is there a dpi1_sel clock, but no MM clock for the DPI1 controller? Is there any DPI1 controller, even?! * Why is there a DPI1 MUX, if there's no DPI1 controller?! Answering all those questions will lead you to the right change, which I believe to be in the clock drivers, not here in mtk_dpi.c. Cheers! Angelo