From patchwork Wed Nov 15 03:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Luo X-Patchwork-Id: 16589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp2363076rwb; Tue, 14 Nov 2023 19:27:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2zljIS9NlTjGqIvrFQMbgZXt7KU4xHd8KKNdh6qF0OTDCUKRNeUs9kDsdKQpqS53HUSBa X-Received: by 2002:a05:6808:4096:b0:3b2:e74c:30a6 with SMTP id db22-20020a056808409600b003b2e74c30a6mr12257981oib.10.1700018822412; Tue, 14 Nov 2023 19:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700018822; cv=none; d=google.com; s=arc-20160816; b=aGMIWIsrsOWlAsXYXL5JykWgohuT6d8uW1mMOMweHSoxEb29m3bBR9Z66YPGy07q5X WybXUbaD7VWaPY31tT9WugGsb8mC2gV2A3i/d0Kun6jFo9OvB1zw7/8JPzxvQVapJrWD YFwpNt2oEoH56hY7XiXi0d/wDI0F1Hp/sVQBR2dRcDP42nnZCU0k1nC3Ct4dpmUw+eSl we87LR54p37R36gKgFZkQIJG5szZOTbOfVBNiDw1wWGyvI6mi6Pl9cZe4iHP2ugReKJO H73rsaOyc9hDBjdM5tj0XNrdYRYppkLp1wSz27oKA9ZiW2ISWgp/XsbMtq9euPuuuuCY s93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jiJeHE6vmSVdvNxPKAV5CLnIy4ElhFMjXwkrK4vFcsM=; fh=+g5tGayWdOm7NVf+9R7F5Bp+AAhjebsKXKT3IUU1ti0=; b=Rx76cFyI6MfNgrcK0gxuc9gmv5JHJ1TymZR5N+Rd2UkVLB1nEkGbFPQslGgU1wm3Jl 0RWTppEw2veueqV4PCHxBYrNL0oGOTbecB3XgyDlzq4iMDGHkOnegfIcmSL6Fgr3DKPB GKgwU9f2Hdg8Ro7QBdPlA5KItH8zMtD9q9ZhG4X1lKlpJli2PDJFTzU1A51+wsiRjXuo v4kG8x4a00fJIJKgXfQ28x/vcTtmYW34448IvX8z2MkdNiU3wrKAkTCjSOlPetgF8ffu SUe9WNWGcjs9rl//4uTzMenyhvBUktWaCiIf/pBEFKJ9e/sOGnUw2yhFcOrbf5vElkLK WNKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gs8BLC7s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x191-20020a6386c8000000b005bdbd1b52d4si8815642pgd.270.2023.11.14.19.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 19:27:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gs8BLC7s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id C7176806A428; Tue, 14 Nov 2023 19:26:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234335AbjKODZw (ORCPT + 28 others); Tue, 14 Nov 2023 22:25:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbjKODZv (ORCPT ); Tue, 14 Nov 2023 22:25:51 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BE93D7; Tue, 14 Nov 2023 19:25:48 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AF0uCEm031736; Wed, 15 Nov 2023 03:25:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=jiJeHE6vmSVdvNxPKAV5CLnIy4ElhFMjXwkrK4vFcsM=; b=Gs8BLC7s5EUQHtOTQS6bf/EzG/4iCAVooxhgWHUywR2lUfEs0KpkmnnA+IrOtkMtBaxB VCklYss6cd+tSqhgNFKJX9dALtYCATFm47LmLW3SW0P+8icEkDEwVRHdI0qXdnAjByYb f9FEJZcxiXx4DHV2Rb6IVmdpvRJblabkfNSg+obtiThQ2lnFwflu5GXmHRTqPyCkl192 hFHITZYBmY9GFS2XvJBG9t9Txee0rbCw50rSeWFdgOPsm6Ev4z4rUtmKzw3UW/N/+vCJ ikA4wDQ5e1zyOumIP/SEO7Qwt/quyX+tKZYw4UBZPd8Eeo3bYpJVuUOdsBugnxdPrN9Q Xg== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ucg2u8sgs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 03:25:31 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AF3PV3Z028891 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 03:25:31 GMT Received: from akronite-sh-dev02.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Tue, 14 Nov 2023 19:25:26 -0800 From: Luo Jie To: , , , , , , , , , , , , , CC: , , , , Subject: [PATCH 0/9] add MDIO changes on ipq5332 platform Date: Wed, 15 Nov 2023 11:25:06 +0800 Message-ID: <20231115032515.4249-1-quic_luoj@quicinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: CZTZLJ7n4VJv1BY1SMPZeiVOnsJgiEUZ X-Proofpoint-GUID: CZTZLJ7n4VJv1BY1SMPZeiVOnsJgiEUZ 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-15_01,2023-11-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 bulkscore=0 spamscore=0 impostorscore=0 mlxscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150027 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 14 Nov 2023 19:26:06 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782598936728279383 X-GMAIL-MSGID: 1782598936728279383 For IPQ5332 platform, there are two MAC PCSs, and qca8084 is connected with one of them, qca8084 supports to customize the MDIO address by configuring security register, which also includes GCC module configurable. 1. To provide the clock to the ethernet, the CMN clock needs to be initialized for selecting reference clock and enable the output clock. 2. GCC uniphy AHB/SYS clocks need to be configured and the ethernet LDO needs be enabled to make the GPIO reset of phy taking effect. 3. The MDIO address of qca8084 PHY can be programed with any customized value by configuring the security register which is accessed by the special MDIO sequence. 4. Before the qca8084 PHY probeable by MDIO bus, the related clocks and reset sequence should be completed. 5. Add the example MDIO device tree node for IPQ5018. Luo Jie (9): net: mdio: ipq4019: increase eth_ldo_rdy for ipq5332 platform net: mdio: ipq4019: Enable the clocks for ipq5332 platform net: mdio: ipq4019: Enable GPIO reset for ipq5332 platform net: mdio: ipq4019: configure CMN PLL clock for ipq5332 net: mdio: ipq4019: support MDIO clock frequency divider net: mdio: ipq4019: Support qca8084 switch register access net: mdio: ipq4019: program phy address when "fixup" defined net: mdio: ipq4019: add qca8084 configurations dt-bindings: net: ipq4019-mdio: Document ipq5332 platform .../bindings/net/qcom,ipq4019-mdio.yaml | 138 ++++- drivers/net/mdio/mdio-ipq4019.c | 557 +++++++++++++++++- 2 files changed, 656 insertions(+), 39 deletions(-) base-commit: bc962b35b139dd52319e6fc0f4bab00593bf38c9