Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp652788pxm; Thu, 3 Mar 2022 01:40:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzY5j4sSysoNaTuc/0DWF2qWeIny8uONdykeQ5lO8I+ceMfYV9M7HQBhXeBq8A/EhDyEzeO X-Received: by 2002:a05:6a00:b49:b0:4cf:432f:9cd9 with SMTP id p9-20020a056a000b4900b004cf432f9cd9mr37578950pfo.10.1646300456162; Thu, 03 Mar 2022 01:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646300456; cv=none; d=google.com; s=arc-20160816; b=i48JXk8UKmgAzPYCKI2qnYhBOGVWqc64bksIR5rT1CJ2xZi6ONqtlBAf92AY1G8C6N L0ZhYjLhyumcnhfxX+/UFJwuccgf9cX+SzxaopF5/EEMabemcU9MwbRNBEQN47EmCl9k G6uN+4B0AManVEdpJ264pqhRUtzeuKbHZQf0lmuYMqXs39RWOuJWNEeYlSerI7FIaO4L nzJG2jNic5mJHH0SS96Pj11Q5LWXnPLGGN7Zb7tE9I3qpKlw7zU3WG+lCo0wmt5lS7ix ZBaBXi+XFQsh0v1E3qFhR1C5TQC8QnbxrLLu33hCpTGwkgyPLFsE1l6bQwmFRnrjV3Sm 2H8Q== 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=482hD2qt/fBTqqMj7tAx9n2UG+YZouWq5uywKb+Ersw=; b=xqGafjU4yhVPcRKGLDIdbRXScIPKapKlM5/xgSoh45msQEfiaX+64SpKu2fwdwRyB/ GxA6O6edj8t3OV/5oUr5ODyxL1dwH8gywtoa+Gv4kTqX0aVbHono2hscSBaFk20rgxpf Nd9HV7W4l3+wYLMdYuhIziXkZVT+seY5KbJJhkDv93dh9FHk83URkGWe8dgzEVkloaD/ /egMP+941+SoBJmZ94GLkfdBIH25K9Gj7QRs+9n0Td6nnpfiwvLswAg8Q23v9m6Hqt5v GdehiDcTKhRQ12LFq2EYvBywcXBIVYnNZab7l5rop+doz95a54Y8OqyiLxUlQ+sNXsgH EjZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M19HlaEW; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a170902bd4800b0015008cc08b8si1491210plx.335.2022.03.03.01.40.40; Thu, 03 Mar 2022 01:40:56 -0800 (PST) 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=@linaro.org header.s=google header.b=M19HlaEW; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbiCCIts (ORCPT + 99 others); Thu, 3 Mar 2022 03:49:48 -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-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: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 = { }, }; +static struct gdsc emac_gdsc = { + .gdscr = 0x6004, + .pd = { + .name = "emac_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = POLL_CFG_GDSCR, +}; + static struct gdsc usb30_prim_gdsc = { .gdscr = 0xf004, .pd = { @@ -3714,6 +3723,7 @@ static const struct qcom_reset_map gcc_sm8150_resets[] = { }; static struct gdsc *gcc_sm8150_gdscs[] = { + [EMAC_GDSC] = &emac_gdsc, [USB30_PRIM_GDSC] = &usb30_prim_gdsc, [USB30_SEC_GDSC] = &usb30_sec_gdsc, }; diff --git a/include/dt-bindings/clock/qcom,gcc-sm8150.h b/include/dt-bindings/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 #endif -- 2.35.1