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

dt-bindings: clock: Add YAML schemas for the QCOM DISPCC clock bindings

The DISPCC clock provider have a bunch of generic properties that
are needed in a device tree. Add a YAML schemas for those.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/1573812245-23827-2-git-send-email-tdas@codeaurora.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Taniya Das and committed by
Stephen Boyd
5d28e44b 691865ba

+66 -19
-19
Documentation/devicetree/bindings/clock/qcom,dispcc.txt
··· 1 - Qualcomm Technologies, Inc. Display Clock Controller Binding 2 - ------------------------------------------------------------ 3 - 4 - Required properties : 5 - 6 - - compatible : shall contain "qcom,sdm845-dispcc" 7 - - reg : shall contain base register location and length. 8 - - #clock-cells : from common clock binding, shall contain 1. 9 - - #reset-cells : from common reset binding, shall contain 1. 10 - - #power-domain-cells : from generic power domain binding, shall contain 1. 11 - 12 - Example: 13 - dispcc: clock-controller@af00000 { 14 - compatible = "qcom,sdm845-dispcc"; 15 - reg = <0xaf00000 0x100000>; 16 - #clock-cells = <1>; 17 - #reset-cells = <1>; 18 - #power-domain-cells = <1>; 19 - };
+66
Documentation/devicetree/bindings/clock/qcom,dispcc.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/bindings/clock/qcom,dispcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Display Clock & Reset Controller Binding 8 + 9 + maintainers: 10 + - Taniya Das <tdas@codeaurora.org> 11 + 12 + description: | 13 + Qualcomm display clock control module which supports the clocks, resets and 14 + power domains. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - qcom,sdm845-dispcc 20 + 21 + clocks: 22 + minItems: 1 23 + maxItems: 2 24 + items: 25 + - description: Board XO source 26 + - description: GPLL0 source from GCC 27 + 28 + clock-names: 29 + items: 30 + - const: xo 31 + - const: gpll0 32 + 33 + '#clock-cells': 34 + const: 1 35 + 36 + '#reset-cells': 37 + const: 1 38 + 39 + '#power-domain-cells': 40 + const: 1 41 + 42 + reg: 43 + maxItems: 1 44 + 45 + required: 46 + - compatible 47 + - reg 48 + - clocks 49 + - clock-names 50 + - '#clock-cells' 51 + - '#reset-cells' 52 + - '#power-domain-cells' 53 + 54 + examples: 55 + # Example of DISPCC with clock node properties for SDM845: 56 + - | 57 + clock-controller@af00000 { 58 + compatible = "qcom,sdm845-dispcc"; 59 + reg = <0xaf00000 0x10000>; 60 + clocks = <&rpmhcc 0>, <&gcc 24>; 61 + clock-names = "xo", "gpll0"; 62 + #clock-cells = <1>; 63 + #reset-cells = <1>; 64 + #power-domain-cells = <1>; 65 + }; 66 + ...