Qualcomm QCM2290 Camera Subsystem (CAMSS)

Schema identifier ($id): "http://devicetree.org/schemas/media/qcom,qcm2290-camss.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Loic Poulain <loic.poulain@oss.qualcomm.com>"

The CAMSS IP is a CSI decoder and ISP present on Qualcomm platforms.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,qcm2290-camss"

reg — required here #

Maximum number of items (maxItems): 9

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "top"

Item 2

Exact value (const): "csid0"

Item 3

Exact value (const): "csid1"

Item 4

Exact value (const): "csiphy0"

Item 5

Exact value (const): "csiphy1"

Item 6

Exact value (const): "csitpg0"

Item 7

Exact value (const): "csitpg1"

Item 8

Exact value (const): "vfe0"

Item 9

Exact value (const): "vfe1"

clocks — required here #

Maximum number of items (maxItems): 15

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "axi"

Item 3

Exact value (const): "camnoc_nrt_axi"

Item 4

Exact value (const): "camnoc_rt_axi"

Item 5

Exact value (const): "csi0"

Item 6

Exact value (const): "csi1"

Item 7

Exact value (const): "csiphy0"

Item 8

Exact value (const): "csiphy0_timer"

Item 9

Exact value (const): "csiphy1"

Item 10

Exact value (const): "csiphy1_timer"

Item 11

Exact value (const): "top_ahb"

Item 12

Exact value (const): "vfe0"

Item 13

Exact value (const): "vfe0_cphy_rx"

Item 14

Exact value (const): "vfe1"

Item 15

Exact value (const): "vfe1_cphy_rx"

interrupts — required here #

Maximum number of items (maxItems): 8

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "csid0"

Item 2

Exact value (const): "csid1"

Item 3

Exact value (const): "csiphy0"

Item 4

Exact value (const): "csiphy1"

Item 5

Exact value (const): "csitpg0"

Item 6

Exact value (const): "csitpg1"

Item 7

Exact value (const): "vfe0"

Item 8

Exact value (const): "vfe1"

interconnects — required here #

Maximum number of items (maxItems): 3

interconnect-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "hf_mnoc"

Item 3

Exact value (const): "sf_mnoc"

iommus — required here #

Maximum number of items (maxItems): 4

power-domains — required here #

Array item rules (items) #

Item 1

GDSC CAMSS Block, Global Distributed Switch Controller.

vdd-csiphy-1p2-supply — required here #

Phandle to a 1.2V regulator supply to CSI PHYs.

vdd-csiphy-1p8-supply — required here #

Phandle to 1.8V regulator supply to CSI PHYs pll block.

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

CSI input ports.

Properties matching a name pattern (patternProperties) #

^port@[0-3]+$ — name matches this regular expression

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Input port for receiving CSI data from a CSIPHY.

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "data-lanes"

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts", "interrupt-names", "interconnects", "interconnect-names", "iommus", "power-domains", "vdd-csiphy-1p2-supply", "vdd-csiphy-1p8-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-qcm2290.h>
#include <dt-bindings/interconnect/qcom,rpm-icc.h>
#include <dt-bindings/interconnect/qcom,qcm2290.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    camss: camss@5c6e000 {
        compatible = "qcom,qcm2290-camss";

        reg = <0x0 0x5c11000 0x0 0x1000>,
              <0x0 0x5c6e000 0x0 0x1000>,
              <0x0 0x5c75000 0x0 0x1000>,
              <0x0 0x5c52000 0x0 0x1000>,
              <0x0 0x5c53000 0x0 0x1000>,
              <0x0 0x5c66000 0x0 0x400>,
              <0x0 0x5c68000 0x0 0x400>,
              <0x0 0x5c6f000 0x0 0x4000>,
              <0x0 0x5c76000 0x0 0x4000>;
        reg-names = "top",
                    "csid0",
                    "csid1",
                    "csiphy0",
                    "csiphy1",
                    "csitpg0",
                    "csitpg1",
                    "vfe0",
                    "vfe1";

        clocks = <&gcc GCC_CAMERA_AHB_CLK>,
                 <&gcc GCC_CAMSS_AXI_CLK>,
                 <&gcc GCC_CAMSS_NRT_AXI_CLK>,
                 <&gcc GCC_CAMSS_RT_AXI_CLK>,
                 <&gcc GCC_CAMSS_TFE_0_CSID_CLK>,
                 <&gcc GCC_CAMSS_TFE_1_CSID_CLK>,
                 <&gcc GCC_CAMSS_CPHY_0_CLK>,
                 <&gcc GCC_CAMSS_CSI0PHYTIMER_CLK>,
                 <&gcc GCC_CAMSS_CPHY_1_CLK>,
                 <&gcc GCC_CAMSS_CSI1PHYTIMER_CLK>,
                 <&gcc GCC_CAMSS_TOP_AHB_CLK>,
                 <&gcc GCC_CAMSS_TFE_0_CLK>,
                 <&gcc GCC_CAMSS_TFE_0_CPHY_RX_CLK>,
                 <&gcc GCC_CAMSS_TFE_1_CLK>,
                 <&gcc GCC_CAMSS_TFE_1_CPHY_RX_CLK>;
        clock-names = "ahb",
                      "axi",
                      "camnoc_nrt_axi",
                      "camnoc_rt_axi",
                      "csi0",
                      "csi1",
                      "csiphy0",
                      "csiphy0_timer",
                      "csiphy1",
                      "csiphy1_timer",
                      "top_ahb",
                      "vfe0",
                      "vfe0_cphy_rx",
                      "vfe1",
                      "vfe1_cphy_rx";

        interrupts = <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 212 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 309 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 310 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 211 IRQ_TYPE_EDGE_RISING>,
                     <GIC_SPI 213 IRQ_TYPE_EDGE_RISING>;
        interrupt-names = "csid0",
                          "csid1",
                          "csiphy0",
                          "csiphy1",
                          "csitpg0",
                          "csitpg1",
                          "vfe0",
                          "vfe1";

        interconnects = <&bimc MASTER_APPSS_PROC RPM_ACTIVE_TAG
                         &config_noc SLAVE_CAMERA_CFG RPM_ACTIVE_TAG>,
                        <&mmrt_virt MASTER_CAMNOC_HF RPM_ALWAYS_TAG
                         &bimc SLAVE_EBI1 RPM_ALWAYS_TAG>,
                        <&mmnrt_virt MASTER_CAMNOC_SF RPM_ALWAYS_TAG
                         &bimc SLAVE_EBI1 RPM_ALWAYS_TAG>;
        interconnect-names = "ahb",
                             "hf_mnoc",
                             "sf_mnoc";

        iommus = <&apps_smmu 0x400 0x0>,
                 <&apps_smmu 0x800 0x0>,
                 <&apps_smmu 0x820 0x0>,
                 <&apps_smmu 0x840 0x0>;

        power-domains = <&gcc GCC_CAMSS_TOP_GDSC>;

        vdd-csiphy-1p2-supply = <&pm4125_l5>;
        vdd-csiphy-1p8-supply = <&pm4125_l13>;

        ports {
            #address-cells = <1>;
            #size-cells = <0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page