brintos

brintos / linux-shallow public Read only

0
0
Text · 8.9 KiB · 584106e Raw
386 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2 3%YAML 1.24---5$id: http://devicetree.org/schemas/media/qcom,sdm660-camss.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Qualcomm CAMSS ISP9 10maintainers:11  - Robert Foss <robert.foss@linaro.org>12  - AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>13 14description: |15  The CAMSS IP is a CSI decoder and ISP present on Qualcomm platforms16 17properties:18  compatible:19    const: qcom,sdm660-camss20 21  clocks:22    minItems: 4223    maxItems: 4224 25  clock-names:26    items:27      - const: ahb28      - const: cphy_csid029      - const: cphy_csid130      - const: cphy_csid231      - const: cphy_csid332      - const: csi0_ahb33      - const: csi034      - const: csi0_phy35      - const: csi0_pix36      - const: csi0_rdi37      - const: csi1_ahb38      - const: csi139      - const: csi1_phy40      - const: csi1_pix41      - const: csi1_rdi42      - const: csi2_ahb43      - const: csi244      - const: csi2_phy45      - const: csi2_pix46      - const: csi2_rdi47      - const: csi3_ahb48      - const: csi349      - const: csi3_phy50      - const: csi3_pix51      - const: csi3_rdi52      - const: csiphy0_timer53      - const: csiphy1_timer54      - const: csiphy2_timer55      - const: csiphy_ahb2crif56      - const: csi_vfe057      - const: csi_vfe158      - const: ispif_ahb59      - const: throttle_axi60      - const: top_ahb61      - const: vfe0_ahb62      - const: vfe063      - const: vfe0_stream64      - const: vfe1_ahb65      - const: vfe166      - const: vfe1_stream67      - const: vfe_ahb68      - const: vfe_axi69 70  interrupts:71    minItems: 1072    maxItems: 1073 74  interrupt-names:75    items:76      - const: csid077      - const: csid178      - const: csid279      - const: csid380      - const: csiphy081      - const: csiphy182      - const: csiphy283      - const: ispif84      - const: vfe085      - const: vfe186 87  interconnects:88    maxItems: 189 90  interconnect-names:91    items:92      - const: vfe-mem93 94  iommus:95    maxItems: 496 97  power-domains:98    items:99      - description: VFE0 GDSC - Video Front End, Global Distributed Switch Controller.100      - description: VFE1 GDSC - Video Front End, Global Distributed Switch Controller.101 102  ports:103    $ref: /schemas/graph.yaml#/properties/ports104 105    description:106      CSI input ports.107 108    properties:109      port@0:110        $ref: /schemas/graph.yaml#/$defs/port-base111        unevaluatedProperties: false112        description:113          Input port for receiving CSI data.114 115        properties:116          endpoint:117            $ref: video-interfaces.yaml#118            unevaluatedProperties: false119 120            properties:121              data-lanes:122                minItems: 1123                maxItems: 4124 125            required:126              - data-lanes127 128      port@1:129        $ref: /schemas/graph.yaml#/$defs/port-base130        unevaluatedProperties: false131        description:132          Input port for receiving CSI data.133 134        properties:135          endpoint:136            $ref: video-interfaces.yaml#137            unevaluatedProperties: false138 139            properties:140              data-lanes:141                minItems: 1142                maxItems: 4143 144            required:145              - data-lanes146 147      port@2:148        $ref: /schemas/graph.yaml#/$defs/port-base149        unevaluatedProperties: false150        description:151          Input port for receiving CSI data.152 153        properties:154          endpoint:155            $ref: video-interfaces.yaml#156            unevaluatedProperties: false157 158            properties:159              data-lanes:160                minItems: 1161                maxItems: 4162 163            required:164              - data-lanes165 166      port@3:167        $ref: /schemas/graph.yaml#/$defs/port-base168        unevaluatedProperties: false169        description:170          Input port for receiving CSI data.171 172        properties:173          endpoint:174            $ref: video-interfaces.yaml#175            unevaluatedProperties: false176 177            properties:178              data-lanes:179                minItems: 1180                maxItems: 4181 182            required:183              - data-lanes184 185  reg:186    minItems: 14187    maxItems: 14188 189  reg-names:190    items:191      - const: csi_clk_mux192      - const: csid0193      - const: csid1194      - const: csid2195      - const: csid3196      - const: csiphy0197      - const: csiphy0_clk_mux198      - const: csiphy1199      - const: csiphy1_clk_mux200      - const: csiphy2201      - const: csiphy2_clk_mux202      - const: ispif203      - const: vfe0204      - const: vfe1205 206  vdda-supply:207    description:208      Definition of the regulator used as analog power supply.209 210required:211  - clock-names212  - clocks213  - compatible214  - interrupt-names215  - interrupts216  - iommus217  - power-domains218  - reg219  - reg-names220  - vdda-supply221 222additionalProperties: false223 224examples:225  - |226    #include <dt-bindings/interrupt-controller/arm-gic.h>227    #include <dt-bindings/clock/qcom,gcc-sdm660.h>228    #include <dt-bindings/clock/qcom,mmcc-sdm660.h>229 230    camss: camss@ca00020 {231      compatible = "qcom,sdm660-camss";232 233      clocks = <&mmcc CAMSS_AHB_CLK>,234        <&mmcc CAMSS_CPHY_CSID0_CLK>,235        <&mmcc CAMSS_CPHY_CSID1_CLK>,236        <&mmcc CAMSS_CPHY_CSID2_CLK>,237        <&mmcc CAMSS_CPHY_CSID3_CLK>,238        <&mmcc CAMSS_CSI0_AHB_CLK>,239        <&mmcc CAMSS_CSI0_CLK>,240        <&mmcc CAMSS_CPHY_CSID0_CLK>,241        <&mmcc CAMSS_CSI0PIX_CLK>,242        <&mmcc CAMSS_CSI0RDI_CLK>,243        <&mmcc CAMSS_CSI1_AHB_CLK>,244        <&mmcc CAMSS_CSI1_CLK>,245        <&mmcc CAMSS_CPHY_CSID1_CLK>,246        <&mmcc CAMSS_CSI1PIX_CLK>,247        <&mmcc CAMSS_CSI1RDI_CLK>,248        <&mmcc CAMSS_CSI2_AHB_CLK>,249        <&mmcc CAMSS_CSI2_CLK>,250        <&mmcc CAMSS_CPHY_CSID2_CLK>,251        <&mmcc CAMSS_CSI2PIX_CLK>,252        <&mmcc CAMSS_CSI2RDI_CLK>,253        <&mmcc CAMSS_CSI3_AHB_CLK>,254        <&mmcc CAMSS_CSI3_CLK>,255        <&mmcc CAMSS_CPHY_CSID3_CLK>,256        <&mmcc CAMSS_CSI3PIX_CLK>,257        <&mmcc CAMSS_CSI3RDI_CLK>,258        <&mmcc CAMSS_CSI0PHYTIMER_CLK>,259        <&mmcc CAMSS_CSI1PHYTIMER_CLK>,260        <&mmcc CAMSS_CSI2PHYTIMER_CLK>,261        <&mmcc CSIPHY_AHB2CRIF_CLK>,262        <&mmcc CAMSS_CSI_VFE0_CLK>,263        <&mmcc CAMSS_CSI_VFE1_CLK>,264        <&mmcc CAMSS_ISPIF_AHB_CLK>,265        <&mmcc THROTTLE_CAMSS_AXI_CLK>,266        <&mmcc CAMSS_TOP_AHB_CLK>,267        <&mmcc CAMSS_VFE0_AHB_CLK>,268        <&mmcc CAMSS_VFE0_CLK>,269        <&mmcc CAMSS_VFE0_STREAM_CLK>,270        <&mmcc CAMSS_VFE1_AHB_CLK>,271        <&mmcc CAMSS_VFE1_CLK>,272        <&mmcc CAMSS_VFE1_STREAM_CLK>,273        <&mmcc CAMSS_VFE_VBIF_AHB_CLK>,274        <&mmcc CAMSS_VFE_VBIF_AXI_CLK>;275 276      clock-names = "ahb",277        "cphy_csid0",278        "cphy_csid1",279        "cphy_csid2",280        "cphy_csid3",281        "csi0_ahb",282        "csi0",283        "csi0_phy",284        "csi0_pix",285        "csi0_rdi",286        "csi1_ahb",287        "csi1",288        "csi1_phy",289        "csi1_pix",290        "csi1_rdi",291        "csi2_ahb",292        "csi2",293        "csi2_phy",294        "csi2_pix",295        "csi2_rdi",296        "csi3_ahb",297        "csi3",298        "csi3_phy",299        "csi3_pix",300        "csi3_rdi",301        "csiphy0_timer",302        "csiphy1_timer",303        "csiphy2_timer",304        "csiphy_ahb2crif",305        "csi_vfe0",306        "csi_vfe1",307        "ispif_ahb",308        "throttle_axi",309        "top_ahb",310        "vfe0_ahb",311        "vfe0",312        "vfe0_stream",313        "vfe1_ahb",314        "vfe1",315        "vfe1_stream",316        "vfe_ahb",317        "vfe_axi";318 319      interrupts = <GIC_SPI 296 IRQ_TYPE_EDGE_RISING>,320        <GIC_SPI 297 IRQ_TYPE_EDGE_RISING>,321        <GIC_SPI 298 IRQ_TYPE_EDGE_RISING>,322        <GIC_SPI 299 IRQ_TYPE_EDGE_RISING>,323        <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>,324        <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>,325        <GIC_SPI 80 IRQ_TYPE_EDGE_RISING>,326        <GIC_SPI 309 IRQ_TYPE_EDGE_RISING>,327        <GIC_SPI 314 IRQ_TYPE_EDGE_RISING>,328        <GIC_SPI 315 IRQ_TYPE_EDGE_RISING>;329 330      interrupt-names = "csid0",331        "csid1",332        "csid2",333        "csid3",334        "csiphy0",335        "csiphy1",336        "csiphy2",337        "ispif",338        "vfe0",339        "vfe1";340 341      iommus = <&mmss_smmu 0xc00>,342        <&mmss_smmu 0xc01>,343        <&mmss_smmu 0xc02>,344        <&mmss_smmu 0xc03>;345 346      power-domains = <&mmcc CAMSS_VFE0_GDSC>,347        <&mmcc CAMSS_VFE1_GDSC>;348 349      reg = <0x0ca00020 0x10>,350        <0x0ca30000 0x100>,351        <0x0ca30400 0x100>,352        <0x0ca30800 0x100>,353        <0x0ca30c00 0x100>,354        <0x0c824000 0x1000>,355        <0x0ca00120 0x4>,356        <0x0c825000 0x1000>,357        <0x0ca00124 0x4>,358        <0x0c826000 0x1000>,359        <0x0ca00128 0x4>,360        <0x0ca31000 0x500>,361        <0x0ca10000 0x1000>,362        <0x0ca14000 0x1000>;363 364      reg-names = "csi_clk_mux",365        "csid0",366        "csid1",367        "csid2",368        "csid3",369        "csiphy0",370        "csiphy0_clk_mux",371        "csiphy1",372        "csiphy1_clk_mux",373        "csiphy2",374        "csiphy2_clk_mux",375        "ispif",376        "vfe0",377        "vfe1";378 379      vdda-supply = <&reg_2v8>;380 381      ports {382        #address-cells = <1>;383        #size-cells = <0>;384      };385    };386