From patchwork Wed Jan 10 11:20:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Luo X-Patchwork-Id: 186817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp725148dyi; Wed, 10 Jan 2024 03:24:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgipUduMGlXVjIjtfn6879i5sylOCN+oZy3D0/H6uHdOuCK9KUtKtSp2WdqKtwBYecKb0o X-Received: by 2002:a50:9b14:0:b0:557:3c34:5c0c with SMTP id o20-20020a509b14000000b005573c345c0cmr382886edi.40.1704885844593; Wed, 10 Jan 2024 03:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704885844; cv=none; d=google.com; s=arc-20160816; b=aNRQ69QNaHCspbTDTymS5mTEcG+82O0bipkNGdt/WocT/8tHMLJ8Y/09TuvybKKhpq dHZG9WzfrfhhxBzZ1PXguQPjbxp0zVsfkpCs3ocL/AoXM17uwVdYLHt20eUJvEHBcj1w s+K61oDHmieGLeSW+sgRwXkTwrXFdDbCnay0Sn498J+1zCB/va3oNjcCYMNfugp17CVj C1NEcH94fyNGQ/Ua0u0e/+qQZQ4eEUgV3500YkZbGX/43HQ9znDislcU4gwaMJhpGkAC 8UuzxmgcDrAFvOusow9TWhlV22ncURLSV0tGWqR4suoxodsLSwtFbOEVl+3ZfS8tl+Sw +JIA== 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=QrQjWGCp/5SioZxztmEdNb7eZ3tjnjFQYAo0wxrKtZ4=; fh=I55x0ANvNkX2tDYcOPVTN40IQtoD9tfE/hZORnK+Rnk=; b=u3nGMa8q0TMaKKEE2VJSijlbF38A14i+H7kKcVbhqfWlt72J3MDnyuNyfrCq9VQSZH O8NOK4k0NwlDQS50LB7I/LZVZ3flvchuXrXmmuiNUPh2b8CaxZgZSdoMrdmlbbSY9di4 Zpt0Fftr0P0jKYUQgQ3JH88QlnYqJNkaNOjSq+cV4bRjh+fnal+mZJbak6acK4n945rE v9DSeFvodiasSUSilwzEhB7zu9E5+1LgA0VGi72dQOY8JybJiGB57PoSRmu01DdoW+MI Hbqvim8ra5XWAKNyS9FPqN0SiIAxhzOYTCh4seSNzWK1og+WmBq5K9rep2m9+CUE5b7i WbDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CjalYQod; spf=pass (google.com: domain of linux-kernel+bounces-22079-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22079-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 16-20020a508750000000b0054bf6c62e5asi1619354edv.419.2024.01.10.03.24.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:24:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22079-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CjalYQod; spf=pass (google.com: domain of linux-kernel+bounces-22079-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22079-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3864B1F21686 for ; Wed, 10 Jan 2024 11:24:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1671C495C4; Wed, 10 Jan 2024 11:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CjalYQod" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 251B6487AC; Wed, 10 Jan 2024 11:21:36 +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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40A8dkpL020117; Wed, 10 Jan 2024 11:21:34 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=QrQjWGCp/5SioZxztmEdNb7eZ3tjnjFQYAo0wxrKtZ4=; b=Cj alYQod7s/wzBSLzFZSCM7dQ5bqNd7Wy76LD9xCmoou8oCaLlSoWYo/rTtAvbs2yy HoOUVY6al4EDq7WgQ3QtvenK5Y9I9QW++DJ7eamwt21GJ8Qz/4DR//8THqxaNbFM u4gR5wzhsZ8AT8jOXD+mLGOq+1QCUBL9L9UCa16PoHzc++EQ5Rnjrgz++O0U7OFp HEJ8T9z3rQ0bDP49Lmsv1G13SJ7KWZG9RtmN0thTO3l54cogMCZWbhX2FNsQFE77 PnHja7pIZ7J7fsyLpohHOt7ZPuaDD3HL17EAyvCiHd7QD+i0KigXr7yDgF4HEEBn jB6HJy1uaNX5j1JXP18Q== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vh9evt7f6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Jan 2024 11:21:34 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40ABLXaG020731 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Jan 2024 11:21:33 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:29 -0800 From: Luo Jie To: , , , , CC: , , , , , , , , , , Subject: [PATCH 4/6] arm64: dts: qcom: ipq9574: Add MDIO device tree Date: Wed, 10 Jan 2024 19:20:57 +0800 Message-ID: <20240110112059.2498-5-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 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: 7fQkWV0YLXV0Xd4R2DlNcNyZXtmpoG_m X-Proofpoint-ORIG-GUID: 7fQkWV0YLXV0Xd4R2DlNcNyZXtmpoG_m 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_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 mlxlogscore=849 lowpriorityscore=0 mlxscore=0 priorityscore=1501 adultscore=0 suspectscore=0 clxscore=1015 spamscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401100092 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787702379642655784 X-GMAIL-MSGID: 1787702379642655784 Add MDIO device tree of ipq9574. Signed-off-by: Luo Jie --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 5fa241e27c8b..cf21ce9bf756 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -316,6 +316,22 @@ uart2_pins: uart2-state { drive-strength = <8>; bias-disable; }; + + mdio_pins: mdio-state { + mux_0 { + pins = "gpio38"; + function = "mdc"; + drive-strength = <8>; + bias-disable; + }; + + mux_1 { + pins = "gpio39"; + function = "mdio"; + drive-strength = <8>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 { @@ -1503,6 +1519,18 @@ group0 { }; }; }; + + mdio: mdio@90000 { + compatible = "qcom,ipq4019-mdio"; + reg = <0x90000 0x64>; + pinctrl-0 = <&mdio_pins>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_MDIO_AHB_CLK>; + clock-names = "gcc_mdio_ahb_clk"; + status = "disabled"; + }; }; thermal-zones {