Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 22 additions & 70 deletions Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,16 @@ properties:
const: qcom,x1e80100-camss

reg:
maxItems: 17
maxItems: 13

reg-names:
items:
- const: csid_wrapper
- const: csid0
- const: csid1
- const: csid2
- const: csid_lite0
- const: csid_lite1
- const: csid_wrapper
- const: csiphy0
- const: csiphy1
- const: csiphy2
- const: csiphy4
- const: csitpg0
- const: csitpg1
- const: csitpg2
Expand All @@ -40,7 +36,7 @@ properties:
- const: vfe_lite1

clocks:
maxItems: 29
maxItems: 21

clock-names:
items:
Expand All @@ -55,14 +51,6 @@ properties:
- const: cphy_rx_clk_src
- const: csid
- const: csid_csiphy_rx
- const: csiphy0
- const: csiphy0_timer
- const: csiphy1
- const: csiphy1_timer
- const: csiphy2
- const: csiphy2_timer
- const: csiphy4
- const: csiphy4_timer
- const: gcc_axi_hf
- const: gcc_axi_sf
- const: vfe0
Expand All @@ -75,7 +63,7 @@ properties:
- const: vfe_lite_csid

interrupts:
maxItems: 13
maxItems: 9

interrupt-names:
items:
Expand All @@ -84,15 +72,17 @@ properties:
- const: csid2
- const: csid_lite0
- const: csid_lite1
- const: csiphy0
- const: csiphy1
- const: csiphy2
- const: csiphy4
- const: vfe0
- const: vfe1
- const: vfe_lite0
- const: vfe_lite1

phys:
maxItems: 4

phy-names:
maxItems: 4

interconnects:
maxItems: 4

Expand All @@ -118,14 +108,6 @@ properties:
- const: ife1
- const: top

vdd-csiphy-0p8-supply:
description:
Phandle to a 0.8V regulator supply to a PHY.

vdd-csiphy-1p2-supply:
description:
Phandle to 1.8V regulator supply to a PHY.

ports:
$ref: /schemas/graph.yaml#/properties/ports

Expand Down Expand Up @@ -166,13 +148,13 @@ required:
- clock-names
- interrupts
- interrupt-names
- phys
- phy-names
- interconnects
- interconnect-names
- iommus
- power-domains
- power-domain-names
- vdd-csiphy-0p8-supply
- vdd-csiphy-1p2-supply
- ports

additionalProperties: false
Expand All @@ -190,19 +172,15 @@ examples:
#address-cells = <2>;
#size-cells = <2>;

