From patchwork Tue May 13 14:39:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 890480 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 8B3AE1EE031 for ; Tue, 13 May 2025 14:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747147175; cv=none; b=i+91oF4vJl7BVqQjYQrqzFxcAMU5GezTichzyrdsjoIL5B6jEHTDzAUAG2ripDikuYD9l2gsNI710uNQYWEAfwTZWF7XQwLK3+HJ9RnhtPzSKzQDnjQN/KyoFJ1S/dEKThzeOsmyp0ZWEa2LhPiTUQ+7VWw2wj5kemaJKqr4pe4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747147175; c=relaxed/simple; bh=CeLbNrHcpgobad+4p63N5uQpuqywMQB/SUmUldYn5UU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sHhzhdPK8dittwkmYJZOkxWejuJsRaBxxZmb84wYzbwfjp2M3fzR4gxRbkcKHewGYCK6O5RRtMPoiDiUsm0cp0Our3O4vyFr0LlaeVsbL7k2dIDQlBHEXxzpiKfsM9KAFVgdd0VyXLQ6y3JnFZheGSVSqkSqZbXLNY07yksnbI0= 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=rD2Kyfot; arc=none smtp.client-ip=209.85.167.45 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="rD2Kyfot" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-54b0da81302so684490e87.3 for ; Tue, 13 May 2025 07:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747147172; x=1747751972; 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=4Ril6uuY7sDYo/3Zc1JrBgdRnjj+OY9LceWmMwrfigA=; b=rD2Kyfot7BWAnXwq2C4PCr/E5EFLg7Ryn6a+OpBRZMhETxYsDKykgm0XIjjmZ2S+6y wsccFKbCftZWJz6Riw9IB5/vDEP+qGGGGf0LHcB8jmbXI61ztfQHpUKTs03vYlskd+xu Lxlg9S3AEJHKAQBDiqNzADY1MioaTarQ+vf3QG9HioLJVN29GDxBNn5UJoV2/ooo5VP4 kU5uJgPFa19pflTC1NLFQoFvv6Dt10hnBofhCr5+f13JHIDFO/08eQLSAn7zy0ur9I8I kxJFH8x85uIPkg9O0XTCqi5Hacucn8dJ16SHESOxyrBb5lYIgJPoN2rmuMMyRIj+B2FR 76PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747147172; x=1747751972; 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=4Ril6uuY7sDYo/3Zc1JrBgdRnjj+OY9LceWmMwrfigA=; b=mEoJMZe0nIPs74bsf0q9gHRsxo1q1uTfRS89LyLRHUdMkwJW25QYOIrU7wjFo5aQ+b YY9jcUasZttPIBFo+CN70JNlT8V4yczNwlQyD3obsZgztbk8w+Dy6s93mpp6iJH5kWgl 1PYKs6c3Id/hYx3clNOxiE25xDG3ed/a1wp92fgleAbp2yRXXltYY0a6IquYXbYiZaL+ TLb53ouqLZcKI0w94rq4earSy4BWnHdfcZx8fG83yloKUAaDy/ngy0PW/w9hX1CTEsuq Gm/7BtWs7efpKYoxJFi6Yu7A8aVBBZ45/U6ipjdNT0FflAhe07Llem4ViG9XYWkkKlOh EUJw== X-Gm-Message-State: AOJu0Yxlccf3VuzRCUVER+BgdLG/iDvwwF5MJvASzVpL1uwdL1Av/dG+ hMdbTH5yuiW6GPiq/QDpxNqKCt5CXW2IYaI6tAUFGjbADHsdDjMQ7gBt4ww5a98= X-Gm-Gg: ASbGncuzgX+PFjJ0ZrnM0PGdgmbbX1Dbc8FCkX1R9WmjDJwrTKA1GnsxUcnluGrP8WI BcNFGwxR8Z0fuHgJvhqHQjS6TN3KILEoXTmGJwOWJFcgLQmY6cgscVi8yP9z4wF/DWMl/bW9YwO FRolxyyhjpGwO56aOOEwpw5ambWNruLNE5NmH++vwRBsCkWOPj27l0nnQ5wbhV29TZAVbW7SaUm aNB4vc9/TVp+3or/2TQziLjm8xHImCRsO6oTiUTIQWMOTudRNPHWBitybnYjzMDusmj31UV78TL aZj2WR9jU9D4KYOu4tM0LOcmDdG8vV9E8jIoCrMhwi7Cd2RbHbq1oitFmNsPN3iMQSugM+/VlIY k/NN9DiE/NOrUDanX9233t+5qAYesyjP6o/j1So22 X-Google-Smtp-Source: AGHT+IHPIdVM+BZod/QjbcgdZNCqQf4/wvlVtT+Y4YCECyzxCdGP18TVKh1eHt35UgrNr84GxDnE8w== X-Received: by 2002:a05:6512:39d5:b0:54f:c4c0:ada8 with SMTP id 2adb3069b0e04-54fc67d65a3mr2061782e87.14.1747147171591; Tue, 13 May 2025 07:39:31 -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-54fc64cd015sm1893445e87.248.2025.05.13.07.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 May 2025 07:39:31 -0700 (PDT) From: Vladimir Zapolskiy To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Bryan O'Donoghue , Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org Subject: [RFC PATCH] dt-bindings: phy: Add Qualcomm MIPI C-/D-PHY schema for CSIPHY IPs Date: Tue, 13 May 2025 17:39:18 +0300 Message-ID: <20250513143918.2572689-1-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add dt-binding schema for the CAMSS CSIPHY IPs, which provides MIPI C-/D-PHY interfaces on Qualcomm SoCs. Signed-off-by: Vladimir Zapolskiy --- .../devicetree/bindings/phy/qcom,csiphy.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,csiphy.yaml diff --git a/Documentation/devicetree/bindings/phy/qcom,csiphy.yaml b/Documentation/devicetree/bindings/phy/qcom,csiphy.yaml new file mode 100644 index 000000000000..ef712c5442ec --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,csiphy.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,csiphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm CSI PHY + +maintainers: + - Vladimir Zapolskiy + +description: | + Qualcomm SoCs equipped with a number of MIPI CSI PHY IPs, which + supports D-PHY or C-PHY interfaces to camera sensors. + +properties: + compatible: + enum: + - qcom,sm8250-csiphy + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + interrupts: + maxItems: 1 + + vdda-csi-0p9-supply: + description: Voltage supply, 0.9V + + vdda-csi-1p2-supply: + description: Voltage supply, 1.2V + + '#phy-cells': + const: 0 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + description: CAMSS CSIPHY input port + + patternProperties: + "^endpoint@[0-1]$": + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + bus-type: + enum: + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY + + required: + - data-lanes + + oneOf: + - required: + - endpoint + - required: + - endpoint@0 + +required: + - compatible + - reg + - clocks + - interrupts + - '#phy-cells' + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8250-csiphy + then: + required: + - vdda-csi-0p9-supply + - vdda-csi-1p2-supply + +additionalProperties: false + +examples: + - | + #include + #include + #include + + phy@ac6e000 { + compatible = "qcom,sm8250-csiphy"; + reg = <0x0ac6e000 0x1000>; + clocks = <&camcc CAM_CC_CSIPHY2_CLK>, + <&camcc CAM_CC_CSI2PHYTIMER_CLK>; + interrupts = ; + vdda-csi-0p9-supply = <&vreg_l5a_0p88>; + vdda-csi-1p2-supply = <&vreg_l9a_1p2>; + #phy-cells = <0>; + + port { + csiphy_in: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&sensor_out>; + }; + }; + };