Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: fu540: prci: convert PRCI bindings to json-schema

FU540-C000 SoC from SiFive has a PRCI block, here we convert
the device tree bindings from txt to YAML.

Signed-off-by: Sagar Kadam <sagar.kadam@sifive.com>
Link: https://lore.kernel.org/r/1601393531-2402-2-git-send-email-sagar.kadam@sifive.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Sagar Kadam and committed by
Rob Herring
406171bf 36705c6f

+60 -46
-46
Documentation/devicetree/bindings/clock/sifive/fu540-prci.txt
··· 1 - SiFive FU540 PRCI bindings 2 - 3 - On the FU540 family of SoCs, most system-wide clock and reset integration 4 - is via the PRCI IP block. 5 - 6 - Required properties: 7 - - compatible: Should be "sifive,<chip>-prci". Only one value is 8 - supported: "sifive,fu540-c000-prci" 9 - - reg: Should describe the PRCI's register target physical address region 10 - - clocks: Should point to the hfclk device tree node and the rtcclk 11 - device tree node. The RTC clock here is not a time-of-day clock, 12 - but is instead a high-stability clock source for system timers 13 - and cycle counters. 14 - - #clock-cells: Should be <1> 15 - 16 - The clock consumer should specify the desired clock via the clock ID 17 - macros defined in include/dt-bindings/clock/sifive-fu540-prci.h. 18 - These macros begin with PRCI_CLK_. 19 - 20 - The hfclk and rtcclk nodes are required, and represent physical 21 - crystals or resonators located on the PCB. These nodes should be present 22 - underneath /, rather than /soc. 23 - 24 - Examples: 25 - 26 - /* under /, in PCB-specific DT data */ 27 - hfclk: hfclk { 28 - #clock-cells = <0>; 29 - compatible = "fixed-clock"; 30 - clock-frequency = <33333333>; 31 - clock-output-names = "hfclk"; 32 - }; 33 - rtcclk: rtcclk { 34 - #clock-cells = <0>; 35 - compatible = "fixed-clock"; 36 - clock-frequency = <1000000>; 37 - clock-output-names = "rtcclk"; 38 - }; 39 - 40 - /* under /soc, in SoC-specific DT data */ 41 - prci: clock-controller@10000000 { 42 - compatible = "sifive,fu540-c000-prci"; 43 - reg = <0x0 0x10000000 0x0 0x1000>; 44 - clocks = <&hfclk>, <&rtcclk>; 45 - #clock-cells = <1>; 46 - };
+60
Documentation/devicetree/bindings/clock/sifive/fu540-prci.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright (C) 2020 SiFive, Inc. 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/clock/sifive/fu540-prci.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: SiFive FU540 Power Reset Clock Interrupt Controller (PRCI) 9 + 10 + maintainers: 11 + - Sagar Kadam <sagar.kadam@sifive.com> 12 + - Paul Walmsley <paul.walmsley@sifive.com> 13 + 14 + description: 15 + On the FU540 family of SoCs, most system-wide clock and reset integration 16 + is via the PRCI IP block. 17 + The clock consumer should specify the desired clock via the clock ID 18 + macros defined in include/dt-bindings/clock/sifive-fu540-prci.h. 19 + These macros begin with PRCI_CLK_. 20 + 21 + The hfclk and rtcclk nodes are required, and represent physical 22 + crystals or resonators located on the PCB. These nodes should be present 23 + underneath /, rather than /soc. 24 + 25 + properties: 26 + compatible: 27 + const: sifive,fu540-c000-prci 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + clocks: 33 + items: 34 + - description: high frequency clock. 35 + - description: RTL clock. 36 + 37 + clock-names: 38 + items: 39 + - const: hfclk 40 + - const: rtcclk 41 + 42 + "#clock-cells": 43 + const: 1 44 + 45 + required: 46 + - compatible 47 + - reg 48 + - clocks 49 + - "#clock-cells" 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + - | 55 + prci: clock-controller@10000000 { 56 + compatible = "sifive,fu540-c000-prci"; 57 + reg = <0x10000000 0x1000>; 58 + clocks = <&hfclk>, <&rtcclk>; 59 + #clock-cells = <1>; 60 + };