Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5603198yba; Thu, 11 Apr 2019 01:30:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeVEvpGsS+eudEZu+ZmYao4MGBG8snFor++NYprFeSujavIKQmCO160wIsxz5nlOXbxkKx X-Received: by 2002:a63:195:: with SMTP id 143mr45321365pgb.54.1554971448190; Thu, 11 Apr 2019 01:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554971448; cv=none; d=google.com; s=arc-20160816; b=Vm56zv4adI0bGYuzydQxJdsK+CUaADL5aX/4P3UAvswJ717Qruj44cTSUG1nPjUevR 8nNxMNouTgckMYz2IACSsj1ca9V2Ns738aZR9nzU6ZjFY2gs/CdIek9gk9MhG0yKL0FL NTrQiWp0L9+UJFja0O8FdPbbLnCEO2mWp5WfEdmYMsGjDBgYA0zbE7IttjquMeYXsit1 V2p/+fPHqp3iPgMc6jNabRVZ5N2ag27uCvdk9iARqWIsvdX9xBgE0vT9D/d3JxIdv0wN kXWYODjzz3Sk3TzxvW6cVGbcnz19Uz+j9LXLnHP1KQERaIjgeWQ1jNp34XSRUK2CpK0N rdPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fs9k/ofObdjUeCTYkQB8LCaYi1pDWe1mex0AK1YWiFM=; b=PXzaftuIetzIFNlxpWo9xtKUBhZ26GdsOtVqR/ewPhB+ZLb/hiCDHTI01rOP3Ag8Hm UNPnvv/lg/fwr81tSpNRW2B3WUHnMxDqy5nJLzdMfn/pDB2mcjN4n3pSTD9Cz6ekpdrA wAFl7brQGrAWRxcse6Ug+PmDvzCavlT0G5BLdNeR7W7chev/nVLE3pQc0fwlgwLPAdea I5/W6cby4jCfQTLJxGd+TNr/gWMqbRy0w224rRjsDkRkr6rP3Dmk/RC01uO6732la8Q5 sUZmsxI2E3WHykSA/6mtDfVqTHX4kGB0OsnDTq0nE2s+5tM99KIxAUZ73MH3wM4iXXz8 UUcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=A73YNgB9; 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 23si17195263pfh.2.2019.04.11.01.30.32; Thu, 11 Apr 2019 01:30:48 -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=@sifive.com header.s=google header.b=A73YNgB9; 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 S1726877AbfDKI2N (ORCPT + 99 others); Thu, 11 Apr 2019 04:28:13 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37660 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfDKI2M (ORCPT ); Thu, 11 Apr 2019 04:28:12 -0400 Received: by mail-pg1-f195.google.com with SMTP id e6so3173089pgc.4 for ; Thu, 11 Apr 2019 01:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fs9k/ofObdjUeCTYkQB8LCaYi1pDWe1mex0AK1YWiFM=; b=A73YNgB9Tlzp9/1ThMjQJzZ0XzoiY6z0aCZiR9tfQL7lugFQtA5YSHA12G0l9wcrhN g1I06uRFoajRwB8nN2WVL7pacMNFhyJLNnAjvUCS/yMky9IPQcSw6KzlzVOisnSy5wJg SRztDTZh1UXWXh6RfYhhZpWe0bx18XLeTwRm1fsZgUkja3ESOHwaF+eOtdYZT9W4Jif1 e5JivajHWeGWsBrxbHAHZqRVPt3i9WxGNAvJ+DSIdUoI+U+4yfXmo8pM/0ZCfIhnoy/o bInuPxH3WxGVPmWYSowlA48Qx4zxLHhBhNXJCrhLIvA4nUbPisLN2FuqZdrEm+S6lD35 kNvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fs9k/ofObdjUeCTYkQB8LCaYi1pDWe1mex0AK1YWiFM=; b=dVgeqVEdayUnz7EyqqZZGpUsfUDI6/HYaiOR99ZrziYH4T83UlwdSJuZ9mCkxd0796 Af4Az/eVsCyqQbJfzJ4BdXQwbfLpwUdVHAkiW6y7i0PSEEpH9SMsQCwvzzvePsF8yUCY pfqIjC6eors1OZG8x45NYSSPohaJXnuHxtQOqg9BgbqPLtgrXH2WgFaiUdwOi1a0WVtp PTWuOC5fa3ds14vFVWV5bRqklFqRuHAYnHujesE3GKAL7Ow1UKdFP9JffJYRqgxFX+uN Scdi7rbS/z91hNfS9O1qt1eDIzuhIzCCwZ1pPOvC02NW55eEoZ6U+mhVKJ+LxXRSkquu JFZg== X-Gm-Message-State: APjAAAUwUxqFIQNvmmuIe97WTPpr5qcpBwB0TvB4nbfXMvTaUWluvn+z YMs42IkjUIHCyxkcwHA4uwQhKFPfPZ8= X-Received: by 2002:aa7:8609:: with SMTP id p9mr48274019pfn.166.1554971291183; Thu, 11 Apr 2019 01:28:11 -0700 (PDT) Received: from viisi.sifive.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id x28sm41043430pgl.38.2019.04.11.01.28.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 01:28:10 -0700 (PDT) From: Paul Walmsley To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Cc: Paul Walmsley , Paul Walmsley , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Palmer Dabbelt , Megan Wachs Subject: [PATCH v3 2/3] dt-bindings: clk: add documentation for the SiFive PRCI driver Date: Thu, 11 Apr 2019 01:27:34 -0700 Message-Id: <20190411082733.3736-3-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190411082733.3736-2-paul.walmsley@sifive.com> References: <20190411082733.3736-2-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT binding documentation for the Linux driver for the SiFive PRCI clock & reset control IP block, as found on the SiFive FU540 chip. This version includes changes requested by Stephen Boyd and Rob Herring , and fixes some errors in the initial version. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: Mark Rutland Cc: Palmer Dabbelt Cc: Megan Wachs Cc: linux-clk@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- .../bindings/clock/sifive/fu540-prci.txt | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/sifive/fu540-prci.txt diff --git a/Documentation/devicetree/bindings/clock/sifive/fu540-prci.txt b/Documentation/devicetree/bindings/clock/sifive/fu540-prci.txt new file mode 100644 index 000000000000..349808f4fb8c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/sifive/fu540-prci.txt @@ -0,0 +1,46 @@ +SiFive FU540 PRCI bindings + +On the FU540 family of SoCs, most system-wide clock and reset integration +is via the PRCI IP block. + +Required properties: +- compatible: Should be "sifive,-prci". Only one value is + supported: "sifive,fu540-c000-prci" +- reg: Should describe the PRCI's register target physical address region +- clocks: Should point to the hfclk device tree node and the rtcclk + device tree node. The RTC clock here is not a time-of-day clock, + but is instead a high-stability clock source for system timers + and cycle counters. +- #clock-cells: Should be <1> + +The clock consumer should specify the desired clock via the clock ID +macros defined in include/dt-bindings/clock/sifive-fu540-prci.h. +These macros begin with PRCI_CLK_. + +The hfclk and rtcclk nodes are required, and represent physical +crystals or resonators located on the PCB. These nodes should be present +underneath /, rather than /soc. + +Examples: + +/* under /, in PCB-specific DT data */ +hfclk: hfclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <33333333>; + clock-output-names = "hfclk"; +}; +rtcclk: rtcclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <1000000>; + clock-output-names = "rtcclk"; +}; + +/* under /soc, in SoC-specific DT data */ +prci: clock-controller@10000000 { + compatible = "sifive,fu540-c000-prci"; + reg = <0x0 0x10000000 0x0 0x1000>; + clocks = <&hfclk>, <&rtcclk>; + #clock-cells = <1>; +}; -- 2.20.1