2020-06-08 15:07:24 +05:30
|
|
|
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
2023-03-22 12:34:48 -05:00
|
|
|
$id: http://devicetree.org/schemas/mailbox/qcom,apcs-kpss-global.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
2020-06-08 15:07:24 +05:30
|
|
|
|
2022-12-16 17:38:12 +01:00
|
|
|
title: Qualcomm APCS global block
|
2020-06-08 15:07:24 +05:30
|
|
|
|
|
|
|
description:
|
|
|
|
This binding describes the APCS "global" block found in various Qualcomm
|
|
|
|
platforms.
|
|
|
|
|
|
|
|
maintainers:
|
2021-09-14 16:04:33 +08:00
|
|
|
- Jassi Brar <jassisinghbrar@gmail.com>
|
2020-06-08 15:07:24 +05:30
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
2022-07-18 12:55:38 +01:00
|
|
|
oneOf:
|
2023-02-17 14:03:07 +05:30
|
|
|
- items:
|
|
|
|
- enum:
|
2023-05-22 03:58:41 +05:30
|
|
|
- qcom,ipq5018-apcs-apps-global
|
2023-02-17 14:03:07 +05:30
|
|
|
- qcom,ipq5332-apcs-apps-global
|
2023-05-04 00:57:33 -05:00
|
|
|
- qcom,ipq8074-apcs-apps-global
|
2023-04-06 11:43:12 +05:30
|
|
|
- qcom,ipq9574-apcs-apps-global
|
2023-02-17 14:03:07 +05:30
|
|
|
- const: qcom,ipq6018-apcs-apps-global
|
2023-11-11 21:49:15 +01:00
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- qcom,qcs404-apcs-apps-global
|
|
|
|
- const: qcom,msm8916-apcs-kpss-global
|
|
|
|
- const: syscon
|
|
|
|
- items:
|
|
|
|
- enum:
|
2024-04-08 21:32:03 +02:00
|
|
|
- qcom,msm8974-apcs-kpss-global
|
2023-11-11 21:49:15 +01:00
|
|
|
- qcom,msm8976-apcs-kpss-global
|
|
|
|
- const: qcom,msm8994-apcs-kpss-global
|
|
|
|
- const: syscon
|
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- qcom,msm8998-apcs-hmss-global
|
|
|
|
- qcom,sdm660-apcs-hmss-global
|
|
|
|
- qcom,sm4250-apcs-hmss-global
|
|
|
|
- qcom,sm6115-apcs-hmss-global
|
|
|
|
- qcom,sm6125-apcs-hmss-global
|
|
|
|
- const: qcom,msm8994-apcs-kpss-global
|
2022-07-18 12:55:38 +01:00
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- qcom,sc7180-apss-shared
|
|
|
|
- qcom,sc8180x-apss-shared
|
|
|
|
- qcom,sm8150-apss-shared
|
2023-05-04 00:57:33 -05:00
|
|
|
- const: qcom,sdm845-apss-shared
|
2022-07-18 12:55:38 +01:00
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- qcom,msm8916-apcs-kpss-global
|
|
|
|
- qcom,msm8939-apcs-kpss-global
|
|
|
|
- qcom,msm8953-apcs-kpss-global
|
|
|
|
- qcom,msm8994-apcs-kpss-global
|
2023-01-27 01:03:13 +02:00
|
|
|
- qcom,sdx55-apcs-gcc
|
2022-07-18 12:55:38 +01:00
|
|
|
- const: syscon
|
2023-05-04 00:57:33 -05:00
|
|
|
- enum:
|
|
|
|
- qcom,ipq6018-apcs-apps-global
|
|
|
|
- qcom,msm8996-apcs-hmss-global
|
|
|
|
- qcom,qcm2290-apcs-hmss-global
|
|
|
|
- qcom,sdm845-apss-shared
|
|
|
|
|
2020-06-08 15:07:24 +05:30
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
description: phandles to the parent clocks of the clock driver
|
2021-01-18 09:41:52 +05:30
|
|
|
minItems: 2
|
2022-08-19 00:08:47 +02:00
|
|
|
maxItems: 3
|
2020-06-08 15:07:24 +05:30
|
|
|
|
|
|
|
'#mbox-cells':
|
|
|
|
const: 1
|
|
|
|
|
|
|
|
'#clock-cells':
|
2022-08-19 00:08:46 +02:00
|
|
|
enum: [0, 1]
|
2020-06-08 15:07:24 +05:30
|
|
|
|
|
|
|
clock-names:
|
2021-01-18 09:41:52 +05:30
|
|
|
minItems: 2
|
2022-08-19 00:08:47 +02:00
|
|
|
maxItems: 3
|
2020-06-08 15:07:24 +05:30
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- '#mbox-cells'
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
2021-01-18 09:41:52 +05:30
|
|
|
allOf:
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-11-11 21:49:15 +01:00
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,msm8916-apcs-kpss-global
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
items:
|
|
|
|
- description: primary pll parent of the clock driver
|
|
|
|
- description: auxiliary parent
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: pll
|
|
|
|
- const: aux
|
|
|
|
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,msm8939-apcs-kpss-global
|
2021-01-18 09:41:52 +05:30
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
2022-08-19 00:08:47 +02:00
|
|
|
items:
|
|
|
|
- description: primary pll parent of the clock driver
|
|
|
|
- description: auxiliary parent
|
2023-11-11 21:49:15 +01:00
|
|
|
- description: reference clock
|
2022-08-19 00:08:47 +02:00
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: pll
|
|
|
|
- const: aux
|
2023-11-11 21:49:15 +01:00
|
|
|
- const: ref
|
2023-05-04 00:57:33 -05:00
|
|
|
|
2021-01-18 09:41:52 +05:30
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-03-22 18:35:59 +01:00
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,sdx55-apcs-gcc
|
2021-01-18 09:41:52 +05:30
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
2022-08-19 00:08:47 +02:00
|
|
|
items:
|
2023-03-22 18:35:58 +01:00
|
|
|
- description: reference clock
|
2022-08-19 00:08:47 +02:00
|
|
|
- description: primary pll parent of the clock driver
|
|
|
|
- description: auxiliary parent
|
|
|
|
clock-names:
|
|
|
|
items:
|
2023-03-22 18:35:58 +01:00
|
|
|
- const: ref
|
2022-08-19 00:08:47 +02:00
|
|
|
- const: pll
|
|
|
|
- const: aux
|
2023-11-11 21:49:15 +01:00
|
|
|
|
2022-08-19 00:08:47 +02:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-02-17 14:03:07 +05:30
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,ipq6018-apcs-apps-global
|
2022-08-19 00:08:47 +02:00
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
items:
|
|
|
|
- description: primary pll parent of the clock driver
|
|
|
|
- description: XO clock
|
2023-09-14 12:29:56 +05:30
|
|
|
- description: GCC GPLL0 clock source
|
2022-08-19 00:08:47 +02:00
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: pll
|
|
|
|
- const: xo
|
2023-09-14 12:29:56 +05:30
|
|
|
- const: gpll0
|
2023-01-27 01:03:15 +02:00
|
|
|
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
2024-10-17 11:14:47 +02:00
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,msm8953-apcs-kpss-global
|
|
|
|
- qcom,msm8994-apcs-kpss-global
|
|
|
|
- qcom,msm8996-apcs-hmss-global
|
|
|
|
- qcom,qcm2290-apcs-hmss-global
|
|
|
|
- qcom,sdm845-apss-shared
|
2023-01-27 01:03:15 +02:00
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks: false
|
|
|
|
clock-names: false
|
|
|
|
|
2022-08-19 00:08:46 +02:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-02-17 14:03:07 +05:30
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,ipq6018-apcs-apps-global
|
2022-08-19 00:08:46 +02:00
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
'#clock-cells':
|
|
|
|
const: 1
|
|
|
|
else:
|
|
|
|
properties:
|
|
|
|
'#clock-cells':
|
|
|
|
const: 0
|
|
|
|
|
2020-06-08 15:07:24 +05:30
|
|
|
examples:
|
|
|
|
|
|
|
|
# Example apcs with msm8996
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
apcs_glb: mailbox@9820000 {
|
|
|
|
compatible = "qcom,msm8996-apcs-hmss-global";
|
|
|
|
reg = <0x9820000 0x1000>;
|
|
|
|
|
|
|
|
#mbox-cells = <1>;
|
2023-01-27 01:03:17 +02:00
|
|
|
#clock-cells = <0>;
|
2020-06-08 15:07:24 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
rpm-glink {
|
|
|
|
compatible = "qcom,glink-rpm";
|
|
|
|
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
qcom,rpm-msg-ram = <&rpm_msg_ram>;
|
|
|
|
mboxes = <&apcs_glb 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Example apcs with qcs404
|
|
|
|
- |
|
|
|
|
#define GCC_APSS_AHB_CLK_SRC 1
|
|
|
|
#define GCC_GPLL0_AO_OUT_MAIN 123
|
|
|
|
apcs: mailbox@b011000 {
|
2023-11-11 21:49:15 +01:00
|
|
|
compatible = "qcom,qcs404-apcs-apps-global",
|
|
|
|
"qcom,msm8916-apcs-kpss-global", "syscon";
|
2020-06-08 15:07:24 +05:30
|
|
|
reg = <0x0b011000 0x1000>;
|
|
|
|
#mbox-cells = <1>;
|
|
|
|
clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
|
|
|
|
clock-names = "pll", "aux";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|