Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2888570rwl; Thu, 13 Apr 2023 12:17:46 -0700 (PDT) X-Google-Smtp-Source: AKy350YNXh9B2RnWOvSZP+C2cgsOHa98GOeXL9vGsnMZPfc6HSWKiPjBYJvtHgQYNgRxuVqr4QtM X-Received: by 2002:a17:903:2341:b0:1a6:87d8:b8fb with SMTP id c1-20020a170903234100b001a687d8b8fbmr136635plh.2.1681413465999; Thu, 13 Apr 2023 12:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681413465; cv=none; d=google.com; s=arc-20160816; b=rnNBYLywukHoRPEBSGbvvcDupuCo3KetfIU9cox7YsyYX1b1Kifzh4JPc8s/pzWp+P 9nNWp7xWInxy3Rwg5TpcrH/YdIy9kWIf86x8RQWnyqx69TsRFrmh08IZRxUL87UrCzo3 M96D8u5Fg6xkTCOCWReFhT+lxIAudyZHKoS1oO+nsD3sjoMgisfMw69MSMcMngbReyIs pQmxq55tBA2qpxTHyG99bQs0HfAHZItG6CAXmNDzkg5YjBIMiBLeBg8aNKYxnn1nADno w4pQkWfOfhDc+eUfMXAZy0CpjTbRx8UWtY+RHGFO6YJAhJq0Of/K1+KeGF6qvCMo0Vxq k1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fEno2IWkUzFj29uJBLwx+d+I43Od4gaX+U+WEKiwH6s=; b=NxKNXW7E0X2GeId5PGn8M+L7ICBxDx0nzuZUE8MXlyFH96nhPAalGiYsQUeNKczQPj 7/2ICeFXBtbzxvYRiYQJpo43IrUytGgMZ3PqOUFvtdo9gFVn90ATHi2OiiOyn6OcFFbT N/NeKVzReyoWfyh9+2//hu/BIfdRv8VKhGRYb+4uy0jmhmBbhh1JVtGmXrEw2Z4br4hB LlDs6Wgdoq1dqe+rpF33SBYMye0urGOJYLdYbbrJcPIxUwKDsoxv3CjCC/p40dSWe4Y6 ZSBSCKvQQ/NsylUqDFpR2YDN+mwHWGqLWZORAjyE47JNKu1KOnxm9EaqkF7o/1HiOTD8 pdXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IOBudAwP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls11-20020a17090b350b00b00233e301c780si1005860pjb.31.2023.04.13.12.17.32; Thu, 13 Apr 2023 12:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IOBudAwP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbjDMTRS (ORCPT + 99 others); Thu, 13 Apr 2023 15:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjDMTRR (ORCPT ); Thu, 13 Apr 2023 15:17:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5FA183ED for ; Thu, 13 Apr 2023 12:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681413352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fEno2IWkUzFj29uJBLwx+d+I43Od4gaX+U+WEKiwH6s=; b=IOBudAwPkyZPEKj28a9cmMUP3+VoEXeNpQ3QLVenPLN1sx6IIFjBEu39HEStyMW1cLcDnM yjhBtCsQX7MpehfaNvn10LzavBCTA/yBOvXtQ41W/FnwYrsLY0/PEc6dzdDFLglhgtwLJZ +WNPDC0CVIOZeAFx+ljLyOiK5Ik2lK8= Received: from mail-yb1-f199.google.com (mail-yb1-f199.google.com [209.85.219.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-614-siOrr7UQOC2QAgMzXjxoZA-1; Thu, 13 Apr 2023 15:15:51 -0400 X-MC-Unique: siOrr7UQOC2QAgMzXjxoZA-1 Received: by mail-yb1-f199.google.com with SMTP id 85-20020a250d58000000b00b8f380b2bccso6916054ybn.14 for ; Thu, 13 Apr 2023 12:15:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681413350; x=1684005350; 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=fEno2IWkUzFj29uJBLwx+d+I43Od4gaX+U+WEKiwH6s=; b=NRHSHJFol3QOGNoxVRmh6JxnXYaHuBXRr8kCt3H/khRcDSV+CJWSMYYsvowNg1lA+U Kbbi8mZkqPkEZ3GCvAj0wCQofOt/MZ6CW6/p6gz+eeS8SWCUCOOboQ884ln7YWbJosyJ qv28Abl7w26hPilP8L4YiMLeBbGm9NJ2xu86HZRCYUMuWdQQPYkfNjJRaco3pIa2aa1K +TUqy1SeoYzdyH+/c1D7kTl/MYChbcFj/06j5PvXnaFmN7wpp8vH/Ba4dFMqX+4mQiN9 8oqSsiFno911NxVCn4C0QXtA2NPhpMqx6cmq5fYNzk+Ke0hRGN1a2gF0t5BhwDT6vaam pD0A== X-Gm-Message-State: AAQBX9eyB2VUdRjJc6nlGMIYKSJA0QtDlMbJWL3OhDrEFp6PCm/6iADi t/1W/aArZtvleTj6Ms0APOz79AfPCK+na9ggW2o3yoJct9UuR/muMfU/6zkFfuLtBJ8E0rkAWuU rTi8lxr0aQXW4fM8S8etAhSgr1ZH0s/tTv2TCYgykYvqkC3pbOfWoU9j8K/ios5lTdXRHw3p38P R63Q6SxnYn X-Received: by 2002:a0d:f684:0:b0:54c:5c8:a391 with SMTP id g126-20020a0df684000000b0054c05c8a391mr2599354ywf.17.1681413350180; Thu, 13 Apr 2023 12:15:50 -0700 (PDT) X-Received: by 2002:a0d:f684:0:b0:54c:5c8:a391 with SMTP id g126-20020a0df684000000b0054c05c8a391mr2599320ywf.17.1681413349787; Thu, 13 Apr 2023 12:15:49 -0700 (PDT) Received: from halaney-x13s.redhat.com (104-53-165-62.lightspeed.stlsmo.sbcglobal.net. [104.53.165.62]) by smtp.gmail.com with ESMTPSA id t11-20020a81780b000000b00545a4ec318dsm673203ywc.13.2023.04.13.12.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 12:15:49 -0700 (PDT) From: Andrew Halaney To: linux-kernel@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, richardcochran@gmail.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, netdev@vger.kernel.org, bmasney@redhat.com, echanude@redhat.com, ncai@quicinc.com, jsuraj@qti.qualcomm.com, hisunil@quicinc.com, Andrew Halaney Subject: [PATCH v5 1/3] clk: qcom: gcc-sc8280xp: Add EMAC GDSCs Date: Thu, 13 Apr 2023 14:15:39 -0500 Message-Id: <20230413191541.1073027-2-ahalaney@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413191541.1073027-1-ahalaney@redhat.com> References: <20230413191541.1073027-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the EMAC GDSCs to allow the EMAC hardware to be enabled. Acked-by: Stephen Boyd Reviewed-by: Konrad Dybcio Tested-by: Brian Masney Signed-off-by: Andrew Halaney --- Changes since v4: * Add Tested-by (Brian) Changes since v3: * None Changes since v2: * Add Konrad's Reviewed-by Changes since v1: * Add Stephen's Acked-by * Explicitly tested on x13s laptop with no noticeable side effect (Konrad) drivers/clk/qcom/gcc-sc8280xp.c | 18 ++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-sc8280xp.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c index b3198784e1c3..04a99dbaa57e 100644 --- a/drivers/clk/qcom/gcc-sc8280xp.c +++ b/drivers/clk/qcom/gcc-sc8280xp.c @@ -6873,6 +6873,22 @@ static struct gdsc usb30_sec_gdsc = { .pwrsts = PWRSTS_RET_ON, }; +static struct gdsc emac_0_gdsc = { + .gdscr = 0xaa004, + .pd = { + .name = "emac_0_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, +}; + +static struct gdsc emac_1_gdsc = { + .gdscr = 0xba004, + .pd = { + .name = "emac_1_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, +}; + static struct clk_regmap *gcc_sc8280xp_clocks[] = { [GCC_AGGRE_NOC_PCIE0_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie0_tunnel_axi_clk.clkr, [GCC_AGGRE_NOC_PCIE1_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie1_tunnel_axi_clk.clkr, @@ -7351,6 +7367,8 @@ static struct gdsc *gcc_sc8280xp_gdscs[] = { [USB30_MP_GDSC] = &usb30_mp_gdsc, [USB30_PRIM_GDSC] = &usb30_prim_gdsc, [USB30_SEC_GDSC] = &usb30_sec_gdsc, + [EMAC_0_GDSC] = &emac_0_gdsc, + [EMAC_1_GDSC] = &emac_1_gdsc, }; static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = { diff --git a/include/dt-bindings/clock/qcom,gcc-sc8280xp.h b/include/dt-bindings/clock/qcom,gcc-sc8280xp.h index cb2fb638825c..721105ea4fad 100644 --- a/include/dt-bindings/clock/qcom,gcc-sc8280xp.h +++ b/include/dt-bindings/clock/qcom,gcc-sc8280xp.h @@ -492,5 +492,7 @@ #define USB30_MP_GDSC 9 #define USB30_PRIM_GDSC 10 #define USB30_SEC_GDSC 11 +#define EMAC_0_GDSC 12 +#define EMAC_1_GDSC 13 #endif -- 2.39.2