Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6579092rdb; Fri, 15 Dec 2023 02:38:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEa3zIuvmLuyPuHVmTeNQMFkRT1ht0aqhs9lESXYC+lpqLPWFx5nYAoznQD+8Z3eyf+DzPC X-Received: by 2002:a05:6a20:6a1f:b0:190:4b34:577d with SMTP id p31-20020a056a206a1f00b001904b34577dmr15064221pzk.88.1702636682804; Fri, 15 Dec 2023 02:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702636682; cv=none; d=google.com; s=arc-20160816; b=JlPdjrGyekEIEpJdGcQ6Ma+izsEBx+sH5vuQ+tPg5rILRBosNdpKhJm+NVaKfRmMEB xX9SfEFMWjUda2+FKIElmTzdbt/DtCxhK6x2JUg0qSji03c4jbrXMv9oHopEFo5mMfvl YCyELnZCIRU+F4J9QCraXL1luCOONqm42r7bPHcDlSIW7OhpXnf92dN+nsvvvLS5KyUI UNDemNkcEForGq2cudxANcLhe7URlRVOeXn/lXK8xia0BtvGBKgPldmiGGKWGU1S6Zck MTElvCzo5kAfMsF6Iql+yJug1rleHcSmR7qCh5BCqLnhkuF5wIsc55hO2woILANk0o4D GQag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=FOEqVWJVpSy9N2ArSwGmVo1SJSdM7tswNoDNHh6RJ8E=; fh=1ESWmRgTa+oxviSCwtc+fpMvIrgz35zLQc209DrumyU=; b=eOYHdJA7NwylNDwK0bc8dJrU4DuhKcgRC5Q0eE0wTd8IBL7RTqvKf08EK+K73tW0Pq 3R7bFyBSGaiG5gC0TbpSfyPkBisi86idxdsQ675oI6FnhgtViH96oOxAM+jcg2DRLZRT SvSx6zBSAohHUUQUPUKzxiZeO2ddyfZk9rA1eH3iY0zDTzEv1+4x2eb/oH48kv0kvN1i M6gBA9ROJ4KyEy4DQbBSQ8onbUPAN45kMdOnC8VdQJB380g87OJ2RYJ+FZCHAUL2DRE3 T7cjPP+TargRBLvVNZm5/jcqt8YEGjzSmTErKor2sQQEWhsxyIjp+3ACKJ3J3PYTkSPM UbYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qAtWmTdo; spf=pass (google.com: domain of linux-kernel+bounces-770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id oa4-20020a17090b1bc400b00286f8bfe04bsi13055697pjb.172.2023.12.15.02.38.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:38:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qAtWmTdo; spf=pass (google.com: domain of linux-kernel+bounces-770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-770-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 940DBB21F29 for ; Fri, 15 Dec 2023 10:38:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB1E01A71F; Fri, 15 Dec 2023 10:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qAtWmTdo" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 B0FB7208BD for ; Fri, 15 Dec 2023 10:37:45 +0000 (UTC) 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-ej1-f50.google.com with SMTP id a640c23a62f3a-9fa45e75ed9so55889766b.1 for ; Fri, 15 Dec 2023 02:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702636664; x=1703241464; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FOEqVWJVpSy9N2ArSwGmVo1SJSdM7tswNoDNHh6RJ8E=; b=qAtWmTdo12DJS4qEMn+74eaNaFDJKqU2+ykHGni+7RTHrsYv4OPAE5DhKTJoMkXEKi /C16RBIESfK38x5jMF2sY7blOgX/D6NVTezgYy40er6fyxY564rkyoTJXyThCzifxmpS JViVIZxS5S0M3rTYAF0t2rUmbuH9L8mmKeP6SHTQ9gCerdx5GZJDOHVCUMBKng5m0wT3 chqIvnOc3HNk/44q2+NaVPojfLR3LJdMWpKnT54jDTRUHd7uiZ9F6Oo7b8Yu66bcEv7y OkoXX6piCnBF/KFXCXdLaMWuTmXbQ/wqGAEiGKEN5yY1sK/rnztIdI06ilj2cRrdyE5L h25w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702636664; x=1703241464; h=content-transfer-encoding:in-reply-to:autocrypt: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=FOEqVWJVpSy9N2ArSwGmVo1SJSdM7tswNoDNHh6RJ8E=; b=ltaB7GSIVYezExpIxWc2ntpRykrLULQeLY6UWuOlIvF/jNdYPqVdX5EvJxMThbZy4Q nxo8vxFzoQ/no8TYdI0WuE5fJtkofkHJdherZ+Cmw3ioUXCxw+gsQzY5qxelk5oighUp SL+ZM2adp0gNfVS2UBB6wuj8ULY9b/G6pm4B5Oa2pnG6b8WsunsKQ89HnReADsrq5Z2F fWIeOUZdLTKYNXAJZmpIyrFh1r3JTqibH+jtnNnI8H1KR1OcE9I2AQDXPJQ4N9Nv01fR Ilms/2Tk0le+8+6pVwe3VFSkb+FNV0n/rzi5UqPl+febgRArqoc+3qizTxncE5fYQ3Jv IrdQ== X-Gm-Message-State: AOJu0YwBDWUpbbqWc4FWgh5wFMnTITGjgIzkOUiKAlz3S68rLx4NW39R j8NxkK/evVgqzHv9t2UgYIUfWw== X-Received: by 2002:a17:907:96a7:b0:a02:9700:bf53 with SMTP id hd39-20020a17090796a700b00a029700bf53mr6812764ejc.46.1702636664004; Fri, 15 Dec 2023 02:37:44 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id tj7-20020a170907c24700b00a1c522990ccsm10584022ejc.85.2023.12.15.02.37.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 02:37:43 -0800 (PST) Message-ID: <2e77e3b1-00b6-46b9-bfed-7cae3ffa15e9@linaro.org> Date: Fri, 15 Dec 2023 11:37:40 +0100 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 5/5] dt-bindings: net: ipq4019-mdio: Document ipq5332 platform Content-Language: en-US To: Jie Luo , Conor Dooley Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, robert.marko@sartura.hr, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com References: <20231212115151.20016-1-quic_luoj@quicinc.com> <20231212115151.20016-6-quic_luoj@quicinc.com> <20231212-caution-improvise-ed3cc6a1d305@spud> <11ffc985-3f2b-46b9-ae0b-911f7abe98d1@quicinc.com> <20231214-outshine-shush-8a11c68607cd@spud> <26c8b0b1-5ea9-45cc-adf3-0d0b03a1284d@linaro.org> <4b9c56b8-3b29-4861-a3d5-2da26fbc14b4@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeH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yyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <4b9c56b8-3b29-4861-a3d5-2da26fbc14b4@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/12/2023 11:33, Jie Luo wrote: >>>>>>>>> + cmn-reference-clock: >>>>>>>>> + oneOf: >>>>>>>>> + - items: >>>>>>>>> + - enum: >>>>>>>>> + - 0 # CMN PLL reference internal 48MHZ >>>>>>>>> + - 1 # CMN PLL reference external 25MHZ >>>>>>>>> + - 2 # CMN PLL reference external 31250KHZ >>>>>>>>> + - 3 # CMN PLL reference external 40MHZ >>>>>>>>> + - 4 # CMN PLL reference external 48MHZ >>>>>>>>> + - 5 # CMN PLL reference external 50MHZ >>>>>>>>> + - 6 # CMN PLL reference internal 96MHZ >>>>>>>> >>>>>>>> Why is this not represented by an element of the clocks property? >>>>>>> >>>>>>> This property is for the reference clock source selection of CMN PLL, >>>>>>> CMN PLL generates the different clock rates for the different Ethernet >>>>>>> blocks, this CMN PLL configuration is not located in the GCC, so the >>>>>>> clock framework can't be used, which is the general hardware register >>>>>>> instead of RCG register for GCC. >>>>>> >>>>>> I don't see how the clock being provided by the "GCC" (whatever that is) >>>>>> or by some other clock controller or fixed clock makes a difference. >>>>>> Why can't the other clock provider be represented in the devicetree? >>>>>> >>>>> >>>>> cmn-reference-clock is for selecting the reference clock source for the >>>>> whole Ethernet block, which is just the standalone configure register. >>>> >>>> Sure, you are aware though that all clocks are just configure registers? >>>> >>>> Which clocks are these mentioned in the property? From where do they come? >>>> >>>> Anyway, property is in existing form is not correct - this is not a >>>> generic property. >>>> >>> >>> This property cmn-reference-clock is just the hardware register >>> configuration, since the different IPQ platform needs to select >>> the different reference clock source for the CMN PLL block that >>> provides the various clock outputs to the all kinds of Ethernet >>> devices, which is not from GCC provider. >> >> AGAIN: where do the clocks come from? Which device generates them? > > Oh, OK, the reference clock is from wifi that provides 48MHZ to > Ethernet block. Then WiFi should be providing you the clock and this device should be clock consumer, right? Best regards, Krzysztof