Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp409098rdb; Fri, 17 Nov 2023 02:16:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXXeFJqPOSvxum3IRj4gKotE4YsH0hevpTNcBwmvSXuIURZGGoiRHhkyHt5aAy1qcVUWx+ X-Received: by 2002:a05:6a20:6a0d:b0:189:4e8c:97a6 with SMTP id p13-20020a056a206a0d00b001894e8c97a6mr98750pzk.56.1700216181126; Fri, 17 Nov 2023 02:16:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700216181; cv=none; d=google.com; s=arc-20160816; b=kfbReHNQLDk83CSnPCya2VWzuEWNC4CAN8HQj+7+K8lga/oXslVk5JY4WILYRITXjg I0Sy+oZ8jgjjT85+dsFKqoIfeSEIhLBTpSUicMHEkCOLx81GcfAaCTyEzkDWVeBGXn/M 09JKZiy5wwL2QZwEeNCerabOSoFC5XzinpxdoxB0NEGdN5goVBE8DdzvmXtbm8fK4riU MbJsjG5Dz+M1H8ezQMdrwAyPy7RJ9K+qkf3V9g0GZhNSvAgQqquY2cToGgqeOaJIFE5g RaB2F4JaGOw3amXh931xqwAEIQbfbi6j3wLaO/SZaGw8s0xnkh8h4E9odlhuqC/vWnn7 YNyA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5cKcmiXRyWqcSrnZNV5uxcqTjwzGW9zilSiurwKvu5w=; fh=a8SIrncv9rCUJdKfdpiz94URYq1gyRkw8WzwvsOTAp4=; b=PIp5wE3w/r+bKhKIdZT+qEImGpsY6p+wgUx2lpCcqbE1WapvEfav2NDMljcwPvufyi EBPFs7f8QjYurnPYniVIWLFtpheYWwOJdKgn9L8zJdqSUdDkQ+rQXfV1qTjlBTMxeENW VdfRFoxhgCyb5dnBSxkUDfDFJsc8sXo7GK2h3el73Xr/jYjfPcGflfyKljm5IQL4iget iyimgFnvcQn5vTbOKHhPd+zFoaY0uuqm+Bds0Go62MKUctkE1VEt+Z6b412c5Qr8Xeol GRvrvvO34BtjmvFmTt2qyEe/B/toiG2RZ71OZPksiTG69fKFGCJF0PSYeCkOz6mSvqGj sd1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RaSlQJ4K; 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=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h2-20020a170902f54200b001bbdb34628bsi1542830plf.289.2023.11.17.02.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:16:21 -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=@quicinc.com header.s=qcppdkim1 header.b=RaSlQJ4K; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6C88080C8423; Fri, 17 Nov 2023 02:16:18 -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 S1345798AbjKQKQL (ORCPT + 99 others); Fri, 17 Nov 2023 05:16:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbjKQKQI (ORCPT ); Fri, 17 Nov 2023 05:16:08 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CD2385; Fri, 17 Nov 2023 02:16:04 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH9b98J025794; Fri, 17 Nov 2023 10:15:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=5cKcmiXRyWqcSrnZNV5uxcqTjwzGW9zilSiurwKvu5w=; b=RaSlQJ4KsmgP6U4M8kPrL8ZFHPRL8zTL98o8W7cYxVKXwqpKM4bp+jku88WuugXoGOsM OG/szis8bQuNpFWsvO5IV5yehpV6oNdvlHYTTLR1hFtPghKPpvWC3Zscu6CINXzIo6oH hy0f1M0WGEA4+z+tIbIFOBdHfYBlGvgSWI5CnLysc8AoUS8FlFvd3UxtTkDPTd4y2xev B/jvN6hkTj4QQiT5g+5AgOXLAK4Zx5NBu0SKrdH4xvrfDGcP9fPMPqGd/hPvgQhbazjZ mbyir2AXY8uEnBm3QreR/pstrEb1Mbft8GNHZCUsRs/pZ8YtgQGF7mjrKfNU6AaSwcTw 0Q== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ue5per2k8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:15:46 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAFkp3007021 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:15:46 GMT Received: from [10.253.8.81] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 17 Nov 2023 02:15:41 -0800 Message-ID: Date: Fri, 17 Nov 2023 18:15:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 8/9] net: mdio: ipq4019: add qca8084 configurations Content-Language: en-US To: Andrew Lunn CC: , , , , , , , , , , , , , , , , , References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-9-quic_luoj@quicinc.com> <2ca3c6eb-93da-4e44-aa6b-c426b8baecb9@quicinc.com> From: Jie Luo In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 2dw2gS6QUg8AWgRyYjJ25oQg8Luqo6Nx X-Proofpoint-ORIG-GUID: 2dw2gS6QUg8AWgRyYjJ25oQg8Luqo6Nx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_08,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 mlxlogscore=596 clxscore=1015 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170075 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]); Fri, 17 Nov 2023 02:16:18 -0800 (PST) On 11/17/2023 1:12 AM, Andrew Lunn wrote: > 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 These configured registers are related with PHYs, which is located in the qca8084 PHY chip, qca8084 PHY chip includes the GCC register that is not from the SOC(ipq5332), is a internal part of qca8084 PHY. qca8084 PHY works on 6.25MHZ and other clock rates below 6.25MHZ. will move these clock configurations using the clock APIs into the PHY probe function in the next patch set, since it is the internal configs of qca8084 PHY.