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 LPASS clocks on SC7280

The LPASS(Low Power Audio Subsystem) clock provider have a bunch of generic
properties that are needed in a device tree. Add the LPASS clock IDs for
LPASS PIL client to request for the clocks.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1633484416-27852-2-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Taniya Das and committed by
Stephen Boyd
d15eb801 72c4996a

+84
+68
Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/qcom,sc7280-lpasscc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm LPASS Core Clock Controller Binding for SC7280 8 + 9 + maintainers: 10 + - Taniya Das <tdas@codeaurora.org> 11 + 12 + description: | 13 + Qualcomm LPASS core clock control module which supports the clocks and 14 + power domains on SC7280. 15 + 16 + See also: 17 + - dt-bindings/clock/qcom,lpass-sc7280.h 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - qcom,sc7280-lpasscc 23 + 24 + clocks: 25 + items: 26 + - description: gcc_cfg_noc_lpass_clk from GCC 27 + 28 + clock-names: 29 + items: 30 + - const: iface 31 + 32 + '#clock-cells': 33 + const: 1 34 + 35 + reg: 36 + items: 37 + - description: LPASS qdsp6ss register 38 + - description: LPASS top-cc register 39 + - description: LPASS cc register 40 + 41 + reg-names: 42 + items: 43 + - const: qdsp6ss 44 + - const: top_cc 45 + - const: cc 46 + 47 + required: 48 + - compatible 49 + - reg 50 + - clocks 51 + - clock-names 52 + - '#clock-cells' 53 + 54 + additionalProperties: false 55 + 56 + examples: 57 + - | 58 + #include <dt-bindings/clock/qcom,gcc-sc7280.h> 59 + #include <dt-bindings/clock/qcom,lpass-sc7280.h> 60 + clock-controller@3000000 { 61 + compatible = "qcom,sc7280-lpasscc"; 62 + reg = <0x03000000 0x40>, <0x03c04000 0x4>, <0x03389000 0x24>; 63 + reg-names = "qdsp6ss", "top_cc", "cc"; 64 + clocks = <&gcc GCC_CFG_NOC_LPASS_CLK>; 65 + clock-names = "iface"; 66 + #clock-cells = <1>; 67 + }; 68 + ...
+16
include/dt-bindings/clock/qcom,lpass-sc7280.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_QCOM_LPASS_SC7280_H 7 + #define _DT_BINDINGS_CLK_QCOM_LPASS_SC7280_H 8 + 9 + #define LPASS_Q6SS_AHBM_CLK 0 10 + #define LPASS_Q6SS_AHBS_CLK 1 11 + #define LPASS_TOP_CC_LPI_Q6_AXIM_HS_CLK 2 12 + #define LPASS_QDSP6SS_XO_CLK 3 13 + #define LPASS_QDSP6SS_SLEEP_CLK 4 14 + #define LPASS_QDSP6SS_CORE_CLK 5 15 + 16 + #endif