Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3220735rdb; Thu, 16 Nov 2023 03:56:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJnR7EQBEF7f+61hi1zT1737NAs4YuYV9p0GkLiXEGokVCXbRAVexBnIiSdF4RXo6C1Isz X-Received: by 2002:a05:6a20:3ca3:b0:187:eb60:d6ef with SMTP id b35-20020a056a203ca300b00187eb60d6efmr19891pzj.1.1700135814522; Thu, 16 Nov 2023 03:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700135814; cv=none; d=google.com; s=arc-20160816; b=lKyUWSBN9fVoJRyddC9t2EHRgA+CdTu5mB0qkiRJfRdq5m0mEfbPQQoO6v6q2gaBVt P/q4E9kyCdBqMJSGWiRFa/rPuXNDgwn8Pr1t40c/rFJRoJhRgDpq/LwYoFFlzPagvj6i lMP/qr7rI67Lhw02hxYRw9qsfFJyAkL4g4jKk6BQ7lZe45i/t5BDPTylVVaZo1F74Zci BpWum4sCYpnsqlCGFtMUHu/GbPjH3UHxUPoKpFrJj5Uhfs3YSvJlZgfHaZLHb66YA0zu G4QC5AKL9LxtqlCSFjdYB+9U105hDpehoHiFJjgfBHETYfugn6f1h7VkLpu8vifWs1Li oM3w== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=6sduR18SAGL/LrSQHVtqPdn++QC3UjL5bC7BaWYG+KE=; fh=9F4LjUjshHDIw37o7ZvDgXk7FefbYwg53z5FHaRIjFk=; b=rvv1vS3YehzreX+Ios+Q0qMBWdpWYTZWpUc+QxmqRxGwsqTwdP/h7w+cFlaujd7f8q NisbGHwEWd0lcRt8uCfVfhKddsLLo1LKWY40XVlNA7flGbEIdH+hBoawJmX7G5HFIyej iIYxjhkH+mqbCNqHfnTYh64OkM9kzsQRtCPVsiLcUOZbwXs6sHKOWpgBYn8rnPYV+x31 Kg8QaziUAmnnVv/WH/3q1O7dlwTULNYOf5GOiXmYsgmgLiKXd1TDyIjWvrbgpnSgm06d A5er2XAtrDXWBTCeqBJgflPNCYXCBZL9vtLJUoGJ6jbe6H1skgNmEmO5hB9bwqi9AeaJ yyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fm93XQ36; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l18-20020a170903121200b001c6189eaadesi12716152plh.132.2023.11.16.03.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 03:56:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fm93XQ36; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 08A2C817906D; Thu, 16 Nov 2023 03:56:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345121AbjKPL4m (ORCPT + 99 others); Thu, 16 Nov 2023 06:56:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjKPL4l (ORCPT ); Thu, 16 Nov 2023 06:56:41 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D05CE for ; Thu, 16 Nov 2023 03:56:36 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-7789aed0e46so40644285a.0 for ; Thu, 16 Nov 2023 03:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700135795; x=1700740595; 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=6sduR18SAGL/LrSQHVtqPdn++QC3UjL5bC7BaWYG+KE=; b=Fm93XQ361inLUqfBuF59B5NVoT7vQ3nd9ddJpzVFKHH2mZIDomKs3UPbyW/1x884LM thx0qBGleO+OMdocW01XCPl1Mtubem1lc6xE/SBMbMslx9GqHmr5cCE+uXbRJSkiTn5w tk9D1w+15aNfbCTp0itMJulDDBbM7VAUWL3/d0PDbxzLAX6tasH8+qSd0gMNbRKYhdyf f+hMK1WedRfZsFy3HdIlxXxKBdWLjUiS+pXEsAmdQ6D6v9tQUH8aoKJUMr77y34PUvtd sfGUjKFwBlbeD3/k5E9rXANxSVyM1k+nPQDOIoGgVMsu7vfmZLDZ7VRvK8b1eiD1+m6O 8V8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700135795; x=1700740595; 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=6sduR18SAGL/LrSQHVtqPdn++QC3UjL5bC7BaWYG+KE=; b=v6Zt1ALZ94Z3ktCdUAc6vspLg8TslbRYjmuFeDgrxRtsF8ctGfpAO8sOgetLt+VYZc MUrTLiA5VFslbv0RoWSyitYffYmr57xlcdk1vcZ56Vsx74JbzKH4xF78fNBgZ+Go3eY+ F0r0W7T9haacohTww9tjind2GOU2HFk504AlJmodBBQiDgxWt6u22tlojwHWMk2GnhkS cSZ78omTEcDIP/jZO0oZxbXFxECEjGNPGd0yOD4d0WvfXBbR4hxbtMCrWrsC5sPUL3FC MFumCKVoDymh2JSbtrSIfl/AU0dpcnSap15kupR6TaW6cuIZ6IkNIyCkib4OgukVaWph OjlA== X-Gm-Message-State: AOJu0YxZ3ta0UjbLSkK3jz2l4lJPLno/7vvY5wTSjJbmhknZCpHI0PsA 0nCGv6qzq7Iuu6ExEd1MNJ0SNQ== X-Received: by 2002:ad4:4089:0:b0:675:b904:9bc1 with SMTP id l9-20020ad44089000000b00675b9049bc1mr8608767qvp.49.1700135795582; Thu, 16 Nov 2023 03:56:35 -0800 (PST) Received: from [192.168.212.13] ([12.191.197.195]) by smtp.gmail.com with ESMTPSA id l15-20020ad4408f000000b00670867d7bdfsm1315936qvp.122.2023.11.16.03.56.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Nov 2023 03:56:35 -0800 (PST) Message-ID: <834cbb58-3a88-4ba6-8db6-10440a4d0893@linaro.org> Date: Thu, 16 Nov 2023 12:56:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 9/9] dt-bindings: net: ipq4019-mdio: Document ipq5332 platform Content-Language: en-US To: Luo Jie , 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: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-10-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/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuD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115032515.4249-10-quic_luoj@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 03:56:52 -0800 (PST) On 15/11/2023 04:25, Luo Jie wrote: > On platform IPQ5332, the MDIO address of qca8084 can be programed > when the device tree property "fixup" defined, the clock sequence > needs to be completed before the PHY probeable. > > Signed-off-by: Luo Jie > --- > .../bindings/net/qcom,ipq4019-mdio.yaml | 138 +++++++++++++++++- > 1 file changed, 130 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml > index 3407e909e8a7..7ff92be14ee1 100644 > --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml > +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml > @@ -15,11 +15,13 @@ properties: > - enum: > - qcom,ipq4019-mdio > - qcom,ipq5018-mdio > + - qcom,ipq5332-mdio > > - items: > - enum: > - qcom,ipq6018-mdio > - qcom,ipq8074-mdio > + - qcom,ipq9574-mdio > - const: qcom,ipq4019-mdio > > "#address-cells": > @@ -30,19 +32,47 @@ properties: > > reg: > minItems: 1 > - maxItems: 2 > + maxItems: 5 > description: > - the first Address and length of the register set for the MDIO controller. > - the second Address and length of the register for ethernet LDO, this second > - address range is only required by the platform IPQ50xx. > + the first Address and length of the register set for the MDIO controller, > + the optional second, third and fourth address and length of the register > + for ethernet LDO, these three address range are required by the platform > + IPQ50xx/IPQ5332, the last address and length is for the CMN clock to > + select the reference clock. > + > + reg-names: > + minItems: 1 > + maxItems: 5 You must describe the items and constrain them per each variant. > > clocks: > - items: > - - description: MDIO clock source frequency fixed to 100MHZ > + minItems: 1 > + maxItems: 5 > + description: Doesn't this make all other variants with incorrect constraints? > + MDIO system clock frequency fixed to 100MHZ, and the GCC uniphy > + clocks enabled for resetting ethernet PHY. > > clock-names: > - items: > - - const: gcc_mdio_ahb_clk > + minItems: 1 > + maxItems: 5 > + > + phy-reset-gpio: No, for multiple reasons. It's gpios first of all. Where do you see such property? Where is the existing definition? Then it is "reset-gpios" if this is MDIO. Why do you put phy properties in MDIO? > + minItems: 1 > + maxItems: 3 > + description: > + GPIO used to reset the PHY, each GPIO is for resetting the connected > + ethernet PHY device. > + > + phyaddr-fixup: > + description: Register address for programing MDIO address of PHY devices You did not test code which you sent. > + > + pcsaddr-fixup: > + description: Register address for programing MDIO address of PCS devices > + > + mdio-clk-fixup: > + description: The initialization clocks to be configured > + > + fixup: > + description: The MDIO address of PHY/PCS device to be programed Please do not send untested code. ... > + > + qca8kphy2: ethernet-phy@3 { > + reg = <3>; > + fixup; > + }; > + > + qca8kphy3: ethernet-phy@4 { > + reg = <4>; > + fixup; > + }; > + > + qca8kpcs0: pcsphy0@5 { > + compatible = "qcom,qca8k_pcs"; > + reg = <5>; > + fixup; > + }; Fix indentation. Best regards, Krzysztof