Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22176922ybl; Mon, 6 Jan 2020 20:16:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzv9Y1c+rJSXodNNDzaoJrGhgJa8IK14E9vUY2OXK/UHxCfTW+Z5HlPCn5QwzTSPjnxlOdB X-Received: by 2002:a05:6830:1515:: with SMTP id k21mr101574795otp.177.1578370597143; Mon, 06 Jan 2020 20:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578370597; cv=none; d=google.com; s=arc-20160816; b=OwdutgvWEToJ+LVAwnsnZsamAL1syNvWYymDmi40qlo6W6x5nrGQXEbV0Pepu9DxBH YBcODboLIgfNP90y1GKZedHgNbOm+VUxZeJhhWQI4Loh79rQM4btZeqAwd0IFBhizPLi qiTESJjShX0/d1IGsbd+hnKgMOc4bcvXwvLf5EUr2zJV/KWCb081ag1xafAJUW6e1jOy ME7jbUKjK5Pg0isVr9Ta1s28+eDeU0ODOIxHHwzcjRm2bq3aoYR9q6WkecMhOgYYmJzD h7qfs09TjJlD54I0UnHNMG03e+e9q4vaz8RYmN5ockdtnQsW0gFwWAU403azZJgeIaNr jYDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=PsZlNHsDtg+yC1gx4v+bRlMpH1Kr/Iacv6Atnd9hWu0=; b=TRKCoepiT4Wjs4OnTdsrO5aCgbzP/bjvKMAzPkqrF+TP7F60LizjFF3PGtVGTXlZaD dXEmFENxTDJMRAzOjYXfKa/G6nBq90fRxVY5cS60TsI8lgGGuqdoIenKckHfZSdAkMQP NDF9d7OUztVzbih6B6S/axeWb8oa4LqOlwenkvuQpJl1OWmwba+lL5ZCycIi5s9ElWTe ZCzF8d7II5z9tNdcglxwJUHk3jXOdsZ5elm8s4nfdH3PFvjX134SYSOJJumQdgrDpgtM xZ4sOG7smOgxkSnsLsjHLFB2rpFuYw/ykNa1OC+XTuzcYSCrHy3CQIqHYjGh1DGmA857 kO2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=FH8tM7k+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si36016652oiy.124.2020.01.06.20.16.24; Mon, 06 Jan 2020 20:16:37 -0800 (PST) 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=@nvidia.com header.s=n1 header.b=FH8tM7k+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbgAGEOb (ORCPT + 99 others); Mon, 6 Jan 2020 23:14:31 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:11381 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727576AbgAGEO3 (ORCPT ); Mon, 6 Jan 2020 23:14:29 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 06 Jan 2020 20:13:40 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 06 Jan 2020 20:14:28 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 06 Jan 2020 20:14:28 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 7 Jan 2020 04:14:27 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 7 Jan 2020 04:14:27 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 7 Jan 2020 04:14:27 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.171.88]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 06 Jan 2020 20:14:27 -0800 From: Sowjanya Komatineni To: , , , , , , , , , , , , CC: , , , , , , , , , , Subject: [PATCH v6 05/19] dt-bindings: soc: tegra-pmc: Add Tegra PMC clock bindings Date: Mon, 6 Jan 2020 20:14:04 -0800 Message-ID: <1578370458-3686-6-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578370458-3686-1-git-send-email-skomatineni@nvidia.com> References: <1578370458-3686-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1578370420; bh=PsZlNHsDtg+yC1gx4v+bRlMpH1Kr/Iacv6Atnd9hWu0=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=FH8tM7k+Eky1W5iox+1DKfl7eunokhnmfWjpnHAgt76kzBNz7y4jk0e2447zNPO7a I1Ntj+OFWmJEab4egT2YIN83/RMeqpyncRgAYaUTva/OKmTT8Lqkj5T21EsQANuwUK sYW9cdJQhPWjIeH/ksZk4AhQeXa1ni72mIqw5m6Iup5RbAPgrzgSbKH1AeLSQ2eKdy 3XQ5q7K5e4HSVl6PA7DVZkIemUAEp3SLIAeCTzY8QeopyiNfehfOYopXl7WIwvpJsL gZ2K+2peBWwRv18IkzHlqeMkwFV7/EbfNMti9VxM5Q6rcyGB3NE0c+c/ReELq3Sofa 6hPFidt+6oq6Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra PMC has 3 clocks clk_out_1, clk_out_2, and clk_out_3. This patch documents PMC clock bindings and adds a header defining Tegra PMC clock ids. Reviewed-by: Rob Herring Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml | 12 ++++++++++++ include/dt-bindings/soc/tegra-pmc.h | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 include/dt-bindings/soc/tegra-pmc.h diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml index 3ff34b348141..5b5c42a00264 100644 --- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml +++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml @@ -40,6 +40,15 @@ properties: Must contain an entry for each entry in clock-names. See ../clocks/clocks-bindings.txt for details. + '#clock-cells': + const: 1 + description: + Tegra PMC has clk_out_1, clk_out_2, and clk_out_3. + Consumer of PMC clock should specify the desired clock by having + the clock ID in its "clocks" phandle cell with pmc clock provider. + See include/dt-bindings/soc/tegra-pmc.h for the list of Tegra PMC + clock IDs. + '#interrupt-cells': const: 2 description: @@ -296,6 +305,7 @@ required: - reg - clock-names - clocks + - '#clock-cells' dependencies: "nvidia,suspend-mode": ["nvidia,core-pwr-off-time", "nvidia,cpu-pwr-off-time"] @@ -307,12 +317,14 @@ examples: #include #include + #include tegra_pmc: pmc@7000e400 { compatible = "nvidia,tegra210-pmc"; reg = <0x0 0x7000e400 0x0 0x400>; clocks = <&tegra_car TEGRA210_CLK_PCLK>, <&clk32k_in>; clock-names = "pclk", "clk32k_in"; + #clock-cells = <1>; nvidia,invert-interrupt; nvidia,suspend-mode = <0>; diff --git a/include/dt-bindings/soc/tegra-pmc.h b/include/dt-bindings/soc/tegra-pmc.h new file mode 100644 index 000000000000..f7c866404456 --- /dev/null +++ b/include/dt-bindings/soc/tegra-pmc.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. + */ + +#ifndef _DT_BINDINGS_SOC_TEGRA_PMC_H +#define _DT_BINDINGS_SOC_TEGRA_PMC_H + +#define TEGRA_PMC_CLK_OUT_1 0 +#define TEGRA_PMC_CLK_OUT_2 1 +#define TEGRA_PMC_CLK_OUT_3 2 + +#define TEGRA_PMC_CLK_MAX 3 + +#endif /* _DT_BINDINGS_SOC_TEGRA_PMC_H */ -- 2.7.4