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

dt-bindings: clock: Introduce Qualcomm Turing Clock controller

Add devicetree binding for the turing clock controller found in QCS404.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Bjorn Andersson and committed by
Stephen Boyd
5f19c6e9 8bc7a04b

+34
+19
Documentation/devicetree/bindings/clock/qcom,turingcc.txt
··· 1 + Qualcomm Turing Clock & Reset Controller Binding 2 + ------------------------------------------------ 3 + 4 + Required properties : 5 + - compatible: shall contain "qcom,qcs404-turingcc". 6 + - reg: shall contain base register location and length. 7 + - clocks: ahb clock for the TuringCC 8 + - #clock-cells: from common clock binding, shall contain 1. 9 + - #reset-cells: from common reset binding, shall contain 1. 10 + 11 + Example: 12 + turingcc: clock-controller@800000 { 13 + compatible = "qcom,qcs404-turingcc"; 14 + reg = <0x00800000 0x30000>; 15 + clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>; 16 + 17 + #clock-cells = <1>; 18 + #reset-cells = <1>; 19 + };
+15
include/dt-bindings/clock/qcom,turingcc-qcs404.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * Copyright (c) 2019, Linaro Ltd 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_TURING_QCS404_H 7 + #define _DT_BINDINGS_CLK_TURING_QCS404_H 8 + 9 + #define TURING_Q6SS_Q6_AXIM_CLK 0 10 + #define TURING_Q6SS_AHBM_AON_CLK 1 11 + #define TURING_WRAPPER_AON_CLK 2 12 + #define TURING_Q6SS_AHBS_AON_CLK 3 13 + #define TURING_WRAPPER_QOS_AHBS_AON_CLK 4 14 + 15 + #endif