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: 889655 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 853211E5B9E for ; Tue, 13 May 2025 14:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747147175; cv=none; b=fBe/HUyzAyBmMotnOz4VPo5jvNRbzAHqlE2xBGShUTUuV4Pqf8bT04YZY9E9jdoNkCNCZTF7QUvkc/emvuipJsBoOobvqqwQ2GHORkNz2kaCF3YTiKiJuaVTZ+75b6znb0ApK+iMltypgkNy/0gmJ0auckj/aP/o8BvsunbbMZE= 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.44 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-f44.google.com with SMTP id 2adb3069b0e04-54b0da81302so684492e87.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=px1fPxqw6boxQKBycGNoPfX/UFk6/TltgFM94J9SY0zQauxLt0lvajkReGyxbyJhlM eQLSIDP2UE2+bBiiakvjehbtHnG6TfTMhacxwPs79SEsSW88EUATPuu86h7hnHgcjBMM UCOwH9aN6NwV/EtHTHOB2FYDtNUnnNql6ihQboVSxI69zlxHPXncgiiF2OlR8PFgpBfz +iPr7i05v8DqTQNDDV9o6h2guI+xScNll1Q2oWpilJvTUa8cs1patGKdQJBi/ZxMMOEu PgdSCBkxpLsJwCDDmzCr33x5W6KmwZCm+S9G/2CRoZLVS7J6Bt6G1ikl4r61RtWxKVsb /VPQ== X-Forwarded-Encrypted: i=1; AJvYcCWDj/DqDpgm4NagcF9Pr3Jk5Gh2Yf/bzWeGinDKnMYiuOyrXDmwdjbmcrTVvyEHK6pfLYaglbE30zlt+YM+@vger.kernel.org X-Gm-Message-State: AOJu0YwlF7duIuAmSowYrf+GTtl9A4vHcfal91a0dgf6eJz2prB798yU 83jlF3/jkVN4qnZIT1mtb8Os9pSoeT2jf0QJi5M9UkLO7AuZVKJcts9mce7cO7Y= X-Gm-Gg: ASbGncsbzzNAwHX+HFCNCt/UxUZqoMBSSr9QkNBRiiSWHWWoN/VgEMduQzv/52JN5wA eyhWeYYRgkiCLGgCN9w1F4ebzv6YqMt1ZVyPmnM3zPU34qd05TphD0CRQ+dMus54zhYNikZ9bmK nqGZgRLp5cXeW1DOs/WLItpaUS6ioHSSv2YrOE2IxSXqre9Mc/h4se0csomDcCpspndrpKI3Y8F o6NQhzh+cdRro6X45Z3QVGZcz3IjdIPz88A+5JNV8VOpAYSuOef1QRcLlwA/yS2If0ymDrRnzY3 bSR5/rNqt58duJiZocWQsr85M5jZpTxiA6LMPLG4ByT4LfX/3R/t/5p5R1PYRflcHjiuhkO7O8G Jfk+B4VNo4s4YUUXjiT/cmb35YW6ZOINdZkuImcmV 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-arm-msm@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>; + }; + }; + };