Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp745202lqz; Sat, 30 Mar 2024 18:28:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6JAB4o+pJXk/PcNUhaqaGMFKLUNeo/WoOc5/UMm15TrMdau/zXttDTPKr8H93CORbMew0bMlJeLymZ1Z+ZgpRMp8NkjqeVPd7gpmclg== X-Google-Smtp-Source: AGHT+IEdOV9KKpGF03gtoq474ID9B5CqK6mw6RzcdIW2O2HKvJ846yGxeoTd/He69DphNFS8Daom X-Received: by 2002:a05:6808:398c:b0:3c3:d4a6:30c4 with SMTP id gq12-20020a056808398c00b003c3d4a630c4mr8442116oib.1.1711848527199; Sat, 30 Mar 2024 18:28:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711848527; cv=pass; d=google.com; s=arc-20160816; b=OPCZ243GNOXj1XRBqJlT6MBLfhQR2/cmGn8kRpCxXIY4x/2JSOyqGPVIwiH4lYEdao quSwQHUitoJTYXRDd8CL/YbgxfhuLwkhP2Vjg9VHIwOmdepRkU+A8Hut8CNK4j04e0tR HiIsTJEg1kfGrkg4XQONuaTCo84bjm5Eewyy/u0dkiDEOPyL/R6dRIRj/OrIEdbND8ml EjymZVeyvsP0/e0DmYuuoRLQK7qfwpvuDHBX0kbiUwQeQDacwqe2hscTX6UVreidO1Eq tZX/6FNLvYq/N5/SI/E7FLQ3UwPXk/RSYEXUY4W+B/KrACUqAspLyJh7ftpwtl99QKXv QFqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=BL2R1QAuvfVx+U9ruvI1fjJwx/fUUYB4YJfJTk35Ycg=; fh=dHRtjGCWnUH4zg2TD9tdJ8RXqS09VxUjPrf0UrRjP+8=; b=y3pMi+D4WwseisQFQ/DEfQeqEUZ0AyA2pdODW0dLFgFhOk1ivCUZsqYRj3VY043573 fZrvst53nLdQCxI5/ta4so2oRR7f4juI8UEsTxyvKRJhjtcfvCxVThMxeDGjx3qKmgBW uopuQ1nAxHJxtzasJSGbh43GrJ86Lws2JzCojT9/FHcSUNzJB3/smaTZ79RzSh1+xxVE a37/UHfSvdpog7SMOG5rA+Gf7nbkcL0xaKD17DJ3aQKPtS9Lc6/hznj26zM28oi4eGJs BKAHRGaBGCQPayp9/KnxFKuEfyNGI/9RqGHZXQpNoFio6E9pDAqYyapPPCfbSXbLDtUX lBYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a36wuHNF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-125917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c12-20020a62f84c000000b006e69b40d4adsi6297732pfm.100.2024.03.30.18.28.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 18:28:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a36wuHNF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-125917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BBBE82825A1 for ; Sun, 31 Mar 2024 01:28:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF96B10F2; Sun, 31 Mar 2024 01:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="a36wuHNF" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A3ACA5F for ; Sun, 31 Mar 2024 01:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711848520; cv=none; b=bbVowo1rjWuPDEvH9wyPBhXQYgIeN5XrnyYKMITJXWVwvSAP4jlxb4BTeWhAz6qMEFCxP6CrEXiDYbN8GlcM/CBXdOb6mVEDeyNXZ7C/V3L2o+Q2f/yc2wO0UFbJ4ZKETt16X+kwtiQPps+Fi6SilCLtT3vgkpvmYEioya3R0tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711848520; c=relaxed/simple; bh=fwCsj9KzvvZz8Fr0/8Sp6V8OFjpmhOC76hu56ZddtJc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=L2FVvMaRqk/DvYF0X8CkCasjhonuRXq6smfYOQfA79HTagpKGas2PQPbmfrr3b3phohPIVX5tA+nPvbQf10+73jzabPuk9LJd4AEUN+YX+bBYH2gYTrgT5GAta7PMeTfzWjZOzweRr8Qz6fLnuzUUK1UbBx7+Y/+8Sl9v3im6r8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=a36wuHNF; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dc74435c428so2930763276.2 for ; Sat, 30 Mar 2024 18:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711848517; x=1712453317; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BL2R1QAuvfVx+U9ruvI1fjJwx/fUUYB4YJfJTk35Ycg=; b=a36wuHNFC0DbmMRm9QNUNO76ibDrG+CFhwqGJNF/T+ZsGvxiiPPtHWtQB72uyywcgK mbG+KxWt05iQ305lA/75h/3MmLy6WwzZP8djSg2sXaomibAj4iOEy7+wdzlGvqwVgG5w KoVW2gzxJPD1dcSN2Qt9djf405pA3ToxA8/2VJ/4C0bT4kYHN7M3bv9ooJIxH/tRCnEp VHiF+Jre1VL6ShwiQdEGIoBaDCXUV46vfytw/Rp5O9fQfbxuEKfte+SRDessTADb5qof BQoO22I1wFbwWvETV2Bj7BoWXemSEfAl4Mix0N8GGxwPOCNnT+Mrn1WSa48XnoQKbL0g mChw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711848517; x=1712453317; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BL2R1QAuvfVx+U9ruvI1fjJwx/fUUYB4YJfJTk35Ycg=; b=FxpHbZ/h7Or3uMCD1HSK5QixprCB5XqWxxxZWPVnDstCkCMjkvq3JpRLe9UvnM4YJa T3U+LKk4oNlxn+GI/krEs6E9l1Sxn0w4eAHeRDo6nkMdnwhj6W2eil9bdTOI5qtcnFoA iG3Z3ou3F+RFE1aK6Czjstku8/2svf2lIEGrhD0CIYi1qxE1nz9tLXRFCHdzCd5NguNM TE/u+/rqLOrbSLylZ6hkLoXbLZPgR5Y4v1hMJPzFdQmBYKCO49VJZnYb1NnUT+N2LePq cj8MwZjtGxDctyze64fc4saebfRZwQgBlYLpyPmBH5V/so63VPf1MMOz/wP3nnbyf8ii dmLw== X-Forwarded-Encrypted: i=1; AJvYcCWlHw7W72xET0SAWC4NljlVA1YyLhOQiWzRF5Mu1v+CBGzXIv4nbETh5zqjXBybEkwL8QIbMfouwb435om1k/J045i+SZGPrIl40SsP X-Gm-Message-State: AOJu0Yzb7y1IqDmmmzxOflqD3h2Q2eXibx2q6q21+R59NcoMKiPc8Hxu qaQ3L0F0MfukYTlh690wk71FGbaRdIcVfsv0OjsqeEzzeCSf4Ib4Y9lyikWYUz+t/PivRaLqazI lLdP226sWcgcPqFnFoouDv9hNEakxsMue+kqdTw== X-Received: by 2002:a25:890b:0:b0:dc6:9c51:760f with SMTP id e11-20020a25890b000000b00dc69c51760fmr4459130ybl.56.1711848517203; Sat, 30 Mar 2024 18:28:37 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240330182817.3272224-1-quic_ajipan@quicinc.com> <20240330182817.3272224-4-quic_ajipan@quicinc.com> In-Reply-To: <20240330182817.3272224-4-quic_ajipan@quicinc.com> From: Dmitry Baryshkov Date: Sun, 31 Mar 2024 04:28:26 +0300 Message-ID: Subject: Re: [PATCH 3/7] clk: qcom: Add DISPCC driver support for SM4450 To: Ajit Pandey Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Vladimir Zapolskiy , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Taniya Das , Jagadeesh Kona , Imran Shaik , Satya Priya Kakitapalli Content-Type: text/plain; charset="UTF-8" On Sat, 30 Mar 2024 at 20:29, Ajit Pandey wrote: > > Add Display Clock Controller (DISPCC) support for SM4450 platform. > > Signed-off-by: Ajit Pandey > --- > drivers/clk/qcom/Kconfig | 10 + > drivers/clk/qcom/Makefile | 1 + > drivers/clk/qcom/dispcc-sm4450.c | 781 +++++++++++++++++++++++++++++++ > 3 files changed, 792 insertions(+) > create mode 100644 drivers/clk/qcom/dispcc-sm4450.c > [skipped] > +static int disp_cc_sm4450_probe(struct platform_device *pdev) > +{ > + struct regmap *regmap; Is there a MMCX power domain on the platform? See how other dispcc drivers handle pm_runtime status. > + > + regmap = qcom_cc_map(pdev, &disp_cc_sm4450_desc); > + if (IS_ERR(regmap)) > + return PTR_ERR(regmap); > + > + clk_lucid_evo_pll_configure(&disp_cc_pll0, regmap, &disp_cc_pll0_config); > + clk_lucid_evo_pll_configure(&disp_cc_pll1, regmap, &disp_cc_pll1_config); > + > + /* Keep some clocks always enabled */ > + qcom_branch_set_clk_en(regmap, 0xe070); /* DISP_CC_SLEEP_CLK */ > + qcom_branch_set_clk_en(regmap, 0xe054); /* DISP_CC_XO_CLK */ > + > + return qcom_cc_really_probe(pdev, &disp_cc_sm4450_desc, regmap); > +} > + > +static struct platform_driver disp_cc_sm4450_driver = { > + .probe = disp_cc_sm4450_probe, > + .driver = { > + .name = "dispcc-sm4450", > + .of_match_table = disp_cc_sm4450_match_table, > + }, > +}; > + > +module_platform_driver(disp_cc_sm4450_driver); > + > +MODULE_DESCRIPTION("QTI DISPCC SM4450 Driver"); > +MODULE_LICENSE("GPL"); > -- > 2.25.1 > > -- With best wishes Dmitry