Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2774077imm; Sun, 12 Aug 2018 23:35:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw8IAOdsyYZYGB2eAFj0szITwDwKqpHrEcIHK9Oe/v4Mrib5OKFC0kIr6VVL1CmSWKYWNdz X-Received: by 2002:a63:3089:: with SMTP id w131-v6mr15625618pgw.79.1534142119435; Sun, 12 Aug 2018 23:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534142119; cv=none; d=google.com; s=arc-20160816; b=vr6E9Oad5pDJd8svd9s2e7m3IaS8GvQO1RYAdAilzxrLj1QWv4v3VHyLatxOURAZwE azEpTKtO6dBm7Vq86mRFr01R9IsyefrUcxGK6xMPCerN9nJ0j5HJ5bS0YUQIe80Se179 Jevb/ufnXfpSU+LIw3Zg9B5kFdQ/1n4hgUmBGgYXX6+I/g3WjWzMxY4+f2R31kVvxNOF DDeAFSsLevpdvWnDY4Bhaiu1W/XiCBYcwIvW3f1CdwaDxavvg4TjvFpGdiZcQct078p4 nSi7oqef1gWuzbJL8MBxFlAuGJG4hqA99PkKnApK8+WfvilMnPgTNF3VlSdMLR1MqgE1 Yeyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=p2N9YXv1/0u6lLW8HvL8Lh+xDMpcNKNK6dgpgytUfjw=; b=GuvPxCFHymqL+TTUf+absJDD8fmiG1jvcu/M1guCw8joystfPoECEqe4exdcO23Tkk +fzG24Bnu0R3Yh3JKy4wqMXPelU9hOQ81FSi14tQeBW8sIzmFCrwRAHDIF1d2uqjwEuC 2Tokm1gP++Ug5dVDJqB9htRGwwZ2G0nnd4tilX/ajpFaNQbuohzpIhxXm0+Owd/rAgxf vGb7nR33KyPu+jJ5tdjLJJiNR2qnzRWU1Yn642UDADZQdDWMTEhnpkt8LjeYdZy59JFw Zaqyu5slFPWwT5A5bH5gZ0DEezVziwW1VtcAyIdrUpJ/V036q2eEIoyvS2c9tE4VPd0K 0ozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZTFgWHGP; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y0nXuuPR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8-v6si1446140plg.117.2018.08.12.23.35.04; Sun, 12 Aug 2018 23:35:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZTFgWHGP; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y0nXuuPR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728479AbeHMJO6 (ORCPT + 99 others); Mon, 13 Aug 2018 05:14:58 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42056 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728451AbeHMJO4 (ORCPT ); Mon, 13 Aug 2018 05:14:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4DB1160B6B; Mon, 13 Aug 2018 06:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534142047; bh=y/nBwQkSeVMPfUZLRXJeuFmQk8Duhcmql/6Qy5H2o28=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZTFgWHGPA4SOTF5FXSYyx8nKaWCSs/19YcG/s/LKKXguXmUiJ7VoPIqejg/ZwyxwZ cLA7N8whyopQI5OBXyGfe0c74Tk7XXSwir+mxdGK5xLKCC30Ybgrsw/bwfcb0yFGMq Dapsec4Eql1TsOySVwNN12emZIIj3bLdN0etv5cI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from anischal-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: anischal@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CEE20604BE; Mon, 13 Aug 2018 06:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534142046; bh=y/nBwQkSeVMPfUZLRXJeuFmQk8Duhcmql/6Qy5H2o28=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y0nXuuPR+Y3JM0Ruvun9+Vk9dmyAT1kN0tBRfbwsT6WPxXt7zd3mYB/Qyz5UgOcfS An95H/8yiDjVwe/72V4Si/wDpa2ZdOp6uL6xj6YXNyASGeoTINk9rUuVIDeca2vTSD 127vhzrPr7mIbySX3BeyDgW5oeMVDCx87/dkaS58= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CEE20604BE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=anischal@codeaurora.org From: Amit Nischal To: Stephen Boyd , Michael Turquette Cc: Andy Gross , David Brown , Rajendra Nayak , Odelu Kukatla , Taniya Das , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Nischal Subject: [PATCH v3 3/4] dt-bindings: clock: Introduce QCOM Graphics clock bindings Date: Mon, 13 Aug 2018 12:03:06 +0530 Message-Id: <1534141987-29601-4-git-send-email-anischal@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1534141987-29601-1-git-send-email-anischal@codeaurora.org> References: <1534141987-29601-1-git-send-email-anischal@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's SDM845 SoCs. Signed-off-by: Amit Nischal --- .../devicetree/bindings/clock/qcom,gpucc.txt | 18 ++++++++++ include/dt-bindings/clock/qcom,gpucc-sdm845.h | 38 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gpucc.txt create mode 100644 include/dt-bindings/clock/qcom,gpucc-sdm845.h diff --git a/Documentation/devicetree/bindings/clock/qcom,gpucc.txt b/Documentation/devicetree/bindings/clock/qcom,gpucc.txt new file mode 100644 index 0000000..93752db --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,gpucc.txt @@ -0,0 +1,18 @@ +Qualcomm Graphics Clock & Reset Controller Binding +-------------------------------------------------- + +Required properties : +- compatible : shall contain "qcom,sdm845-gpucc". +- reg : shall contain base register location and length. +- #clock-cells : from common clock binding, shall contain 1. +- #reset-cells : from common reset binding, shall contain 1. +- #power-domain-cells : from generic power domain binding, shall contain 1. + +Example: + gpucc: clock-controller@5090000 { + compatible = "qcom,sdm845-gpucc"; + reg = <0x5090000 0x9000>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; diff --git a/include/dt-bindings/clock/qcom,gpucc-sdm845.h b/include/dt-bindings/clock/qcom,gpucc-sdm845.h new file mode 100644 index 0000000..643b42a --- /dev/null +++ b/include/dt-bindings/clock/qcom,gpucc-sdm845.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2018, The Linux Foundation. All rights reserved. + */ + +#ifndef _DT_BINDINGS_CLK_SDM_GPU_CC_SDM845_H +#define _DT_BINDINGS_CLK_SDM_GPU_CC_SDM845_H + +/* GPU_CC clock registers */ +#define GPU_CC_CRC_AHB_CLK 0 +#define GPU_CC_CX_APB_CLK 1 +#define GPU_CC_CX_GFX3D_CLK 2 +#define GPU_CC_CX_GFX3D_SLV_CLK 3 +#define GPU_CC_CX_GMU_CLK 4 +#define GPU_CC_CX_SNOC_DVM_CLK 5 +#define GPU_CC_CXO_CLK 6 +#define GPU_CC_GMU_CLK_SRC 7 +#define GPU_CC_GX_GMU_CLK 8 +#define GPU_CC_GX_GFX3D_CLK_SRC 9 +#define GPU_CC_GX_GFX3D_CLK 10 +#define GPU_CC_PLL0 11 +#define GPU_CC_PLL0_OUT_EVEN 12 +#define GPU_CC_PLL1 13 + +/* GPU_CC Resets */ +#define GPUCC_GPU_CC_ACD_BCR 0 +#define GPUCC_GPU_CC_CX_BCR 1 +#define GPUCC_GPU_CC_GFX3D_AON_BCR 2 +#define GPUCC_GPU_CC_GMU_BCR 3 +#define GPUCC_GPU_CC_GX_BCR 4 +#define GPUCC_GPU_CC_SPDM_BCR 5 +#define GPUCC_GPU_CC_XO_BCR 6 + +/* GPU_CC GDSCRs */ +#define GPU_CX_GDSC 0 +#define GPU_GX_GDSC 1 + +#endif -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation