Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3060259rwb; Mon, 16 Jan 2023 03:13:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXudqxjpU0DP3a1qV43j0WgfVlVJVBCgAmgZoVZaos2x9wYyywOW8vaPrCJbJwkgFPBS4te2 X-Received: by 2002:a17:90a:64c9:b0:229:a2:a273 with SMTP id i9-20020a17090a64c900b0022900a2a273mr15819733pjm.2.1673867628505; Mon, 16 Jan 2023 03:13:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673867628; cv=none; d=google.com; s=arc-20160816; b=I8uQyeAr+sFb9g1xOsKS7B/+sFjwFKToRPGdt8xrhNXP9K2WBIyx3P86h9rbttNqq1 xypBDRb/zsMW8BOlhhKvprtzRgla+xMcRJysvC341x8+bBQ0A1D8zK05TpQ8ce1B628a ZhASWeSm2kJ0EFJ5nd151hHdRhGlpinRgpXnv/Is9lUdAh+9Pf29L+WqJ7VHbJ7IDRNL MF1JoC5t72m+flVBUP3fGJgakOzMSD5HND6PeRFGWVjDFuDotf9wvXp/JvhAwjN0JGr7 wni/aydRuU8aKxSEDRaaWB5eHvLu0n5hjlCZjWk6rfkyV8HtRWrFVGfdVeGi2ZHNOJD1 LL0Q== 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=aj+YwrBXqvVTIN9nghpKbmPuw2Y5pAaBxDP4vN9zFfI=; b=wlOnZkgBZRysGQWFrWYkiTzVFN8JryprwJ7XZbALoYoWCtQIXI8HTGh7sN71JgWkzE /N9852TY1QfFyj1aDPQYx9KllBVdpZ83iBQoavirq+XTd3gMlLOMPZg79Fyl9fnHJi15 SMj63k17tI0yn6vFlopmZTd8yjOBLJIFhj5cJhPt/kZOs/BCe4eEsPJBiS80xba+KIn+ 4pZB8mmodWdE3vj9seuHBvNgBEqsKG/ZxavnvjLlAFObexxMYJTytKYvhbK3GAPpHVS2 XdJHfXWRU/hws6im4lx31VEd/Bz9shXSpl7H7GoMwUVA1zSquLXiTwDmz5YBUAnNr6Me bEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QmTAliAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a6541ca000000b004b1e9a32931si24862124pgq.595.2023.01.16.03.13.41; Mon, 16 Jan 2023 03:13:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QmTAliAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229762AbjAPJwP (ORCPT + 51 others); Mon, 16 Jan 2023 04:52:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbjAPJvv (ORCPT ); Mon, 16 Jan 2023 04:51:51 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E01018B2D; Mon, 16 Jan 2023 01:51:44 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30G9paqv111117; Mon, 16 Jan 2023 03:51:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673862696; bh=aj+YwrBXqvVTIN9nghpKbmPuw2Y5pAaBxDP4vN9zFfI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=QmTAliAbznRepS2jRLLPCsxIWN3p2TDYKZ4lcIiis1yqZjSLeNjp1R1pQPPKxXWDk n4X4sao3t9KkioDPnIpRhFyJdos78QPdgkOF2AdrD42iPWdx0meL+u4/8Dj8aE/Fsf b9LSKaXt5SYpcfAers/tMoOKz0czCtr7Pu49vdWo= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30G9pa0B121801 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 16 Jan 2023 03:51:36 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 16 Jan 2023 03:51:36 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 16 Jan 2023 03:51:36 -0600 Received: from [172.24.222.39] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30G9pUB7007704; Mon, 16 Jan 2023 03:51:31 -0600 Message-ID: <1856e963-4514-92f3-5d43-d5b711083193@ti.com> Date: Mon, 16 Jan 2023 15:21:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 1/2] dt-bindings: clock: fixed-factor: Add TI AM62 SoC OLDI clock Content-Language: en-US To: Stephen Boyd , Krzysztof Kozlowski , Michael Turquette , Rob Herring CC: Tomi Valkeinen , Samuel Holland , Maxime Ripard , Linux Clock List , Devicetree List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Devarsh Thakkar , Jai Luthra References: <20221226095745.19757-1-a-bhatia1@ti.com> <20221226095745.19757-2-a-bhatia1@ti.com> <8980856c1138571976f00413b94cfeb8.sboyd@kernel.org> From: Aradhya Bhatia In-Reply-To: <8980856c1138571976f00413b94cfeb8.sboyd@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Thanks for taking a look at the patch. On 12-Jan-23 01:14, Stephen Boyd wrote: > Quoting Aradhya Bhatia (2022-12-26 01:57:44) >> Add "ti,k3-am62-oldi-clk-div" to the fixed factor clock compatible enum >> list. >> >> "ti,k3-am62-oldi-clk-div" is a fixed-factor clock that helps the TI >> display subsystem request a pixel clock for itself and a corresponding >> serial clock for its OLDI Transmitters. The serial clock is 7 times the >> pixel clock. This clock needs the clock set rate request to be >> propagated to the parent clock provider. >> >> Signed-off-by: Aradhya Bhatia >> --- >> Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml b/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml >> index 8f71ab300470..0696237530f7 100644 >> --- a/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml >> +++ b/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml >> @@ -14,6 +14,7 @@ properties: >> compatible: >> enum: >> - fixed-factor-clock >> + - ti,k3-am62-oldi-clk-div > > I don't see this compatible anywhere in the kernel tree. Is there a > patch that adds a node using this? I wonder why the display subsystem > can't add this fixed factor clk directly in the driver. Does the OLDI > Transmitter send a clk to the display subsystem? > > I'm asking all these questions because we got rid of vendor compatibles > here in hopes of simplifying the logic. Maybe the problem can be > approached differently, but I don't know all the details. +--------+ +------------------+ | | | | | PLL +---+----+------------->| OLDI Transmitter | | | | | | | +--------+ | | +------------------+ | | | | +------------------+ | | | | | +------------->| OLDI Transmitter | | | | | +------------------+ | | +------------------+ | +----------+ | | | | /7 | | Display | +-->| Clock +--->| Sub-System (DSS) | | Div | | | +----------+ +------------------+ This is how the the clock architecture for DSS looks like. The clock divider is not a part of DSS, but outside it. The clock request flow is initiated by the DSS driver because it has the required timing parameter information. It requests a certain pixel frequency. But the frequency required by the OLDI TXes is 7 times that pixel frequency. (Just for clarification, in some cases, the OLDI TX does require only 3.5 times the pixel frequency, but in those situations there is another divider in-front of OLDI TX that gets activated with a signal and divides the incoming frequency by 2, thereby requiring the PLL to still generate a 7x frequency.) Hence, the idea is that the clock divider is able to propagate the set rate request back to PLL, asking for a frequency 7 times more than the DSS's asking rate. If this is something less than ideal and should not go up, then I can implement a new clock device with a separate but similar clock driver. Let me know what you think! Regards Aradhya