From nobody Tue Jun 23 15:24:11 2026 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 72331C433EF for ; Thu, 3 Mar 2022 08:48:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231588AbiCCIta (ORCPT ); Thu, 3 Mar 2022 03:49:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231577AbiCCIt2 (ORCPT ); Thu, 3 Mar 2022 03:49:28 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C9021637C2 for ; Thu, 3 Mar 2022 00:48:43 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id u2so2935744ioc.11 for ; Thu, 03 Mar 2022 00:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vNsqVoa00YCDeFZ4I2281SG6Ep4/CfQvbPK2hEihXH8=; b=UbCCmVXg8hNoLQLReHYqeOJ7u0Gm74D2VEnsK0mPF7Jaz8iP8l6VAzXY1y6BOy2c9w 9BivdYBL18kBvDaziMIY0Wml7/AWAotMvmXEyIIZRcIF3UyDCuqXvLplh0hnTNksyFR9 YK4UYQAfDOgcErBEsvP4egeZALszSsOQbZl3j9atoNwSTR/06Dfh0ttEvR2C/3L9ZAvk Sz/f1fl5gmC1+khQ8iCkhfKcRAAEGMT+q86OFow6AGLSgpYK1Zydy1MgE64Qn6VegiTu QCWk4Yo/P798+V3CWQ5qdvqy8G3PqQ2TGqJJreB5LKYAQMyO0+peNIAKwkOCgd8faHek Lbog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vNsqVoa00YCDeFZ4I2281SG6Ep4/CfQvbPK2hEihXH8=; b=UHJt5Q64zTuKASR87LvgH0it2CAMGjo+WHmbGxJp4mtxpyMJ1NtrNrvhIqEFiZ3RUq Psq1SVZfgR4CED2qWWRgP9n6NGp/jVB5g1iSiw+L5TM9WthAlOI0ZhpVmsilvImu5Fzp ORJZnUdBh/JlOiV1xjY+sJvWIX3iHfWaUS1trfcjsiwJDYH9Z+SBEJp0kGSAGp2iWknp CLQWByJGXZ85LCQcUY8WJnR/Tvn4fXRCwduzOGLFAOhFL15Wv0V+KTv5Ty3LhrsuRNkq G8Hlmal3N8fUeb1HyKvgBgrYGhBLkNPDLDL30skDNl3GGo0Dfo07TQL6Gt3pIM/cpYDz rCMg== X-Gm-Message-State: AOAM532oIPqIKmPM5Yc/+pJRDh3GYudEKGsiEg3DVJqRFxU1K1BbWSfP KR1fVCai7zmil055Sb7Cskwztg== X-Google-Smtp-Source: ABdhPJzPZl/TX8TodBaONLNjGojjs18uk/VVKyN64V/MKI0fF2TryeaN4V/+BsDCuj6q/nXa634yIA== X-Received: by 2002:a02:2a0d:0:b0:317:380f:8fce with SMTP id w13-20020a022a0d000000b00317380f8fcemr14891422jaw.205.1646297322652; Thu, 03 Mar 2022 00:48:42 -0800 (PST) Received: from localhost.localdomain ([182.64.85.91]) by smtp.gmail.com with ESMTPSA id m9-20020a923f09000000b002c2a1a3a888sm1480704ila.50.2022.03.03.00.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 00:48:42 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, Vinod Koul , Rob Herring Subject: [PATCH v3 1/6] dt-bindings: net: qcom,ethqos: Document SM8150 SoC compatible Date: Thu, 3 Mar 2022 14:18:19 +0530 Message-Id: <20220303084824.284946-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303084824.284946-1-bhupesh.sharma@linaro.org> References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Vinod Koul SM8150 has a ethernet controller and needs a different configuration so add a new compatible for this Acked-by: Rob Herring Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/net/qcom,ethqos.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.txt b/Docume= ntation/devicetree/bindings/net/qcom,ethqos.txt index fcf5035810b5..1f5746849a71 100644 --- a/Documentation/devicetree/bindings/net/qcom,ethqos.txt +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.txt @@ -7,7 +7,9 @@ This device has following properties: =20 Required properties: =20 -- compatible: Should be qcom,qcs404-ethqos" +- compatible: Should be one of: + "qcom,qcs404-ethqos" + "qcom,sm8150-ethqos" =20 - reg: Address and length of the register set for the device =20 --=20 2.35.1 From nobody Tue Jun 23 15:24:11 2026 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 27F29C433FE for ; Thu, 3 Mar 2022 08:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231605AbiCCItl (ORCPT ); Thu, 3 Mar 2022 03:49:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbiCCItg (ORCPT ); Thu, 3 Mar 2022 03:49:36 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB56175848 for ; Thu, 3 Mar 2022 00:48:48 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id q8so4998869iod.2 for ; Thu, 03 Mar 2022 00:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MSMHKR0pmUBVsu3Vu2wBxwFcKUCdAyp38lru1FeWzYE=; b=mNlWeTevAfC6NBCmgAqO7gQgNy0HxOaeX7ypa+R+i8lHm7E6Qxfqktf+3G+1FmnWs+ FisZv0YRzClLKs3OT/u3rNZViWcMFBkMKWI5jYipSyNSWfdqYUF74IZG4zVqAeSXnN8E p+lRi9exYQ3G7hoP3v5jvTdw2TbgtOJB85OfKvCNmp0mZzGsCEXzKYxeYRHU1t2Xf0cy JtkSkUVrWrCaDKV+As6AGNtxH1O5nzkHvvcBRl2lN58ZMhJCTiA/VJGBfzBL9fgcDlGg Lu6nzgydgwClyT4CoFKgG3XdNkgGIBu+gK8y3XyUAtZ/uTYH0QYxUGnwEpJlAt4aYlLG y+DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MSMHKR0pmUBVsu3Vu2wBxwFcKUCdAyp38lru1FeWzYE=; b=aGqAqCn0C2XZ7inbhgeXoxARdHwKgauVcoTeYFW9JGmCapTkgW/wxNU/niJWA3rm6k 3spaEqMTcMmkyeoipXwEuGwFVZNbfe4TcA/z/UYR/brPlyWKkhtHo99PjDW2e2KBs4n/ cVoGFV71uPeyaUKcLm4g2W9n5rz7L8FQdEbahFtZd69vFAtPRiZMO+VEiSN02WbjtThJ DMB0oblSXRXCCjqvnI598W56lvXrLe8s8D63sh6OuFhuLTlS7b5l/DeDlk6QgVeSeNJ8 Q/uSxWcZFIP+zq3eYrsFxAXX54biFw2nb5QbUiJD5IKFXtY/Hb5zXS/IZIH5Bbx48PkS U29w== X-Gm-Message-State: AOAM533S2NPaECgFTussLygnXygrw6SsEhSX4sC+YZKUVgJP0EfrvUrZ SAg93ex2GXczBiX7Ib18JWNNqA== X-Google-Smtp-Source: ABdhPJxk4BEn7tYqG9TYEaBYdHLNzALSFZ3qp6vUvK8puPIYmfuW2OoY4zgtrIqQFLL42BG5MiF1Iw== X-Received: by 2002:a5e:881a:0:b0:640:d0a5:2bfe with SMTP id l26-20020a5e881a000000b00640d0a52bfemr25696913ioj.34.1646297327976; Thu, 03 Mar 2022 00:48:47 -0800 (PST) Received: from localhost.localdomain ([182.64.85.91]) by smtp.gmail.com with ESMTPSA id m9-20020a923f09000000b002c2a1a3a888sm1480704ila.50.2022.03.03.00.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 00:48:47 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org Subject: [PATCH v3 2/6] clk: qcom: gcc: sm8150: Fix some identation issues Date: Thu, 3 Mar 2022 14:18:20 +0530 Message-Id: <20220303084824.284946-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303084824.284946-1-bhupesh.sharma@linaro.org> References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Fix identation issues with usb30 gdsc structs in gcc-sm8150. Cc: Stephen Boyd Cc: Bjorn Andersson Signed-off-by: Bhupesh Sharma --- drivers/clk/qcom/gcc-sm8150.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c index 245794485719..85a431ac417b 100644 --- a/drivers/clk/qcom/gcc-sm8150.c +++ b/drivers/clk/qcom/gcc-sm8150.c @@ -3449,21 +3449,21 @@ static struct clk_branch gcc_video_xo_clk =3D { }; =20 static struct gdsc usb30_prim_gdsc =3D { - .gdscr =3D 0xf004, - .pd =3D { - .name =3D "usb30_prim_gdsc", - }, - .pwrsts =3D PWRSTS_OFF_ON, - .flags =3D POLL_CFG_GDSCR, + .gdscr =3D 0xf004, + .pd =3D { + .name =3D "usb30_prim_gdsc", + }, + .pwrsts =3D PWRSTS_OFF_ON, + .flags =3D POLL_CFG_GDSCR, }; =20 static struct gdsc usb30_sec_gdsc =3D { - .gdscr =3D 0x10004, - .pd =3D { - .name =3D "usb30_sec_gdsc", - }, - .pwrsts =3D PWRSTS_OFF_ON, - .flags =3D POLL_CFG_GDSCR, + .gdscr =3D 0x10004, + .pd =3D { + .name =3D "usb30_sec_gdsc", + }, + .pwrsts =3D PWRSTS_OFF_ON, + .flags =3D POLL_CFG_GDSCR, }; =20 static struct clk_regmap *gcc_sm8150_clocks[] =3D { --=20 2.35.1 From nobody Tue Jun 23 15:24:11 2026 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 43072C433F5 for ; Thu, 3 Mar 2022 08:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbiCCItu (ORCPT ); Thu, 3 Mar 2022 03:49:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231577AbiCCItk (ORCPT ); Thu, 3 Mar 2022 03:49:40 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 036BA175846 for ; Thu, 3 Mar 2022 00:48:54 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id q8so4999063iod.2 for ; Thu, 03 Mar 2022 00:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=482hD2qt/fBTqqMj7tAx9n2UG+YZouWq5uywKb+Ersw=; b=M19HlaEWFMO5kHQfzFlCLzmDcVSL7CIc0WlpcCMOt9UgrGMCX4Lr0eNBQ5L6PyXgl8 IkHtVnjDicQhYvUbChvfUgrsu2QfAuhtnwGJLJc0TcXKu6eUe9oHglyI7PkxlnH6hUx3 aaFpSrogRbKBIobHDn5OTu8YJBTcwN5YZjjffLSb3yysxbLD0xoO47DF1HBW60GfOMty AogDZ6dOstriarTzpKLv+3xBXF+8KhfiDOAgP+A5ocHrBQc1jjP+DfI1twjNWOb1oGWN w2nScQ7ohoKGjjStfKCpFaJrPruocyH/u3DMg+sTExXCEQehx9VCQ7PPhBsig0RT2jSL 945A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=482hD2qt/fBTqqMj7tAx9n2UG+YZouWq5uywKb+Ersw=; b=neWUkaNdkK07NZS+Vw1xHRx136VcYNTpOS8L0/4E5VQz0s99zFnMy0nNRFNrB8IpL1 Q1H9mFyNPtz6uMrI6kTcSCKzt8/woanUHhOFYgH8kviEG9EfqQAwSrG7ekLIcuhOgo9Z /nZwxYRLQlpnItjLoQ7I6OBnLOPp3KhT7VOZnvegb2wrXH8JBg/uVPrO64GsKUtacZl7 l94UF1n418OqfmMWp/6CGdWJpdPoLnBjY3iuR6LLsTwOL1DcDYCxlFuu4ARLysKUoI31 S3gPrVDl+mnRNyLEuox7bhu3xB36Sv8mbEFPiCGMrfuWi+mW8VVcdFi9vIZSgB/4JITG MdYQ== X-Gm-Message-State: AOAM5325WOMUIjTujs+aQHOi9Gn1/CX+qIJqXieyb0Xrh5x1j76QDmFR OWLg1oA/7gy5eZo7jRTjt0QxRg== X-Google-Smtp-Source: ABdhPJyph0+r+OaL+USUMZ6pzp9tvhX9O/L6ChA22JMqK7rKFwLKaSCOe7ZVdIORk9Of7XkvPGd6sQ== X-Received: by 2002:a5e:d60d:0:b0:640:9e90:c1c4 with SMTP id w13-20020a5ed60d000000b006409e90c1c4mr26083357iom.0.1646297333361; Thu, 03 Mar 2022 00:48:53 -0800 (PST) Received: from localhost.localdomain ([182.64.85.91]) by smtp.gmail.com with ESMTPSA id m9-20020a923f09000000b002c2a1a3a888sm1480704ila.50.2022.03.03.00.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 00:48:53 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org Subject: [PATCH v3 3/6] clk: qcom: gcc: Add emac GDSC support for SM8150 Date: Thu, 3 Mar 2022 14:18:21 +0530 Message-Id: <20220303084824.284946-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303084824.284946-1-bhupesh.sharma@linaro.org> References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the EMAC GDSC defines and driver structures for SM8150. Cc: Stephen Boyd Cc: Bjorn Andersson Signed-off-by: Bhupesh Sharma --- drivers/clk/qcom/gcc-sm8150.c | 10 ++++++++++ include/dt-bindings/clock/qcom,gcc-sm8150.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c index 85a431ac417b..08ba29e3a835 100644 --- a/drivers/clk/qcom/gcc-sm8150.c +++ b/drivers/clk/qcom/gcc-sm8150.c @@ -3448,6 +3448,15 @@ static struct clk_branch gcc_video_xo_clk =3D { }, }; =20 +static struct gdsc emac_gdsc =3D { + .gdscr =3D 0x6004, + .pd =3D { + .name =3D "emac_gdsc", + }, + .pwrsts =3D PWRSTS_OFF_ON, + .flags =3D POLL_CFG_GDSCR, +}; + static struct gdsc usb30_prim_gdsc =3D { .gdscr =3D 0xf004, .pd =3D { @@ -3714,6 +3723,7 @@ static const struct qcom_reset_map gcc_sm8150_resets[= ] =3D { }; =20 static struct gdsc *gcc_sm8150_gdscs[] =3D { + [EMAC_GDSC] =3D &emac_gdsc, [USB30_PRIM_GDSC] =3D &usb30_prim_gdsc, [USB30_SEC_GDSC] =3D &usb30_sec_gdsc, }; diff --git a/include/dt-bindings/clock/qcom,gcc-sm8150.h b/include/dt-bindi= ngs/clock/qcom,gcc-sm8150.h index 3e1a91876610..40596b9ded06 100644 --- a/include/dt-bindings/clock/qcom,gcc-sm8150.h +++ b/include/dt-bindings/clock/qcom,gcc-sm8150.h @@ -243,5 +243,6 @@ /* GCC GDSCRs */ #define USB30_PRIM_GDSC 4 #define USB30_SEC_GDSC 5 +#define EMAC_GDSC 6 =20 #endif --=20 2.35.1 From nobody Tue Jun 23 15:24:11 2026 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 68921C433F5 for ; Thu, 3 Mar 2022 08:49:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231635AbiCCIt6 (ORCPT ); Thu, 3 Mar 2022 03:49:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbiCCItq (ORCPT ); Thu, 3 Mar 2022 03:49:46 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 210F3175858 for ; Thu, 3 Mar 2022 00:48:59 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id f2so3493823ilq.1 for ; Thu, 03 Mar 2022 00:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=20eucF22WnDJBIef+XBNRtcVtRBLlgGa2MbsKG7djtE=; b=WRmS1nSKnowdulkfNW0XaOlwXV6i5MaLkYTLP6c/mA8ELeUYYD2/4UMUQz1hP5OwVH v+/ZhJ2DfoIVg307iUV9IE8nTm5d2utdmYHxRsFBz/aQY0ZwMmtMD+bs02YYTLtwcICf FRGI0ujPDvZVrCMJ8uVyIEPoFT2AJTAcXAuY8mso33l1KfVQGf9BZY+bnYzd6fp8ofOa QezsW/wYOs9AaelbwraR8KBXijUSuEVN9Ts9C5JDLdjTHrE9PvrI/Y+9uWoQh+jtWDFd zYWxZAiQxlb37/1TaMSbeJgOmqUgGK/8d9IELq7RytZeQyY7eXLltsnOBcTsshu3Nwkb RK7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=20eucF22WnDJBIef+XBNRtcVtRBLlgGa2MbsKG7djtE=; b=mX+VOTMIBUgqSGlO3FNjNxzeCOxJEQ5tK1K1ARere9nWols0GX/J6PgW1KwOnDo47t IAh0jOx4lmnGnvwlOij1uUKfiC3RtfxWVIrATbNCpFy66+y7Z1EFyi+6ydaevMM2pP5t 2dtxyVxOz2IzHPocW3uo+WXRDYFRG47uHYgNUcwQSaQ2TUWsFha89KZTEXp6dQY/PdYl EHcw14ViaPD7XL/DzbVaVGl8G6XUch+RDYRw9tsSYDCIzbhRS5oXHHz5zj65Apl7kQIv jWGOdN1p+1292X13Y/S1DKYbqX/sxAnHqQw/NXnHrqQ08MD+ap83ENe0Ukog+HZt1AzL 2KEA== X-Gm-Message-State: AOAM533BoVtTQJ3c2hqTRGcFZzcJTalT+4NbKtxv/nnuJJZTV9o44wc4 9509yk5Hn9+6eSM4rsBVX2vPPLOv95XGnQ== X-Google-Smtp-Source: ABdhPJzTkoONlJPJvab6E5fmAv8yEhiOczk66QANB+yBCAJzPoaRlEd5eRfuL5uY1vnssHy4GG6Ysw== X-Received: by 2002:a92:c8ca:0:b0:2c4:ff8b:98cb with SMTP id c10-20020a92c8ca000000b002c4ff8b98cbmr7537222ilq.183.1646297338443; Thu, 03 Mar 2022 00:48:58 -0800 (PST) Received: from localhost.localdomain ([182.64.85.91]) by smtp.gmail.com with ESMTPSA id m9-20020a923f09000000b002c2a1a3a888sm1480704ila.50.2022.03.03.00.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 00:48:58 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org Subject: [PATCH v3 4/6] clk: qcom: gcc-sm8150: Use ALWAYS_ON flag as a workaround for emac gdsc Date: Thu, 3 Mar 2022 14:18:22 +0530 Message-Id: <20220303084824.284946-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303084824.284946-1-bhupesh.sharma@linaro.org> References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" emac GDSC currently has issues (seen on SA8155p-ADP) when its turn'ed ON, once its already in OFF state. So when the 'eth' interface is turned up, it fails (as RGMII CLK is unavailable, which is gated by emac GDSC) with the following logs: qcom-ethqos 20000.ethernet eth0: PHY [stmmac-0:07] driver [Micrel KSZ9031 Gigabit PHY] (irq=3D150) <..snip..> qcom-ethqos 20000.ethernet: Failed to reset the dma qcom-ethqos 20000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed qcom-ethqos 20000.ethernet eth0: stmmac_open: Hw setup failed So, use the 'ALWAYS_ON' flag as a workaround to describe emac GDSC for now. Cc: Bjorn Andersson Cc: Stephen Boyd Signed-off-by: Bhupesh Sharma --- drivers/clk/qcom/gcc-sm8150.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c index 08ba29e3a835..76485bff7240 100644 --- a/drivers/clk/qcom/gcc-sm8150.c +++ b/drivers/clk/qcom/gcc-sm8150.c @@ -3454,7 +3454,13 @@ static struct gdsc emac_gdsc =3D { .name =3D "emac_gdsc", }, .pwrsts =3D PWRSTS_OFF_ON, - .flags =3D POLL_CFG_GDSCR, + /* + * FIXME: emac GDSC cannot resume after GDSC power off: + * qcom-ethqos 20000.ethernet: Failed to reset the dma + * + * So use ALWAYS_ON flag as a workaround. + */ + .flags =3D ALWAYS_ON, }; =20 static struct gdsc usb30_prim_gdsc =3D { --=20 2.35.1 From nobody Tue Jun 23 15:24:11 2026 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 5B4F3C433EF for ; Thu, 3 Mar 2022 08:49:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231664AbiCCIuG (ORCPT ); Thu, 3 Mar 2022 03:50:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbiCCItv (ORCPT ); Thu, 3 Mar 2022 03:49:51 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51C5C175870 for ; Thu, 3 Mar 2022 00:49:04 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id y5so3451003ill.13 for ; Thu, 03 Mar 2022 00:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vmDFo76a8otWYPkle6/ziOHDKrQe2qvu7laZ0IuPxgk=; b=pEPvESRJI48xS2elV5WAwPdzq79lbuEX0mJMGOriSO2nx/CR9KcY4gtRcZepohg2Vm BQBqoDoc6A1EDnx683AOSc6TEv2MQduvgU6B4SMpIT7sKJ2Ja0Mw9FHvxtWOdm8fxpeY 2TNy82FUU+ChydePWan1n1msrKN3Wb3W2gGBFrOde4UtzJZ1H2+WN70JFuuYYFOcJyFp DBsE7HV41lMc5dJ3gjQSreUppJok52JBMYaXYd7mIVLjz1tZ0EUuCSD50wSAmqg8YFb0 B4pd/xvHWSehk93qJXPdKMbd9wfke7hIN0tCQlkhSimcZHHPYkD0Tfs46YYI2qSbuLDe vzhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vmDFo76a8otWYPkle6/ziOHDKrQe2qvu7laZ0IuPxgk=; b=WPJMMv7mztysCRNyPrhncOoWMXphm3flxxiSqA8Y4U1/kqh2hr1dLNRtv4bEzEr6/q gRueIJU6rKiW+D/lWnuT+aZeEctLotFCV/f4x/UkMjZFWMTcrxiDRwo4MoOWlYXuVDMP 5KGSHVUTT25oRIn6iDPldcJAAllt04/LS7Ah87RSU7SpkFpYbOXNJpcnGqbLw4TXoLQb 8Ukptb/Si8vriaV7qV9DHB1puDiZ//adB9RUxVuKd2mEPnvjuNuE7LXpyKwVSNNqC3Xx Ah9MD+bJ6kYEUnlthQK5PCWqB7JjtOMA6+dRyR6Hve4Xw22dck6R9QSBy5g2IAfjTxLh 376A== X-Gm-Message-State: AOAM533iRzb8rFJO3WZpRrbetxaOTMbn0eianP/WfLFERHnaiOYtbHOk UjFhb0KZ0+/kW+GHZ6x8vQITUQ== X-Google-Smtp-Source: ABdhPJy0qRkKTXUocNRK9zJolxu1WKIs0inaCacjClcTk+OetAPbdiTI3xUT1LzoDW6O8+WuN1ZiZA== X-Received: by 2002:a92:c246:0:b0:2c2:740d:1c12 with SMTP id k6-20020a92c246000000b002c2740d1c12mr29753994ilo.55.1646297343663; Thu, 03 Mar 2022 00:49:03 -0800 (PST) Received: from localhost.localdomain ([182.64.85.91]) by smtp.gmail.com with ESMTPSA id m9-20020a923f09000000b002c2a1a3a888sm1480704ila.50.2022.03.03.00.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 00:49:03 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, Vinod Koul Subject: [PATCH v3 5/6] arm64: dts: qcom: sm8150: add ethernet node Date: Thu, 3 Mar 2022 14:18:23 +0530 Message-Id: <20220303084824.284946-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303084824.284946-1-bhupesh.sharma@linaro.org> References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Vinod Koul SM8150 SoC supports ethqos ethernet controller so add the node for it Cc: Bjorn Andersson Signed-off-by: Vinod Koul [bhsharma: Correct ethernet interrupt numbers and add power-domain] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qco= m/sm8150.dtsi index 6012322a5984..2ed231767535 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -915,6 +915,33 @@ gpi_dma0: dma-controller@800000 { status =3D "disabled"; }; =20 + ethernet: ethernet@20000 { + compatible =3D "qcom,sm8150-ethqos"; + reg =3D <0x0 0x00020000 0x0 0x10000>, + <0x0 0x00036000 0x0 0x100>; + reg-names =3D "stmmaceth", "rgmii"; + clock-names =3D "stmmaceth", "pclk", "ptp_ref", "rgmii"; + clocks =3D <&gcc GCC_EMAC_AXI_CLK>, + <&gcc GCC_EMAC_SLV_AHB_CLK>, + <&gcc GCC_EMAC_PTP_CLK>, + <&gcc GCC_EMAC_RGMII_CLK>; + interrupts =3D , + ; + interrupt-names =3D "macirq", "eth_lpi"; + + power-domains =3D <&gcc EMAC_GDSC>; + resets =3D <&gcc GCC_EMAC_BCR>; + + iommus =3D <&apps_smmu 0x3C0 0x0>; + + snps,tso; + rx-fifo-depth =3D <4096>; + tx-fifo-depth =3D <4096>; + + status =3D "disabled"; + }; + + qupv3_id_0: geniqup@8c0000 { compatible =3D "qcom,geni-se-qup"; reg =3D <0x0 0x008c0000 0x0 0x6000>; --=20 2.35.1 From nobody Tue Jun 23 15:24:11 2026 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 D35C0C433F5 for ; Thu, 3 Mar 2022 08:49:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231629AbiCCIuO (ORCPT ); Thu, 3 Mar 2022 03:50:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231643AbiCCIt4 (ORCPT ); Thu, 3 Mar 2022 03:49:56 -0500 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7373A17585A for ; Thu, 3 Mar 2022 00:49:09 -0800 (PST) Received: by mail-il1-x132.google.com with SMTP id x14so3453920ill.12 for ; Thu, 03 Mar 2022 00:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=31oR/5R8uiOoYLaqojfd9sfVOvx41Qx3BFeK4/Ytd84=; b=j5CDqRS3oxPTE35yyFrHx2Y6GB2DlGJtO1iBOz3pvlLX8PTZyPdSu/k/MLAFVdzMdM WI9TdX0wk42+MOxOtu4a5Tz8h8cw0KwEDv4EKo5pIzBWME8qpuq6MbGHgKPpeNNbRE77 9TKifPjcQSQzE+W9OZUSdKgA6FFRCCsXKvU63O2nMiQw248a4c6xQDUeY0MMkBERCopw BtfK7bSiJ9jtqkj6DcVbpFE22wS/gbrHcHuZUlUtZX2yo/8axZqS5aeV5waqSET/uOHQ 7Utib7uaAZUc2eCJhMiVrezn2YYr10VwkBY8JdWuAUpOb5CHIJea6BQ/t6bS6xrOfwWL qNfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=31oR/5R8uiOoYLaqojfd9sfVOvx41Qx3BFeK4/Ytd84=; b=Q0wV7ff4kIxZ2HvXW4sj5uZHMEgh3aJsDYe6i0ezWPjFDvHoF+TRWGgoHAVAGHJBnP MvfBsxrH9/OCP58tzdwkZdb0cQ40mukH+8p2/iHZnszViwXMdCshtl1eAtjLnWp94q9Z bhWf/1WwWqf76w3bLtfNoHo+Sc86EdPKjYMXy6If6uWohgY0uiJUJVWHyHLR9Ev02Oda rW63c63mbZDfCy1YU3QYeRdWHDHn6BGhVZA9AQzTRa9WtrF553i5sO/MXUvDKIorhGrj YqnjQlTIo4KKVqFSLH6B3MubTQBLmxIV4HPTY+t4X6DUh7E827OjQw4+qjg2SZSHU98f +RyQ== X-Gm-Message-State: AOAM533YJzVz9dt2Vu4ggVGjA/WbZ38bN6tdElULNrV3fE507dxOdKYJ CsAHiq+v4kF3z+bTxjG2SHi4nw== X-Google-Smtp-Source: ABdhPJwPOMyXQ3RYefx6bbUpZKR8O4u9lKzqY1zOzCWZGh6vbFl1jFWIQFFAAaSdqNoF7NR8nEpD4w== X-Received: by 2002:a05:6e02:15c8:b0:2bd:fdca:18a8 with SMTP id q8-20020a056e0215c800b002bdfdca18a8mr30638024ilu.320.1646297348867; Thu, 03 Mar 2022 00:49:08 -0800 (PST) Received: from localhost.localdomain ([182.64.85.91]) by smtp.gmail.com with ESMTPSA id m9-20020a923f09000000b002c2a1a3a888sm1480704ila.50.2022.03.03.00.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 00:49:08 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, Vinod Koul Subject: [PATCH v3 6/6] arm64: dts: qcom: sa8155p-adp: Enable ethernet node Date: Thu, 3 Mar 2022 14:18:24 +0530 Message-Id: <20220303084824.284946-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303084824.284946-1-bhupesh.sharma@linaro.org> References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Vinod Koul Enable the etheret node, add the phy node and pinctrl for ethernet. Cc: Bjorn Andersson Signed-off-by: Vinod Koul [bhsharma: Correct ethernet/rgmii related pinmuxs, specify multi-queues and plug in the PHY interrupt for WOL] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 144 +++++++++++++++++++++++ 1 file changed, 144 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts= /qcom/sa8155p-adp.dts index 8756c2b25c7e..474f688f14a2 100644 --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts @@ -47,6 +47,65 @@ vreg_s4a_1p8: smps4 { =20 vin-supply =3D <&vreg_3p3>; }; + + mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use =3D <4>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,map-to-dma-channel =3D <0x0>; + snps,route-up; + snps,priority =3D <0x1>; + }; + + queue1 { + snps,dcb-algorithm; + snps,map-to-dma-channel =3D <0x1>; + snps,route-ptp; + }; + + queue2 { + snps,avb-algorithm; + snps,map-to-dma-channel =3D <0x2>; + snps,route-avcp; + }; + + queue3 { + snps,avb-algorithm; + snps,map-to-dma-channel =3D <0x3>; + snps,priority =3D <0xC>; + }; + }; + + mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; + + queue0 { + snps,weight =3D <0x10>; + snps,dcb-algorithm; + snps,priority =3D <0x0>; + }; + + queue1 { + snps,weight =3D <0x11>; + snps,dcb-algorithm; + snps,priority =3D <0x1>; + }; + + queue2 { + snps,weight =3D <0x12>; + snps,dcb-algorithm; + snps,priority =3D <0x2>; + }; + + queue3 { + snps,weight =3D <0x13>; + snps,dcb-algorithm; + snps,priority =3D <0x3>; + }; + }; }; =20 &apps_rsc { @@ -317,6 +376,42 @@ &remoteproc_cdsp { firmware-name =3D "qcom/sa8155p/cdsp.mdt"; }; =20 +ðernet { + status =3D "okay"; + + snps,reset-gpio =3D <&tlmm 79 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us =3D <0 11000 70000>; + + snps,ptp-ref-clk-rate =3D <250000000>; + snps,ptp-req-clk-rate =3D <96000000>; + + snps,mtl-rx-config =3D <&mtl_rx_setup>; + snps,mtl-tx-config =3D <&mtl_tx_setup>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <ðernet_defaults>; + + phy-handle =3D <&rgmii_phy>; + phy-mode =3D "rgmii"; + mdio { + #address-cells =3D <0x1>; + #size-cells =3D <0x0>; + + compatible =3D "snps,dwmac-mdio"; + + /* Micrel KSZ9031RNZ PHY */ + rgmii_phy: phy@7 { + reg =3D <0x7>; + + interrupt-parent =3D <&tlmm>; + interrupts-extended =3D <&tlmm 124 IRQ_TYPE_EDGE_FALLING>; /* phy intr = */ + device_type =3D "ethernet-phy"; + compatible =3D "ethernet-phy-ieee802.3-c22"; + }; + }; +}; + &uart2 { status =3D "okay"; }; @@ -407,4 +502,53 @@ mux { drive-strength =3D <2>; }; }; + + ethernet_defaults: ethernet-defaults { + mdc { + pins =3D "gpio7"; + function =3D "rgmii"; + bias-pull-up; + }; + + mdio { + pins =3D "gpio59"; + function =3D "rgmii"; + bias-pull-up; + }; + + rgmii-rx { + pins =3D "gpio117", "gpio118", "gpio119", "gpio120", "gpio115", "gpio11= 6"; + function =3D "rgmii"; + bias-disable; + drive-strength =3D <2>; + }; + + rgmii-tx { + pins =3D "gpio122", "gpio4", "gpio5", "gpio6", "gpio114", "gpio121"; + function =3D "rgmii"; + bias-pull-up; + drive-strength =3D <16>; + }; + + phy-intr { + pins =3D "gpio124"; + function =3D "emac_phy"; + bias-disable; + drive-strength =3D <8>; + }; + + pps { + pins =3D "gpio81"; + function =3D "emac_pps"; + bias-disable; + drive-strength =3D <8>; + }; + + phy-reset { + pins =3D "gpio79"; + function =3D "gpio"; + bias-pull-up; + drive-strength =3D <16>; + }; + }; }; --=20 2.35.1