From patchwork Thu Aug 10 08:09: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: 13348935 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 859A91ADF7 for ; Thu, 10 Aug 2023 08:09:17 +0000 (UTC) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95F4C10EC for ; Thu, 10 Aug 2023 01:09:16 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9aa1d3029so9843261fa.2 for ; Thu, 10 Aug 2023 01:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654955; x=1692259755; 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=4Ie4XHfXmLN17VpRpXqW8hX803ADkU00/SZ+VLSEgXo=; b=Hq+/takm7mG/JzYZdoPMLRzMncOo+pJwi3qya1XAGOY5caiL0xscmhVnPwNc1RPtVv dIhPLCCsYug4tXukVatgw4215Q3ijgiblxlRe93XGG1Qhyk036Vu4lRjkEdprhaLDt7X WQA7EMBaSQXV7M2owB3Cof4mO4BLSXfAVfu40Rj/VOnECqzDPsDuzITlxvd8tqwDCfch Q4P69/Az4N1BXhxdk004RIQfZALbKmKDyKVVJERWyCV563GqaaMWnU8f4Ql1VbIzZsRo 4i4lL1wluHcQZSORRUoTDcwu3CG7D8qVJ8RQ79le1hx7MZ+h7S638SOs3GO+Mo7NBDjO Sj2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654955; x=1692259755; 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=4Ie4XHfXmLN17VpRpXqW8hX803ADkU00/SZ+VLSEgXo=; b=UYy/t7HfUd54cL7l4eslSy/hjAPEfXY52r3a1BJfnMyjs5gKKSZmGpHInozNtrE64K AN4moI2fxFh/Lrzypt/2jgXmUMyc7nFKe0Sc5Y4VpFyzGtrrRhSjmak91gqVvvHOrh+/ HITQkeQJWpfT7yMBD/aE9oTZPGCgEEnJeUvd/dZFQR2oGQ2ZTGxsJnSIBfHl6xA4pSGt 1y/uFsFkshT47YzTRBvESpHXjf6p4fTuJhphURnIKnuUa/GlKSIU7HWQETCqulNMJCgn kn+o1AIBV0PhHxI7jvTHLEWf7MT1plhL9qsH7xGysSuyKm6aN4LfSr+/6o9OqGwod2qf E6qQ== X-Gm-Message-State: AOJu0YzPf+SnJaHlBawYrtKBYf7ID2oVJ9mJfTHAqNRPfLTEODcszB2F helWnJZh/Aviy6vv/iLxZUpqkQ== X-Google-Smtp-Source: AGHT+IGYachim5YZFTB4/OS81PMKVTpqicCYQY5WZZFI1VQQMvNmVJWHKT1resQUK5uwm5kf3VTtrg== X-Received: by 2002:a2e:998c:0:b0:2b6:9f5d:e758 with SMTP id w12-20020a2e998c000000b002b69f5de758mr1333858lji.9.1691654954704; Thu, 10 Aug 2023 01:09:14 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09:14 -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 v3 1/9] arm64: dts: qcom: sa8775p: add a node for the second serdes PHY Date: Thu, 10 Aug 2023 10:09:01 +0200 Message-Id: <20230810080909.6259-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 Reviewed-by: Konrad Dybcio --- 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 Thu Aug 10 08:09: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: 13348936 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 3587D1BB3C for ; Thu, 10 Aug 2023 08:09:18 +0000 (UTC) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34AEE211D for ; Thu, 10 Aug 2023 01:09:17 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fbea14700bso5363955e9.3 for ; Thu, 10 Aug 2023 01:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654956; x=1692259756; 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=ej9Q91OtBHYtIDh7MOi3NzupsLqzH1Y6jFPkcTbexl0=; b=xUS5vd8j1tN43tF49das865+xtmwP0ftVb5fsuLXnrbEjTx+FBKi5cQl6z9o6t2qJf Ywf9oB38WjS4Qm6PcuHwUJSizrQQciZTfoP1BjC49lGnm1BVnB+k3A5wyyJ5C8ibOaBF nQgz8pbgDs2jHkNfQbj0BOKfBuTmVia4m/7NaU3cet+rhfu2fM5B8ny8ZHhAJwrW56Mr Z+R6N0Fg3Ac/7KqLA5wBMTrk3NE0OY4KwrA2pd9LQ0v1XZ8PpZrx85AsezsUAgXba19/ YqUoVjpu5hhI+bEujR7eVFwuEIi3YT9K3Y7dnm0vR3aamkrQ+RXXTWHhio8Qz5f+9hiW icbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654956; x=1692259756; 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=ej9Q91OtBHYtIDh7MOi3NzupsLqzH1Y6jFPkcTbexl0=; b=UQ9YI+9LzJx5i4s/jyr2eyvw9gZqODnTYKqkrugj2oDfC1W6wiwVuN/4/3KnNchMhI mrq3tThZiYic9jKscucndelILczoveOFc0BuxuLd6GemxsM9bp8fF1/uWrciUeHtR6yh LxQnESvO6V+JE0crfE6NjeLczSbPlbBLlkp55zpfzyHq0BN1hrfW8wOVKqr/h6Pgphnc 7veSvoO/Ze/KOfcItIdpgiZjeb4YPv+COhfF07FgxeDjGUZBQfN1+PsPjl6Ge+EUwL4+ VppJZEGiRwSB3TlVifWT+fuU7781yf9fzffRQpYTNgvjaq7r91XrPrsiMCeLEXO4z/Ph ppNw== X-Gm-Message-State: AOJu0YwzEgJ4mrBx/Qnj/qYDqH+0ebiIci2nHLASfXAaTVaqzczdR69X eD2iLgMcbHEV0n8qobFo48OFxw== X-Google-Smtp-Source: AGHT+IHDIz80hdc+WOi887KGpCvduSEH05CwFBJVMmRhZdkOLhJUs4luxbX1EVgRpFwHY3afDa1kwQ== X-Received: by 2002:a05:600c:600f:b0:3fe:1923:2c3 with SMTP id az15-20020a05600c600f00b003fe192302c3mr1198828wmb.30.1691654955762; Thu, 10 Aug 2023 01:09:15 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09:15 -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 v3 2/9] arm64: dts: qcom: sa8775p: add a node for EMAC1 Date: Thu, 10 Aug 2023 10:09:02 +0200 Message-Id: <20230810080909.6259-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Bartosz Golaszewski Add a node for the second MAC on sa8775p platforms. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Halaney Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 38d10af37ab0..73fd8a0c0320 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -2325,6 +2325,39 @@ 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 Thu Aug 10 08:09: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: 13348937 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 43F911DDD4 for ; Thu, 10 Aug 2023 08:09:19 +0000 (UTC) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36CF910F5 for ; Thu, 10 Aug 2023 01:09:18 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fe4b45a336so5138575e9.1 for ; Thu, 10 Aug 2023 01:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654957; x=1692259757; 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=7i/SrZF+jY6u1jae550/qtxZRbJK0LYhJpc6f9zoYy0=; b=TSkZ/z19Ewdl3ii6ZrEpjy0SNsDYae+B7yxQS8iwRCi1WEu2S+GgYSD4gR0F7PXXyS JPZ+CZ58O4/ChchZJF6+bT7dYKRFqgJWnxq1w18KrL6Cd1ypmiU06phL3s+ye7RWoNIP iy8lqyG/45vIMyiZwX4JBx6/XUSY255F6HIldfVQC/o5uZHIUVKdXuTXR3peA984D8SC THWVHrngTGtBG9wISwBKfWv59BFyZtf/CBPCTUIoBAepxec30C1feXqhyl9yKZIebBmY UNvtdgdYEe4JgwO2qZp5Wc0qjxUByJDLSsF/LnFtMxenYNP6QuCmOCtt8L1GtqsizFPS /+fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654957; x=1692259757; 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=7i/SrZF+jY6u1jae550/qtxZRbJK0LYhJpc6f9zoYy0=; b=T7MxC5KAZrtJ6UJ677NtHhT9P1ARtt6ukfgLOu98sMlK4spdXcM1UB8PtW/tJCwJAF dVBItb3xWcEETGU3foupKKLxQnCs5ntJF53YWEdC2c0D+V2of5XHpqDsV8ZFmzHAh87U 3HgDwUJix9w6AFKl7ZmMllbmPG+6/K//cHheKDFzyhk9nUvcobHMPGwmD+AW3cmOmkmc Q2Rio4OUgVVYsYbaajCXpAvB8mIqWb64R86b0cw/uB/Bd1E/tFtecowylubz8Cno4yMA fcVh4DO5FOiI7VkCEAbgOyIMdm4T2ITkIftoUoofkCSoo1ugGa1qXjOeE6pqieT2NEB4 irkQ== X-Gm-Message-State: AOJu0Yyo8JH8ui2BtoQwzgKLj4zx/2TE/VxP1BRpydrEHfhn9I2rH9TA R64ly0trqStRAlLKQgm5DOc1rQ== X-Google-Smtp-Source: AGHT+IFXte2Z3OPC0mOtun/00VY/jOftBufylvOjCscAxfiFS59vQyoj6n4WvAWwPTvqANfIkD47LA== X-Received: by 2002:a7b:ce0b:0:b0:3fe:3004:1ffd with SMTP id m11-20020a7bce0b000000b003fe30041ffdmr1291842wmc.4.1691654956853; Thu, 10 Aug 2023 01:09:16 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09:16 -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 v3 3/9] arm64: dts: qcom: sa8775p-ride: enable the second SerDes PHY Date: Thu, 10 Aug 2023 10:09:03 +0200 Message-Id: <20230810080909.6259-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Bartosz Golaszewski Enable the second SerDes PHY on sa8775p-ride development board. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Halaney Reviewed-by: Konrad Dybcio --- 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 Thu Aug 10 08:09: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: 13348938 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 6F7AA1DDD4 for ; Thu, 10 Aug 2023 08:09:20 +0000 (UTC) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41074212F for ; Thu, 10 Aug 2023 01:09:19 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id 5b1f17b1804b1-3fe5c0e5747so3306175e9.0 for ; Thu, 10 Aug 2023 01:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654958; x=1692259758; 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=eZfHcD5iKH92nMGOtJsjwO8F6ScspW6SHo1XJSm0hk0=; b=GnussyPTIou8eprNZioYl3UmyJGVZQP8PfyJOLOPBK1CNKetnRc0vmVqo5N0gamois mDlyOKYcXpldli1Uf0D+1d6QD1Bjkvn+t29P7/IKGJ5ETzI9dkVfatfMJOps9XPx0jFn ufMMCcxwL6cyG5Y5/4YEBlV3p+OMOxSUoYvboqVTi8r8pYTZT7mQ3aY8B0bzTAbZNYLF Sr6yp7zjNz83J09XXwaAp7Yvu60uZHInHTD8H7p8+rcwtLwhX0n+xvsqnq3tRxvfGGGV cIATdwKoJP0CyLQTkmM3WrCBWEpFGFYMz7yGqYCxAdF9d5deCSgf7oZCn7n9x03K8Fu5 WGSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654958; x=1692259758; 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=eZfHcD5iKH92nMGOtJsjwO8F6ScspW6SHo1XJSm0hk0=; b=dUQRXKzo40BkXWlDVx3hXGKtfADcpimsjB1SeeEdQpcpmXXfDOu4eF8yf9f3POT9Ws kfGx/96smCiJqzEfoj0UQFefimo6/Sv4M+pKw/lVgr5jzDbWBwAciHbZmt02f8nzERjE 4CQuIrPHUbZ/n6KRtnPhegAZs4QhV4lpebvsDD9cKjCdH0i5TabNyzbFNR831ARjB33m nMZFgudM8u0N1hID3kl/dx/qcrPC81xJPv5Ub6LM1rElirxYEl3hBdk3fN0Pcsep5BfC WFfssRm9uzhxhzYEQ3okJP2lOdSW5t26rmfBOGOJOyB08c/ih3Gz9kQusG37JW7wQB27 wujw== X-Gm-Message-State: AOJu0Yyn0GIQVYneFtND+pQ0Y1c8fXSsCim8WLtaLQ6VyoYVN0VZ/4fL 6D++kNsy8ZEOl1hwlaW3hxTYvA== X-Google-Smtp-Source: AGHT+IGIa8oSvb3iGBVIroJMvJcCqmcdtRG4qeQaivBsqa9/Ce15p1oaQ2VrL0P69NEdqF95toUoaQ== X-Received: by 2002:a05:600c:285:b0:3fb:af9a:bf30 with SMTP id 5-20020a05600c028500b003fbaf9abf30mr968467wmk.2.1691654957797; Thu, 10 Aug 2023 01:09:17 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09:17 -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 v3 4/9] arm64: dts: qcom: sa8775p-ride: move the reset-gpios property of the PHY Date: Thu, 10 Aug 2023 10:09:04 +0200 Message-Id: <20230810080909.6259-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 controls 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 comprehensive solution for this problem in 2020 but it never got upstream. We do however have 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 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 09ae6e153282..a03a4c17c8f0 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -279,13 +279,13 @@ 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-assert-us = <11000>; + reset-deassert-us = <70000>; }; }; From patchwork Thu Aug 10 08:09: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: 13348939 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 8C7221DDD4 for ; Thu, 10 Aug 2023 08:09:21 +0000 (UTC) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F36211C for ; Thu, 10 Aug 2023 01:09:20 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fe45481edfso5830575e9.1 for ; Thu, 10 Aug 2023 01:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654959; x=1692259759; 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=k/ZCS8IPqTOVVmzyKUhKmwS1Ej6sOoZW7BgZ9pVGhqs=; b=EFKS9BtSiunTry9MFBRgW3vTX8qW7ha9pp7TeE5FsAiRNnY1JEb6/fDRmmHh5L0DDt 5YjOu5WsGqDdloC8i2QJAoUI3ks76mdTVKkrWwP69P+cro2goE0e10xMGI897MvUe34m 7jRA4rtyHt//svmLzt5rbY3Py9vWoVHTx7KqfqjxxVlvQPRj4ez/3iL0pp7oFXt9q596 T8U/9AwEQmtQDyd8DDWTed257IhAHNJictOwwPrIM8ZFLWiry76tJ9A1mAiEfcjZ1S4C WDUE50BvzWl8pbPGMm77LM1s3AzQkQiTGSjasVptodfSzt8aGWKvEc0H9iTwIcQoVNHi gxtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654959; x=1692259759; 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=k/ZCS8IPqTOVVmzyKUhKmwS1Ej6sOoZW7BgZ9pVGhqs=; b=fYGqjb0BFIfxpgWADBGVv3NqV9nsHq1c/a1/KC6cvO92x5IPeYr0PrgrAerDSd40CX OHKEKLIDcwHgL0XPn+WrDMMJ9pyGPOLLywGLT2oHHfz94g2K86Qj3LL5SPfLISuPbjj8 bD+qEpmSJt8AuJ4MkkXEGhp+PhYjP8f8HovaLqpUxAlMP9kHZZ7beCKOKDT1oUBva4Mo peWQ6LOHdP/7pWtBWL5LwmcPuCeNS52AkwMw8CfLaXlm/zHDw3YwJhRM4Teq5YTrKfc2 MIw1oEjtpdBHSJY/8BH84LdhUMcj1SihrKwCS3i6rAjiGRaaqzYvwnK9YR1bNt9AdVmy PC0Q== X-Gm-Message-State: AOJu0Yx3euPGhWgrBmGStVT2z7hDADoi8lo6QkdHjrq1zMQ3cVBERvkg nnkt+aaR/CvT4OScqrLDCyEgDA== X-Google-Smtp-Source: AGHT+IH5Mn1hEi6xgHbbSZZZCMoZat04tukAwJMRPhoiULmpdzR+7ULrU/FBeXMpLfzLNqJdtDdlUg== X-Received: by 2002:a05:600c:2196:b0:3fe:2e0d:b715 with SMTP id e22-20020a05600c219600b003fe2e0db715mr1367285wme.18.1691654958836; Thu, 10 Aug 2023 01:09:18 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09:18 -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 v3 5/9] arm64: dts: qcom: sa8775p-ride: index the first SGMII PHY Date: Thu, 10 Aug 2023 10:09:05 +0200 Message-Id: <20230810080909.6259-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 Reviewed-by: Konrad Dybcio --- 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 a03a4c17c8f0..f9e1a017798e 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 Thu Aug 10 08:09: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: 13348940 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 CF5D81DDD4 for ; Thu, 10 Aug 2023 08:09:22 +0000 (UTC) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FBA9211C for ; Thu, 10 Aug 2023 01:09:21 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fe61ae020bso868109e87.2 for ; Thu, 10 Aug 2023 01:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654960; x=1692259760; 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=hHrp6Ft5M/sZ0FkW3Vzz3FknXdyR9hhUh3bpgMqvZnE=; b=Xyxh0icQq0/Iiu3mr6XTjxT4dRe3aN7c6Lp4HiDYlXIvQZWJ2B6+XWpRcPcwbXySLx nsG0/Wj9u8lgmk8FHbPftyLcL0i3HrignsIESoV2fcByiBBz5tn3/nIa11rImFhe5sil j3fDxwRO0bQ2AoRPhaHMUyrGENfmcHSkvStaKUJ5JlDy594+5sF/Qequiz9piGObjf5I nk4iZP3LEqmYzg5odtACe+mXDkRyMuefLoogJXMD6GAhdoKQ0YL1ebQ8neCwOj4Ve954 KKFslwAs8pWd7HGmm/GSgwCweDWFQwKlXsfDkQuR4NbBC6CtA8PIj7qKi1q4Ulav5/uq VjmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654960; x=1692259760; 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=hHrp6Ft5M/sZ0FkW3Vzz3FknXdyR9hhUh3bpgMqvZnE=; b=R+7Fn32Twinyi1bA31Y2PzTP+Z+dF6eF8gEkLG2XNgSOJrOO2zVpRzQTo+slZlncdj DS/DXzPuXv8HnIkd8GM09ECb9r3VHoCFd5HY6cRVzItqL542wyTpGPSXYlgnzxmTO8uH jl11uePKJlv2kDM84P7DI4U3EMg/vWYiS5HAj1cRPMlWKcNDdWv5J3a+hYqCseUO2lLP QWKBqhaWMfW1Du1VRQdV7bw5lXCMHDWWGpzfeITERWQARijSLxH4J+VCxUhhEUTsG9mP tB3MHUzbEmStgNhxw5THbr4Gno9UQCylnSNTv4yELmyPoYp32y1+X5gTLCXwtq0u0Id0 teVQ== X-Gm-Message-State: AOJu0YxeEaSPQ8gUpUAOiibgI31jSqfSrPMxpva/OB5NtN+9MEylXV4x NPuaxXYFwid8Wp2MjVEpubFgrg== X-Google-Smtp-Source: AGHT+IGvaGx0zd413sbvjU6gfReN+Bzz4/M2soeQRahUIP628XQwAbyZgVC/DgJ+12HmFVpdaQZqTA== X-Received: by 2002:ac2:4f06:0:b0:4f8:7568:e94b with SMTP id k6-20020ac24f06000000b004f87568e94bmr1611776lfr.56.1691654959869; Thu, 10 Aug 2023 01:09:19 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09: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 v3 6/9] arm64: dts: qcom: sa8775p-ride: add the second SGMII PHY Date: Thu, 10 Aug 2023 10:09:06 +0200 Message-Id: <20230810080909.6259-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Bartosz Golaszewski Add a second SGMII PHY that will be used by EMAC1 on sa8775p-ride. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index f9e1a017798e..486cb48ecb9d 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -287,6 +287,15 @@ sgmii_phy0: phy@8 { reset-assert-us = <11000>; 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-assert-us = <11000>; + reset-deassert-us = <70000>; + }; }; mtl_rx_setup: rx-queues-config { From patchwork Thu Aug 10 08:09: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: 13348942 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 11D4B1DDD4 for ; Thu, 10 Aug 2023 08:09:28 +0000 (UTC) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9291E2697 for ; Thu, 10 Aug 2023 01:09:22 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b962535808so9777271fa.0 for ; Thu, 10 Aug 2023 01:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654961; x=1692259761; 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=cpXdzO18RrtXwG1vEq4oV2dagvFMdv6OctdPNcdZEJ8=; b=nfvkb65ILI7O6/eV3tgDEznl1SJwxEb471cXklCICLHiO10nmoX7XaRQDhiL1U6WFk mvsfSbR0jzYB+qrV3aoZ3vFofFI/J+PuSV05QhkPj88czct74lkoQuzF1PgY8YhWv/5A GE8ssaeSSsteIKNzXvS42j0+UvcWw3RUn4D0glmhHzYSuvrC1Gzws8KKWz2sofAkNfk1 1PZI6rbnoxGWSq5oP/33c39F0U7Ltn0YjOujvy2dQLMju6qGivs0TSBxh7guigELB+UJ A9epM8z1jdCzsXplWgog/RJcdBKVWPHnTSUX+UwW1A2FNpu75m9+gAZdG81lzuAmYT4z cK1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654961; x=1692259761; 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=cpXdzO18RrtXwG1vEq4oV2dagvFMdv6OctdPNcdZEJ8=; b=YAMYVZwPTO81BU4qKhLTiwEeBRxriCf14eHL0qseXpCqaW+Lx0Ho7ZGoy/RTRYVD1D xxAm7RwQfyFEj6ORN3eN0801JIFEl+wsuJN3UR0oHbruwpfnvJ0wPP15ilHG3yz+KimZ cgMTZeIMhaC/7CMm7IOczkVgnPQqqKpX57HIjnHkQF3lZQUsQ0f430zsAg/BpTHO0EH9 4qj/GsQchhCeRXm+c5XhfbTZ8DkgJ5TLvx6Y/ll6kJzRS++SdqlHFhCUo4QmJ50lImp3 BFsRlAsJxOawEZ5fiVmrVbSpTE73s5vLy0Ad2m2HjbYAL0z2EwAp6h2kL+cT8CPyu0AF uYMA== X-Gm-Message-State: AOJu0Yw6f+xeKJ/ysUfV3LF1VHPssKvWXNNUf5Dq4BFUBhisj5Rb6PY8 UbkAM1kadW3jScpt4twgp5MvXA== X-Google-Smtp-Source: AGHT+IGcGnKOGdbYi4/mD8nbOxs4Jab1BFmWSwEyjhk+nVjauJLO97xg7euetaCl7JaWUKCEBZYZqw== X-Received: by 2002:a2e:8ecc:0:b0:2b9:4811:2b6 with SMTP id e12-20020a2e8ecc000000b002b9481102b6mr1248341ljl.48.1691654960916; Thu, 10 Aug 2023 01:09:20 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09: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 v3 7/9] arm64: dts: qcom: sa8775p-ride: sort aliases alphabetically Date: Thu, 10 Aug 2023 10:09:07 +0200 Message-Id: <20230810080909.6259-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Bartosz Golaszewski For improved readability order the aliases alphabetically for sa8775p-ride. Signed-off-by: Bartosz Golaszewski Suggested-by: Konrad Dybcio Reviewed-by: Konrad Dybcio --- 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 486cb48ecb9d..93d64618ba58 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -16,11 +16,11 @@ / { compatible = "qcom,sa8775p-ride", "qcom,sa8775p"; aliases { + i2c11 = &i2c11; + i2c18 = &i2c18; serial0 = &uart10; serial1 = &uart12; serial2 = &uart17; - i2c11 = &i2c11; - i2c18 = &i2c18; spi16 = &spi16; ufshc1 = &ufs_mem_hc; }; From patchwork Thu Aug 10 08:09:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13348941 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 4D12D1DDD4 for ; Thu, 10 Aug 2023 08:09:27 +0000 (UTC) Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00E910EC for ; Thu, 10 Aug 2023 01:09:23 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9f48b6796so9411031fa.3 for ; Thu, 10 Aug 2023 01:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654962; x=1692259762; 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=IuGMQ/KL+H2K3zbEqC4egvVdZx3/q137aQDynxfPMTw=; b=lPrRsbpPeUSoPHZuXzSQaeQbVcGZrTTJu8B5CiRMAtn9dl57dlRIAnfDavAloQO0MP /zYvE05+Q8dETH+sGjluziZXxhavvs9j2uUhZKdZrxyvJQia5XyV5WXPMsb0t3oreAu0 yPDib3Kyam53zvMJMy9XMzDITSomyGcp1LmLc97jDlfixKmc92A+LnIsWHxDESe96/pg txVCXcqHVNGFonj0hxaM7lEhcThC1w1F+gh53dsLfhdCg8cbkcLZGCksuZcNM78b+zf8 kx7+fmvYY0oC3wDQc2Rb9SoWmcc+9IW3NinsAKSd6SOgyEn0oLViGW0rQvTLwtNqJsMU XE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654962; x=1692259762; 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=IuGMQ/KL+H2K3zbEqC4egvVdZx3/q137aQDynxfPMTw=; b=b3ju2Srk48JHihhiQ4w0tMZvp7biFxjphDEdEHnxCM37i79xsS2/2y10EaXrB+gSX8 1FqPF2KjStPYDcvrRovdH3KV0f5CQk5YISojhDWya7vSyi99o+dEQvPBwK8BQMwb5D5x HxZAYsnps5fHMGHv5w2D+O+mCNw0VlPZqfpaTTuMEJlIUBFNEUEUh/Rkzt8+9A+frbSN hXSSZ7SakZpjdSMSRD97l3ALWG1ZT2tzCokcaYB7aLM+RVoZEIC3cpHBU0nMTa3rji5X Cvp19fQKaYALSO6XL56kKmoJonrL9EmMXYlxdigb78OT1GrIygIzK6GuWUKjshNqDG9M C3PA== X-Gm-Message-State: AOJu0Yzi2Q4OOC1wgVfNQigRZTcXj6L++GiyAaqlfBvPyHEWvYff9+/Z pD4+8BEaZrvPI1yRaw+OseprBw== X-Google-Smtp-Source: AGHT+IE3WlptZ87OGGPAp8NRM0Hr0bRizxOA6ht8++KZTsqY7h0JnA7qRBhHmdvTKoALjVUqC/rTIw== X-Received: by 2002:a2e:9ec9:0:b0:2b4:47ad:8c70 with SMTP id h9-20020a2e9ec9000000b002b447ad8c70mr1203494ljk.11.1691654961945; Thu, 10 Aug 2023 01:09:21 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09: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 v3 8/9] arm64: dts: qcom: sa8775p-ride: add an alias for ethernet0 Date: Thu, 10 Aug 2023 10:09:08 +0200 Message-Id: <20230810080909.6259-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Bartosz Golaszewski Once we add a second ethernet node, the MDIO bus names will conflict unless we provide aliases. Add one for the existing ethernet node. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 93d64618ba58..48119266c6fd 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -16,6 +16,7 @@ / { compatible = "qcom,sa8775p-ride", "qcom,sa8775p"; aliases { + ethernet0 = ðernet0; i2c11 = &i2c11; i2c18 = &i2c18; serial0 = &uart10; From patchwork Thu Aug 10 08:09:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13348943 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 87C6D1DDD4 for ; Thu, 10 Aug 2023 08:09:28 +0000 (UTC) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A94226AB for ; Thu, 10 Aug 2023 01:09:24 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe426b86a8so5519905e9.3 for ; Thu, 10 Aug 2023 01:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691654963; x=1692259763; 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=5XnXEHTpcZwsLX4QNNcVLRlqnkdUgZEa6wcYgGVtY88=; b=KHxobwMmJ5xLuQ3fTqWbKzB6qgqvAQdnuSJxNgr8p3NLWm51+bi9KztXc/Nn3jKmBQ /znodQXxIzxDNtXb62bMYgIR4q5VIXgRjdEt9TlcM2Ge/V2PVRicEt8B91KIdIxIB8I3 o2ygAkhRR5mE+tO56OrSQormCUMSUVslpOF2yCabPGeHuwEYFeisK27aj4qjDhDbFhAG CF0pwVxYjxHLE+WGC/Zc+dLbfOsNVuXytzniNciQ0AF2oyVg7cfnK41Eq2xUluLtbTw3 xy+rl9k9YOvAB9YDtV2uvbqqYyAx/YhIeUzrfjB8OFMO4ynncy9HfMohXrBr+9ghvcTw gPBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654963; x=1692259763; 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=5XnXEHTpcZwsLX4QNNcVLRlqnkdUgZEa6wcYgGVtY88=; b=gHYqUxVdJQl7c0wgafW5aLBYDue3kbfp5Elj6va1XKONWUMPbRAWmYbUxFJgsuV0Lp 3CX6gUO9k4T47hx6rLGliRwRPsR6/T4IFfyQoRbK6Rx+d/eBTGVZqCaiF/1T53RubhNQ z8zpvjogUnfSLdShXeFU8euyQYfgLaNLE4mH6s27Bwd9C38FkqzEVEcD3ud8NndBnFSB 4QL87Wb0MkkBJGduLP0NaDVWzBrieFj1eBqCLNMxRbfVjWUlOvcqQNc7b7hEEUou6Pge goecDA6xWbBH/1Z0RfvcwMmdNp3NfKuksHAJ4c44H6Oz83xUSWlAAnB9dHa8mf+i22BI Dezg== X-Gm-Message-State: AOJu0Yz1YPQgQpsVF0/CG+bCqWzkvzECjE6fRvgT6xRPXaZN06b30QPU nv59dtG9RJsvRiHDLnQcLlB4Tg== X-Google-Smtp-Source: AGHT+IGuwA9g6Dv+9oaRLjpG3wLqlI4/PqOEjOrVytYMFrFOB7GDlqo/TdgkN3fFponJHiXh3bKVaQ== X-Received: by 2002:a05:600c:b4e:b0:3fe:19cf:93ca with SMTP id k14-20020a05600c0b4e00b003fe19cf93camr1278555wmr.8.1691654962976; Thu, 10 Aug 2023 01:09:22 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:74d3:226a:31b3:454c]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003fe2f3a89d4sm1321790wma.7.2023.08.10.01.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 01:09: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 v3 9/9] arm64: dts: qcom: sa8775p-ride: enable EMAC1 Date: Thu, 10 Aug 2023 10:09:09 +0200 Message-Id: <20230810080909.6259-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810080909.6259-1-brgl@bgdev.pl> References: <20230810080909.6259-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Bartosz Golaszewski Enable the second MAC on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 71 +++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 48119266c6fd..81a7eeb9cfcd 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -17,6 +17,7 @@ / { aliases { ethernet0 = ðernet0; + ethernet1 = ðernet1; i2c11 = &i2c11; i2c18 = &i2c18; serial0 = &uart10; @@ -359,6 +360,76 @@ queue3 { }; }; +ðernet1 { + phy-mode = "sgmii"; + phy-handle = <&sgmii_phy1>; + + snps,mtl-rx-config = <&mtl_rx_setup1>; + snps,mtl-tx-config = <&mtl_tx_setup1>; + snps,ps-speed = <1000>; + + 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>;