Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp910892rdd; Wed, 10 Jan 2024 03:23:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IER+5H5MJHX1uEHns5iFL0efBfIQT4X8/CK0WJLQKrZUio35iOxnX+2L5RcDprLLsTHJhvV X-Received: by 2002:a05:622a:195:b0:429:8b66:e79d with SMTP id s21-20020a05622a019500b004298b66e79dmr1220871qtw.116.1704885796708; Wed, 10 Jan 2024 03:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704885796; cv=none; d=google.com; s=arc-20160816; b=uouO4aM+qlSApC8XvW8oTcfMVcG16j6u0MTxXkbWZtKxWUy5T1r8dHfCwVc5B8bzKr zlJPFwmhfjA9rzs0RPiAhRkSAFt+aABdp/vPEo2ClWGsA5yXV6ZPFkgRWPAbVNRI3BlT xVEZtcYqmNDA21eBpAAiEH6C0lxdaimPZWLcGRLAv45Or6x43N3M76tUykEzxEAR2op7 pLF4PbrW10JXIx4c8Wd7ufv5ECo1CnKfsMAqmvG+SuS0TDUVGmjDtfrnpEhQoVte4gcw xisNJkX51KFOmk2XHRo73QqiACEE4jWL9xOQGwCRXPQKpnf53VJ806upd/KZ3DoZXv39 FOdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TjRBMNfswm524izutJw5ZI9gGCBe++NtHluaKvSBbm0=; fh=I55x0ANvNkX2tDYcOPVTN40IQtoD9tfE/hZORnK+Rnk=; b=LQVoz3Xwp1wfHmbRz+lMbwPl9GAEzn/1e6vfgxyjBOy8j9Dwak3UxlPhUAUg3GAFAp Xow9alt2L4lNuxiuz6wr7vDBAdj6EWdrDkz8p7t+3VnS2jBK0e9xw2IwHYO5JeB2XF3A PWaEqXzINMWlXNMzvAdxiT8tRZHe49f3P3zt/ANZd4QP/jkkhTKy/c3fVmgfviISgFUY rb8QFKY5A3ajbAYGX/CxhwDEfnrKL4LxqEp8IzWbJfd4U1UCrQAZVcA2l3EhYv0nJcEQ XS81+IWCh7ozOqz+owYs4O9ObBVAa2aSrBboHdEdZBBA4bYdvb954giNHN+/kiduLeo0 ShdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nyC2y8k0; spf=pass (google.com: domain of linux-kernel+bounces-22078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g9-20020ac87f49000000b00429b2754668si1214248qtk.718.2024.01.10.03.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nyC2y8k0; spf=pass (google.com: domain of linux-kernel+bounces-22078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2DB371C25394 for ; Wed, 10 Jan 2024 11:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 470E647F71; Wed, 10 Jan 2024 11:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="nyC2y8k0" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17F74482DD; Wed, 10 Jan 2024 11:21:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40AAqgW5031101; Wed, 10 Jan 2024 11:21:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=TjRBMNfswm524izutJw5ZI9gGCBe++NtHluaKvSBbm0=; b=ny C2y8k09TadAO+aU8GP1CzxZjxil6YWb6Q0OmIL4vgDn4G46sAzNOtwGF2SRnkBT9 s1+PBPMC5XVy0eHSuhDvOgrOAl/b2mZkW0pr9zBSDHu6mOtBmWuomGqiYupiAdey gbwXZ6J7Bp9Lf/d7UHauIryYu2eC/pTunjMqbFK1E9yfw/UyzG+jPKl3c/43oznF +heY5Eyv51aMVMZ9zWY0ATpRDuOUvycysVzawFfN8RcW0TQgCZ4vLbwuJE9MJZAJ TGYSncesUQGYbvMCvnROspNPVvZfSdLveNgjR2AiMCMUUk7iDFGy2sNnu75HO7o/ lmWzkxH2hOmx0pdFVQIw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vhsqyr32v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Jan 2024 11:21:30 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40ABLTSt023743 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Jan 2024 11:21:29 GMT Received: from akronite-sh-dev02.qualcomm.com (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.40; Wed, 10 Jan 2024 03:21:25 -0800 From: Luo Jie To: , , , , CC: , , , , , , , , , , Subject: [PATCH 3/6] arm64: dts: qcom: ipq5332: Add MDIO device tree Date: Wed, 10 Jan 2024 19:20:56 +0800 Message-ID: <20240110112059.2498-4-quic_luoj@quicinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240110112059.2498-1-quic_luoj@quicinc.com> References: <20240110112059.2498-1-quic_luoj@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: d6Y5r1QnF0CWmCTLZzbPZh83KTm23Mv8 X-Proofpoint-ORIG-GUID: d6Y5r1QnF0CWmCTLZzbPZh83KTm23Mv8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 phishscore=0 adultscore=0 mlxlogscore=798 spamscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401100092 Add the MDIO device tree of ipq5332. Signed-off-by: Luo Jie --- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi index bc89480820cb..e6c780e69d6e 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -214,6 +214,38 @@ serial_0_pins: serial0-state { drive-strength = <8>; bias-pull-up; }; + + mdio0_pins: mdio0-state { + mux_0 { + pins = "gpio25"; + function = "mdc0"; + drive-strength = <8>; + bias-disable; + }; + + mux_1 { + pins = "gpio26"; + function = "mdio0"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + mdio1_pins: mdio1-state { + mux_0 { + pins = "gpio27"; + function = "mdc1"; + drive-strength = <8>; + bias-disable; + }; + + mux_1 { + pins = "gpio28"; + function = "mdio1"; + drive-strength = <8>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 { @@ -863,6 +895,18 @@ group0 { }; }; }; + + mdio: mdio@90000 { + compatible = "qcom,ipq4019-mdio"; + reg = <0x90000 0x64>; + pinctrl-0 = <&mdio1_pins &mdio0_pins>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_MDIO_AHB_CLK>; + clock-names = "gcc_mdio_ahb_clk"; + status = "disabled"; + }; }; timer { -- 2.42.0