Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4141783rdb; Mon, 11 Dec 2023 09:58:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IF90fJ/wtjB4HOsKt4r9OniTt6N7V6AZItBdaY6R3XxcWAY2ZKXM5jcJ9GynG6x/YFN5Dqo X-Received: by 2002:a05:6a20:a10a:b0:190:15a2:91ab with SMTP id q10-20020a056a20a10a00b0019015a291abmr2255199pzk.0.1702317529465; Mon, 11 Dec 2023 09:58:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702317529; cv=none; d=google.com; s=arc-20160816; b=cou7Fe0738iRIpEQEpk6KXDBOJ09hwfYzcA7qAzE3bfrEjNpqOSgvhpj+cAQmGCboi NVsZus+WCtEAy6R437+XuiSR0xsDlmJGaCW9AwtnN0oP/1NKsCcO98aS8mQPHF1U2wGY Slna8nSDOAdIEQEgJ9yHD+hW03GICY3+pRIEiEXFf9EyJKTIzD13OEyv/NcsTIpRED34 61OLwyUGtIujDqHUewKFTV3cCG8Bg6Rlk8aRl2LItvT/18g1ZapC9GmUBVX8FJfIAk/x cyBGTRUyKc5ljhmGfki9QO8GfOntYgK6TayQORZ/qE5ITgXR4RpC2OfLVDTC+/po/I4t 1dnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0edtBIQJPxY7P/43gqdvfZtpF6egcQkq3CPJf6C9Pp0=; fh=zK39Gk0wn5l80zMhJ5zhEQUpbh3qQ5qCWCb6c3+F40I=; b=NDbn+kejk/2fP5x7XPBb1pE8IXmyLXhC+hsONk7V2dYwoPKgrJAl7h7bfbTpDXXL6R Yzz7EWhjY6s0jcIrqftqA/4qfZR3RNDNG6UsC8AXG6kI/D9+JRIxzPL4bbam7Tdz8hAh OK6McWs9brIIahJdd7azBzej8VDf8oq6p4TB7V9rxLA776+J6VLNC/0UQlIvwUdtFHOg 0+IBMV0MU0zXMjldaiKq/Ep8F7DMR+Q/k4UFCkzW3bMEYWRgCdOLN3s6wxwkk8+9OGAt ZMpKb/mns45XaFEc8+N4uJ9WvWrTfHTbKvz/wmXbImufVDmqTINM4WU1X268zdw0AxcH oM/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KGkwdOOX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 10-20020a630c4a000000b005c62aaed5acsi6445957pgm.889.2023.12.11.09.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KGkwdOOX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DCA4F804FCB8; Mon, 11 Dec 2023 09:58:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345094AbjLKR6d (ORCPT + 99 others); Mon, 11 Dec 2023 12:58:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345074AbjLKR6b (ORCPT ); Mon, 11 Dec 2023 12:58:31 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1BDFC8 for ; Mon, 11 Dec 2023 09:58:37 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FD38C433CA; Mon, 11 Dec 2023 17:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702317517; bh=CoHFrQIbWUopxi/6NgF+s3ej3i0E535vo1y3uKwUONI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KGkwdOOXQeZxUl2el0v0YWwYVoi7gi7Aamf2+dyFcQKl3O89T0YT5Hllft2JrxnyM vf678b32fIUcgYZ101sZuLq6sieHZvk6hThA3qadTWSOrWY8/Uj18t8nvR1KZIA2II GJeharLzqWTlo3hLUk/iYP4aGCmryIf6ai5pPbvBY2SUbA6aERZ4F6/EjEFYk8H1Kf bYq5e7IGA8j4FIFcEdRC65BYh9PXePZ/tX3J3zJ06/oDcHFuaStGjWvwNm/MvZWaHW g+0wvR/cXepPQt9FrkLTaXY+D9ak+tdvwxOit+Mxw2AprsJosvlacxVmbJ5PKAQxZL 83FBLpuGGUQ8g== Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-50bfa5a6cffso5420919e87.0; Mon, 11 Dec 2023 09:58:37 -0800 (PST) X-Gm-Message-State: AOJu0Yy4UQfewqBYw9v4yWl9Upwf5SrbwxXE0LcGlbvPI+o/ZSMyEPCa wVG8uiqtlfMQnANEpVBJK3gg4djASrWmsaSRZw== X-Received: by 2002:a05:6512:2804:b0:50d:14b2:287a with SMTP id cf4-20020a056512280400b0050d14b2287amr2351763lfb.25.1702317515423; Mon, 11 Dec 2023 09:58:35 -0800 (PST) MIME-Version: 1.0 References: <20231122-x1e80100-clk-tcsrcc-v1-0-43078c6d6452@linaro.org> <20231122-x1e80100-clk-tcsrcc-v1-2-43078c6d6452@linaro.org> In-Reply-To: <20231122-x1e80100-clk-tcsrcc-v1-2-43078c6d6452@linaro.org> From: Rob Herring Date: Mon, 11 Dec 2023 11:58:23 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] clk: qcom: Add TCSR clock driver for x1e80100 To: Abel Vesa Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 11 Dec 2023 09:58:47 -0800 (PST) On Wed, Nov 22, 2023 at 7:42=E2=80=AFAM Abel Vesa wr= ote: > > The TCSR clock controller found on X1E80100 provides refclks > for PCIE, USB and UFS. Add clock driver for it. > > Signed-off-by: Abel Vesa > --- > drivers/clk/qcom/Kconfig | 8 + > drivers/clk/qcom/Makefile | 1 + > drivers/clk/qcom/tcsrcc-x1e80100.c | 295 +++++++++++++++++++++++++++++++= ++++++ > 3 files changed, 304 insertions(+) > > diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig > index ad1acd9b7426..6ed9c89d9070 100644 > --- a/drivers/clk/qcom/Kconfig > +++ b/drivers/clk/qcom/Kconfig > @@ -1116,4 +1116,12 @@ config SM_VIDEOCC_8450 > SM8450 devices. > Say Y if you want to support video devices and functionality su= ch as > video encode/decode. > + > +config X1E_TCSRCC_80100 > + tristate "X1E80100 TCSR Clock Controller" > + depends on ARM64 || COMPILE_TEST > + select QCOM_GDSC > + help > + Support for the TCSR clock controller on X1E80100 devices. > + Say Y if you want to use peripheral devices such as SD/UFS. > endif > diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile > index 17edd73f9839..4931a1470137 100644 > --- a/drivers/clk/qcom/Makefile > +++ b/drivers/clk/qcom/Makefile > @@ -140,3 +140,4 @@ obj-$(CONFIG_SPMI_PMIC_CLKDIV) +=3D clk-spmi-pmic-div= .o > obj-$(CONFIG_KPSS_XCC) +=3D kpss-xcc.o > obj-$(CONFIG_QCOM_HFPLL) +=3D hfpll.o > obj-$(CONFIG_KRAITCC) +=3D krait-cc.o > +obj-$(CONFIG_X1E_TCSRCC_80100) +=3D tcsrcc-x1e80100.o > diff --git a/drivers/clk/qcom/tcsrcc-x1e80100.c b/drivers/clk/qcom/tcsrcc= -x1e80100.c > new file mode 100644 > index 000000000000..2ec142c3d1f9 > --- /dev/null > +++ b/drivers/clk/qcom/tcsrcc-x1e80100.c > @@ -0,0 +1,295 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reser= ved. > + * Copyright (c) 2023, Linaro Limited > + */ > + > +#include > +#include > +#include You probably don't need this header and the implicit includes it makes are dropped now in linux-next. Please check what you actually need and make them explicit. Rob