From patchwork Wed Feb 3 11:54:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12064173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B16BEC433E6 for ; Wed, 3 Feb 2021 11:54:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 642F264F6A for ; Wed, 3 Feb 2021 11:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233972AbhBCLyn (ORCPT ); Wed, 3 Feb 2021 06:54:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234245AbhBCLyn (ORCPT ); Wed, 3 Feb 2021 06:54:43 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00A6C061788 for ; Wed, 3 Feb 2021 03:54:02 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id l12so4139821wmq.2 for ; Wed, 03 Feb 2021 03:54:02 -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=SIR8kxlA4Jty9/otffAphB5/jPhHJK1wsDSo+IREMHg=; b=EnNbMPrtPs5H2UUx49Sg0I/uRydYGDdAHwFonstivpkERfuMVMx6bSclLV2BaYMeLW AXfvBdzZ8KvvBIuA742bgQAPQxv8RwVDfkGHGcMbnnKMDERHqo1VNmsyPcq+uSN3k3dw HQgDVo4QwDm6t2horfC8FUrxYc6olh7DiO7iQIuNMPba7UVpZpv8I89NCtmUifJfIEsE Z2onMLVtsQBg1JKJpPj6zCJjDK7l6SHYk298mkb5bHu4balMF5DeeKrpHYrJ1yaAEucV PkaAJ5gyEqft4I9ZsyOTk+SHJk/scn9QT7muA0vRNeAQf34sWB/1hId0gyRki21hH6XT BiGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SIR8kxlA4Jty9/otffAphB5/jPhHJK1wsDSo+IREMHg=; b=bUpS9/Csustal6etXjccA4I9sLW/8DHpd5V/0Qb13BpOltKd4MiPGBdAfzFple9ap1 20ur876B+RMRSPAYQRpHPYTR9iYtzBIgwGQbEy8qQsyAIvXNA81YFDesXM0nl++rlLMm pIqOvjmjhgSpIHaX1J5gYm0emw+JXbmrAG8PKSUBaRdmjYNi0XANP+88Qc4uPc9QJvMb CbB2x5/faoXfN8mGNk0ny0LJj3Cg7ra46qaAKrmQyWAaRrc3v/gikB5afcWIl4FEzyGe DUL4CXyEfHugQQ7PHPQa1QFAT0A0y/l29n2Nr4fdw1UMQ7mijoKMcdPyYlO+5DhbX9UK fCNA== X-Gm-Message-State: AOAM533uoMNfReNBbqGlgJmKie6su6tfK3+JmToW2c+xyUUvRvNf2+zN aVn9bRApT8I/Na18+CkoI+oPy/mNlLFylQ== X-Google-Smtp-Source: ABdhPJzbdHUE/lkH5CariWVk3SbLNS+6oY4OoCIeUhTdL8TIk0I7aM9knVC2EmRo1KV8VM7cBJqKTA== X-Received: by 2002:a1c:ab57:: with SMTP id u84mr2545153wme.115.1612353241240; Wed, 03 Feb 2021 03:54:01 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 35sm3687362wrn.42.2021.02.03.03.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 03:54:00 -0800 (PST) From: Bryan O'Donoghue To: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca, dikshita@codeaurora.org, dmitry.baryshkov@linaro.org, stanimir.varbanov@linaro.org Subject: [PATCH 1/4] dt-bindings: clock: Add missing SM8250 videoc clock indices Date: Wed, 3 Feb 2021 11:54:53 +0000 Message-Id: <20210203115456.1072975-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> References: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Two indexes need to be added to videocc-sm8250.h for venus to function properly. Rather than adding the missing indexes when used we add them separately here to keep checkpatch.pl happy. Signed-off-by: Bryan O'Donoghue --- include/dt-bindings/clock/qcom,videocc-sm8250.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/qcom,videocc-sm8250.h b/include/dt-bindings/clock/qcom,videocc-sm8250.h index 2b2b3867af25..8d321ac3b1fa 100644 --- a/include/dt-bindings/clock/qcom,videocc-sm8250.h +++ b/include/dt-bindings/clock/qcom,videocc-sm8250.h @@ -16,6 +16,8 @@ #define VIDEO_CC_MVS1C_DIV2_DIV_CLK_SRC 6 #define VIDEO_CC_PLL0 7 #define VIDEO_CC_PLL1 8 +#define VIDEO_CC_MVS0_DIV_CLK_SRC 9 +#define VIDEO_CC_MVS0_CLK 10 /* VIDEO_CC resets */ #define VIDEO_CC_CVP_INTERFACE_BCR 0 From patchwork Wed Feb 3 11:54:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12064177 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9CF5C433E0 for ; Wed, 3 Feb 2021 11:55:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 397CC64F74 for ; Wed, 3 Feb 2021 11:55:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234292AbhBCLzB (ORCPT ); Wed, 3 Feb 2021 06:55:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234210AbhBCLzA (ORCPT ); Wed, 3 Feb 2021 06:55:00 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7ACDC06178B for ; Wed, 3 Feb 2021 03:54:04 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id c4so21180933wru.9 for ; Wed, 03 Feb 2021 03:54: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=Jf1oKzKtxHAKQjrR3pGFqCZX0fsUjZbCoIA88THXekk=; b=Shk0cV6btl9gr5pEyJZtgYebo+d5vN5RwINBxKhE7wmLymPrvjDAKRhnqQ6wHZybeb +NrWJuMCuAGgcMLMRIhYk0ViYNLprGtVxyAvHS+PPbWJds5Ki2O7YVmqCSK4en/Vq7Xo ZQkf2QRAbL8R2D9Dakvtbtx56cDg/Qx3dZFpB4mO85tEHe6DxcHDqJ/vUvv+Z5/awBLQ LmHWx/zKMSHJSoI5aM4lZHOVJzpKRrtZfcgIeaiuCXvlqkEcY4/i2UIoZGJrc0bUFHSQ FCmi4W7WZT/Ja+ZHhFmgiVXldusxX502U7YYl4CCqLy+53zSjPXtqXEaZhIJ0GjdJMbz HesA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jf1oKzKtxHAKQjrR3pGFqCZX0fsUjZbCoIA88THXekk=; b=oyqU8TbPsUHYzufido4BHnR8eGIdgmCugZ12UXb4Ashc/OMnWUfLVrU/wTs32YMvDV iTVNeMzcZg8rJl4i+jUezZ4HTaEILrG8WuJVL9gR5AeqYQHZ4BVu4rhDe88I/czUyLCD TpCnK9robxsA42cYasVeF6pPkuumg/VQpYWfegt04Bkmn2HNVRviDdyqvwwXKT/JuJnP LoijqZsT0Kw0sMV6xhqndi3OxcXH04ZbQczj4GWux2awMNd28seZgkkYPTn4kSsIq1Y7 +Zdf5f5Up1k3Kmc78eiGIbxizl0Sb+hUTKKYoP6MuBE52l5OBYjQZStOQHuRyiYeUN6j Yxtw== X-Gm-Message-State: AOAM530QNX8DZdR9n34C2xdfbjqKk32GMCnHkonO3EnUvqi9FQLXGlaK BF0lCaHT7f7Y8y1F2bg+sm59DZPc+2bMeQ== X-Google-Smtp-Source: ABdhPJyHSSkRWTMSPrSItAmTMJjB8yCJKvK6Do48JrGtA7VjTEVlfcZWmuMEM1BlJHeyIcJO/1Qnng== X-Received: by 2002:adf:f8c1:: with SMTP id f1mr3110968wrq.76.1612353243293; Wed, 03 Feb 2021 03:54:03 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 35sm3687362wrn.42.2021.02.03.03.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 03:54:02 -0800 (PST) From: Bryan O'Donoghue To: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca, dikshita@codeaurora.org, dmitry.baryshkov@linaro.org, stanimir.varbanov@linaro.org Subject: [PATCH 2/4] clk: qcom: videocc: Add sm8250 VIDEO_CC_MVS0_DIV_CLK_SRC Date: Wed, 3 Feb 2021 11:54:54 +0000 Message-Id: <20210203115456.1072975-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> References: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This patch adds the missing video_cc_mvs0_div_clk_src entry to videocc-sm8250 replicating in upstream the explicit entry for this clock in downstream. Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/videocc-sm8250.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index 2797c61f5938..cc84963ced40 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -169,6 +169,21 @@ static struct clk_regmap_div video_cc_mvs0c_div2_div_clk_src = { }, }; +static struct clk_regmap_div video_cc_mvs0_div_clk_src = { + .reg = 0xd54, + .shift = 0, + .width = 2, + .clkr.hw.init = &(struct clk_init_data) { + .name = "video_cc_mvs0_div_clk_src", + .parent_data = &(const struct clk_parent_data){ + .hw = &video_cc_mvs0_clk_src.clkr.hw, + }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, + .ops = &clk_regmap_div_ro_ops, + }, +}; + static struct clk_regmap_div video_cc_mvs1c_div2_div_clk_src = { .reg = 0xcf4, .shift = 0, @@ -276,6 +291,7 @@ static struct gdsc mvs1_gdsc = { static struct clk_regmap *video_cc_sm8250_clocks[] = { [VIDEO_CC_MVS0_CLK_SRC] = &video_cc_mvs0_clk_src.clkr, + [VIDEO_CC_MVS0_DIV_CLK_SRC] = &video_cc_mvs0_div_clk_src.clkr, [VIDEO_CC_MVS0C_CLK] = &video_cc_mvs0c_clk.clkr, [VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC] = &video_cc_mvs0c_div2_div_clk_src.clkr, [VIDEO_CC_MVS1_CLK_SRC] = &video_cc_mvs1_clk_src.clkr, From patchwork Wed Feb 3 11:54:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12064179 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E54B2C433DB for ; Wed, 3 Feb 2021 11:55:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94B7164F72 for ; Wed, 3 Feb 2021 11:55:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234334AbhBCLzY (ORCPT ); Wed, 3 Feb 2021 06:55:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234210AbhBCLzX (ORCPT ); Wed, 3 Feb 2021 06:55:23 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5BE7C061794 for ; Wed, 3 Feb 2021 03:54:06 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id d16so23861148wro.11 for ; Wed, 03 Feb 2021 03:54:06 -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=rZoHRe0oO7IftEQfLmg/yx1mkw4FkCtrh+GE++AIrCc=; b=u3XAjlYNYmjzlJxUQppwkvVqWd7kcBoC30eIuieD1Y8q09r6B3fpTSQviYGRmkpW8Z n/geiJLSM1ia+F2DRAJW0QMHJiDI7xVOTZ56Kv29X2gccblYjL39Gb4xotDf5WfjMsF/ vtzekBfUXtvp9Vgsc8AwB0xMuYM2iBvBFMhIeIFg+wn1J5bPHoLnfw5hdUiWNGfEXVSN sNSeHuTvA8eVzvU3V0U9PDWwZtSDgyt6rQ883SyCUe6/36DoiUoE2+tVlB5BwH/Hm5gP IbHEabGULmvpNiPcimD4QryJZGiXIDMYyWnNm/UCOjln85YTaZlFpOFTo3U1Zx/4vm0Q ZYzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rZoHRe0oO7IftEQfLmg/yx1mkw4FkCtrh+GE++AIrCc=; b=QvnbCLxAL5G/YXoN3YAWLdkIhOdXgKlPrEPON9HsVulDKhA9BSFtnp+2xFRI+6sXpQ sBTlmqhmBO3Jvjju8UJPKOikACNSNQwk0rAMUsqzfvM9v49hxC8x+lNaveQxj6AOMI4z /3NgasVTDDIcGMhIO/0kHQfj/UqLwFguQDByg5WU+6OWJTXtdA2MSgbIHNKq+iod+Rks ofylj3SwPYOz0icwh5cdVO46k9xzry1bpCSFqQZBORn8IZ+F6qttdUsaat4D8dP9/9y4 GDsWO3ch2s1QT+LuPXeGO+k7jkNXtmgJLhDVVL2vXubmOcQOvbggr4GcJ4lw1Ic803X8 HjhQ== X-Gm-Message-State: AOAM530PpRnza/JLNDFwggwnRjPAYsO2hJQQAH9pL2yNJwIcDYg61ms0 aCGsJ9qoGNTYAJ1Xg6XfbvBHbG7jhAHKKw== X-Google-Smtp-Source: ABdhPJxIeFT5/SrsDDha7OHssDFScuymihxrUN4tcMXuSd7bu8/f+uccLVBq+HHl+T9yM3Hq+huawA== X-Received: by 2002:a5d:4646:: with SMTP id j6mr3155889wrs.38.1612353245130; Wed, 03 Feb 2021 03:54:05 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 35sm3687362wrn.42.2021.02.03.03.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 03:54:04 -0800 (PST) From: Bryan O'Donoghue To: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca, dikshita@codeaurora.org, dmitry.baryshkov@linaro.org, stanimir.varbanov@linaro.org Subject: [PATCH 3/4] clk: qcom: videocc: Add sm8250 VIDEO_CC_MVS0_CLK Date: Wed, 3 Feb 2021 11:54:55 +0000 Message-Id: <20210203115456.1072975-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> References: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This patch adds the missing video_cc_mvs0_div_clk entry to videocc-sm8250 replicating in upstream the explicit entry for this clock in downstream. Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/videocc-sm8250.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index cc84963ced40..3ade240bd49c 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -217,6 +217,24 @@ static struct clk_branch video_cc_mvs0c_clk = { }, }; +static struct clk_branch video_cc_mvs0_clk = { + .halt_reg = 0xd34, + .halt_check = BRANCH_HALT_VOTED, + .clkr = { + .enable_reg = 0xd34, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "video_cc_mvs0_clk", + .parent_data = &(const struct clk_parent_data){ + .hw = &video_cc_mvs0_div_clk_src.clkr.hw, + }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch video_cc_mvs1_div2_clk = { .halt_reg = 0xdf4, .halt_check = BRANCH_HALT_VOTED, @@ -290,6 +308,7 @@ static struct gdsc mvs1_gdsc = { }; static struct clk_regmap *video_cc_sm8250_clocks[] = { + [VIDEO_CC_MVS0_CLK] = &video_cc_mvs0_clk.clkr, [VIDEO_CC_MVS0_CLK_SRC] = &video_cc_mvs0_clk_src.clkr, [VIDEO_CC_MVS0_DIV_CLK_SRC] = &video_cc_mvs0_div_clk_src.clkr, [VIDEO_CC_MVS0C_CLK] = &video_cc_mvs0c_clk.clkr, From patchwork Wed Feb 3 11:54:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12064181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CB6DC433E6 for ; Wed, 3 Feb 2021 11:55:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C192F64F77 for ; Wed, 3 Feb 2021 11:55:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234340AbhBCLzZ (ORCPT ); Wed, 3 Feb 2021 06:55:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234332AbhBCLzX (ORCPT ); Wed, 3 Feb 2021 06:55:23 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDC2EC0617A7 for ; Wed, 3 Feb 2021 03:54:08 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id f16so5193440wmq.5 for ; Wed, 03 Feb 2021 03:54:08 -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=tidbrV96cevG91PVzX2INYeaRwIIrioVPhXX0yu4SxQ=; b=xFloSyxolDUPPr61ifL9MXppQjvGlV+CTDPkD7psev12UmgB0e8bptRKGY56UEJhPO PceIY5452ki69GuehGsylYAmOOFOXg5/5BvVrQ3m0HCTYUfU+cZJqwXhOIZ8oLIIlmtN 2RcTIULTJLPDIRpWSOdMxdyry5cZR5JCqynEps0FvrWEvguJF/MxBDtBmtPj3qm9tbSW fLTV2E6Dq5qIPBI6VwKRBZgQ+2LsVXolff2vSIidebGK1PqY9qAXafYi7xacfkkx0jGS 7C0DB0yUMAAjeyK0OzcC4y+ehwQmlmAyMZXO1ZwaWYoRSin2fjF4cBv+oUshI78LNfOL K0WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tidbrV96cevG91PVzX2INYeaRwIIrioVPhXX0yu4SxQ=; b=S+Wv7tZNmRA6BJtbw2N1PxUmdtUDj7YozOmqM8yi0OO6rfZT+FXentijs6mPNqz1OY BQgyPZ0mG51rNsUrO8F3EvVQQ24LlMCqXK9WT9eekPnH6NVLmLJsFE7Q5gT1UbRY0Qdq C2+jet9ZjeDByG1AtKuEqU3bzg4vS5BYutYvHbsMRdmJ+dx404IifOKRHvvpGA++5tkL M/lRT+4tm8GNCS+IHhRIN0R5scrrRfsygYdCBtnSkAVgaTjx9laAaLH/HHtMsbRtZjqo yh3xfdmk2NYiJDQaJQY98D80WzMj/lz+jWHuL7SPwquJsVnQTExIC9S7gW+i49QczwcH qhqw== X-Gm-Message-State: AOAM532HPQ5WlpOze/2umT8AWW499BEtoaqEYeXRbPdDYboWX04i5ku8 V64z9yuVtkOqB3CJCp0DqjyZ9ylqGAOqKw== X-Google-Smtp-Source: ABdhPJwzv/7s2ZVR4Fglc3LwBCAwMtUxOyq843LB65E9cev0kVMVYWRX3xhOfWa6y2EMp49AHdb6HA== X-Received: by 2002:a1c:480a:: with SMTP id v10mr2490475wma.132.1612353247231; Wed, 03 Feb 2021 03:54:07 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 35sm3687362wrn.42.2021.02.03.03.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 03:54:06 -0800 (PST) From: Bryan O'Donoghue To: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca, dikshita@codeaurora.org, dmitry.baryshkov@linaro.org, stanimir.varbanov@linaro.org Subject: [PATCH 4/4] clk: qcom: videocc: Add gdsc mmcx-reg supply hook Date: Wed, 3 Feb 2021 11:54:56 +0000 Message-Id: <20210203115456.1072975-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> References: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This commit adds a regulator supply hook to mmcx-reg missing from - mvs0c_gdsc - mvs1c_gdsc - mvs0_gdsc - mvs1_gdsc Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/videocc-sm8250.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index 3ade240bd49c..b0efadc19634 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -278,6 +278,7 @@ static struct gdsc mvs0c_gdsc = { }, .flags = 0, .pwrsts = PWRSTS_OFF_ON, + .supply = "mmcx", }; static struct gdsc mvs1c_gdsc = { @@ -287,6 +288,7 @@ static struct gdsc mvs1c_gdsc = { }, .flags = 0, .pwrsts = PWRSTS_OFF_ON, + .supply = "mmcx", }; static struct gdsc mvs0_gdsc = { @@ -296,6 +298,7 @@ static struct gdsc mvs0_gdsc = { }, .flags = HW_CTRL, .pwrsts = PWRSTS_OFF_ON, + .supply = "mmcx", }; static struct gdsc mvs1_gdsc = { @@ -305,6 +308,7 @@ static struct gdsc mvs1_gdsc = { }, .flags = HW_CTRL, .pwrsts = PWRSTS_OFF_ON, + .supply = "mmcx", }; static struct clk_regmap *video_cc_sm8250_clocks[] = {