From patchwork Mon Aug 7 19:34:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 711192 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C681C04A94 for ; Mon, 7 Aug 2023 19:35:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbjHGTfZ (ORCPT ); Mon, 7 Aug 2023 15:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbjHGTfX (ORCPT ); Mon, 7 Aug 2023 15:35:23 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F3951726 for ; Mon, 7 Aug 2023 12:35:21 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fe1a17f983so41422155e9.3 for ; Mon, 07 Aug 2023 12:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436920; x=1692041720; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XSsBSVLtrUYlv/MGrIezXmSe6WOfaa1FZe1kCeq6Zm8=; b=L7uC2z1HR78duqiRFC3J5QmDk0rcMFKv+OS9eicsmH1tv4MLrXE2uEgfPWWfUlB9CU 1y9fVJob1NzP2h6EsLC65fc+wae+BPL4KrjdW3lO6SjKS9Gs09G4sAo3f52or5ggzM+M kCe8y/iFwsHevNDhyQLdaYm0vKqp3xV8YfAVPHS/csMHyHWSAM5g8sqX0/rlMGI5KMzG ufaoABATQYUEjKP2z64V4fiRIX055xgNogypA+OeV63ZwwiT/nzcMjVF6U5ugu32LO8l KFMvQRgRNtT/1LlLViC56Yu1iwiVhtzPH0/0WbWnQd+Kg6g5lX1GvxDHpzz6c0MOiIuO rb3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436920; x=1692041720; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XSsBSVLtrUYlv/MGrIezXmSe6WOfaa1FZe1kCeq6Zm8=; b=jl4Onl5IHXevoY0jJ8qej0eR5s1EIHJiUvnbZPj7LTyoh23SZC6cxoSUSaGXIg7uR6 frXCsV4+3NJ4IWPg4OXXDjpK/uj6vYcBsMAPOkgw9ah8o3wVyrLzPvwVgsFioZxPVwJB 92qVt7xeHZFNWCxsatwGkJ6pfZTdQekE1NTPBrGp6H5u63xKdMdbJrxbhqvlEPUFiG8L 6rrBynrBhjTZLIBpVsETkCexxIIlHsSo78Jax/dRYIH1Hf+nIrn2l/Tfe5eFdMXartq/ yJKF07CahNWzTiRLmVgZmDpgnkyVlYYOO0FCjYW8sG6pTQLvxW22I84VUv2qe/l7PsbC PL6A== X-Gm-Message-State: AOJu0YzPOs/LDd0tyCD0vbNuOaULY2cjmMkZPEsVWo8cDe8PfUemNihs YVQF7xlyzwDQgEoBFN1+M6i2Kw== X-Google-Smtp-Source: AGHT+IG+SkBKOfidcaodaO1gm6lOflL8wEWK21n8mUiUo5jekg7Zu0ZNOtuA8Mr6YGy0n+zByHfAKQ== X-Received: by 2002:a05:600c:2a50:b0:3fe:63ca:ccf2 with SMTP id x16-20020a05600c2a5000b003fe63caccf2mr11136wme.33.1691436919831; Mon, 07 Aug 2023 12:35:19 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:19 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/9] arm64: dts: qcom: sa8775p: add a node for the second serdes PHY Date: Mon, 7 Aug 2023 21:34:59 +0200 Message-Id: <20230807193507.6488-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a node for the SerDes PHY used by EMAC1 on sa8775p-ride. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Halaney --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 7b55cb701472..38d10af37ab0 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -1846,6 +1846,15 @@ serdes0: phy@8901000 { status = "disabled"; }; + serdes1: phy@8902000 { + compatible = "qcom,sa8775p-dwmac-sgmii-phy"; + reg = <0x0 0x08902000 0x0 0xe10>; + clocks = <&gcc GCC_SGMI_CLKREF_EN>; + clock-names = "sgmi_ref"; + #phy-cells = <0>; + status = "disabled"; + }; + pdc: interrupt-controller@b220000 { compatible = "qcom,sa8775p-pdc", "qcom,pdc"; reg = <0x0 0x0b220000 0x0 0x30000>, From patchwork Mon Aug 7 19:35:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 712857 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEE0EC04E69 for ; Mon, 7 Aug 2023 19:35:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230452AbjHGTf0 (ORCPT ); Mon, 7 Aug 2023 15:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbjHGTfY (ORCPT ); Mon, 7 Aug 2023 15:35:24 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F0341737 for ; Mon, 7 Aug 2023 12:35:22 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fe4a89e8c4so25756075e9.3 for ; Mon, 07 Aug 2023 12:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436921; x=1692041721; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T9wiaophR7Nm0xfj/SveV5mw+f2Uqt1y0hy6jmmlZXY=; b=vfk+G5vjRxTB+3Asp5KhvlGGmBR/ElouEbnHwWraQ8WWiHREdSAgBtfpRHWB5BSXGo Q2fbgUc1SE3Gn4Gcsho7UlfOFDfvr4AgxQeSh8I57u6EuBMT75NmqYj9LCV9DwcnODf1 6PDaI7+HUhxhU5xJXGpCp6RR4AZPjGQzAjlqYbl4ANEzapYS+GaTnuXpxhlSUrTXvSGM TyZ4ldtCHkTRkTWq9SIbC02JyPYDuRwWnZ+my7quocWuMrtaAmDjBWISXdbTDCI4UoAp HH70Xtx90qgOcAR8tUvKMa1TCppW36uvg8bx3sQhcsITLzSVsynlRaN1s+XQnbLGg6Pz rY+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436921; x=1692041721; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T9wiaophR7Nm0xfj/SveV5mw+f2Uqt1y0hy6jmmlZXY=; b=OE2DLSyXAHI5yG87kH7WGH7szpx1YJ6if436GbeDfrhx0XEnIZbTzbVouzOfGmaxz2 fbTTc+gvrwBcjuNM7Me899HcxFeWHIo0XBXsEMGk4tybIItdcM52GV+qfyn9wpdBE94Q iN0b2aI2indl+Y/kzsDpnapbOnIh6sfAd0J12lJ7RYEBj964CRZdWHMz1foLpNof5Pd1 SugM4gAKA2tvHRm/RY010BhK2iD+58O35tOZTBPbUCxZHavWb4KXEeli57Z27IIcwsit hBmGUFUzmwrj7f/Lb/hrhCp3GfjDX996/x9Z+OyrPJqGCSQTBlvEyRYcg+OL4wYQ7IZK yGxA== X-Gm-Message-State: AOJu0Ywi/CqFAAUaz3/bKo7YNdrNfMsAm2vVLg99vFBkNBsxd78uG92i ICtUGouHQeImega0xT5ANBvbPw== X-Google-Smtp-Source: AGHT+IHmZAD9unOxHbaeT93WIWcImU0NXNeoEV7iu/aV4mSF9d0YVCtpnqDHQFt5j2pGHSFn3GKGnw== X-Received: by 2002:a7b:cbd6:0:b0:3fc:5a3:367c with SMTP id n22-20020a7bcbd6000000b003fc05a3367cmr6670972wmi.32.1691436920814; Mon, 07 Aug 2023 12:35:20 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:20 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/9] arm64: dts: qcom: sa8775p: add a node for EMAC1 Date: Mon, 7 Aug 2023 21:35:00 +0200 Message-Id: <20230807193507.6488-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a node for the second MAC on sa8775p platforms. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 38d10af37ab0..82af2e6cbda4 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -2325,6 +2325,40 @@ cpufreq_hw: cpufreq@18591000 { #freq-domain-cells = <1>; }; + ethernet1: ethernet@23000000 { + compatible = "qcom,sa8775p-ethqos"; + reg = <0x0 0x23000000 0x0 0x10000>, + <0x0 0x23016000 0x0 0x100>; + reg-names = "stmmaceth", "rgmii"; + + interrupts = ; + interrupt-names = "macirq"; + + clocks = <&gcc GCC_EMAC1_AXI_CLK>, + <&gcc GCC_EMAC1_SLV_AHB_CLK>, + <&gcc GCC_EMAC1_PTP_CLK>, + <&gcc GCC_EMAC1_PHY_AUX_CLK>; + + clock-names = "stmmaceth", + "pclk", + "ptp_ref", + "phyaux"; + + power-domains = <&gcc EMAC1_GDSC>; + + phys = <&serdes1>; + phy-names = "serdes"; + + iommus = <&apps_smmu 0x140 0xf>; + + snps,tso; + snps,pbl = <32>; + rx-fifo-depth = <16384>; + tx-fifo-depth = <16384>; + + status = "disabled"; + }; + ethernet0: ethernet@23040000 { compatible = "qcom,sa8775p-ethqos"; reg = <0x0 0x23040000 0x0 0x10000>, From patchwork Mon Aug 7 19:35:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 711191 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD312C04FDF for ; Mon, 7 Aug 2023 19:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231214AbjHGTf1 (ORCPT ); Mon, 7 Aug 2023 15:35:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbjHGTfY (ORCPT ); Mon, 7 Aug 2023 15:35:24 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC92171A for ; Mon, 7 Aug 2023 12:35:23 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-307d58b3efbso3771169f8f.0 for ; Mon, 07 Aug 2023 12:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436922; x=1692041722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CPPAITnbHpLfLDmJySJco6dXqEzZhAIXMSVGP9xkG5c=; b=LZUM+utIDiGPi1xiYzGnVUrRE3JD6gHk+30APuYmhtNMPSSmObsmOtbItrpQNOUN4t zPNRHnd/puwUeyY8unq1z7weAe9GtY/5yrcmoPS+hB8xwUb1JmqYBGOzMk2hykf43FV/ JhknVj5AStv2OENppgyTANVXuWUsC2bvnRFSG1x6OgEG1ByNZBS+kCGEMETLhsbomQZM UISYg4NWmRR6dc3GjwO15BzSebHDnO1UkuYxttotBSkOksk5um5Xi9vpIcI+OVDAYNQs e2aFmuv1l+CEl8miLYyIDslzQJZnpgFqV4zJsfbH2s+E/LJGrmR9lPrvVbAO7TmwxSQY pGkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436922; x=1692041722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CPPAITnbHpLfLDmJySJco6dXqEzZhAIXMSVGP9xkG5c=; b=B0hIbHvbZa2DnZ0pTnkmp/eUsAIDA36OGqH/G+Ig1qhkNPdyF5mW6aKhi4eld/H3L0 ylQzpFesFJOFTqqm7bsN7y0JKqtRMH0f1MkMPo27vvQ2T6eSUmFZK9Q4im32WjrPL4oH bEv3vvgRNZlf7ptKW94Tp/gx7lK1KBU5pFSCoaPwsgHls9x5LTTaNrAlv3i03lpiA77w FGMo9jiOXTIkGBit5X8Mhtpayp8slqnvkzM3oHN6IuN4Kkk/gIBZ5TeIDimoAi89ToKP iUA9jKIE+aVToeH02kLqI9WRVmCnPKvQMm/3yBpCQtpMMgwrAjV1O//PBRyE0l0EFcWD /5Qg== X-Gm-Message-State: AOJu0YyDSNrYEsUoNhU3h5tlTZ/tQ+f39a+JsmbVxOyhwammcnOfbFQN A54GGAJw4530EGBBPIYNkalaKw== X-Google-Smtp-Source: AGHT+IFZBRammuhICZdtkXlyPRUK42qVBcukcnqsd5LnVIL+qxwyxBJJMFPvA2T0zkK5l6u8AsitCg== X-Received: by 2002:adf:cc8f:0:b0:314:1f1e:3a85 with SMTP id p15-20020adfcc8f000000b003141f1e3a85mr5993739wrj.61.1691436921811; Mon, 07 Aug 2023 12:35:21 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:21 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/9] arm64: dts: qcom: sa8775p-ride: enable the second SerDes PHY Date: Mon, 7 Aug 2023 21:35:01 +0200 Message-Id: <20230807193507.6488-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the second SerDes PHY on sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Halaney --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index ed76680410b4..09ae6e153282 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -448,6 +448,11 @@ &serdes0 { status = "okay"; }; +&serdes1 { + phy-supply = <&vreg_l5a>; + status = "okay"; +}; + &sleep_clk { clock-frequency = <32764>; }; From patchwork Mon Aug 7 19:35:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 711190 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A182C04A94 for ; Mon, 7 Aug 2023 19:35:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231299AbjHGTfa (ORCPT ); Mon, 7 Aug 2023 15:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbjHGTf0 (ORCPT ); Mon, 7 Aug 2023 15:35:26 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D102172A for ; Mon, 7 Aug 2023 12:35:24 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fe167d4a18so47581695e9.0 for ; Mon, 07 Aug 2023 12:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436923; x=1692041723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fEn7Vyzxp0oT+8eRlG36dyHTspz7ckMQVTd2N8j7ySI=; b=2xJv9sDHJKP5PmcQdVHo1SUlesf5gaJlLd8lQYvoteDchIWKBRSVJAMI1oZpAr27Ec wRwU11Jx/l6GHM3u6UvvAZX8cqvyhiUppJd3l7U1NPJkP3Xss8KlH8homneaSFWCPVXy kcptShpBP3L9qosCIjH8M2OLqVFnX/AnWy+uyDeTfQZ1ndG0pxKg4ADQVZb3fbJaIvkp XJ7imsBYFC22SFv+0yZSXrhW3dmfop09nGBchQ1pot7JY7JjhKlebDzqlF0g97fYWrYj La3D1AuBVu6LdDL0jLMmhi1WJ8CS5l22HW9VEI0LkH2cY7ZoLrzmsS+g2iosDBX6dHc5 YJZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436923; x=1692041723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fEn7Vyzxp0oT+8eRlG36dyHTspz7ckMQVTd2N8j7ySI=; b=bRW9xo8pytppv0p/0wBmJdT9y6ubf4Kg0HBq9+6RJNqrA/aEIP5IH6TR4lNQHkDH/H Jc6WDsl8Jr03dwfnRGR7HiK44bWGXwAyf/DZxaiD5+zEJgG6woW90INC57L5YDjxph0z vfR7mLZGDJWnfVlvYL2DRNFY5TLtOAJ0fYK4fne0ISdu5ZAu04k9KR3LKawFb1LwPUog TfDt18DasRe3nrP4gdR8zVPKfjScuzLpuNjXnJLx1uZF2KNy2RtYY2wpBt/bx4rmhpeq CHYv/nJIESX7siWlK6zf2GR+ERrbycYGU0TVcQzeC7JPN36+JrX/GqunpH+heyy+MuR+ 3e6Q== X-Gm-Message-State: AOJu0YwON5e5EWiVnCUuJTD2KjyfAKg054Dth6pJLnbL6Tf+ATjBm6M5 0A8I8NBrfOmSMASVQ8hc3dPoOQ== X-Google-Smtp-Source: AGHT+IH8Xr6+EP/rdBj2XSnQSzFIwvg9Ltd6zyko+R/lBTfw2Io8uLU5JqkOEBdcsM5ijdPR5Z9F5g== X-Received: by 2002:a7b:c7ca:0:b0:3fe:4548:188d with SMTP id z10-20020a7bc7ca000000b003fe4548188dmr7888606wmk.7.1691436922836; Mon, 07 Aug 2023 12:35:22 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:22 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 4/9] arm64: dts: qcom: sa8775p-ride: add pin functions for ethernet1 Date: Mon, 7 Aug 2023 21:35:02 +0200 Message-Id: <20230807193507.6488-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the MDC and MDIO pin functions for ethernet1 on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 09ae6e153282..38327aff18b0 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -480,6 +480,22 @@ ethernet0_mdio: ethernet0-mdio-pins { }; }; + ethernet1_default: ethernet1-default-state { + ethernet1_mdc: ethernet1-mdc-pins { + pins = "gpio20"; + function = "emac1_mdc"; + drive-strength = <16>; + bias-pull-up; + }; + + ethernet1_mdio: ethernet1-mdio-pins { + pins = "gpio21"; + function = "emac1_mdio"; + drive-strength = <16>; + bias-pull-up; + }; + }; + qup_uart10_default: qup-uart10-state { pins = "gpio46", "gpio47"; function = "qup1_se3"; From patchwork Mon Aug 7 19:35:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 712856 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34095C04E69 for ; Mon, 7 Aug 2023 19:35:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbjHGTfc (ORCPT ); Mon, 7 Aug 2023 15:35:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbjHGTf1 (ORCPT ); Mon, 7 Aug 2023 15:35:27 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540A71730 for ; Mon, 7 Aug 2023 12:35:25 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id 5b1f17b1804b1-3fe4a89e7efso26502905e9.3 for ; Mon, 07 Aug 2023 12:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436924; x=1692041724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Mxzaq+NrM+rI9BGdN8+qRzAj37dK8WvIhI/Ftci2F5g=; b=mrigQd5CL1Q/aazYd4Cn504gRfXGrDvfjmQBuRCQFNkgA339hiTI8zwK7rlb/s+Bo8 yN2+4j//ZlsvRAQiri65N+XkK25hlCNOm+4kB2lzlJzEs5oPgBpcfG49F8Ku5lfP+gi7 vwLfkkTZkZs3fjJT6nO5yRHeOfqFO1ZKRDxGUAqbR6BNqsldhRqXS9cBpxaAtYM3/+YB 3Kjokg0XYtz3n4h61lMQ4kp+F0NLgg03sNchk4/s1GFSvxJ2DyAiXPxcc+BwvhJifRZB 2fluab9kGUYWJmItqLqLC41zDLaXe+lgkmsufzV+8DuKbytAeZdyVZ+FhRyH7Y+ksxA2 887Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436924; x=1692041724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Mxzaq+NrM+rI9BGdN8+qRzAj37dK8WvIhI/Ftci2F5g=; b=NOFukctrTOGNTYTijML9HFybGajqM4pTVsY5luQNjADUnsUnZLp74CkGcOMQsQAs1y LcqhSN5JATh8ozLROw5P23SzbIwQXYgUfMDbxXN4Tlr0BP/PtFHIVuUI1ZAHtXKf0S21 5QA+zBvllwS5mrevCAIbfMaULtraUVlQbwKyvSvN6yeI78ZTrMnjvgV8CSgSSHRzHmM7 PIuirg09wrgdVTIjji1R3nmO4Uzq4tgSwhldG0RgLOmdDt5GQ1eeAY26lCCxqa5c0YbT nVxhtu2m6iO2JfiBPqFVJvdEQHzfjfweU2GmORhW9Su2kp+fvcNK3dIPkYDa/gVATPTI ghMg== X-Gm-Message-State: AOJu0YwfLjGVgYvPxI+fhJxKbIhKqgZ9hmTijwuecZGXOty+A7YHr2HC 5ty/V29xeJBgZWB/tKWYSTwUqw== X-Google-Smtp-Source: AGHT+IEJ7Gxowf9uX6uF/FNUe4WB138H+f3bt/0qu6PF41fqzFO4aA9R+U+qLIWMmRc+ckjWJwr0lg== X-Received: by 2002:a05:600c:2283:b0:3fc:a8:dc3c with SMTP id 3-20020a05600c228300b003fc00a8dc3cmr6692479wmf.37.1691436923905; Mon, 07 Aug 2023 12:35:23 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:23 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 5/9] arm64: dts: qcom: sa8775p-ride: move the reset-gpios property of the PHY Date: Mon, 7 Aug 2023 21:35:03 +0200 Message-Id: <20230807193507.6488-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Device-tree bindings for MDIO define per-PHY reset-gpios as well as a global reset-gpios property at the MDIO node level which controlls all devices on the bus. The latter is most likely a workaround for the chicken-and-egg problem where we cannot read the ID of the PHY before bringing it out of reset but we cannot bring it out of reset until we've read its ID. I have proposed a solution for this problem in 2020 but it never got upstream. Now we have a workaround in place which allows us to hard-code the PHY id in the compatible property, thus skipping the ID scanning). Let's make the device-tree for sa8775p-ride slightly more correct by moving the reset-gpios property to the PHY node with its ID put into the PHY node's compatible. Link: https://lore.kernel.org/all/20200622093744.13685-1-brgl@bgdev.pl/ Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 38327aff18b0..1c471278d441 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -279,13 +279,12 @@ mdio { #address-cells = <1>; #size-cells = <0>; - reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>; - reset-delay-us = <11000>; - reset-post-delay-us = <70000>; - sgmii_phy: phy@8 { + compatible = "ethernet-phy-id0141.0dd4"; reg = <0x8>; device_type = "ethernet-phy"; + reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>; + reset-deassert-us = <70000>; }; }; From patchwork Mon Aug 7 19:35:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 711189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DA37C001DE for ; Mon, 7 Aug 2023 19:35:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjHGTfe (ORCPT ); Mon, 7 Aug 2023 15:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbjHGTf2 (ORCPT ); Mon, 7 Aug 2023 15:35:28 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 886E71980 for ; Mon, 7 Aug 2023 12:35:26 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe4ad22e36so31451235e9.2 for ; Mon, 07 Aug 2023 12:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436925; x=1692041725; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LebC+myOlLmykS4W+Y7ctD4uKN283qPMgfMX9hv9nf8=; b=LA6Fl4t6AwvmgzmENpEmeB8dQNmCo2PrTio6WHxqkPaetvTgDdifxIXdA5l0uRPGIw fC6VroUhA9ADYeu0D7GYyAU8G/aMKLHrdHv1gg3/eNdWvw3tJnDEtLMz1xHkpcgHRCPQ Z9Glhim3LhfUCd0Qtn5xEsTINklbPDEbAsv/rQ37JP1qdSd6UsP55SYBRo1euKrOAgir ibTnEP6SBc4VSjqUoO7gZOHDBeV97n/9/jclcjmnXzYXd8B6WQcRhRr+Pmpb1ZucBWu2 JPwtVeCwoFIeFdzuwGNnJwuFWrCnYU12Ct6vuC5SlgC0PnL0ihLPCHPiISf1/oLTn5Pw t48A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436925; x=1692041725; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LebC+myOlLmykS4W+Y7ctD4uKN283qPMgfMX9hv9nf8=; b=aHz1InO7jP488A2+74PMEYh2HIPU+iqLWTIgUU82K1SVaMxJ/bRalA7ZzCB4kwLtgR PhB3fun1znaHomOwGRW5AjNXoux2+9n09Xfu81V2+mYRky66HbyQ1drYWQTb/qf/2eyd sUWJufQOQmS5pedvJ1pC0evcqSokzMed0IdFD5juLOVWmVEL7tsnpe9bYVXKQD7U71B9 R3ofZxGJD+Nu4MWwW3abx4qbcflrXV9YoYZSY0K1Iglwu4QSL0ay1hLOsO2tV74n3e54 qs992Hw4z+W6+XoH4MTvL+2mtovLNd/Bm6BtwFGfeg9ELV/1qFFiBlFricTjkj7NGs39 sgxg== X-Gm-Message-State: AOJu0Yx2iT3jIYac0omIvPPiYkHrTpEMp+xokVaWtO5EwwLZ2S1h+Qlv 71rQxOuDqXddkn2LiW7uDPrUNw== X-Google-Smtp-Source: AGHT+IEa5xMYxzrMt+Lr/UP/jseRvhNem/bSlbwT2xHuhRdhe9LhTLnhVHPXAsLmaH5HAd4Ik3OhsA== X-Received: by 2002:a05:600c:3641:b0:3fb:b1fd:4183 with SMTP id y1-20020a05600c364100b003fbb1fd4183mr7781173wmq.12.1691436924911; Mon, 07 Aug 2023 12:35:24 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:24 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 6/9] arm64: dts: qcom: sa8775p-ride: index the first SGMII PHY Date: Mon, 7 Aug 2023 21:35:04 +0200 Message-Id: <20230807193507.6488-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski We'll be adding a second SGMII PHY on the same MDIO bus, so let's index the first one for better readability. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Halaney --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 1c471278d441..55feaac7fa1b 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -263,7 +263,7 @@ vreg_l8e: ldo8 { ðernet0 { phy-mode = "sgmii"; - phy-handle = <&sgmii_phy>; + phy-handle = <&sgmii_phy0>; pinctrl-0 = <ðernet0_default>; pinctrl-names = "default"; @@ -279,7 +279,7 @@ mdio { #address-cells = <1>; #size-cells = <0>; - sgmii_phy: phy@8 { + sgmii_phy0: phy@8 { compatible = "ethernet-phy-id0141.0dd4"; reg = <0x8>; device_type = "ethernet-phy"; From patchwork Mon Aug 7 19:35:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 712855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD2CCC001DB for ; Mon, 7 Aug 2023 19:35:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbjHGTff (ORCPT ); Mon, 7 Aug 2023 15:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjHGTf3 (ORCPT ); Mon, 7 Aug 2023 15:35:29 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6560E1717 for ; Mon, 7 Aug 2023 12:35:27 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe1a17f983so41422825e9.3 for ; Mon, 07 Aug 2023 12:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436926; x=1692041726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ax25duHjLdzKclyMlTxg4GcFYeJzfTNxi5ZLtlLDbIg=; b=ZumY+tdahtr1PmIS0adLU26o1F42reZMLaHKXypPRpabjftIF6s8YQFXfMd13B2Z1j V3OQsP/bLTIWpAYrdA0UCdKKgpHSMt4CWlyzyjwqEuP+Nilyl4XRTcBbZvOsOdMCYxAN 4/TcWJD2MXPPymfXwwzh+tQUDbQuXre1EOL5hpo8K++31MHzgVgMypbZBqwVKSeF1UZP +wRZdYAkAoigj9Zbh57rTRJ4HlEFMdRdD5wAKSJEJg2kbBOqHNtGco8tDnlUBBUbK0Xv yA6PtKmO7hUSUFxf41C3GL8iHCvo/22g+7A35xDPBiNN9my/7coKsxkSIDl5+BtNxMxE t+Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436926; x=1692041726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ax25duHjLdzKclyMlTxg4GcFYeJzfTNxi5ZLtlLDbIg=; b=kQ7wKgCDgIjjeUQoCu6/WKpPH4SeHVHYkBny1ejhA5O/6+GxvVq5vuGxR2AvIet2mP VAkRwZ2NL3w1PuvIlBoMgBdaULWshRD5CpVcimpSJdtFTajaFkfl5iLWo2FRy1J/b+B6 rZSiitCIsAQKqF1dJwS5+DkjHoVQYkFltY5IGRF4YgZvbgjLv8lxO4M85/CiFVcrFWMI OQXmHcEeWUhabQLzsUojyithlhz5xEtDywWw5gp/j7jqH2X2imCqX0kfeVs2THVn3HKr ap3Vv2Naub5Hi7qqBOiostlASEZb/mHLwWXXERWIvoQZjtdK5O5Klib+iyCirjspeL60 t7eQ== X-Gm-Message-State: AOJu0YxteHs4iJIPEieaRRGQXitHj4QO4e6swL7ZBTn+hEEPKCk6GYb5 tPov1oT9Kum5vslkbXGxbAr+1A== X-Google-Smtp-Source: AGHT+IGdW233kuzoYPUE4fsHAXxQANok0ofamdCFAYQGrIezEoqcBmm1AOt8GZip6akszv2DcxtBlA== X-Received: by 2002:a7b:cd19:0:b0:3fe:16c8:65fa with SMTP id f25-20020a7bcd19000000b003fe16c865famr6536205wmj.4.1691436925915; Mon, 07 Aug 2023 12:35:25 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:25 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 7/9] arm64: dts: qcom: sa8775p-ride: add the second SGMII PHY Date: Mon, 7 Aug 2023 21:35:05 +0200 Message-Id: <20230807193507.6488-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a second SGMII PHY that will be used by EMAC1 on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 55feaac7fa1b..5b48066f312a 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -286,6 +286,14 @@ sgmii_phy0: phy@8 { reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>; reset-deassert-us = <70000>; }; + + sgmii_phy1: phy@a { + compatible = "ethernet-phy-id0141.0dd4"; + reg = <0xa>; + device_type = "ethernet-phy"; + reset-gpios = <&pmm8654au_2_gpios 9 GPIO_ACTIVE_LOW>; + reset-deassert-us = <70000>; + }; }; mtl_rx_setup: rx-queues-config { From patchwork Mon Aug 7 19:35:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 711188 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD264C04A94 for ; Mon, 7 Aug 2023 19:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230404AbjHGTfi (ORCPT ); Mon, 7 Aug 2023 15:35:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231317AbjHGTfc (ORCPT ); Mon, 7 Aug 2023 15:35:32 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FA04199C for ; Mon, 7 Aug 2023 12:35:28 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe1a17f983so41422905e9.3 for ; Mon, 07 Aug 2023 12:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436926; x=1692041726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dXijTi+fw045QoNdeTPxW/V/zvFWSaYckmdhiKlT43Y=; b=nQ0YhXdb0Gawik4S9oNhaFX3oFYmErvHsSkJFLP4KU4VfeCfxmYtbYzk46J+VCJ9rs phVvTd5F56QVrMItRcUY4cSYy3uY7lbYLlvGnlDxWggRnlUf6G59ZmpuwaTv8dkIRlGi EH+F1UO4x/KPac4o4iRSt7KzkU2ajTL87j5lJoLmlfN4ye0edqP1+0EznYlqeUhzFz2r KdEQ1Ouvm6FAUMFNCpyrPex/7iUW4K6H9twoKUrmpEZbVtaAWE5CzcIKbTx3PUN6fIcu DsfeWJ7dI2U2YzA2HseiDQZ8jX1VrcbhH8z3zke5vBxBlNDQgzlwTUnxE+RMIMm/rWes RzTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436926; x=1692041726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dXijTi+fw045QoNdeTPxW/V/zvFWSaYckmdhiKlT43Y=; b=ZvXSycSjpKVHSSeJyFIhHmu2G1TMUpBJuVHNu/ilIpN5f8oZYBbPA4L8F68txo3jae qvVv+RkBj1VSotas8UC2KvKjDhEemJA8oBoYZnsfQZV+1LeJfsQADGFOUCg3riX+PP0Y 8LUz2Vp5Pxaexc1mU76ccPQMRX201lKmi5m6zgOP3m+NhINVrmg9k9qlcTzxcG35OxNW hYrdBHKE/jJJOGbY6kq5l3GnF+rlzuwlKvHfrSH9kouwVkm/d63l2KfSMjY787TtyVRQ 75qNyZS0vhoqN/3yWG6N+Sf/IuGT7Fbhk/CSmWJsZ5ltHczClivLA7hPGDJMJ7V+SvXh 32aQ== X-Gm-Message-State: AOJu0YzuVKsZUwuD9sziJ6ZW9m5blO6TMO8svBSvfkeEIX2K6d4QpO9L A5Op3C1PSCGS4Df0C+kza/GnjQ== X-Google-Smtp-Source: AGHT+IHOIrVMzqjzWgyRU91RS5tj42hdUhLwDTcRhbiSO0SO8qH18LzXTR/OlH1mLyIbwlbCIWzcNQ== X-Received: by 2002:a05:600c:ad8:b0:3fe:1d4c:d5e5 with SMTP id c24-20020a05600c0ad800b003fe1d4cd5e5mr6693813wmr.18.1691436926827; Mon, 07 Aug 2023 12:35:26 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:26 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 8/9] arm64: dts: qcom: sa8775p-ride: label the mdio node Date: Mon, 7 Aug 2023 21:35:06 +0200 Message-Id: <20230807193507.6488-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a label to the MDIO node on ethernet0 so that we can reference it from the ethernet1's node. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 5b48066f312a..af50aa2d9b10 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -274,7 +274,7 @@ ðernet0 { status = "okay"; - mdio { + mdio0: mdio { compatible = "snps,dwmac-mdio"; #address-cells = <1>; #size-cells = <0>; From patchwork Mon Aug 7 19:35:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 712854 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DEA4C001DB for ; Mon, 7 Aug 2023 19:35:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbjHGTfk (ORCPT ); Mon, 7 Aug 2023 15:35:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbjHGTfd (ORCPT ); Mon, 7 Aug 2023 15:35:33 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7282C19AB for ; Mon, 7 Aug 2023 12:35:29 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe4b45a336so25721115e9.1 for ; Mon, 07 Aug 2023 12:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436927; x=1692041727; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Oo95VHacSOouEChX8JO8J2HsGNhYMKSzCOBU0ZPBnt4=; b=4qMn/9J/Lk2cBYAMpaJ+2vRHdGu6OkayegJxPaIgrZtyjc3dQzvSYRspTRgjtn+b2p dpsMTm+l9Z6ZSVwztLf2OQbec8/mRniGaTrUoTu6YwJ5u5Y80DNo7hbNQ26bdmzIYUkS D/27tCJnW1yHH9WI1FFIXmpUkl1a0vdHMEbpRQ0upjMLgQmqrwFH3Gh5tfgPXosi1R/o yyt41rY/No/0jfcae/hPZ/IhM2NJdKhzwHm3YHCrHkygzuudvV4Y3M72VujNLEsqzNNp LJkwvhGtrLuO4EBykjyVlWsAhh5YKsTpNB9CTWndSBZsHtcduDGPXwDIbKgnQ3V4QjNa HVBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436927; x=1692041727; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Oo95VHacSOouEChX8JO8J2HsGNhYMKSzCOBU0ZPBnt4=; b=JY7uOYGQR1xZX8nyIv33+w6dDwt5YnjwWbTaDoVElD3TO2s+VNp4XaRpF0zJpTk6mT tONPv0dTt2QXaSlhuSxDCD1wFvTTSTPwrIcuauocf+09jN3bcKQ8WDRWdreV7e4MUUMX 9wQxNE1ZrxONHfPvYI6dfevWtrEwnwqWFfcN2QGzUcnqyP9tl37Fj4OIigl0j4YPhb0j JScVZvq+BizfYh38WnsS+OJ/7RAktSDrb7SfyXhcsYHxfJDZi/BuYmQh2LNA61NNRE1D GUnyIUAZhDwYS6RWooiyAltwKJrGQ/Eiqs9Nm6wMcDhgu4FI6s+rnBEwfcMXUnbDT1QR AMxg== X-Gm-Message-State: AOJu0YzjQJ3PZpDBppTI0WaZd9bcdUirS9a0Emcj4+bf+7pFJH9N9wKd 1y0anZAAsX1ILsrdegtoMDTyQw== X-Google-Smtp-Source: AGHT+IG8+ARG74TxYu0rJtXTmYwK0yAnAFoMjeeXJYE8/TO+exRWTkRiyDEGFAmQcXp5cftSvKFKeg== X-Received: by 2002:a1c:f70f:0:b0:3fb:ffef:d058 with SMTP id v15-20020a1cf70f000000b003fbffefd058mr6645779wmh.0.1691436927715; Mon, 07 Aug 2023 12:35:27 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id q9-20020a1ce909000000b003fc04d13242sm16061488wmc.0.2023.08.07.12.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:35:27 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alex Elder , Srini Kandagatla , Andrew Halaney Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 9/9] arm64: dts: qcom: sa8775p-ride: enable EMAC1 Date: Mon, 7 Aug 2023 21:35:07 +0200 Message-Id: <20230807193507.6488-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807193507.6488-1-brgl@bgdev.pl> References: <20230807193507.6488-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the second MAC on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index af50aa2d9b10..0862bfb4c580 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -356,6 +356,80 @@ queue3 { }; }; +ðernet1 { + phy-mode = "sgmii"; + phy-handle = <&sgmii_phy1>; + + pinctrl-0 = <ðernet1_default>; + pinctrl-names = "default"; + + snps,mtl-rx-config = <&mtl_rx_setup1>; + snps,mtl-tx-config = <&mtl_tx_setup1>; + snps,ps-speed = <1000>; + snps,shared-mdio = <&mdio0>; + + status = "okay"; + + mtl_rx_setup1: rx-queues-config { + snps,rx-queues-to-use = <4>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,map-to-dma-channel = <0x0>; + snps,route-up; + snps,priority = <0x1>; + }; + + queue1 { + snps,dcb-algorithm; + snps,map-to-dma-channel = <0x1>; + snps,route-ptp; + }; + + queue2 { + snps,avb-algorithm; + snps,map-to-dma-channel = <0x2>; + snps,route-avcp; + }; + + queue3 { + snps,avb-algorithm; + snps,map-to-dma-channel = <0x3>; + snps,priority = <0xc>; + }; + }; + + mtl_tx_setup1: tx-queues-config { + snps,tx-queues-to-use = <4>; + snps,tx-sched-sp; + + queue0 { + snps,dcb-algorithm; + }; + + queue1 { + snps,dcb-algorithm; + }; + + queue2 { + snps,avb-algorithm; + snps,send_slope = <0x1000>; + snps,idle_slope = <0x1000>; + snps,high_credit = <0x3e800>; + snps,low_credit = <0xffc18000>; + }; + + queue3 { + snps,avb-algorithm; + snps,send_slope = <0x1000>; + snps,idle_slope = <0x1000>; + snps,high_credit = <0x3e800>; + snps,low_credit = <0xffc18000>; + }; + }; +}; + &i2c11 { clock-frequency = <400000>; pinctrl-0 = <&qup_i2c11_default>;