From patchwork Thu Jun 12 01:15:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 897046 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 3AC8018E25 for ; Thu, 12 Jun 2025 01:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749690940; cv=none; b=faZuQvU3dwwoh0kHxNmo058xEHNf6aRgxjDjBVCDEKMfimi58RTwiPZ36MsYSIDq5cR2W8g4ZRbmHuv9HBdx5HfQO9aumdt8qUW4ll/wGEBSgHWRBVHWulzMVl17tu7EOpjDSNZtLxcWx5Fo2nwkxuSJJFwcHDqy4FciP08TgWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749690940; c=relaxed/simple; bh=NrHcjw5GTWnoeinPRgimJrSsgufoZHal6SjEx7R9EjY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LHbtWqG9FNWxnhtIn1fFFVQHrQoz+ETrXZ8hnHu75oOD54kT50VAGGggmeECgInUzNYqrkjBrrQMbD/z4xPHTBR7qsfmb+8Af9/016RpHtVDdEmFa05FL3gU9RXijA3A1RjaK1sIGBYFiPZ7J/WO5Z/LqJA2XdDBTUc1f7+J0vI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jVClF1FM; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jVClF1FM" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-55324e1a297so22741e87.3 for ; Wed, 11 Jun 2025 18:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749690935; x=1750295735; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JuJw8srctE10vLbubVGrfJppsXUNvTA93VWrV6noDig=; b=jVClF1FM4C2NvMLmDdkQ2W2CN1lXNj3utTPZ5bcF0lSytmZAM67SUoarbHP/Hv5qO6 DSdrsLETxLxDNq9+C1BLiEdw17DiQ6Gy491c2q5QQwunlE6HMydJGBvqLod/f4eXrF9s V4J8/Bu0J8pWBpPjWf7BTBmn9wWK0BcZteM52Xr1QskBfSjgltdgAR/HfJcphzSBjB6J GuJLGNTfvsMvx1DUnRl6BkpFc/Jk1raiMeLjAglC/8W8SYSXGm421OFeqco/jU2QKtZb XOGPiKxMi1n5UfEI+J6ibCOUcJLNxDimVmOwb6oUzFrs1qBFB1h4gtsn1YvkTAvUagiS qPJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749690935; x=1750295735; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JuJw8srctE10vLbubVGrfJppsXUNvTA93VWrV6noDig=; b=ExwC/N5PxVUsxQYRhOwQH1blHIgOeVGfkooythY+ZVioX5E8y8bmEGXwOSsfRPu8QX +8FufCy7DIxkYUuyhGNQccmf7QRr2tLw/6jZC7yGkkzgqMGXoeozzfq+v97MR3Ysni8j 6JssSwxCJK6aUd+9vWJRYgfPwUsKenuZWaXd9eNbIgtJ4grDtTid0nB846AEGjOUw9eY 2pFGVKA40O1i+lGc6ncsM6NhIBEfuH0i8JiYzCp9dEqT3DPYx8INBGcPZHy1lqMhrXJ9 dJrvcfwlM87wlbe+684XPjobH2xf38GN7FxwiOpXJ5cSZ/Ufw+wX4xEqX/96dnHh9k+z nnFw== X-Forwarded-Encrypted: i=1; AJvYcCU82pfYsleOTXUE9chibxkKPe0zZAN/hCwE29SLJLVwHZsQwhwRG4gXGkgDWhfDHQpF2PHhk4Hxiz/r8dAn@vger.kernel.org X-Gm-Message-State: AOJu0YwopfD+68BjR8W4rtEeDRv+Qq8Ny8AK2cSwGv86xJP5fumGW/Qs 03sLqaa004/IgXNA9u5lGx/3dfTsH73Db/2vcNuRGua2sC/vw0K3YYX8GqvADt7cp24= X-Gm-Gg: ASbGnctHEL4Hc3Gs3giD/0x9wJCZF+NNqOhxezYpdpVN7iuGHhd3tePXXxdxEoaGP43 V0LjXhSAYU/vhdhCGaMJjcBahikgOEa82azC7+mF+uUlg8TVEBlLO4pbq4brn+JMIsoZEFy17ty iyOFOzCkqXvR9gvfVXOTPaqW2QKsrC4illijjW9bf+JH1N72Jcv64JMzqqoea75HRLX90VnsFDp 5FfRH27Z0Bzt+4o/1nouaUX7Vcg9istH0HpHuj6jCccwUEFaTblcxCL20O9wAwDzyJtKQC8CQgf wfrK52sNpz9w6CXBB1l2T1yBoT9ioCUJYlwXBR9WGaueZi41aCV4Xv1p9LSAKefMFMr1GRPHYJP 9hBhMimnORMb0AHpyn88o3qyyCZXP0MvOjbmsTozmsqLMeVmunweXddwLynz+eQ== X-Google-Smtp-Source: AGHT+IGAj4GrPMl/y6JJZ54G0SzpNwCuWUcpFjDrcwdAY8lX8P6qEi6omy3qUHCH6tnHopcQ4w5HdA== X-Received: by 2002:a05:6512:3f14:b0:553:29cc:c47a with SMTP id 2adb3069b0e04-5539c0c4f49mr658044e87.6.1749690935265; Wed, 11 Jun 2025 18:15:35 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-553a7018069sm62808e87.157.2025.06.11.18.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 18:15:33 -0700 (PDT) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Konrad Dybcio , Bryan O'Donoghue Cc: Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Neil Armstrong , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 00/10] media: qcom: camss: add support for csiphy devices Date: Thu, 12 Jun 2025 04:15:21 +0300 Message-ID: <20250612011531.2923701-1-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The changeset introduces an initial version of long awaited CSIPHY devices, which is agreed to be used along with any new added CAMSS platform support. Any platform and board dts changes are not intended to be added into the series, however the changeset includes sm8250.dtsi and RB5 vision mezzanine dtso changes for reference and testing purposes. The changeset is based on top of this one: * https://lore.kernel.org/all/20250513142353.2572563-1-vladimir.zapolskiy@linaro.org/ The changeset includes a new generic CSIPHY dt bindings evolved from an RFC one, which has been submitted under phy folder originally: * https://lore.kernel.org/all/20250513143918.2572689-1-vladimir.zapolskiy@linaro.org/ Known limitations: * There is no regression with old dt bindings, however under the new scheme of CSIPHY to CSID link a TPG may not work expectedly, * to preserve backwards compatibility all CSIPHY resources are taken from CAMSS device tree node, and it's a subject for a future change. Vladimir Zapolskiy (10): media: qcom: camss: remove never used camss_vfe_get()/camss_vfe_put() media: qcom: camss: remove subdev resource argument from msm_csiphy_subdev_init() media: qcom: camss: csiphy: simplify arguments of lanes_enable and lanes_disable media: qcom: camss: populate CAMSS children subdevices of CSIPHY IPs media: qcom: camss: unwrap platform driver registration media: qcom: camss: export camss_parse_endpoint_node() to csiphy media: qcom: camss: csiphy: probe any present children CSIPHY subdevices dt-bindings: media: qcom: Add Qualcomm MIPI C-/D-PHY schema for CSIPHY IPs [RFT] arm64: dts: qcom: sm8250: extend CAMSS with new CSIPHY subdevices [RFT] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: switch to new CSIPHY scheme .../bindings/media/qcom,csiphy.yaml | 96 +++++++ .../qcom/qrb5165-rb5-vision-mezzanine.dtso | 18 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 14 + .../qcom/camss/camss-csiphy-2ph-1-0.c | 10 +- .../qcom/camss/camss-csiphy-3ph-1-0.c | 11 +- .../media/platform/qcom/camss/camss-csiphy.c | 258 +++++++++++++++++- .../media/platform/qcom/camss/camss-csiphy.h | 13 +- drivers/media/platform/qcom/camss/camss.c | 98 ++++++- drivers/media/platform/qcom/camss/camss.h | 6 +- 9 files changed, 480 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/qcom,csiphy.yaml