Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6505743rdb; Thu, 14 Dec 2023 23:41:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuWN6oiy1t5XoPatN8Attdptf+NdR7V/HkegDmDX3mUd85PS7mISLTYFS2sxecJNN8nBmE X-Received: by 2002:a17:906:b0c9:b0:a1f:6433:798c with SMTP id bk9-20020a170906b0c900b00a1f6433798cmr4716966ejb.106.1702626104241; Thu, 14 Dec 2023 23:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702626104; cv=none; d=google.com; s=arc-20160816; b=kj3r2TnZqJV1hzxiK3kznzFlTAGa31tfXdjWVnLsGGbSyf0f6Cjo4pFbvCtQn9j1BV U6FNl38Bv/4M3JkwhKLuWMKrvWJDgwjbZFN2X35Q0/Wl8XQ+1I7bVDD67GJeakvFjs7C q0AjBfEIIdAzNOLdUYbBOym7p1Jv2tPwnM4LOi8UV2V7uiY55+hF9CCNHPV7bxOzh/mC m41XZBtFMN0zNhoCuJmxVtxq6yC6eqFsfiA/uLqTW264FaRfWMQLZeo++ZWjOkO0UIRL 6HUZ4X4C7z5qRWB2qyhlagKyQRjPRXwdAdtJLdK3S4/HysKIHTkHksRyLHp3E4RSh5gE OZmQ== 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=agoRo2mbV6EcQfr+pR1Y40cC9u9vGwA9AsmLL7KV7sU=; fh=g/y3ArGfnQ7fAvlcaSk0pDMnT9qryZFG+KYTU/gcQTA=; b=ngrIuIawqtuPhmadJscVL3QCWwnf3SdrG9Qea1+GqW5BFsg0nVziXlZa4Tb4KBZ0wT EZ26CwW9WsZPSfsNIQ/kl/YdiEvY7ASq0f1WPcMyODjoz8v8hHmDtJ8CADxwKFY+gjaR jNRBHGVflDI8nmY79yFrYHbqOabaf7dXhVrwIMPJEOwO9e7F7O7fbX8zM43e7c2aSsL6 uCTq0IjOBS1bNbizRIyzLuKVJwZzqnKQZUki8jsnaTVinU2F66I9PT87IK+fLGniK4YF ays2soXi2xHfSNfkE1GxC2oJw18gHkYJqyda9gtCOXbhWYkFHYcDvevDMEH1iee3Hq6P Wacw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JV+IhtlY; spf=pass (google.com: domain of linux-kernel+bounces-540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s21-20020a170906bc5500b00a1c6e3e4554si7173584ejv.951.2023.12.14.23.41.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 23:41:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JV+IhtlY; spf=pass (google.com: domain of linux-kernel+bounces-540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-540-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 44E881F234C6 for ; Fri, 15 Dec 2023 07:41:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65ABC179A2; Fri, 15 Dec 2023 07:39:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JV+IhtlY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 246EE18039 for ; Fri, 15 Dec 2023 07:39: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-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-54c7744a93fso385143a12.2 for ; Thu, 14 Dec 2023 23:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702625984; x=1703230784; 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=agoRo2mbV6EcQfr+pR1Y40cC9u9vGwA9AsmLL7KV7sU=; b=JV+IhtlYSjAzrKEZOudcxHtgvN2XLoOSGwJAspC/J2PTeWFFdsFaKNpr5P9VKw124d 5JxRmJHAgLFSW0cI6xiuBSXy3tUvzIKngTWsxGZpDzcGv/IpLc9tShElaYSyS8eFYnIA YkEKqjNWHLf+/dFbtYSiIyDTR2i1y0APJI5+N8YqoB8Okg/XGc/jnNjuseKIQDjubNIe D9qdIQ+na7GOZNlvSanDq5M2vFyYQo6g/nZi3aqxQQ1w7Z+0eDosRmMCax2ICDYsGiEH xXNg/qngybTah0ZslGour/abBtxjE9u8wi+0djll5ulNFxQcaaDoSigisIaHsELJTH2b poMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702625984; x=1703230784; 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=agoRo2mbV6EcQfr+pR1Y40cC9u9vGwA9AsmLL7KV7sU=; b=CbYUO21cmwRH6UlOEpS+4U6Gwp5fBR7OcXMC/V2T2ZxnuFofMY92eo/ei3jkS2tPYk ENI32pZGAne0ENsIv8rGzmGQ2h5IyJ/MWQM081JAKZ3qADlf8iSoItBwP8yxQ6G2LIsM bhJUCcUfAblLWcqbBJdVHnAfhQ58mS52eEiq0cnYrHyfHLwus+Z5n2jFbm1toW1QRC37 v2T9fON0nDOoKjMa811WWmPMqaiZo9mPI5I0rPFUF3DSAgVLCaIlFSdfXzKuTA3gdTG3 O/XzWANveYcynbLcjppF+H6HCo1nflMcHWB/Ugtu6/TeDFfUVljGQfPNHp71Ukymbfb7 n2lg== X-Gm-Message-State: AOJu0YwPIyVR5bfZyrIzlkFJAZucSP2ALFgUd/dCCHFzld1ZEQlIxdHe johUhcCvmEutz5iT/4WxXwIE4w== X-Received: by 2002:a17:906:b0c9:b0:a1f:6433:798c with SMTP id bk9-20020a170906b0c900b00a1f6433798cmr4715879ejb.106.1702625984288; Thu, 14 Dec 2023 23:39:44 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id ub27-20020a170907c81b00b00a1df4387f16sm10576725ejc.95.2023.12.14.23.39.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 23:39:43 -0800 (PST) Message-ID: <52400d96-6ce0-47af-8f25-0b95f9aa9bec@linaro.org> Date: Fri, 15 Dec 2023 08:39:41 +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 v7 14/14] dt-bindings: net: ar803x: add qca8084 PHY propetry Content-Language: en-US To: Luo Jie , andrew@lunn.ch, 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, hkallweit1@gmail.com, linux@armlinux.org.uk, corbet@lwn.net, p.zabel@pengutronix.de, f.fainelli@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20231214094813.24690-1-quic_luoj@quicinc.com> <20231214094813.24690-15-quic_luoj@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/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSE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L9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231214094813.24690-15-quic_luoj@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/12/2023 10:48, Luo Jie wrote: > The following properties are added for qca8084 PHY. > > 1. add the compatible string "ethernet-phy-id004d.d180" since > the PHY device is not accessible during MDIO bus register. > 2. add property "qcom,phy-addr-fixup" for customizing MDIO address. Why? Commit msg must explain why, not "what". > 3. add property "qcom,phy-work-mode" for specifying qca8084 PHY > work mode. Why? > 4. add the initial clocks and resets. Why only initial, not final? > > Signed-off-by: Luo Jie > --- > .../devicetree/bindings/net/qca,ar803x.yaml | 158 +++++++++++++++++- > 1 file changed, 155 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/qca,ar803x.yaml b/Documentation/devicetree/bindings/net/qca,ar803x.yaml > index 3acd09f0da86..febff039a44f 100644 > --- a/Documentation/devicetree/bindings/net/qca,ar803x.yaml > +++ b/Documentation/devicetree/bindings/net/qca,ar803x.yaml > @@ -14,9 +14,6 @@ maintainers: > description: | > Bindings for Qualcomm Atheros AR803x PHYs > > -allOf: > - - $ref: ethernet-phy.yaml# > - > properties: > qca,clk-out-frequency: > description: Clock output frequency in Hertz. > @@ -85,6 +82,161 @@ properties: > $ref: /schemas/regulator/regulator.yaml > unevaluatedProperties: false > > + qcom,phy-addr-fixup: > + $ref: /schemas/types.yaml#/definitions/uint32-array Why no constraints? > + description: > + MDIO address for 4 PHY devices and 3 PCS devices Why do you need to change MMIO address? > + > + qcom,phy-work-mode: > + description: PHY device work mode. Your description copies property name. Tell us something we don't know... like the meaning of the vcalues. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1, 2, 3] > + > + clocks: > + items: > + - description: APB bridge clock > + - description: AHB clock > + - description: Security control clock > + - description: TLMM clock > + - description: TLMM AHB clock > + - description: CNOC AHB clock > + - description: MDIO AHB clock > + - description: MDIO master AHB clock > + - description: PCS0 system clock > + - description: PCS1 system clock > + - description: EPHY0 system clock > + - description: EPHY1 system clock > + - description: EPHY2 system clock > + - description: EPHY3 system clock > + description: PHY initial common clock configs > + > + clock-names: > + items: > + - const: apb_bridge > + - const: ahb > + - const: sec_ctrl_ahb > + - const: tlmm > + - const: tlmm_ahb > + - const: cnoc_ahb > + - const: mdio_ahb > + - const: mdio_master_ahb > + - const: srds0_sys > + - const: srds1_sys > + - const: gephy0_sys > + - const: gephy1_sys > + - const: gephy2_sys > + - const: gephy3_sys > + > + resets: > + items: > + - description: PCS0 system reset > + - description: PCS1 system reset > + - description: EPHY0 system reset > + - description: EPHY1 system reset > + - description: EPHY2 system reset > + - description: EPHY3 system reset > + - description: EPHY0 software reset > + - description: EPHY1 software reset > + - description: EPHY2 software reset > + - description: EPHY3 software reset > + - description: Ethernet DSP reset > + description: PHY initial common reset configs > + > + reset-names: > + items: > + - const: srds0_sys > + - const: srds1_sys > + - const: gephy0_sys > + - const: gephy1_sys > + - const: gephy2_sys > + - const: gephy3_sys > + - const: gephy0_soft > + - const: gephy1_soft > + - const: gephy2_soft > + - const: gephy3_soft > + - const: gephy_dsp > + > +allOf: > + - $ref: ethernet-phy.yaml# > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - ethernet-phy-id004d.d180 > + then: > + properties: > + clocks: > + items: > + - description: APB bridge clock > + - description: AHB clock > + - description: Security control clock > + - description: TLMM clock > + - description: TLMM AHB clock > + - description: CNOC AHB clock > + - description: MDIO AHB clock > + - description: MDIO master AHB clock > + - description: PCS0 system clock > + - description: PCS1 system clock > + - description: EPHY0 system clock > + - description: EPHY1 system clock > + - description: EPHY2 system clock > + - description: EPHY3 system clock > + clock-names: > + items: > + - const: apb_bridge > + - const: ahb > + - const: sec_ctrl_ahb > + - const: tlmm > + - const: tlmm_ahb > + - const: cnoc_ahb > + - const: mdio_ahb > + - const: mdio_master_ahb > + - const: srds0_sys > + - const: srds1_sys > + - const: gephy0_sys > + - const: gephy1_sys > + - const: gephy2_sys > + - const: gephy3_sys ?!? Why do you duplicate properties? > + resets: > + items: > + - description: PCS0 system reset > + - description: PCS1 system reset > + - description: EPHY0 system reset > + - description: EPHY1 system reset > + - description: EPHY2 system reset > + - description: EPHY3 system reset > + - description: EPHY0 software reset > + - description: EPHY1 software reset > + - description: EPHY2 software reset > + - description: EPHY3 software reset > + - description: Ethernet DSP reset > + reset-names: > + items: > + - const: srds0_sys > + - const: srds1_sys > + - const: gephy0_sys > + - const: gephy1_sys > + - const: gephy2_sys > + - const: gephy3_sys > + - const: gephy0_soft > + - const: gephy1_soft > + - const: gephy2_soft > + - const: gephy3_soft > + - const: gephy_dsp > + required: > + - qcom,phy-addr-fixup > + - qcom,phy-work-mode > + - clocks > + - clock-names > + - resets > + - reset-names > + else: > + properties: > + qcom,phy-addr-fixup: false > + qcom,phy-work-mode: false And what about clcoks and resets for other variants? Your patch now defined them for all variants without any explanation in commit msg. > + > unevaluatedProperties: false > > examples: Best regards, Krzysztof