From patchwork Sun Jul 2 17:42:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 698545 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8847C04E69 for ; Sun, 2 Jul 2023 17:43:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230112AbjGBRnR (ORCPT ); Sun, 2 Jul 2023 13:43:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjGBRmz (ORCPT ); Sun, 2 Jul 2023 13:42:55 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ACEEE48 for ; Sun, 2 Jul 2023 10:42:53 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b6b98ac328so54316181fa.0 for ; Sun, 02 Jul 2023 10:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688319771; x=1690911771; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ro+frU1rlZBxpMUoLWa0fuKb2nit2Il6DrrgMioSWzE=; b=JV3fVvgFb3SJLxnQIsHYp/Fy+tujVMse2cBjxtp8HzzO65G+1Pq0sq1JlMTFoNoRLt sLAsqHZqq1HWOwj1hoFFebch7xtCSVzkUNI+F+g0UmYWVGQPHcnJxssB4skI1b8sQZ6m TmWGj0qvoXCpQ7N0cg+4OFxttHEUKrGfhtSvvww9vp13hmLpZhDkRVBHjZTyson2KUDH PSHrQuyYthiLvdXdlKMPHIAkRZDqQ06nmg4v1dFGS4v80mbuoRCtm6dAXFsXcssncSPw Szj9xp6X49KvFKQoXvPEk6/qcMvR3RktmxvUYOK08qx1Uei2QqFLfJB87TYsgVzRTPZF RtwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688319771; x=1690911771; 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=ro+frU1rlZBxpMUoLWa0fuKb2nit2Il6DrrgMioSWzE=; b=Y+GqdMmDJYUsWNrhSgBrARlGslYIz6Zm/uyPY04q4Tte+5zot3QTXXUuKXUnDvfVQl suNms7tWa1VupF4FBbYIc9/xZ2nNMyvV2WCxzk4siD8hd8HBwIUU7ojOPKHCC+gQAwxh Aj8a79Li3EZEPTWmVWwF/+WTdQxWAftJSLJXfWq0nC0htK8Kt64qnKNsL6Ovzq7PRk1b kCAWW9wopOH8+8z1GtCNbCwcnX+JQ7Av/z9Lj0c2xDRLlp0fXYkx6VeI073WwP6Y9+Ua HEYWqp0wFgwmpwWJJjbM2lYC9t2bv4fee1qLPqu7fkC/313aR3Ex71QXdXP0SEhlZGO2 RZlg== X-Gm-Message-State: ABy/qLb9tHQLlXjQD3hw/eywRGxmKe/Ig42GX0OOpEp9crWtL06LQcmn 5X8wUI48EtSknCHs2uKE92/6Aw== X-Google-Smtp-Source: APBJJlGTFvuJJ9r9y+g/OUGeFvITjap5CXUPpRSEXhi7z938e4QK2sSQWSoD41CdGoXNGm5byh9B0w== X-Received: by 2002:a2e:7214:0:b0:2b6:97bf:18a9 with SMTP id n20-20020a2e7214000000b002b697bf18a9mr5040200ljc.37.1688319771784; Sun, 02 Jul 2023 10:42:51 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id v23-20020a2e9917000000b002b6daa3fa2csm1372550lji.69.2023.07.02.10.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 10:42:51 -0700 (PDT) From: Dmitry Baryshkov To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , Viresh Kumar , Nishanth Menon , Stephen Boyd , Michael Turquette , "Rafael J. Wysocki" , Georgi Djakov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, Christian Marangi , Stephan Gerhold , Rob Herring Subject: [PATCH v3 04/28] dt-bindings: clock: qcom, krait-cc: Krait core clock controller Date: Sun, 2 Jul 2023 20:42:22 +0300 Message-Id: <20230702174246.121656-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230702174246.121656-1-dmitry.baryshkov@linaro.org> References: <20230702174246.121656-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Define bindings for the Qualcomm Krait CPU and L2 clock controller. This device is used on old Qualcomm SoCs (APQ8064, MSM8960) and supports up to 4 core clocks and a separate L2 clock. Furthermore, L2 clock is represented as the interconnect to facilitate L2 frequency scaling together with scaling the CPU frequencies. Acked-by: Rob Herring Signed-off-by: Dmitry Baryshkov --- include/dt-bindings/clock/qcom,krait-cc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/dt-bindings/clock/qcom,krait-cc.h diff --git a/include/dt-bindings/clock/qcom,krait-cc.h b/include/dt-bindings/clock/qcom,krait-cc.h new file mode 100644 index 000000000000..9d181873c414 --- /dev/null +++ b/include/dt-bindings/clock/qcom,krait-cc.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (C) 2023 Linaro Ltd. All rights reserved. + */ + +#ifndef __DT_BINDINGS_CLOCK_QCOM_KRAIT_CC_H +#define __DT_BINDINGS_CLOCK_QCOM_KRAIT_CC_H + +#define KRAIT_CPU_0 0 +#define KRAIT_CPU_1 1 +#define KRAIT_CPU_2 2 +#define KRAIT_CPU_3 3 +#define KRAIT_L2 4 + +#endif