Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2787295rdb; Tue, 26 Dec 2023 05:18:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGPQBOdGGhP5XcLcF/djlJoF6kNpKc0cCoJoC4fIU6avVQHfC4mWHxpIPbPJ4kpgmv3FQt X-Received: by 2002:a17:902:aa0a:b0:1d4:914:b38c with SMTP id be10-20020a170902aa0a00b001d40914b38cmr2779441plb.9.1703596738482; Tue, 26 Dec 2023 05:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703596738; cv=none; d=google.com; s=arc-20160816; b=hAWLT699U4A9GGoKX7ajtR3BFggvvCy/aqKnUJE6tTzHYLiZRAvpA1CX0ZuUnKPllL v7HJl5sl2fDLFmZy7Wwoc0mCC9EUDksbkhzgmvW8aN+MLgX2iIaeCUZQc/FDnC+cdV6b 5+AgN0RZqf7/pwiGyblGpdL6RXb0s8Qp177YevNHmudHjK2Ox6PcKuvNl2O7NtNAfhTA Dk2SNVZlKqqu3CBAWlSFO9mTcqirE4IEq9k/RNfg55/fnsXZpuoDUgtDSO/aqJCPDvAZ B9nZEoYUzgowagpL9UJeJA3sv2LbdPj0bxWx7dAviewvvz9qDRuHoCDvG1+byJ8sdp60 pbGw== 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=0hWC4ky6Oznmoj/OdV9qVAf2TSAyAo5GtDnUFoSENCY=; fh=VaaSHlkIP9RDab/x2iGLe9CnZ6CZPM3YoyvBno5yK28=; b=aTaId64Dvp7zLmP7uVkOK9/FuYFwj7wCDNRzqByhPK6Q3UIBTR8CZ6mOeDgwH+S4UL 9LSNm3P9lWFY4nQtP7Nzzz9GTThBQKBnaxQpqLtqK4irvqvMBvPLh72t90v6suZ3VhDJ ecP2BUEewwwm6Qq6EBIMd5ZqkkGfovcJCgooMAhOv7ZkGwzkRQdnPd2CEvSO/2KP1pAn syuIVp2EbdVVYS04fZvmDdXPTt3CQTfgjhxbO/azeFfwNC5cYdNFuWoSE+0viUh4jgE/ RzDKM21HKKHIHj9/OIV7mZp2W4RTpmjSufWnndXuAfWgRO9Ct440cnP7YVrti969hX6v XE/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=twAAaFgJ; spf=pass (google.com: domain of linux-kernel+bounces-11516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g2-20020a1709026b4200b001d45e24b910si2779999plt.358.2023.12.26.05.18.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 05:18:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=twAAaFgJ; spf=pass (google.com: domain of linux-kernel+bounces-11516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11516-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 22008282396 for ; Tue, 26 Dec 2023 13:18:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF31B4F216; Tue, 26 Dec 2023 13:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="twAAaFgJ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 807A64F201 for ; Tue, 26 Dec 2023 13:18:23 +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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-54c70c70952so5047999a12.3 for ; Tue, 26 Dec 2023 05:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703596702; x=1704201502; 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=0hWC4ky6Oznmoj/OdV9qVAf2TSAyAo5GtDnUFoSENCY=; b=twAAaFgJ7qsEF8aWf7yDFKdWyDZVYnakR1TW1WfyChSNCjecJORjDPx4OA4O8Cqaas Ax8oPswfYglkGbAmtqYRBlOMEdXSRJKc9fWrXDuariYcRAiN5kr/N26+0YVCQI41RW0z cWJALQ3uK/5AON2U1l128ydOe3ZMzq81XMn2LAoU69PHQvISA3t4q3vDUTYNKJ4+llOO 3iYpl8k5PZ/vxVdLcKKnu/NL3C+RLNr9oEAHvc2qYOR4puVMQHWYxHzlif4WZrjZxKSD DDPHkWjmQ+SPvr2+0BeFZwTKN12o1wtKyfxeXhzsXvSvOgkspLYtb+6vV6142lfZ5Yp1 BvoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703596702; x=1704201502; 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=0hWC4ky6Oznmoj/OdV9qVAf2TSAyAo5GtDnUFoSENCY=; b=C3jE9/NodgDiYPJ7Zqo/J8aZdlOBQtPGf5qJmyIWxbxfQp7NFa2JrlyNrz4fp8ss+x RFJkThmn2tntL91mIGkdzJGJgA5QQlFasRkrz3WwWwQl6koEqb0QGwBBm2AdhwsXcQhk 8Fteic/EUIRgx5/UX9pYyuXHHwD498xxnLTYuRMe1/bSbWGCuwVP4Ms8n/guUYF63I5E Es9Ac2ICIrWgXuGhrTQIwHBsGmQukNbUiPym4/lH+Q01PpQ7hkzr883RtV2DQ5Y/5vPw DVmuYENIa9CTcRWJPkldV+tjOB9rp0zoYqZwg+z4/FvPM1ViiwhhzYbZglm2bYtA+j2j jHMw== X-Gm-Message-State: AOJu0Yzuld9UPJVdNDt9AWsQG1LESLEwyXtDRf3PPAy/2f28DaFEDmIR 7QhO0Bf/e7Z76oI2gzN8QPgtTyELpH+6yw== X-Received: by 2002:a50:d507:0:b0:553:3b48:473a with SMTP id u7-20020a50d507000000b005533b48473amr3218243edi.109.1703596701646; Tue, 26 Dec 2023 05:18:21 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id el13-20020a056402360d00b00552d03a17acsm7331459edb.61.2023.12.26.05.18.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Dec 2023 05:18:21 -0800 (PST) Message-ID: <28c8b31c-8dcb-4a19-9084-22c77a74b9a1@linaro.org> Date: Tue, 26 Dec 2023 14:18:19 +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 v4 5/5] dt-bindings: net: ipq4019-mdio: Document ipq5332 platform Content-Language: en-US To: Jie Luo , 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 Cc: linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com References: <20231225084424.30986-1-quic_luoj@quicinc.com> <20231225084424.30986-6-quic_luoj@quicinc.com> <58dde1a7-ed4a-442c-bb5c-c3f6d926fb7e@linaro.org> <06ddbae8-1502-41fb-8cf8-9a3390dad557@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+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2X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6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <06ddbae8-1502-41fb-8cf8-9a3390dad557@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/12/2023 14:06, Jie Luo wrote: > >> >> >>> >>>> >>>>> + the platform IPQ50xx/IPQ5332. >>>> >>>> So these are valid for all platforms or not? Looks not, but nothing >>>> narrows the list for other boards. >>> >>> i add the limitation on the reg usage for the ipq5332 platform on the >>> following part "if condition" of this patch, i will update the patch >>> to narrow down for the other compatibles. >>> >>>> >>>> Anyway, why do you add entries in the middle? LDO was the second, so it >>>> cannot be now fifth. >>> >>> As Rob's suggestion, i move the cmn_blk to second location for >>> simplifying the limitation description, i checked the upstream dts code, >>> the LDO is not used currently, so we can move cmn_blk to the second >>> location here. >> >> I cannot find his suggestion in the previous thread. Where did he >> propose it? > > Rob suggested this on the V2 as below. > " > Perhaps cmn_blk should come 2nd, so all the variants have the same entry > indices. Then you can move this to the top level and just say 'minItems: > 4' here. Wasn't this for new devices? What about all existing which have LDO as the second entry? >>>>> + qcom,cmn-ref-clock-frequency: >>>>> + $ref: /schemas/types.yaml#/definitions/uint32 >>>>> + enum: >>>>> + - 25000000 >>>>> + - 31250000 >>>>> + - 40000000 >>>>> + - 48000000 >>>>> + - 50000000 >>>>> + - 96000000 >>>>> + default: 48000000 >>>>> + description: | >>>>> + The reference clock source of CMN PLL block is selectable, the >>>>> + reference clock source can be from wifi module or the external >>>>> + xtal, the reference clock frequency 48MHZ can be from internal >>>>> + wifi or the external xtal, if absent, the internal 48MHZ is used, >>>>> + if the 48MHZ is specified, which means the external 48Mhz is used. >>>> >>>> This does not resolve mine and Conor's concerns from previous version. >>>> External clocks are defined as clock inputs. >>> >>> No matter the external or internal reference clock, they are the clock >>> source selection for CMN, there are only 48MHZ can be external or >>> internal, other clocks have the different clock rate, so the internal >>> 48MHZ reference clock can be implied when the >>> "qcom,cmn-ref-clock-frequency" is not defined, which is suggested by >>> Conor in the previous >>> comments. >> >> I don't think he proposed it, but maybe I missed some message (care to >> point me to his message where he agreed on usage of >> qcom,cmn-ref-clock-frequency?). I am pretty sure we both stayed on the >> same page, that the presence of clocks defines choice of internal clock. >> This property should go away. > > Sorry for this confusion. > Rob said the internal reference source can be decided by the absence of > the property combined with compatible string, because i said the So all your three DT maintainers agree that lack of property for choosing clock, defines the usage of interrupt source. Now we had huge amount of arguments that you do not represent properly the clock relationships. Still. > internal 96MHZ is used on ipq5018 currently in the previous message. > > per double checked the current IPQ platforms, the internal 96MHZ is also > possible on ipq9574, and the reference clock source should be kept as > configurable instead of limited by the compatible string, maybe the > different reference clock source is acquired in the future, even > currently it is not used on the special platform for now. > > so i update the solution with a little bit of changes. You still do not want to implement our suggestions and I don't understand your arguments. Nothing in above paragraph explains me why you cannot use clock provider/consumer relationships. Best regards, Krzysztof