The AHB Bus Providing a Global View of the SSC Block on (some) qcom SoCs
Schema identifier ($id): "http://devicetree.org/schemas/bus/qcom,ssc-block-bus.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Srba <Michael.Srba@seznam.cz>"
This binding describes the dependencies (clocks, resets, power domains) which need to be turned on in a sequence before communication over the AHB bus becomes possible.
Additionally, the reg property is used to pass to the driver the location of two sadly undocumented registers which need to be poked as part of the sequence.
The SSC (Snapdragon Sensor Core) block contains a gpio controller, i2c/spi/uart controllers, a hexagon core, and a clock controller which provides clocks for the above.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"qcom,msm8998-ssc-block-bus"
Item 2
Exact value (
const):"qcom,ssc-block-bus"
reg — required here #
Array item rules (items) #
Item 1
SSCAON_CONFIG0 registers
Item 2
SSCAON_CONFIG1 registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mpm_sscaon_config0"
Item 2
Exact value (
const):"mpm_sscaon_config1"
#address-cells — required here #
#size-cells — required here #
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Maximum number of items (maxItems): 6
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"xo"
Item 2
Exact value (
const):"aggre2"
Item 3
Exact value (
const):"gcc_im_sleep"
Item 4
Exact value (
const):"aggre2_north"
Item 5
Exact value (
const):"ssc_xo"
Item 6
Exact value (
const):"ssc_ahbs"
power-domains — required here #
Array item rules (items) #
Item 1
CX power domain
Item 2
MX power domain
power-domain-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ssc_cx"
Item 2
Exact value (
const):"ssc_mx"
resets — required here #
Array item rules (items) #
Item 1
Main reset
Item 2
SSC Branch Control Register reset (associated with the ssc_xo and ssc_ahbs clocks)
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ssc_reset"
Item 2
Exact value (
const):"ssc_bcr"
qcom,halt-regs — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
describes how to locate the ssc AXI halt register
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
Phandle reference to a syscon representing TCSR
Item 2
offset for the ssc AXI halt register
Required in this object (required): "compatible", "reg", "reg-names", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names", "power-domains", "power-domain-names", "resets", "reset-names", "qcom,halt-regs"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-msm8998.h>
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/power/qcom-rpmpd.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
// devices under this node are physically located in the SSC block, connected to an ssc-internal bus;
ssc_ahb_slave: bus@10ac008 {
#address-cells = <1>;
#size-cells = <1>;
ranges;
compatible = "qcom,msm8998-ssc-block-bus", "qcom,ssc-block-bus";
reg = <0x10ac008 0x4>, <0x10ac010 0x4>;
reg-names = "mpm_sscaon_config0", "mpm_sscaon_config1";
clocks = <&xo>,
<&rpmcc RPM_SMD_AGGR2_NOC_CLK>,
<&gcc GCC_IM_SLEEP>,
<&gcc AGGRE2_SNOC_NORTH_AXI>,
<&gcc SSC_XO>,
<&gcc SSC_CNOC_AHBS_CLK>;
clock-names = "xo", "aggre2", "gcc_im_sleep", "aggre2_north", "ssc_xo", "ssc_ahbs";
resets = <&gcc GCC_SSC_RESET>, <&gcc GCC_SSC_BCR>;
reset-names = "ssc_reset", "ssc_bcr";
power-domains = <&rpmpd MSM8998_SSCCX>, <&rpmpd MSM8998_SSCMX>;
power-domain-names = "ssc_cx", "ssc_mx";
qcom,halt-regs = <&tcsr_mutex_regs 0x26000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)