Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3429814rdb; Thu, 16 Nov 2023 09:13:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjvtvd8aAFEL6n6wPfGTzMC0LEmBgNk76NdxsKTF0+s94wWwt3bx+3mtHLxbExd9SCTwwT X-Received: by 2002:a17:902:e88e:b0:1cc:5505:fff3 with SMTP id w14-20020a170902e88e00b001cc5505fff3mr12193570plg.30.1700154788799; Thu, 16 Nov 2023 09:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700154788; cv=none; d=google.com; s=arc-20160816; b=dxpH1B06UyuZ/ZJE9DquOsOczaN8/VI2pvmDSBaQ5dBwxxPs4uOfPk/ZTugQYbbJmz +Z4UuSkNuZvq7PIEsV5ZmNDJLU148lzILZNYS/7iGXt3AJtXXFMF2UTeljELN4Z8Yy08 IySZynqefO6CKpCoAlZATuE4qLhfrw6itujdO4QbgeoFwSGec/09CKXWZgyyCPTqZOI6 vRu/qvjcHl3IU5gxMLE9CvoBdB3/8T/HoEi6djrVmtjWM9N9YOddKvGWUEmKYnv24GyD qZ1PfwKmCEPcXqJ2WE6t8HGAFILU1e65fcLQW5KsVgXc5UcT6joQ36068JOKnw+X20lX IhXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AR8tidW07BWvnPd6hH5WrFB2sCe8sD6k6E4/XZ64rcg=; fh=Dz4XB9vAk6fRDFz98grJ/EA/Tj8GsQegDbU/hWBWYzo=; b=DhzA8Ark254Hc6oTl2a3dJzdmb5f3+o9forMQEX/0ipZDFKV3YkZu/Hl6f7AQg9igv xVUWpxkRR8Mv5mygpDnUK+3Bf1FcTo+aY+SqYZGKYM/Xz94ChZA0oiOT0r1B08g/2yza Q88qKng4W7toRGGOxn8lrSsLdYnPpMS+E7hCMecDldxuVD2IIFKqw4e84EyWdAIzXOEj aYaJlbNgFC4i6hcd2X6Jv/b6TZKuiunQRPF4VX52F/dCmAFG9Q8K+65Db79qELupSPMN lLcvtsVCRKxzPuZmKO2YZ6TrkfucxlzwfXJvsdj+xOU5lGO5XSBt+RmcVkIbvcSUagkR 3iZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=fcIY5Yqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id jk22-20020a170903331600b001bf0b29d935si12304663plb.34.2023.11.16.09.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 09:13:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=fcIY5Yqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 21254810499D; Thu, 16 Nov 2023 09:13:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231135AbjKPRM6 (ORCPT + 99 others); Thu, 16 Nov 2023 12:12:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjKPRM5 (ORCPT ); Thu, 16 Nov 2023 12:12:57 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82600101; Thu, 16 Nov 2023 09:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=AR8tidW07BWvnPd6hH5WrFB2sCe8sD6k6E4/XZ64rcg=; b=fcIY5YqmtbOWCIcw+n57lx5crF 6XlX4opbD49iBF3QArCUltjCMWZotExrqacZIC26KVjnJRkAJXI4y8TGhBP8/CRVrDq59kz4ABLCE c8LKmNd48yccc+V2TM6lFtvTipCvgY4QB1agJya1v+TUvrZg5RGQTkDb5mAx8AKwn/B0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r3fv3-000NHs-Ky; Thu, 16 Nov 2023 18:12:45 +0100 Date: Thu, 16 Nov 2023 18:12:45 +0100 From: Andrew Lunn To: Jie Luo 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, 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 Subject: Re: [PATCH 8/9] net: mdio: ipq4019: add qca8084 configurations Message-ID: References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-9-quic_luoj@quicinc.com> <2ca3c6eb-93da-4e44-aa6b-c426b8baecb9@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ca3c6eb-93da-4e44-aa6b-c426b8baecb9@quicinc.com> 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 09:13:06 -0800 (PST) On Thu, Nov 16, 2023 at 06:47:08PM +0800, Jie Luo wrote: > > > On 11/16/2023 12:20 AM, Andrew Lunn wrote: > > On Wed, Nov 15, 2023 at 11:25:14AM +0800, Luo Jie wrote: > > > The PHY & PCS clocks need to be enabled and the reset > > > sequence needs to be completed to make qca8084 PHY > > > probeable by MDIO bus. > > > > Is all this guaranteed to be the same between different boards? Can > > the board be wired differently and need a different configuration? > > > > Andrew > > Hi Andrew, > This configuration sequence is specified to the qca8084 chip, > not related with the platform(such as ipq5332). > > All these configured registers are located in qca8084 chip, we need > to complete these configurations to make MDIO bus being able to > scan the qca8084 PHY(PHY registers can be accessed). So nothing here has anything to do with the actual PHYs on the bus? The only clock exposed here is MDC, and that runs at the standard 2.5MHz? All the clock tree configuration is completely internal to the SOC? What we don't want is some hard coded configuration which only works for one specific reference design. Andrew