Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51D51C61DA3 for ; Thu, 26 Jan 2023 16:32:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230317AbjAZQc0 (ORCPT ); Thu, 26 Jan 2023 11:32:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbjAZQcX (ORCPT ); Thu, 26 Jan 2023 11:32:23 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E980F20691 for ; Thu, 26 Jan 2023 08:32:19 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id j17so1543131wms.0 for ; Thu, 26 Jan 2023 08:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ht6SLMPOXpO5uQjEKRBlkeAFxtNjyW1ofM/NJzMtXes=; b=bQUKqFOePcwq2+andSurp3CyehEw/rCw1c3LYc7LOeoXkGX1+8eWEqskfuK06Ku9cq latkyqL/y3AVFaLVtFzWf55vMnVx49WLM+I434CoMoggsC+6nhlEbJlDvxA5cqTLydzh z8WIoAAvZG9n8B1FVbRtm0sNn9f2fdvXLUYKLtWXs/ZOOtIKyc5SC6bu1A6UOcUSYvg4 9VWuqka7d9K/wf0135wn6kZNLCeevbDgrDzryTjmByxjiT6xz/bNsXaaj2+rALWez4WN pweX25STJgKwGIgMxDuqt6TXvs1CjXV+EF5KXICf1sIYgPvu88lCdQrJjhjLde21oxmX 76Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ht6SLMPOXpO5uQjEKRBlkeAFxtNjyW1ofM/NJzMtXes=; b=57sNsjcuzVGJ4KLqR/KfcITgnmePtE1TdW02AqoscndZY42BF5OEwO2256EAvFsoRW sijjrvmdz3J0NY3TL3RCdNLO0GaGEgjAp6XwzckywhveFEtv6Iz0a7EQtYy+1Y2X8VJN cH4ClUqftHjP7auu//4GEkoRafooLfphBYlSbRuza7qucUxcEYsDNHtkQaxFp8AtdYn9 F7FGokvWTVn+TEFKXTBPJCnRZ13+aexZQ8Dw5FZ6B+yatsCJd3huY7CyesaDJpak3dHM x0PxWujIgY8n5nMLVSJCA4ijJQLILB+p3MZLdxW80XEFgXj5r/dr//Z2RixBsFewPOWQ yujg== X-Gm-Message-State: AFqh2kriXLvsmQq9oJ3PA09plgJGeJEws+SuvwqNnNGXH/ge8XuhfRtB ZkhKlWWYOk/Vh1Aq2yGn5745nCvB8jkh+zFG X-Google-Smtp-Source: AMrXdXueF3WB3UYX7Y62NPQUcdVtJfLtkKm2OG2DuDdwF6CXMCUWMJCTRgiP0i0grNrhL7mpvJ2Hhg== X-Received: by 2002:a05:600c:c10:b0:3da:f5e6:a320 with SMTP id fm16-20020a05600c0c1000b003daf5e6a320mr40747301wmb.22.1674750738488; Thu, 26 Jan 2023 08:32:18 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id ip6-20020a05600ca68600b003d04e4ed873sm5027940wmb.22.2023.01.26.08.32.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Jan 2023 08:32:18 -0800 (PST) Message-ID: Date: Thu, 26 Jan 2023 16:32:17 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v4 0/6] Add MSM8939 SoC support with two devices Content-Language: en-US To: Konrad Dybcio , Stephan Gerhold Cc: agross@kernel.org, andersson@kernel.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benl@squareup.com, shawn.guo@linaro.org, fabien.parent@linaro.org, leo.yan@linaro.org, dmitry.baryshkov@linaro.org References: <20230123023127.1186619-1-bryan.odonoghue@linaro.org> <42baa874-c926-9111-b0b3-2df2562d8de6@linaro.org> <87192098-b7f4-060f-9274-933d974c0a7d@linaro.org> From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/01/2023 15:34, Konrad Dybcio wrote: >>> To me this looks like a confirmation of what downstream does, that both >>> DSI byte clocks are actually sourced from the dsi0_phy and the PLL of >> A better name would have been dsiX_phy_pll_out_byteclk. > I believe Stephan is just confused what the clock source of both > pairs of GCC DSI clocks are, as you're suggesting that: > > phy_clock0 > |_gcc_clock0 > > and > > phy_clock0 (yes, zero) > |_gcc_clock1 > > whereas on most other SoCs the following is true: > > phy_clock0 > |_gcc_clock0 > > phy_clock1 > |_gcc_clock_1 > > Konrad The only input clock to GCC is XO or buffered CXO if routed through the PMIC. You can select via GCC::RCGR where dsiX_phy_pll_out_byteclk is *sourced* from XO, GPLL0_AUX or P_DSI0_PHYPLL_BYTE. So, obvs the byte clock can be any one of those input sources. But the question is, if you select dsi0_phy_pll_out_byteclk - what provides it ? Reviewing the LK bootloader for 3.18, it *looks* to me like the dsi0 pll is always switched on. The downstream kernel tree doesn't represent that. 0x01A9811C MDSS_DSI_0_CLK_CTRL Type: RW Reset State: 0x00000000 -> BIT(4) -> Turns on/off BYTECLK for the DSI. If set to 1, clock is ON. Hmm. I think actually it must be the case that DSI1 is a slave of DSI0. You can have both interfaces running or just DSI0 on its own. Hmm, I'll change it. --- bod