From patchwork Wed Feb 5 03:50:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13960530 Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4B70214231; Wed, 5 Feb 2025 03:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738727430; cv=none; b=WRxbb1S5HD59QY9stp+Wiz4SGjPTMRTCHr04yZX/jsmWmmGIQ9XlYrqq6GneLAUKdm+aR66P93bHySnp7qgWDblDPX5o6DUEoYZQMc0wN3KEDH5TLe/giYsESns/tyVgYjxjFparJ0/2sFDDt/ziYP/HQRSP9Kiq9NfHGUkvPww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738727430; c=relaxed/simple; bh=21AXqycxnLXAhHLOEVY6dnn2axCjQvIE2tVZ0iiSla4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nYuJowHH1GilIOcw4XNUnGGW3I/J3HftRGejGHJdxQT0T3i6T7XscpTy4Z2ze+ILxvJr70ecF1PwsLeRwKTKLmqGz8YFZ+Z9uqQYCDJk4elL4Y+mOpOgbfBxVioezIWvLjrqIlECNU468UQ7SpPCm2LiEKgGXl3U1xlt7hA18d4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gLq2knBS; arc=none smtp.client-ip=209.85.160.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gLq2knBS" Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-4678cce3d60so65174981cf.2; Tue, 04 Feb 2025 19:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738727427; x=1739332227; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wNCCbaX04TBfZVPW2kOdU+NOymoGnEKEK7yGJicH5Bs=; b=gLq2knBSgeWVp0ySfYKoQGyb+BbX0b719NigXjlxyXVwcbKlqAbWL1WKw2DdXGnXJb BNnBW2AXmuivRINRQWXbGgjNMb5Qq3ricl5kq4zLoB1e1verxhqNfcz3nXGUZR9l4HcF /g1IwpNGvLLDJWgBQLKW939vVqdRp4IAT2r3b1Ryk/XUtDCMD/LBRwekXG2Z7A09lLth byXfFx99ZOEFCvJJxC2Utuu5bubZEtWCw9zmfvM/SN6YykwbToNj27PxcAn3HE5GK0AL ZXxMvPX2skU1el1nqYpSvQF1zp4NFEQQbaLKNZNO5woepR+Pg36YWWyBP5MaJtNbK/a1 ERvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738727427; x=1739332227; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wNCCbaX04TBfZVPW2kOdU+NOymoGnEKEK7yGJicH5Bs=; b=W75FKEqr9+hL1IJ9nLOVMHlhgXmN+DkVXr3l5njR4IdyjXrdVWkZC2dBRZOf/4csnk xwyfO+gI5MkmJPAUHTAFblEoEfI4K2LSPUsvARXcEFSIeW4Uu21v8el1QFSaq1JGoMDz Sxsg1fKDvaf1tZOqFU2QQB2KvAO6mTmKPQGcS+mXIbS2yO+cLLVDzHo4E5w9ssLSNoJh NWpoOOpmNDk4z3a2malwGTIRqbo+THQu+KagIKog2XUQSRl9fKcLefH5WtYuD4X1kphN zQPei9CWXslPDMOECbqLlWgcAry13nJdwHSdXAx33voni+NplrGb/jg6VH8AnGIakfaJ HCmQ== X-Forwarded-Encrypted: i=1; AJvYcCVRomt6htHkGYotbyynxH5QFXlj7FJpxDCfQll6MhFTCoLhFEgqewDol604KNySI5lSkT6xWTK7KPeOvDpAPA==@vger.kernel.org, AJvYcCVuuQ9zed1alfJK0OxrU3s1QVRiHZK0J4KZYUGcJIEDN2/YIqGCHSdlrO+s2m3lOc1ICWWpRAgGZjrI3YA=@vger.kernel.org, AJvYcCWdYwOOdGv8RRG07LQt0FI9o3eGK1QuWfd2/gUqrNRHcGmbHmVHoYPs5uSA+DleugKUaHLywGrFR8Fu@vger.kernel.org, AJvYcCXysS12T3qpbeWgLT168Eve/uFhw7pIbPfdEdsJeq0RWGwWvG/JCV5G3sK2vWFlLLnadap/ZHYSMx32@vger.kernel.org X-Gm-Message-State: AOJu0YwJLjTZ+Q/ozEorbGec3SG1F5IfSB8IJyu3UD+YTceWG7rkMjlS K0vdkKO4Jz5ghocJx6yKcdn4//eErteUsKnpJV0CQzcJWr5xlrGb7/sxiGwV X-Gm-Gg: ASbGncv8+9TErOspoDeLxjKInrJI/5mE0EsvzmBJO84FWP0llu4uTNQPcZtTgD5D9+r VnpY9n+UK35UzVF+n/O8drw3ywOBiQBMXMhxaiyFxopnDEUk7SDXAAYfXw51iGf0bDMhH1RSrYz +W+YvbM1vBWl32a4qr2lFk8fSbsIJTXNm1IKDi54bYtFbafCwm3RSMVGzKg7qzQE5SOCzaj2qvp Uy7UD8t3NjVIWG+lMoEIjYNAoIs8h8BMJgJ2NC8bxotTIno3vWo5kNBzw1oBqOxCuquUyqXv0Ei ZGk= X-Google-Smtp-Source: AGHT+IEOa/n8BphKzw+biRi7FLbPAEzpDiE+UDSah1j44dN8SBk7i2n04Sod5bCkPRuDPoxBlNo/tw== X-Received: by 2002:a05:622a:4a06:b0:467:84df:92ee with SMTP id d75a77b69052e-4702827a4a6mr19412141cf.40.1738727427483; Tue, 04 Feb 2025 19:50:27 -0800 (PST) Received: from localhost ([2607:fea8:52a3:d200::2692]) by smtp.gmail.com with UTF8SMTPSA id d75a77b69052e-46fdf0cbd9csm66458551cf.23.2025.02.04.19.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2025 19:50:26 -0800 (PST) From: Richard Acayan To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , "Bryan O'Donoghue" , Mauro Carvalho Chehab , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: Vladimir Zapolskiy , Richard Acayan Subject: [PATCH v10 1/3] dt-bindings: media: camss: Add qcom,sdm670-camss Date: Tue, 4 Feb 2025 22:50:15 -0500 Message-ID: <20250205035013.206890-6-mailingradian@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205035013.206890-5-mailingradian@gmail.com> References: <20250205035013.206890-5-mailingradian@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 As found in the Pixel 3a, the Snapdragon 670 has a camera subsystem with 3 CSIDs and 3 VFEs (including 1 VFE lite). Add this camera subsystem to the bindings. Adapted from SC8280XP camera subsystem. Signed-off-by: Richard Acayan Reviewed-by: Bryan O'Donoghue Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/qcom,sdm670-camss.yaml | 318 ++++++++++++++++++ 1 file changed, 318 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,sdm670-camss.yaml diff --git a/Documentation/devicetree/bindings/media/qcom,sdm670-camss.yaml b/Documentation/devicetree/bindings/media/qcom,sdm670-camss.yaml new file mode 100644 index 000000000000..35c40fe22376 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sdm670-camss.yaml @@ -0,0 +1,318 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/qcom,sdm670-camss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDM670 Camera Subsystem (CAMSS) + +maintainers: + - Richard Acayan + +description: + The CAMSS IP is a CSI decoder and ISP present on Qualcomm platforms. + +properties: + compatible: + const: qcom,sdm670-camss + + reg: + maxItems: 9 + + reg-names: + items: + - const: csid0 + - const: csid1 + - const: csid2 + - const: csiphy0 + - const: csiphy1 + - const: csiphy2 + - const: vfe0 + - const: vfe1 + - const: vfe_lite + + interrupts: + maxItems: 9 + + interrupt-names: + items: + - const: csid0 + - const: csid1 + - const: csid2 + - const: csiphy0 + - const: csiphy1 + - const: csiphy2 + - const: vfe0 + - const: vfe1 + - const: vfe_lite + + clocks: + maxItems: 22 + + clock-names: + items: + - const: camnoc_axi + - const: cpas_ahb + - const: csi0 + - const: csi1 + - const: csi2 + - const: csiphy0 + - const: csiphy0_timer + - const: csiphy1 + - const: csiphy1_timer + - const: csiphy2 + - const: csiphy2_timer + - const: gcc_camera_ahb + - const: gcc_camera_axi + - const: soc_ahb + - const: vfe0 + - const: vfe0_axi + - const: vfe0_cphy_rx + - const: vfe1 + - const: vfe1_axi + - const: vfe1_cphy_rx + - const: vfe_lite + - const: vfe_lite_cphy_rx + + iommus: + maxItems: 4 + + power-domains: + items: + - description: IFE0 GDSC - Image Front End, Global Distributed Switch Controller. + - description: IFE1 GDSC - Image Front End, Global Distributed Switch Controller. + - description: Titan Top GDSC - Titan ISP Block, Global Distributed Switch Controller. + + power-domain-names: + items: + - const: ife0 + - const: ife1 + - const: top + + vdda-phy-supply: + description: + Phandle to a regulator supply to PHY core block. + + vdda-pll-supply: + description: + Phandle to 1.8V regulator supply to PHY refclk pll block. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + description: + CSI input ports. + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Input port for receiving CSI data from CSIPHY0. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + maxItems: 1 + + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - clock-lanes + - data-lanes + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Input port for receiving CSI data from CSIPHY1. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + maxItems: 1 + + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - clock-lanes + - data-lanes + + port@2: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Input port for receiving CSI data from CSIPHY2. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + maxItems: 1 + + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - clock-lanes + - data-lanes + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + - clocks + - clock-names + - iommus + - power-domains + - power-domain-names + - vdda-phy-supply + - vdda-pll-supply + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + isp@acb3000 { + compatible = "qcom,sdm670-camss"; + + reg = <0 0x0acb3000 0 0x1000>, + <0 0x0acba000 0 0x1000>, + <0 0x0acc8000 0 0x1000>, + <0 0x0ac65000 0 0x1000>, + <0 0x0ac66000 0 0x1000>, + <0 0x0ac67000 0 0x1000>, + <0 0x0acaf000 0 0x4000>, + <0 0x0acb6000 0 0x4000>, + <0 0x0acc4000 0 0x4000>; + reg-names = "csid0", + "csid1", + "csid2", + "csiphy0", + "csiphy1", + "csiphy2", + "vfe0", + "vfe1", + "vfe_lite"; + + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-names = "csid0", + "csid1", + "csid2", + "csiphy0", + "csiphy1", + "csiphy2", + "vfe0", + "vfe1", + "vfe_lite"; + + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_IFE_0_CSID_CLK>, + <&camcc CAM_CC_IFE_1_CSID_CLK>, + <&camcc CAM_CC_IFE_LITE_CSID_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>, + <&gcc GCC_CAMERA_AHB_CLK>, + <&gcc GCC_CAMERA_AXI_CLK>, + <&camcc CAM_CC_SOC_AHB_CLK>, + <&camcc CAM_CC_IFE_0_CLK>, + <&camcc CAM_CC_IFE_0_AXI_CLK>, + <&camcc CAM_CC_IFE_0_CPHY_RX_CLK>, + <&camcc CAM_CC_IFE_1_CLK>, + <&camcc CAM_CC_IFE_1_AXI_CLK>, + <&camcc CAM_CC_IFE_1_CPHY_RX_CLK>, + <&camcc CAM_CC_IFE_LITE_CLK>, + <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>; + clock-names = "camnoc_axi", + "cpas_ahb", + "csi0", + "csi1", + "csi2", + "csiphy0", + "csiphy0_timer", + "csiphy1", + "csiphy1_timer", + "csiphy2", + "csiphy2_timer", + "gcc_camera_ahb", + "gcc_camera_axi", + "soc_ahb", + "vfe0", + "vfe0_axi", + "vfe0_cphy_rx", + "vfe1", + "vfe1_axi", + "vfe1_cphy_rx", + "vfe_lite", + "vfe_lite_cphy_rx"; + + iommus = <&apps_smmu 0x808 0x0>, + <&apps_smmu 0x810 0x8>, + <&apps_smmu 0xc08 0x0>, + <&apps_smmu 0xc10 0x8>; + + power-domains = <&camcc IFE_0_GDSC>, + <&camcc IFE_1_GDSC>, + <&camcc TITAN_TOP_GDSC>; + power-domain-names = "ife0", + "ife1", + "top"; + + vdda-phy-supply = <&vreg_l1a_1p225>; + vdda-pll-supply = <&vreg_l8a_1p8>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + csiphy_ep0: endpoint { + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&front_sensor_ep>; + }; + }; + }; + }; + };