camss: isp@acb7000 {
camss: isp@acb6000 {
compatible = "qcom,x1e80100-camss";

reg = <0 0x0acb7000 0 0x2000>,
reg = <0 0x0acb6000 0 0x1000>,
<0 0x0acb7000 0 0x2000>,
<0 0x0acb9000 0 0x2000>,
<0 0x0acbb000 0 0x2000>,
<0 0x0acc6000 0 0x1000>,
<0 0x0acca000 0 0x1000>,
<0 0x0acb6000 0 0x1000>,
<0 0x0ace4000 0 0x1000>,
<0 0x0ace6000 0 0x1000>,
<0 0x0ace8000 0 0x1000>,
<0 0x0acec000 0 0x4000>,
<0 0x0acf6000 0 0x1000>,
<0 0x0acf7000 0 0x1000>,
<0 0x0acf8000 0 0x1000>,
Expand All @@ -211,16 +189,12 @@ examples:
<0 0x0acc7000 0 0x2000>,
<0 0x0accb000 0 0x2000>;

reg-names = "csid0",
reg-names = "csid_wrapper",
"csid0",
"csid1",
"csid2",
"csid_lite0",
"csid_lite1",
"csid_wrapper",
"csiphy0",
"csiphy1",
"csiphy2",
"csiphy4",
"csitpg0",
"csitpg1",
"csitpg2",
Expand All @@ -240,14 +214,6 @@ examples:
<&camcc CAM_CC_CPHY_RX_CLK_SRC>,
<&camcc CAM_CC_CSID_CLK>,
<&camcc CAM_CC_CSID_CSIPHY_RX_CLK>,
<&camcc CAM_CC_CSIPHY0_CLK>,
<&camcc CAM_CC_CSI0PHYTIMER_CLK>,
<&camcc CAM_CC_CSIPHY1_CLK>,
<&camcc CAM_CC_CSI1PHYTIMER_CLK>,
<&camcc CAM_CC_CSIPHY2_CLK>,
<&camcc CAM_CC_CSI2PHYTIMER_CLK>,
<&camcc CAM_CC_CSIPHY4_CLK>,
<&camcc CAM_CC_CSI4PHYTIMER_CLK>,
<&gcc GCC_CAMERA_HF_AXI_CLK>,
<&gcc GCC_CAMERA_SF_AXI_CLK>,
<&camcc CAM_CC_IFE_0_CLK>,
Expand All @@ -270,14 +236,6 @@ examples:
"cphy_rx_clk_src",
"csid",
"csid_csiphy_rx",
"csiphy0",
"csiphy0_timer",
"csiphy1",
"csiphy1_timer",
"csiphy2",
"csiphy2_timer",
"csiphy4",
"csiphy4_timer",
"gcc_axi_hf",
"gcc_axi_sf",
"vfe0",
Expand All @@ -294,10 +252,6 @@ examples:
<GIC_SPI 431 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 468 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 359 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 477 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 478 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 479 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 122 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 465 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 467 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 469 IRQ_TYPE_EDGE_RISING>,
Expand All @@ -308,15 +262,16 @@ examples:
"csid2",
"csid_lite0",
"csid_lite1",
"csiphy0",
"csiphy1",
"csiphy2",
"csiphy4",
"vfe0",
"vfe1",
"vfe_lite0",
"vfe_lite1";

phys = <&csiphy0>, <&csiphy1>,
<&csiphy2>, <&csiphy4>;
phy-names = "csiphy0", "csiphy1",
"csiphy2", "csiphy4";

interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
&config_noc SLAVE_CAMERA_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
<&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS
Expand Down Expand Up @@ -348,9 +303,6 @@ examples:
"ife1",
"top";

vdd-csiphy-0p8-supply = <&csiphy_0p8_supply>;
vdd-csiphy-1p2-supply = <&csiphy_1p2_supply>;

ports {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/qcom,x1e80100-mipi-csi2-combo-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm MIPI CSI2 Combo PHY

maintainers:
- Bryan O'Donoghue <[email protected]>

description:
Qualcomm MIPI CSI2 C-PHY/D-PHY combination PHY. Connects MIPI CSI2 sensors
to Qualcomm's Camera CSI Decoder. The PHY supports both C-PHY and D-PHY
modes.

properties:
compatible:
const: qcom,x1e80100-mipi-csi2-combo-phy

reg:
maxItems: 1

"#phy-cells":
const: 0

clocks:
maxItems: 4

clock-names:
items:
- const: camnoc_axi
- const: cpas_ahb
- const: csiphy
- const: csiphy_timer

interrupts:
maxItems: 1

power-domains:
maxItems: 1

vdda-0p8-supply:
description: Phandle to a 0.8V regulator supply to a PHY.

vdda-1p2-supply:
description: Phandle to 1.2V regulator supply to a PHY.

phy-type:
description: D-PHY or C-PHY mode
enum: [ 10, 11 ]
$ref: /schemas/types.yaml#/definitions/uint32

required:
- compatible
- reg
- "#phy-cells"
- clocks
- clock-names
- vdda-0p8-supply
- vdda-1p2-supply
- phy-type

additionalProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,x1e80100-camcc.h>
#include <dt-bindings/clock/qcom,x1e80100-gcc.h>
#include <dt-bindings/phy/phy.h>

csiphy0: csiphy@ace4000 {
compatible = "qcom,x1e80100-mipi-csi2-combo-phy";
reg = <0x0ace4000 0x2000>;
#phy-cells = <0>;

clocks = <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>,
<&camcc CAM_CC_CPAS_AHB_CLK>,
<&camcc CAM_CC_CSIPHY0_CLK>,
<&camcc CAM_CC_CSI0PHYTIMER_CLK>;
clock-names = "camnoc_axi",
"cpas_ahb",
"csiphy",
"csiphy_timer";

interrupts = <GIC_SPI 477 IRQ_TYPE_EDGE_RISING>;

power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>;

vdda-0p8-supply = <&vreg_l2c_0p8>;
vdda-1p2-supply = <&vreg_l1c_1p2>;

phy-type = <PHY_TYPE_DPHY>;
};
11 changes: 11 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -21206,6 +21206,17 @@ S: Maintained
F: Documentation/devicetree/bindings/media/qcom,*-iris.yaml
F: drivers/media/platform/qcom/iris/

QUALCOMM MIPI CSI2 PHY DRIVER
M: Bryan O'Donoghue <[email protected]>
L: [email protected]
L: [email protected]
L: [email protected]
S: Supported
F: Documentation/devicetree/bindings/phy/qcom,x1e80100-mipi-csi2-combo-phy.yaml
F: drivers/phy/qualcomm/phy-qcom-mipi-csi2*.c
F: drivers/phy/qualcomm/phy-qcom-mipi-csi2*.h
F: include/dt-bindings/phy/phy-qcom-mipi-csi2*

QUALCOMM NAND CONTROLLER DRIVER
M: Manivannan Sadhasivam <[email protected]>
L: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/i2c/imx412.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ static int imx412_power_on(struct device *dev)
goto error_reset;
}

usleep_range(1000, 1200);
usleep_range(10000, 12000);

return 0;

Expand Down
1 change: 1 addition & 0 deletions drivers/media/platform/qcom/camss/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ config VIDEO_QCOM_CAMSS
select VIDEO_V4L2_SUBDEV_API
select VIDEOBUF2_DMA_SG
select V4L2_FWNODE
select PHY_QCOM_MIPI_CSI2
Loading