15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25def4c47SEmmanuel Vadot# Copyright (C) 2020 SiFive, Inc. 35def4c47SEmmanuel Vadot%YAML 1.2 45def4c47SEmmanuel Vadot--- 55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/sifive/fu740-prci.yaml# 65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 75def4c47SEmmanuel Vadot 85def4c47SEmmanuel Vadottitle: SiFive FU740 Power Reset Clock Interrupt Controller (PRCI) 95def4c47SEmmanuel Vadot 105def4c47SEmmanuel Vadotmaintainers: 115def4c47SEmmanuel Vadot - Zong Li <zong.li@sifive.com> 125def4c47SEmmanuel Vadot - Paul Walmsley <paul.walmsley@sifive.com> 135def4c47SEmmanuel Vadot 145def4c47SEmmanuel Vadotdescription: 155def4c47SEmmanuel Vadot On the FU740 family of SoCs, most system-wide clock and reset integration 165def4c47SEmmanuel Vadot is via the PRCI IP block. 175def4c47SEmmanuel Vadot The clock consumer should specify the desired clock via the clock ID 185def4c47SEmmanuel Vadot macros defined in include/dt-bindings/clock/sifive-fu740-prci.h. 195def4c47SEmmanuel Vadot These macros begin with PRCI_CLK_. 205def4c47SEmmanuel Vadot 215def4c47SEmmanuel Vadot The hfclk and rtcclk nodes are required, and represent physical 225def4c47SEmmanuel Vadot crystals or resonators located on the PCB. These nodes should be present 235def4c47SEmmanuel Vadot underneath /, rather than /soc. 245def4c47SEmmanuel Vadot 255def4c47SEmmanuel Vadotproperties: 265def4c47SEmmanuel Vadot compatible: 275def4c47SEmmanuel Vadot const: sifive,fu740-c000-prci 285def4c47SEmmanuel Vadot 295def4c47SEmmanuel Vadot reg: 305def4c47SEmmanuel Vadot maxItems: 1 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadot clocks: 335def4c47SEmmanuel Vadot items: 345def4c47SEmmanuel Vadot - description: high frequency clock. 355def4c47SEmmanuel Vadot - description: RTL clock. 365def4c47SEmmanuel Vadot 375def4c47SEmmanuel Vadot clock-names: 385def4c47SEmmanuel Vadot items: 395def4c47SEmmanuel Vadot - const: hfclk 405def4c47SEmmanuel Vadot - const: rtcclk 415def4c47SEmmanuel Vadot 425def4c47SEmmanuel Vadot "#clock-cells": 435def4c47SEmmanuel Vadot const: 1 445def4c47SEmmanuel Vadot 45*8cc087a1SEmmanuel Vadot "#reset-cells": 46*8cc087a1SEmmanuel Vadot const: 1 47*8cc087a1SEmmanuel Vadot 485def4c47SEmmanuel Vadotrequired: 495def4c47SEmmanuel Vadot - compatible 505def4c47SEmmanuel Vadot - reg 515def4c47SEmmanuel Vadot - clocks 525def4c47SEmmanuel Vadot - "#clock-cells" 535def4c47SEmmanuel Vadot 545def4c47SEmmanuel VadotadditionalProperties: false 555def4c47SEmmanuel Vadot 565def4c47SEmmanuel Vadotexamples: 575def4c47SEmmanuel Vadot - | 585def4c47SEmmanuel Vadot prci: clock-controller@10000000 { 595def4c47SEmmanuel Vadot compatible = "sifive,fu740-c000-prci"; 605def4c47SEmmanuel Vadot reg = <0x10000000 0x1000>; 615def4c47SEmmanuel Vadot clocks = <&hfclk>, <&rtcclk>; 625def4c47SEmmanuel Vadot #clock-cells = <1>; 63*8cc087a1SEmmanuel Vadot #reset-cells = <1>; 645def4c47SEmmanuel Vadot }; 65