From mboxrd@z Thu Jan 1 00:00:00 1970 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 999AA27146A for ; Tue, 27 May 2025 13:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748352866; cv=none; b=QFVL30i2Jr7MiCzQBTcgBpHuuvYmaPI8OGg1Xh0EDhRsFLBXHT7UZ8TEjjkh4bZvL8//n0qzsrK8DGAFE0+s9Rpl969QunHHYw3HSk9TX0fxgyR/aOyn3sQuTRntFxzbDJO2kRymM5wBVG8t7YG96y0DWiSREZywVoGkBtNRRck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748352866; c=relaxed/simple; bh=d/P02J9qQY8iTl3rVzuh5p3XJF7As7wmADUufJt0/BY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CbpmY9/hU/4dJRk3ZNZw1VuxA2IPWf7bnHQsw28i7U0jIHOZPeKEEiw5Me1E6KUG1S01duVPGDyBoiBZl0jkOJqdous09+9xmaVvN6yP7zsV4PExY6lfrn/gbn6aE21u9cfcPVEjYaRSXgFeRE5Xgit6OwGAR7Gdb3gRGBppBOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=oftfNIZy; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="oftfNIZy" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54R4P3eN001212 for ; Tue, 27 May 2025 13:34:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Zj3vrTg/vim0PVZvflmCqYbXIcZKAQ+i8s0YX2bmBXY=; b=oftfNIZy+HwWfIMr iPJf78k5r2/5aEbnrGhi8KoGT3BZ3gDranc8kl0eM4fgGu4OuAb6eZCZ8d7w9eeo qUNKsWhRZXYG4ftW0WWLkYO+ButPV6dw0JF5txNAbmGShK241YamnRydwsBZSFYE K6rLjXNfWJRV96gr2VFZSd3ZVhrQDIRet/l1oo0ijtV4HF04H4utMnOz5NdNbk2A ZO2J5CosmL+ay+/PTPH8aFmWtjPWxjwNIl3etmbTriqpOio/KsJjt9L4msLXwQAu v3dXMYGAS7hbZ2nOvfLpBMfFcD7LULOwcvs17Yv0mConBHuAKeq5acKhQGQZFIIg Lg4xrA== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46u3fq767p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 27 May 2025 13:34:23 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7c547ab8273so32126085a.3 for ; Tue, 27 May 2025 06:34:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748352862; x=1748957662; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zj3vrTg/vim0PVZvflmCqYbXIcZKAQ+i8s0YX2bmBXY=; b=pJ9XPGW9I6kUwhQTT7RlkFxEb+OxZu+yKf1FpX8QDWT9iXHic45f0Kgqzsq3WynSlV H3APaDnbRl8QZOf2wSCIzXSEPxO50/IfPTqIUw1mwatdGITE0iBfiqGaXsiHs4JptUKk GcqYEJPKSOtMglm4Vpnwg5NUzhywyQnZ5sfOc/NFHlY88osGG2vBnbNSadmh7M/q28E8 k15Zu1mVx/Jhs/soJ5m381GR2dV0g46zMoQK784G905IyDweoRe4CPWFItZcqm6zktJp vJJETjc+Fil6LElC2KYQqFsU5yjs7X+kKATmbARexq9vprLxoPa3cz0NjsZIDCXn5b8W TriA== X-Forwarded-Encrypted: i=1; AJvYcCVuPNey9s1aT6R0j5TdXn/UYkNtIw01qHaIYPCnvYiA7cWaC2bPqxyimEDsHCdniSUYV/WezWYse0g=@vger.kernel.org X-Gm-Message-State: AOJu0Yw//XMHUyCP4HBc27/9VOw844QjYQ5tU4OHmD8QGL5Cngo1yVQe R0kD9idaAWY5cuEd0FCrDCtgdIeZ82lNZ7Dr7AtkAcy9uEsSZIgUdu7uEyXGyL49ZRVBR5wmFof 1atrFpeCS/07uMnZuYWvg0KazHNZPXgeuCUfu3+DqcIwYvBMDD63OkypYjslTp3A= X-Gm-Gg: ASbGncu8S2npdqAtLHVfY+CkF3nGQ/861BasXzQ/Z2C9RMGjC/1vmpd54fXGWzEe8xk zS/Z1AvVag8twXe/Ae76uW5ZrDxoGmbjYGfu6YNAf4jWYD4WEB++8GMPjTemI/mktPE7BJ41Qlx 9KPyAzuuSOMGISMjobeQOMGnTYFB2XiY3axvk15G8QhD8MRJPR/zgi0W1NvMM6EHGVaGQP+kPi6 bp3XFEbTYjypZwsXHg1dquS96jTpf8uZLyqTnznq5J0qxedLyENe1gI8bE8y6RdPuDXAF+p80cb YmCI4Bmnw2l8LK8TRtNC1xjk4YKJX8sOs/6hcPArYSNiitDcMzp6WWPjL39MPudTVQ== X-Received: by 2002:a05:620a:bcc:b0:7ca:d396:11af with SMTP id af79cd13be357-7ceecc33efamr674543285a.15.1748352862483; Tue, 27 May 2025 06:34:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjlX2yUH3BsOWQUseqYtk4hJzkMKzeOB9JG5Z8E4YKWevQ8VORYoyV+OSVUqExMtXpm87OVg== X-Received: by 2002:a05:620a:bcc:b0:7ca:d396:11af with SMTP id af79cd13be357-7ceecc33efamr674540585a.15.1748352862039; Tue, 27 May 2025 06:34:22 -0700 (PDT) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad888f734f5sm152162266b.84.2025.05.27.06.34.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 May 2025 06:34:21 -0700 (PDT) Message-ID: Date: Tue, 27 May 2025 15:34:18 +0200 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/5] arm64: dts: qcom: ipq5018: Add GE PHY to internal mdio bus To: george.moussalem@outlook.com, Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Philipp Zabel , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org References: <20250525-ipq5018-ge-phy-v1-0-ddab8854e253@outlook.com> <20250525-ipq5018-ge-phy-v1-5-ddab8854e253@outlook.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20250525-ipq5018-ge-phy-v1-5-ddab8854e253@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: LxT169EdqScatsIfLiHzgUHENCoe0UKA X-Proofpoint-ORIG-GUID: LxT169EdqScatsIfLiHzgUHENCoe0UKA X-Authority-Analysis: v=2.4 cv=X8FSKHTe c=1 sm=1 tr=0 ts=6835bf5f cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=dt9VzEwgFbYA:10 a=UqCG9HQmAAAA:8 a=EUspDBNiAAAA:8 a=KVjQAK92ZotTnYaee5gA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTI3MDExMCBTYWx0ZWRfXxFafAREfu2oK 1+AiTE7DCFh/AN6Cv2tihRir1rqBF5yRq79gvF06eYtwEgg0dc2hOvYmJa4/gimIGFbLwBWKocV v7gXUROTefdeR6kIaQU9WGvKwGnhCTzlfCzQ22WXmqTzHQ9RJ0xYk+vUZ/jXQNp2csgzStCEJw5 a6CZlrk1S+vR+9lnPxLmdNoIha2Bi9Rh+qZrkc5or2CIsHNiL5RfgtiDwePF498fdBjn8YqHAOz R17yUe9IiDZ+SHFPUIdFaW7qXwu9EkcmkoOO2sysO32AmdBaOSzgDc706T3ik0gnTGEJsMjiJta qwCb54zSPZjcDp9Qu0B2KOquYPSmHWRIFqKvBoTZQhGnwhpdkMQxb8sDNuFabAr1JvOoi0z9HJ5 sVv9HJIZibeDJBSmakREYy6RlCN2nUu8JbWTuGYmkqH6E+h19anJEVo0qbOy3kzHAg05QZmx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-27_06,2025-05-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 clxscore=1015 priorityscore=1501 spamscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505160000 definitions=main-2505270110 On 5/25/25 7:56 PM, George Moussalem via B4 Relay wrote: > From: George Moussalem > > The IPQ5018 SoC contains an internal GE PHY, always at phy address 7. > As such, let's add the GE PHY node to the SoC dtsi. > > In addition, the GE PHY outputs both the RX and TX clocks to the GCC > which gate controls them and routes them back to the PHY itself. > So let's create two DT fixed clocks and register them in the GCC node. > > Signed-off-by: George Moussalem > --- > arch/arm64/boot/dts/qcom/ipq5018.dtsi | 27 +++++++++++++++++++++++++-- > 1 file changed, 25 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi > index 03ebc3e305b267c98a034c41ce47a39269afce75..ff2de44f9b85993fb2d426f85676f7d54c5cf637 100644 > --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi > @@ -16,6 +16,18 @@ / { > #size-cells = <2>; > > clocks { > + gephy_rx_clk: gephy-rx-clk { > + compatible = "fixed-clock"; > + clock-frequency = <125000000>; > + #clock-cells = <0>; > + }; > + > + gephy_tx_clk: gephy-tx-clk { > + compatible = "fixed-clock"; > + clock-frequency = <125000000>; > + #clock-cells = <0>; > + }; > + > sleep_clk: sleep-clk { > compatible = "fixed-clock"; > #clock-cells = <0>; > @@ -192,6 +204,17 @@ mdio0: mdio@88000 { > clock-names = "gcc_mdio_ahb_clk"; > > status = "disabled"; > + > + ge_phy: ethernet-phy@7 { drop the label unless it needs to be passed somewhere Reviewed-by: Konrad Dybcio Konrad