From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 759EB2D29B1 for ; Fri, 11 Jul 2025 12:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238684; cv=none; b=Mz6Cwq7A+FlI9BRYq5UrhifRINmMDM2uK6s3x0wlvwga1Z2XbomCoLwo7Y8qBhxWRDRLPJ3v1n0jBRj5kQTr2TFVUOH+fXE6rY6vBCHD4f1fXDu9kqb2miaCYA3OVsV/n8VzhB84/jqELcY2hnQIlBi8B91XMthc5wuQQFcjUgg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238684; c=relaxed/simple; bh=5VDFXA8I+E5iXu2Bb9Dkpc45x4jcmubRsSn5foFMXjY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YS5FtMa3jDO7LTf3wM1bOg/M0On0voxmNsd9az8Bs996Fn6ZMnr0fnPKRqh7qmZW6RGkD7am8P6lGApAnr3BitPxWI4L882A45Y6d4sj9TAMrixdscEjbbEbPFbL5wg1uYXlJUbDbNd8QWOrTgTXdLd4i5J5QdkPoA3RGHAlbRA= 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=RqSd/0N+; arc=none smtp.client-ip=209.85.221.54 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="RqSd/0N+" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3a4fd1ba177so1399334f8f.0 for ; Fri, 11 Jul 2025 05:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238681; x=1752843481; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=S1AQyvuxz/zrLJ/xQ09mTaJr5J8m3jd+X+5DNs4wLi0=; b=RqSd/0N+SgKDKa//Dvwb03fYb1HFmFjFNvrjCSTv2Y2TDSI9voxbGBHaewOPCHjOCp bpCTM+ZOOgnvSwKRM0XOegA8I0elU+s8BNKKELlSI9VqlYYXJI9x3B0joLUu2WmmS2Or +GiUGThboBz2ZdLW/ONWPmgx4AaoX2F5CVIMuF4Xg1HyCIrQg92pxcK5wZ9n9BPHu2pf Of5tA18ts+KHNzG8sBT/tGGG/67P5xKdFf580KfQHxgWNGsZnhFD8jS3c4ZTAIiGDSxD m6x58bzR03qmIg446JwtEdT4OfAfCWaXLAO0Oo39cdr26unIEmSnKFRgnS3rGvHsOItK 4CZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238681; x=1752843481; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S1AQyvuxz/zrLJ/xQ09mTaJr5J8m3jd+X+5DNs4wLi0=; b=bFgcsHb1VBLXm7etO6B//NKpKiTh+Kv+6Zs2/XqoJwLq2Yuk/E1qRdojTcz5pjQPrn iS4t4hJOyj5vjBpoichZlaCrGd5b4qaKH0Pwm+vb5wUQys8QOI1Ub5RncU9Z58vxuQwZ kVgRGq4ayvHkJuXzQE7gAJtZsEQLdz9PjaROuxPKcuDfeo6+TX2Q9LetVAcXPk3pmdje no8uhspj0gjb7wXQgJPmwSyQDxP9t7FrFrTtpN9Wo6EY+7oUTHRlh78RljltAOKYdGYc PGSYBb0YDVWHApjB9dhAZbOM3mkT5lIhn6aLUVIg88yMVMuHANut46rdJoK0nNBZcom4 vT7w== X-Forwarded-Encrypted: i=1; AJvYcCVRdQT9+XGosGPxOHTfYGrGh16tvpdp8FMNnxa0DiO7mqcrA/LX1ckuIqLwTZkvBJOekqAJxpElv+Z7mvA=@vger.kernel.org X-Gm-Message-State: AOJu0YwRv0T0tV8UhQ25GXdcPUeD2y//1hR37Z25vmKtrPrwD7o/rGp9 //Auh8OzXy43dp+OwaCdt5TOMaTJXHrmqy377fZ7WlpdAZQEp3VYC3U28088gABafXo= X-Gm-Gg: ASbGncsiKlxNK+kKNonNtd9wDslj87d7w1Nnsf8jGc0wxnsCXmEeKH5yVpSFEtLfPSp 2JupTLe6Fuq+X+8WGxZ0945+DEDdsKJwMNL2qSB0DfIUqaNL1sPd6SkjeO70jgf2+asa1u0yW6f gfSaVW8zGxvSDDMuzbvZiIWFpv/ULJn8rnVn9YzCqWoMnYoh3oSdk2zHs8gSjl2hspzdx4mudDd 40+k4cqny1safPbfPn4X1lu6WGIFDx0o3H60Xl5ocokKMeg1novzcIdd4yV0t8VSmdm6EGOH6BF +eXgoWbbl6erckijuDRE1L21vVfoKoTnKnb1ARq24JIT55eaKn5MK6gaMAgLrJ35InFNupa6YM4 uK3qTUspwK3J0NjzOru23DUeMdSopkJ9fE6dGGIoZeF3kvdRrWLfpNsXeCa292h06 X-Google-Smtp-Source: AGHT+IFCINtjBENaeAj10KtYw+ipI99HYuyHocaT2yFg53cizOICcvS4H5wwYoC8qC05rHejKDw6xA== X-Received: by 2002:a05:6000:642:b0:3a4:da0e:517a with SMTP id ffacd0b85a97d-3b5e7f34e49mr6891264f8f.23.1752238680724; Fri, 11 Jul 2025 05:58:00 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:57:59 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:53 +0100 Subject: [PATCH v7 01/15] dt-bindings: media: qcom,x1e80100-camss: Assign correct main register bank to first address Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-1-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2647; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=5VDFXA8I+E5iXu2Bb9Dkpc45x4jcmubRsSn5foFMXjY=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpSbcpVOwqqdTtfGI5BM/HqJWyqBUExf7p0G 0Syw5dgTj6JAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUgAKCRAicTuzoY3I OsGoEAC2MVpyLtQF+tRtU9rVblWxWJUGQDeI94C78Rh0mZLPctX1bvnhPFvnnpcAteCS+LZkJaB W918YbzQfidrn6w7PmXn3B0pNjsvhfrTaKjigDeQU0J/zj8WElu/79CtffjBbM1uFdFtQtKgzhy nMzzI+3jYNWfKGEfFzw9ZDRbxo2s4xkEKlhQIo0MIxr5X4rzvdI5KuIsjczjAsHBMYawT+LhpT3 8YAC2i3MvtIsxLQnlcjjtAutEmgpr4r7qAKQFqLqWmB+ZWW4D0KE7SKTNZkYY+mvj4s61/vPOcH NHRI3Cq9J50DtDZDe6kCXfxfyK+Wdt8EzugSqVDzyGBTDwgK3A1yMJTbF50dO2aEsuQxv986D/q 4ynvYNtr1QdMek99gCuFY8R18IxdSkdIdf91az5uzRjeDOiVkg8gxf2yFmHJLSbICF1onfkdTab vmYS5bSv+MbP1DUg+9vQvrmGABrz9QuFEoI0w63hIQJEzLnhuj/yPWuTH6N4BcRPEpoa0ieiUx6 MJX5l2YsKAXX1J8Kg7sJ/X0tbuC6KQBHErkyfe4Ufmb8/aW5atTa0Unfy+TzpQAKRhjJZ8ZuUTJ kNR+T2s8qUfZ9JJhmX7R22GJTn3CjCELB4A7ylEaQMJ2+CdvgCeiBzHyFMibTmnmfNuFAQVWjze qfiZBsmx5CmjVrA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A The first register bank should be the 'main' register bank, in this case the CSID wrapper register is responsible for muxing PHY/TPG inputs directly to CSID or to other blocks such as the Sensor Front End. commit f4792eeaa971 ("dt-bindings: media: qcom,x1e80100-camss: Fix isp unit= address") assigned the address to the first register bank "csid0" whereas what we should have done is retained the unit address and moved csid_wrapper to be the first listed bank. Signed-off-by: Bryan O'Donoghue --- .../devicetree/bindings/media/qcom,x1e80100-camss.yaml | 12 ++++++--= ---- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.ya= ml b/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml index b075341caafc1612e4faa3b7c1d0766e16646f7b..2438e08b894f4a3dc577cee4ab8= 5184a3d7232b0 100644 --- a/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml +++ b/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml @@ -21,12 +21,12 @@ properties: =20 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 @@ -190,15 +190,15 @@ examples: #address-cells =3D <2>; #size-cells =3D <2>; =20 - camss: isp@acb7000 { + camss: isp@acb6000 { compatible =3D "qcom,x1e80100-camss"; =20 - reg =3D <0 0x0acb7000 0 0x2000>, + reg =3D <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>, @@ -211,12 +211,12 @@ examples: <0 0x0acc7000 0 0x2000>, <0 0x0accb000 0 0x2000>; =20 - reg-names =3D "csid0", + reg-names =3D "csid_wrapper", + "csid0", "csid1", "csid2", "csid_lite0", "csid_lite1", - "csid_wrapper", "csiphy0", "csiphy1", "csiphy2", --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 E8C362D3220 for ; Fri, 11 Jul 2025 12:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238686; cv=none; b=uUZOG7amMiHjkedVVpHOmk+zzF4gL/BYZBKZ77kRKJh7uvjqbpRD0dA9dXZcyN6MsHesYPL6N2GB+Uuv1u20BVjzUIZFt3VecnKoY8+x6vuRKQbI7suvzf3JE3yKl+5mGpLIv1hmpjymy+7UYZuO7Q0ye/KnF6yKzzoPy3oxmf8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238686; c=relaxed/simple; bh=5gV/Pwg1WP+ZZILJzt3fi0xEnri4ukNILoHO+6sJ6I4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aFcByDY/94dRP1Mm4ymuIm5dcbjAwGlCAB46LeUMfN9khpuJnIx7B57VielQPCJK8hjaqdBztUQg1jfUf7KuFwzAxe3WK4552zHLnKcBOy/3W/Mm4h4+a4MRF/wOolD9mphAKCecsKvKSzHbUIISjX5NOmhanwp/GfDL+wSJK10= 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=UWKEDGPz; arc=none smtp.client-ip=209.85.221.53 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="UWKEDGPz" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3a536ecbf6fso1260663f8f.2 for ; Fri, 11 Jul 2025 05:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238682; x=1752843482; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JkUr4CGEFUQkYRmGivVe3aB7iO026zPS12jaFJau+Cw=; b=UWKEDGPzs1KCdumbySFkJY2rMywXY+ytv9zT1AwvNa3ulXzbvSd/vgkzWHcdPSVlDB Fr81fyDZ/1dLUEh4IfCoIfqWYLBW8u7N9mKPixAwZ1OGgty6+zmfgyH7CI+W19h84wFI GJEwbkYgg8a1CKeVaqChp9FHqD5V07ezFWapOqIWbuOoh/Y7J6ZhGKsk93kH/0I84Dsq DdvwokETAf9PhEajdkCSybIVBZrvoemdfsQBxVOnWJBLPM40o0Nq1756hWmmqZUuhYQ6 DMaX6i0rdmUQ+IW/LK1kKqZM4kcKUBnaOKonmkOCTbzkJ2lVY6Qld7KdLay/XokoyAx8 tI7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238682; x=1752843482; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JkUr4CGEFUQkYRmGivVe3aB7iO026zPS12jaFJau+Cw=; b=sbnJmCkIPxxGWNigubtLmYBMEwN9XgUubhpZdTxQabXSnwoXcDpXTcwxnlUF0nqwHP BxYeV6OxF7m/szkHF+aS2xiDGwXMvuxrhbVxoz6q80ZMKq6JNQCfPhnA0KcCmYJ5aS2V 54F6t9YANlHzwTAtVwGUwqw+dIze2PmVPgTI9Y19l9wSjUef/P7KGVw6ODxmae/Vkepe koaADkOdZ9CYowi3pi5ZQOppwGO3UYDbF8hUavlSuBeLDlP4BmrA9fJg7wPkC47wES0u oxLnty/5GGD2B6C1xGUygvCmtibH+avIzUvUy2IXNUQpWN19gbMCGrXD52xuuKb2dxdj 9cZQ== X-Forwarded-Encrypted: i=1; AJvYcCWgwIHy60S9/GkPR+zWy8KYJjUQl4ZsVxw8JABQ2PSN/rH5NDt/YCt8/46jlCeIQZOUS5CpBhHul/K66R0=@vger.kernel.org X-Gm-Message-State: AOJu0YzqqlAYdr+GQG87HGDprAvVMjCaNItvNWtN+ke0OhgdwDiHETAO TklGHdx1L5jWY2oE99IS1oZ9Wt7j81Ad1DPze4I55eno6pkp6khaKrs6klhh2Y0BOj4= X-Gm-Gg: ASbGncuwomHhShXRirzxi4wkSLKWIUlC0OeBcM3gD8wuhiaQdgqEVBZWoOZ4wHBezNK JmKtUSW/kZnVMi45AnhvjU4/aJIYZ6asWOXruQoYvg2Qm8EeQJwrVkWJ62vTV2Z5qk3ti7J1RSZ 5+cSz+Welwtd0hTxYbrlNMLpCXe/nodva9ZYBxrX+1GMv6c349O89HhZN/ZN4n0MyHGMjr3EoMF hupdCwx3mqMSEHMZdaepXKIiFKaJOH9iVQsQYQc0iPQqtA4tua+hQ2q2MnGuDgP9X90JlOfxXXn AWleWU1GvSxDIQpWRwTlbAm0BaC+MfbQy2/pYoqAth9vm5zk+gBxlRCq+sT9FA9t/1dm0wSwrq8 d0ZiNtPwxjdcmVy8xyzVhAHmNlhxnw6Kly+FYyum/gJN/5cBzDf53v/ytwi9EifQ6 X-Google-Smtp-Source: AGHT+IGcQTpuyD1+OjKXfLSy343mJnTIdFl+2rVUM9fSCtV0mrtcrWkbOJTUTiN4BGnL3emlOBR7CQ== X-Received: by 2002:a05:6000:4412:b0:3a6:d145:e2cc with SMTP id ffacd0b85a97d-3b5f187e927mr2077584f8f.15.1752238682076; Fri, 11 Jul 2025 05:58:02 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:01 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:54 +0100 Subject: [PATCH v7 02/15] dt-bindings: media: qcom,x1e80100-camss: Convert from inline PHY definitions to PHY handles Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-2-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=8032; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=5gV/Pwg1WP+ZZILJzt3fi0xEnri4ukNILoHO+6sJ6I4=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpSlGQ68k1c1n3/pDUm2g4dycogVyIVjOB6y 1NLaf0nYJ+JAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUgAKCRAicTuzoY3I Om82EACBuKGAY/JgbJMmDmVaH2Rh8pL8YMvj9ofNzHmskTZtDg689vihLFJd0La1Jue4cufIwbJ ANlYFJSFB4faOegzSJx903gPuxv9i4FeC/NcpgN9b0u7OL/n8r4N7XOkXfjtzp4R48CoR6UoBUL UoxgGSbYQ/6MjAixE/oHDa4eLtc8kr3smvviYE0O7PXcbfwbpyy7qmQc8bcqFJdqB83yqwUi3Wx HCSpOmrOQFTlalutJbSdIHroTvH344929cMXtxv8F4MgOoh5zUL+reKft8PI049vpviCYE0iUe2 AXGm6+2QmvTankttf106TgXTsxlp//iRg5m1S/tnPD8f7CvxQkGWgpbwbQ3S6sANZHHgFOpSBNo COcp6l52FkLBX/uN5e0BoVjIn1GGBxHTlKfR9vdsjjb0PSmi30vDtBzkHKH5E2tUPvxytqi/9Se +Y/iLF2wxYy4zSexSvLaV8H27w/zTXqDbBobmdwbJ1qEqrEqXO8BzdcqmTSxS/3QInbyJpkfN3a CBSOgEP54Xw16hKHQ2RcNQ9b2R9jSHZY0WVvwDNu4fSfZ3bZOXKb3VESMVwPFirkvEgxunzXApq 3f4Z7Jxpk6kXsdlVKtRHiZjDH2NSYMFg0lwWoRvGC4FkSOy6TtAF5VkL1JPqin3g81UcWtosFLN G6IS7HvHR36DIHw== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A We currently do not have an upstream user of the x1e CAMSS schema which allows us to make this the first platform to treat the CSI PHYs as separate devices in much the same way as we treat the CCI block as separate devices. Convert the embedded CSIPHY node data to simple phys =3D <> removing all of the PHY specific stuff previously embedded. I gave some serious thought to making the Test Pattern Generators TPGs into PHY nodes also but, unlike the CSIPHYs the TPGs have no dedicated external pins nor regulators. The CSIPHYs OTOH have dedicated in-fact generally unmuxed pins on Qualcomm SoCs and each CSIPHY has its own set of input power rails usually 0p8 and 1p2. Instead of defining the CSIPHYs as children of the CAMSS block, we take the same approach as the CCI/I2C bus dedicated to CAMSS and define the CSIPHYs as their own nodes. Remove the embedded CSIPHY specific data and give CAMSS regular, bog-standard phys =3D <>; Signed-off-by: Bryan O'Donoghue --- .../bindings/media/qcom,x1e80100-camss.yaml | 80 +++++-------------= ---- 1 file changed, 16 insertions(+), 64 deletions(-) diff --git a/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.ya= ml b/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml index 2438e08b894f4a3dc577cee4ab85184a3d7232b0..c130733887e39afe51f3d2df2a5= c943c6fc2ca9f 100644 --- a/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml +++ b/Documentation/devicetree/bindings/media/qcom,x1e80100-camss.yaml @@ -17,7 +17,7 @@ properties: const: qcom,x1e80100-camss =20 reg: - maxItems: 17 + maxItems: 13 =20 reg-names: items: @@ -27,10 +27,6 @@ properties: - const: csid2 - const: csid_lite0 - const: csid_lite1 - - const: csiphy0 - - const: csiphy1 - - const: csiphy2 - - const: csiphy4 - const: csitpg0 - const: csitpg1 - const: csitpg2 @@ -40,7 +36,7 @@ properties: - const: vfe_lite1 =20 clocks: - maxItems: 29 + maxItems: 21 =20 clock-names: items: @@ -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 @@ -75,7 +63,7 @@ properties: - const: vfe_lite_csid =20 interrupts: - maxItems: 13 + maxItems: 9 =20 interrupt-names: items: @@ -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 =20 + phys: + maxItems: 4 + + phy-names: + maxItems: 4 + interconnects: maxItems: 4 =20 @@ -118,14 +108,6 @@ properties: - const: ife1 - const: top =20 - 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 =20 @@ -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 =20 additionalProperties: false @@ -199,10 +181,6 @@ examples: <0 0x0acbb000 0 0x2000>, <0 0x0acc6000 0 0x1000>, <0 0x0acca000 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>, @@ -217,10 +195,6 @@ examples: "csid2", "csid_lite0", "csid_lite1", - "csiphy0", - "csiphy1", - "csiphy2", - "csiphy4", "csitpg0", "csitpg1", "csitpg2", @@ -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>, @@ -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", @@ -294,10 +252,6 @@ examples: , , , - , - , - , - , , , , @@ -308,15 +262,16 @@ examples: "csid2", "csid_lite0", "csid_lite1", - "csiphy0", - "csiphy1", - "csiphy2", - "csiphy4", "vfe0", "vfe1", "vfe_lite0", "vfe_lite1"; =20 + phys =3D <&csiphy0>, <&csiphy1>, + <&csiphy2>, <&csiphy4>; + phy-names =3D "csiphy0", "csiphy1", + "csiphy2", "csiphy4"; + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACT= IVE_ONLY &config_noc SLAVE_CAMERA_CFG QCOM_ICC_TAG_ACT= IVE_ONLY>, <&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS @@ -348,9 +303,6 @@ examples: "ife1", "top"; =20 - vdd-csiphy-0p8-supply =3D <&csiphy_0p8_supply>; - vdd-csiphy-1p2-supply =3D <&csiphy_1p2_supply>; - ports { #address-cells =3D <1>; #size-cells =3D <0>; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 254952D374E for ; Fri, 11 Jul 2025 12:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238687; cv=none; b=XO/Ufju4ImSOXg61BbBAy9qfO9Xa7DvQrD8AGr5pU6fhXRqQjdNicbQihkobLlRLuDeDk6Y7X9P3xhn1R7YREVs0MiHuwbPzR0N7QN4F2wqtZJ8eQpfLy2DJxpBL7YPPl5XMcfvhi3XpLb/QjlZM3Sd3uqFETziMebBBAU8NnJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238687; c=relaxed/simple; bh=z7ErzWgZz2lcwE7VC8GD8PglT60RCBstJiLuexGjqFM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NLSliozkbBlt0pyt0U4YPhUQQS+Q+wNXOFFeIpqGZnvL0WIxD1MsPhAszqZKso06FFbyklVWgiQqrnDW2hujVqO1UpSpoDkRHaUXN+hpL0K8McCImQT0rbdWodZcfMPk5zxnuHkg9oj6ZVp04xfbg1gdJh1Qgy/ZL3hA3mnfvDw= 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=xgylRLGB; arc=none smtp.client-ip=209.85.221.43 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="xgylRLGB" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-3a5123c1533so1114926f8f.2 for ; Fri, 11 Jul 2025 05:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238683; x=1752843483; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SygQZRMLWB/3Hi3WIMPPsYnBEPh0pO/xxiLevNlWXm0=; b=xgylRLGBALRWZkQFD7I8NjX3BQJmesBLCB7MkARe+kELe9e5U7NPSTv7+tO3qulTow ViuIcyoUhLtpgdLHRRhq4UDDTzUUpDAkBQLjnhYSond7ArZnNM27gy/j4vVssFa8vBBQ xpXHZ3lsShWRDlaaC+TE6mSk5EVnDagCHNCSiSzIFc7mkOaAqtFZib9pafDvl4IObcpB tJVOsvOfcKZWafZjZShW46iTV88HDYKGVJ6FqeV8k+UKV6g9I7+4nr39VHEZGg/SCYFl 9WRltskIzxZhUyy1wRwGqXS/uMBZbuu0Xrn8RxMrXCrRd8xHrolFhoD86x+xu2Qo9Kft sAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238683; x=1752843483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SygQZRMLWB/3Hi3WIMPPsYnBEPh0pO/xxiLevNlWXm0=; b=vug9ufNMJCh/tDa8f/QinCebvwPtlT7+LD2O0R2WMF6GF1xZDeo0nB24ESr7RFL0bE UFa2mVpaDytbS53WPI9IYc2QrusDKFw1KcGeU5a5730fEq59TlVnfdswJXgDuf6+Hy8G l8lo7giJ3hH0vD5FoPMImb8ToVpxcgnvf+ibLdXOQets5qwBDhnnbIDRvk2dCCe+ay06 I91NLN6cbYEK/OdLhVoGJWc6F314Ncmg0RvWXUpALPH4GBnXrrPEn5/bH/UcxhME3LrE giFEM6Uan1kRxbfQiKnAYgy9e1Wl0ESNCv3klIk+XgtcMKpa3/w4GjFm2R0+Qp/KkwZV hJIA== X-Forwarded-Encrypted: i=1; AJvYcCVU9o4sJeu8yYYv9fKjn6oh2f+LQHRM5P7zvHRy8YOFBP6RYXtgKEvyhTA+iMVxSxkjG54XJui/83aveHQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzpZq6Ova8ql/brM48NkvmoQVBfjZ87zvII1gaU/OKcfa2v6sDj 25/ixNSgYdgq/tGv5tF8OE5F7i4WKBHIIYlQoZY1HCFvRWYBuV69OQ+uA6UbWjy6O9o= X-Gm-Gg: ASbGnct1WI7cdtKitMD/TT/4jCEZOCHL7fPdxTyBCL5ssa2rhBbjI5l3BLrPcTKAWhC gT9x/Qk1EKEqP/humjhxTJWBAVFuuNzALt0ztFMTFNiwWXJjtO+5cDkaMY8WMB5Dl4E4lbDXHxB UsyxL51nLhGdAWjInwaCLex7erUS6WsIIfPqkAOR7nwKoujqOw8HUL+9m6RQB5V5SJR4U7pCezb DxMlQJiid/D0vt6CmRfE75AwN+mOmlIwFA52IkWZfvb00+L/5poPLPAUBw8DWufyAEH43w1SCia OKfmKCb5IOH/snCT2SXEvw1JtEx3CdH0eUUCcFLrgo+gaZI8GgFKa4Z4hYipvW+dxSvYUMcSYg0 zF6sFtBmaAtSlgsNY20WEIt0xCdbB8gOeIRAxxjCs10a1EO0m08UTYPYTQDIyKbY/ X-Google-Smtp-Source: AGHT+IHrgUwwe2lXMn1Q/z5OtEp434t2+S+ub5tceQuMhxyGeka1+BcADdUGP6jGMvP2g+I2e6pXZw== X-Received: by 2002:a05:6000:2d09:b0:3a6:d967:380e with SMTP id ffacd0b85a97d-3b5f187eb90mr2277964f8f.3.1752238683308; Fri, 11 Jul 2025 05:58:03 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:02 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:55 +0100 Subject: [PATCH v7 03/15] media: qcom: camss: Add legacy_phy flag to SoC definition structures Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-3-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4545; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=z7ErzWgZz2lcwE7VC8GD8PglT60RCBstJiLuexGjqFM=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpS0fJ7a90KGD7wa8oeGlT8tzfTaR7/9WbQL ozZKej7ltKJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUgAKCRAicTuzoY3I OigfD/4zuPWhAjCsfxz1+IDCky+zUEaz6BnlcCvfEqZITu4nZDN84Oh0Zl6TplhdQf+tyFsuH18 E+7IMKIuy8oSNRZLd3JiSCnDUpOLx517RgagzGW4Pv47Jk2+BCvrtqfHErlvz1khHPhrHtwlpub lDvfPTLjw4lFIHgeoVmc3NzDNZgIHFuBHTNR7B9z+LdYSGDK7fiDfdN9c43v0Qg4hqs44Yeuhx/ Fr59MfxG3ffqMcj6zgPSYdXq1HkM7US6pqrmuyM8iIvmSFWRgwbO8fx2ORwzWM/t3KWkPkC5mfe p0a5XfAHugntdt2HXwg9+B32K/Bs/4YRtz4oasGu3me7APN5VPz7I6Uh2Y6DKMBZ5Ou+u+/TtF1 ixfTxwE52GbtpcUYTz/mSomtBP3C3zAIVp4mLa6gJDPc+F2KhVS5xnyOugQ2YBbT7b9+A+r8/I6 FgtxiQ2bHO58uMW8tjpASiXv7K3FRhCYwPpD9HT1cjkaolqJwTq9K+hJEHUn5YYyNOSEirIHwnt biLtWwwlOPTERCriZmyuUq8jzgJWvvD7uy3+Vs/M/M6LEL08JwA6oQxBuVEleD4DtA9ryZLqR45 hzMwdu+TAwWRcWuz9hqI00TMR9RhEMoq9pWYPDb8q4zf0cbP1u76u52SvC/60Y7/hnRjiu+hKYe xJ37CqnC6KBXQJQ== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Flag which SoCs have legacy - builtin PHY code. This will be useful in subsequent patches to inform PHY bringup logic if legacy bindings are available. Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss.c | 11 +++++++++++ drivers/media/platform/qcom/camss/camss.h | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 23e57c7c8c43b9662e07212b26550d2734480fa3..c8103f8b754a29a63e32bb7bc21= 3bfe14b4e0748 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -3724,6 +3724,7 @@ static void camss_remove(struct platform_device *pdev) =20 static const struct camss_resources msm8916_resources =3D { .version =3D CAMSS_8x16, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8x16, .csid_res =3D csid_res_8x16, .ispif_res =3D &ispif_res_8x16, @@ -3736,6 +3737,7 @@ static const struct camss_resources msm8916_resources= =3D { =20 static const struct camss_resources msm8953_resources =3D { .version =3D CAMSS_8x53, + .legacy_phy =3D true, .icc_res =3D icc_res_8x53, .icc_path_num =3D ARRAY_SIZE(icc_res_8x53), .csiphy_res =3D csiphy_res_8x96, @@ -3750,6 +3752,7 @@ static const struct camss_resources msm8953_resources= =3D { =20 static const struct camss_resources msm8996_resources =3D { .version =3D CAMSS_8x96, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8x96, .csid_res =3D csid_res_8x96, .ispif_res =3D &ispif_res_8x96, @@ -3762,6 +3765,7 @@ static const struct camss_resources msm8996_resources= =3D { =20 static const struct camss_resources sdm660_resources =3D { .version =3D CAMSS_660, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_660, .csid_res =3D csid_res_660, .ispif_res =3D &ispif_res_660, @@ -3774,6 +3778,7 @@ static const struct camss_resources sdm660_resources = =3D { =20 static const struct camss_resources sdm670_resources =3D { .version =3D CAMSS_845, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_670, .csid_res =3D csid_res_670, .vfe_res =3D vfe_res_670, @@ -3786,6 +3791,7 @@ static const struct camss_resources sdm670_resources = =3D { static const struct camss_resources sdm845_resources =3D { .version =3D CAMSS_845, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_845, .csid_res =3D csid_res_845, .vfe_res =3D vfe_res_845, @@ -3798,6 +3804,7 @@ static const struct camss_resources sdm845_resources = =3D { static const struct camss_resources sm8250_resources =3D { .version =3D CAMSS_8250, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8250, .csid_res =3D csid_res_8250, .vfe_res =3D vfe_res_8250, @@ -3812,6 +3819,7 @@ static const struct camss_resources sm8250_resources = =3D { static const struct camss_resources sc8280xp_resources =3D { .version =3D CAMSS_8280XP, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_sc8280xp, .csid_res =3D csid_res_sc8280xp, .ispif_res =3D NULL, @@ -3827,6 +3835,7 @@ static const struct camss_resources sc8280xp_resource= s =3D { static const struct camss_resources sc7280_resources =3D { .version =3D CAMSS_7280, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_7280, .csid_res =3D csid_res_7280, .vfe_res =3D vfe_res_7280, @@ -3841,6 +3850,7 @@ static const struct camss_resources sc7280_resources = =3D { static const struct camss_resources sm8550_resources =3D { .version =3D CAMSS_8550, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8550, .csid_res =3D csid_res_8550, .vfe_res =3D vfe_res_8550, @@ -3856,6 +3866,7 @@ static const struct camss_resources sm8550_resources = =3D { static const struct camss_resources x1e80100_resources =3D { .version =3D CAMSS_X1E80100, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_x1e80100, .csid_res =3D csid_res_x1e80100, .vfe_res =3D vfe_res_x1e80100, diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/plat= form/qcom/camss/camss.h index 63c0afee154a02194820016ccf554620d6521c8b..7ed8984ff192d5bcfca790b0900= f8e48700347ea 100644 --- a/drivers/media/platform/qcom/camss/camss.h +++ b/drivers/media/platform/qcom/camss/camss.h @@ -97,6 +97,7 @@ enum icc_count { struct camss_resources { enum camss_version version; const char *pd_name; + const bool legacy_phy; const struct camss_subdev_resources *csiphy_res; const struct camss_subdev_resources *csid_res; const struct camss_subdev_resources *ispif_res; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (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 3CC812D3EC0 for ; Fri, 11 Jul 2025 12:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238688; cv=none; b=HscatiK74wMrmtzdWdQ7O9DcKW7eXr8440hh8Fq344IJ1T6u6hCBhZZAYBzy8QLakSzyiSA52fkOtimKfKdfhkoC/+R3yV+47DANe+Ld6EOmtA1h5jFPKVWVe8KNOiuwv7zmooPve0qRcDSS/bcjHg+WlfjCMNzvHjmq4Dh2doI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238688; c=relaxed/simple; bh=To9B79pjzTs97+rwcXFy/RcluLp9uY/YJ8eCnN9bojk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YLiYNMn+WM0ketJOnYOs5a9R5T/+6Kt8KYgmWQluBlHNuuj5VJHY9TKlWD0DJ7mqh6UGj4LL3h7nzH4H2D2bfwuAoCnLiB7MIDCxpDIfRUBgaGJ+8D7G866wi5l/GCLiltLlIUCkfVsdrQwChTV56FIdiKwmgmcq5nSTTNTf4y8= 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=iQYQg+wI; arc=none smtp.client-ip=209.85.221.66 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="iQYQg+wI" Received: by mail-wr1-f66.google.com with SMTP id ffacd0b85a97d-3a6e2d85705so1376517f8f.0 for ; Fri, 11 Jul 2025 05:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238685; x=1752843485; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NxOV0p0KBFjfV7FvPLfaV0BWlnIbJTZsmWur+IdWrfU=; b=iQYQg+wIJAjC0Nc9h2G2dbg5JXg5J2kJv5TmeEEu4xjVwbOmG26i07ah7jU4sr1dN0 N+xndZ4hbXlXFWOt+/E0gYBCFNkhW9a/OiGNu1rwM+oXbCAcR/hu+gnEFqaiecDpHr0T Fk04CBXVpKLVbqpQBNxID4/COX7vuQ43PCFeb8qy4qQcobW6Wle5Mgsfo3Zn5cqn6J6d BoWb3aE/7tEKrEUQOUypgRzPMhf0vhaxI3iqysWcLrT28taM4Wvc+wXFIzV9etOUgaKc AQsh2x6hjpfcRuq89p9L/ryljKBGQkzPNntpQkOpG2CQV5vC2+hNCWKWr2pI8i+0VSCC 0GQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238685; x=1752843485; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NxOV0p0KBFjfV7FvPLfaV0BWlnIbJTZsmWur+IdWrfU=; b=fhEd0/hWGRFCx9jv6oEv6yHxzfGax+krssbgbauECs0lizRNuXseDNKxoFeeCcFGOi +pEcpK+uT0dTl8UDJ1kza4C/r302lfi1mBcKvtE0bBsEF075BH8ONQWdVnAl23aCz9Tv iKrcP0a+kshFPkM3QSUAP5lMClaszLk4+n0w4ER0dp5jlgD6dE4qdyuuv2fWt7wNxg7E 2ZNZGOSuOAuisV5e47hu5TpjoV2gjQaBhofqaQCFt6XF3FkE7p4btIGLiXnZp/eBIRrc 1f9GHlsvjuQ13L3lzh7gq0bvtR48iw3x+WTKsDzQ6Q/OmtWufubn34Ya+UnNnPri7cMi VchQ== X-Forwarded-Encrypted: i=1; AJvYcCX7N/YA2d7/jda6pnpYBQR2CIUKdXSEFPNAkeW2ZxGckR0P7IOoZsLAi1ZoPPg1NLtSzuI7y719D1Sd+m0=@vger.kernel.org X-Gm-Message-State: AOJu0Yzt2BDauMpV+5FYB7F4Vpc8ff/16YIgTkhYtNSAlvADbWtoB7QE VFaq/0UkWCwji3LrkNZPvNdVFsYqqNq7ShrgE81VMOa+LqiTVK6mPUCBaSEtEsrVT9g= X-Gm-Gg: ASbGncsbqbdsUEbdulUVwoO2+E9uer8K084wulSvXp/BHPtjIP6Qs+iyqheajU6eLcQ SR0QaOD7HgeLgn2NvIquPTx0yG06ZZjy5evdqCSc2QjKhJgcY0IIyYIJvKpVRRdeJsSxAT8e6G+ y5pQkX/VV3zavOfLCdBNT2P6ceMneaHXXGEhxE+OiBa7zafi3XPXA6xSLp3AMuNXW0fzCedxFFN dWEQI6q3q53JDNpXCDn0ywTcHfDiwq9Ax7vYw71zNHx4pMRVOqnCiHQnmtJhqwPBPtcdmnjX/Ug epJOxTDJtTddwp8mownGOTysf/TIpFGQ57KFYJZ1Kv2Grum7xLsozvTFRp9B9R5xTs9yoNEmEva ndIFO9+EnARg4hezyuuoDqeGHJfC+Wp9BDfOkR7DXP5r5IRZ5BcBDOJtV4173eEVXaSbP0R3Z6S g= X-Google-Smtp-Source: AGHT+IHPs5XgXVmwdYoggiTA87bB+BBoPr06nFNeitT493zwuTyRqw4TpBu6ZSlMPQzZN3G0gatZWg== X-Received: by 2002:a05:6000:26ce:b0:3a5:1410:71c0 with SMTP id ffacd0b85a97d-3b5f35783a0mr2076333f8f.38.1752238684539; Fri, 11 Jul 2025 05:58:04 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:04 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:56 +0100 Subject: [PATCH v7 04/15] media: qcom: camss: Add support for PHY API devices Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-4-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=14021; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=To9B79pjzTs97+rwcXFy/RcluLp9uY/YJ8eCnN9bojk=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpTuQdzeSX492loN7vBsSIGRl2bfnqreLHNi D/ytAF5KqyJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUwAKCRAicTuzoY3I OnpSD/9NrnHXBgB9/zf6EuCVaYdmT2pChkIy1kya3VNMrgH/7roF9v+7/oWbWzYc+sx42DMy3tO bSGdmIYvv23HT5JQwD8oS8fqM5DAGv8gQsASpbTqwLIMKQ0eTuNHEy2Ube95U3LUkU4JKnDImC5 6B8P8NJ3I6tzdYWlLH/+ocr0HJEJG0kyVtMJip2NQnWRsttC13uGpVqIJSmoc4fk/Pmqs8hHppK Vxup5uczZBcagMrsWjUpsclt80mGCFsMiC+FcARVag1zIJo8u3gssuRZMIDIPkrCsaPPg+5n9Do ViymBauE+uPJX/GO/ntWl0Ec64ztpsTWxUUQAtr+3uHFKDLAa3pY7VAwMS1kWkIAFB1DIlkQ5S2 cYM/L3EsH75uTTrwinKqp8p4+ndp4Eh+pcMjKaZzcfDOA0Zvw5u669GBLlYv0vIrpyJCsLPa43g tLGbpDguTAy70xRwV4haErGysoVcU6KR6rxFSAe4agKCZPQRdj98PO+6pahh6AumYzGzML8vsDu WFvjdkpMBVbB+B8mhHYnpJNIQKmUjN9lQgaJM3j8py1dnFBkipa//y8MmBd385x9MO/oxyfBIvv LPvFFUpp5GfukWo3cJ9gpn+I6VqB8dfP4bmFZ0V5KlrYapAP5r3aWxHtPFfW0P4M42Bz5KYp0Qc AE1DT09VcAumTrQ== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add the ability to use a PHY pointer which interacts with the standard PHY API. In the first instance the code will try to use the new PHY interface. If no PHYs are present in the DT then the legacy method will be attempted. Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/Kconfig | 1 + drivers/media/platform/qcom/camss/camss-csiphy.c | 157 +++++++++++++++++++= +--- drivers/media/platform/qcom/camss/camss-csiphy.h | 7 + drivers/media/platform/qcom/camss/camss.c | 56 ++++++-- 4 files changed, 194 insertions(+), 27 deletions(-) diff --git a/drivers/media/platform/qcom/camss/Kconfig b/drivers/media/plat= form/qcom/camss/Kconfig index 4eda48cb1adf049a7fb6cb59b9da3c0870fe57f4..1edc5e5a1829e033812bbadfa0d= e00625fd0c93a 100644 --- a/drivers/media/platform/qcom/camss/Kconfig +++ b/drivers/media/platform/qcom/camss/Kconfig @@ -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 diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c b/drivers/med= ia/platform/qcom/camss/camss-csiphy.c index 2de97f58f9ae4f91e8bba39dcadf92bea8cf6f73..185a51aa73d102b9555e550d804= 1c25c8adf9af8 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -131,10 +132,10 @@ static u8 csiphy_get_bpp(const struct csiphy_format_i= nfo *formats, } =20 /* - * csiphy_set_clock_rates - Calculate and set clock rates on CSIPHY module + * csiphy_set_clock_rates_legacy - Calculate and set clock rates on CSIPHY= module * @csiphy: CSIPHY device */ -static int csiphy_set_clock_rates(struct csiphy_device *csiphy) +static int csiphy_set_clock_rates_legacy(struct csiphy_device *csiphy) { struct device *dev =3D csiphy->camss->dev; s64 link_freq; @@ -200,7 +201,7 @@ static int csiphy_set_clock_rates(struct csiphy_device = *csiphy) * * Return 0 on success or a negative error code otherwise */ -static int csiphy_set_power(struct v4l2_subdev *sd, int on) +static int csiphy_set_power_legacy(struct v4l2_subdev *sd, int on) { struct csiphy_device *csiphy =3D v4l2_get_subdevdata(sd); struct device *dev =3D csiphy->camss->dev; @@ -219,7 +220,7 @@ static int csiphy_set_power(struct v4l2_subdev *sd, int= on) return ret; } =20 - ret =3D csiphy_set_clock_rates(csiphy); + ret =3D csiphy_set_clock_rates_legacy(csiphy); if (ret < 0) { regulator_bulk_disable(csiphy->num_supplies, csiphy->supplies); @@ -254,7 +255,7 @@ static int csiphy_set_power(struct v4l2_subdev *sd, int= on) } =20 /* - * csiphy_stream_on - Enable streaming on CSIPHY module + * csiphy_stream_on_legacy - Enable streaming on CSIPHY module * @csiphy: CSIPHY device * * Helper function to enable streaming on CSIPHY module. @@ -262,7 +263,7 @@ static int csiphy_set_power(struct v4l2_subdev *sd, int= on) * * Return 0 on success or a negative error code otherwise */ -static int csiphy_stream_on(struct csiphy_device *csiphy) +static int csiphy_stream_on_legacy(struct csiphy_device *csiphy) { struct csiphy_config *cfg =3D &csiphy->cfg; s64 link_freq; @@ -300,6 +301,63 @@ static int csiphy_stream_on(struct csiphy_device *csip= hy) return 0; } =20 +/* + * eam_off - Disable streaming on CSIPHY module + * @csiphy: CSIPHY device + * + * Helper function to disable streaming on CSIPHY module + */ +static void csiphy_stream_off_legacy(struct csiphy_device *csiphy) +{ + csiphy->res->hw_ops->lanes_disable(csiphy, &csiphy->cfg); +} + +/* + * csiphy_stream_on - Enable streaming on CSIPHY module + * @csiphy: CSIPHY device + * + * Helper function to enable streaming on CSIPHY module. + * Main configuration of CSIPHY module is also done here. + * + * Return 0 on success or a negative error code otherwise + */ +static int csiphy_stream_on(struct csiphy_device *csiphy) +{ + u8 bpp =3D csiphy_get_bpp(csiphy->res->formats->formats, csiphy->res->for= mats->nformats, + csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); + u8 num_lanes =3D csiphy->cfg.csi2->lane_cfg.num_data; + struct phy_configure_opts_mipi_dphy *dphy_cfg; + union phy_configure_opts dphy_opts =3D { 0 }; + struct device *dev =3D csiphy->camss->dev; + s64 link_freq; + int ret; + + dphy_cfg =3D &dphy_opts.mipi_dphy; + + link_freq =3D camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); + + if (link_freq < 0) { + dev_err(dev, + "Cannot get CSI2 transmitter's link frequency\n"); + return -EINVAL; + } + + phy_mipi_dphy_get_default_config_for_hsclk(link_freq, num_lanes, dphy_cfg= ); + + phy_set_mode(csiphy->phy, PHY_MODE_MIPI_DPHY); + + ret =3D phy_configure(csiphy->phy, &dphy_opts); + if (ret) { + dev_err(dev, "failed to configure MIPI D-PHY\n"); + goto error; + } + + return phy_power_on(csiphy->phy); + +error: + return ret; +} + /* * csiphy_stream_off - Disable streaming on CSIPHY module * @csiphy: CSIPHY device @@ -308,9 +366,28 @@ static int csiphy_stream_on(struct csiphy_device *csip= hy) */ static void csiphy_stream_off(struct csiphy_device *csiphy) { - csiphy->res->hw_ops->lanes_disable(csiphy, &csiphy->cfg); + phy_power_off(csiphy->phy); } =20 +/* + * csiphy_set_stream - Enable/disable streaming on CSIPHY module + * @sd: CSIPHY V4L2 subdevice + * @enable: Requested streaming state + * + * Return 0 on success or a negative error code otherwise + */ +static int csiphy_set_stream_legacy(struct v4l2_subdev *sd, int enable) +{ + struct csiphy_device *csiphy =3D v4l2_get_subdevdata(sd); + int ret =3D 0; + + if (enable) + ret =3D csiphy_stream_on_legacy(csiphy); + else + csiphy_stream_off_legacy(csiphy); + + return ret; +} =20 /* * csiphy_set_stream - Enable/disable streaming on CSIPHY module @@ -568,16 +645,16 @@ static bool csiphy_match_clock_name(const char *clock= _name, const char *format, } =20 /* - * msm_csiphy_subdev_init - Initialize CSIPHY device structure and resourc= es + * msm_csiphy_subdev_init_legacy - Initialize CSIPHY device structure and = resources * @csiphy: CSIPHY device * @res: CSIPHY module resources table * @id: CSIPHY module id * * Return 0 on success or a negative error code otherwise */ -int msm_csiphy_subdev_init(struct camss *camss, - struct csiphy_device *csiphy, - const struct camss_subdev_resources *res, u8 id) +int msm_csiphy_subdev_init_legacy(struct camss *camss, + struct csiphy_device *csiphy, + const struct camss_subdev_resources *res, u8 id) { struct device *dev =3D camss->dev; struct platform_device *pdev =3D to_platform_device(dev); @@ -715,6 +792,43 @@ int msm_csiphy_subdev_init(struct camss *camss, return ret; } =20 +/* + * msm_csiphy_subdev_init - Initialize CSIPHY device structure and resourc= es + * @csiphy: CSIPHY device + * @res: CSIPHY module resources table + * @id: CSIPHY module id + * + * Return 0 on success or a negative error code otherwise + */ +int msm_csiphy_subdev_init(struct camss *camss, + struct csiphy_device *csiphy, + const struct camss_subdev_resources *res, u8 id) +{ + struct device *dev =3D camss->dev; + int ret; + + csiphy->camss =3D camss; + csiphy->id =3D id; + csiphy->cfg.combo_mode =3D 0; + csiphy->res =3D &res->csiphy; + + snprintf(csiphy->name, ARRAY_SIZE(csiphy->name), "csiphy%d", + csiphy->id); + + csiphy->phy =3D devm_phy_get(dev, csiphy->name); + + if (IS_ERR(csiphy->phy)) { + dev_err(dev, "failed to get phy %s %d\n", csiphy->name, ret); + return PTR_ERR(csiphy->phy); + } + + ret =3D phy_init(csiphy->phy); + if (ret) + dev_err(dev, "phy %s init fail %d\n", csiphy->name, ret); + + return ret; +} + /* * csiphy_link_setup - Setup CSIPHY connections * @entity: Pointer to media entity structure @@ -749,8 +863,12 @@ static int csiphy_link_setup(struct media_entity *enti= ty, return 0; } =20 -static const struct v4l2_subdev_core_ops csiphy_core_ops =3D { - .s_power =3D csiphy_set_power, +static const struct v4l2_subdev_core_ops csiphy_core_ops_legacy =3D { + .s_power =3D csiphy_set_power_legacy, +}; + +static const struct v4l2_subdev_video_ops csiphy_video_ops_legacy =3D { + .s_stream =3D csiphy_set_stream_legacy, }; =20 static const struct v4l2_subdev_video_ops csiphy_video_ops =3D { @@ -764,8 +882,13 @@ static const struct v4l2_subdev_pad_ops csiphy_pad_ops= =3D { .set_fmt =3D csiphy_set_format, }; =20 +static const struct v4l2_subdev_ops csiphy_v4l2_ops_legacy =3D { + .core =3D &csiphy_core_ops_legacy, + .video =3D &csiphy_video_ops_legacy, + .pad =3D &csiphy_pad_ops, +}; + static const struct v4l2_subdev_ops csiphy_v4l2_ops =3D { - .core =3D &csiphy_core_ops, .video =3D &csiphy_video_ops, .pad =3D &csiphy_pad_ops, }; @@ -794,7 +917,11 @@ int msm_csiphy_register_entity(struct csiphy_device *c= siphy, struct device *dev =3D csiphy->camss->dev; int ret; =20 - v4l2_subdev_init(sd, &csiphy_v4l2_ops); + if (IS_ERR(csiphy->phy)) + v4l2_subdev_init(sd, &csiphy_v4l2_ops_legacy); + else + v4l2_subdev_init(sd, &csiphy_v4l2_ops); + sd->internal_ops =3D &csiphy_v4l2_internal_ops; sd->flags |=3D V4L2_SUBDEV_FL_HAS_DEVNODE; snprintf(sd->name, ARRAY_SIZE(sd->name), "%s%d", diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.h b/drivers/med= ia/platform/qcom/camss/camss-csiphy.h index 895f80003c441dcacf98435f91567f90afa29279..48398c331fe1481d32bd29d0341= 0e85b03f0f7aa 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy.h +++ b/drivers/media/platform/qcom/camss/camss-csiphy.h @@ -12,6 +12,7 @@ =20 #include #include +#include #include #include #include @@ -94,6 +95,7 @@ struct csiphy_device_regs { =20 struct csiphy_device { struct camss *camss; + struct phy *phy; u8 id; struct v4l2_subdev subdev; struct media_pad pads[MSM_CSIPHY_PADS_NUM]; @@ -101,6 +103,7 @@ struct csiphy_device { void __iomem *base_clk_mux; u32 irq; char irq_name[30]; + char name[16]; struct camss_clock *clock; bool *rate_set; int nclocks; @@ -115,6 +118,10 @@ struct csiphy_device { =20 struct camss_subdev_resources; =20 +int msm_csiphy_subdev_init_legacy(struct camss *camss, + struct csiphy_device *csiphy, + const struct camss_subdev_resources *res, u8 id); + int msm_csiphy_subdev_init(struct camss *camss, struct csiphy_device *csiphy, const struct camss_subdev_resources *res, u8 id); diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index c8103f8b754a29a63e32bb7bc213bfe14b4e0748..1817fa7f922b3b30168655bffbc= d629feeec167a 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -3092,18 +3092,40 @@ static int camss_init_subdevices(struct camss *cams= s) { struct platform_device *pdev =3D to_platform_device(camss->dev); const struct camss_resources *res =3D camss->res; + struct device_node *phy_np; unsigned int i; int ret; =20 for (i =3D 0; i < camss->res->csiphy_num; i++) { - ret =3D msm_csiphy_subdev_init(camss, &camss->csiphy[i], - &res->csiphy_res[i], - res->csiphy_res[i].csiphy.id); - if (ret < 0) { - dev_err(camss->dev, - "Failed to init csiphy%d sub-device: %d\n", - i, ret); - return ret; + phy_np =3D of_parse_phandle(pdev->dev.of_node, "phys", i); + if (phy_np && of_device_is_available(phy_np)) { + ret =3D msm_csiphy_subdev_init(camss, &camss->csiphy[i], + &res->csiphy_res[i], + res->csiphy_res[i].csiphy.id); + if (ret < 0) { + dev_err(camss->dev, + "Failed to init csiphy%d sub-device: %d\n", + i, ret); + return ret; + } + } + } + + if (!phy_np) { + if (!res->legacy_phy) + return -ENODEV; + + for (i =3D 0; i < camss->res->csiphy_num; i++) { + ret =3D msm_csiphy_subdev_init_legacy(camss, &camss->csiphy[i], + &res->csiphy_res[i], + res->csiphy_res[i].csiphy.id); + if (ret < 0) { + dev_err(camss->dev, + "Failed to init csiphy%d sub-device: %d\n", + i, ret); + return ret; + } + camss->csiphy[i].phy =3D ERR_PTR(-ENODEV); } } =20 @@ -3181,6 +3203,9 @@ static int camss_link_entities(struct camss *camss) =20 for (i =3D 0; i < camss->res->csiphy_num; i++) { for (j =3D 0; j < camss->res->csid_num; j++) { + if (!camss->csiphy[i].phy) + continue; + ret =3D media_create_pad_link(&camss->csiphy[i].subdev.entity, MSM_CSIPHY_PAD_SRC, &camss->csid[j].subdev.entity, @@ -3290,6 +3315,9 @@ static int camss_register_entities(struct camss *cams= s) int ret; =20 for (i =3D 0; i < camss->res->csiphy_num; i++) { + if (!camss->csiphy[i].phy) + continue; + ret =3D msm_csiphy_register_entity(&camss->csiphy[i], &camss->v4l2_dev); if (ret < 0) { @@ -3345,8 +3373,10 @@ static int camss_register_entities(struct camss *cam= ss) =20 i =3D camss->res->csiphy_num; err_reg_csiphy: - for (i--; i >=3D 0; i--) - msm_csiphy_unregister_entity(&camss->csiphy[i]); + for (i--; i >=3D 0; i--) { + if (camss->csiphy[i].phy) + msm_csiphy_unregister_entity(&camss->csiphy[i]); + } =20 return ret; } @@ -3361,8 +3391,10 @@ static void camss_unregister_entities(struct camss *= camss) { unsigned int i; =20 - for (i =3D 0; i < camss->res->csiphy_num; i++) - msm_csiphy_unregister_entity(&camss->csiphy[i]); + for (i =3D 0; i < camss->res->csiphy_num; i++) { + if (camss->csiphy[i].phy) + msm_csiphy_unregister_entity(&camss->csiphy[i]); + } =20 for (i =3D 0; i < camss->res->csid_num; i++) msm_csid_unregister_entity(&camss->csid[i]); --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 714812D46BD for ; Fri, 11 Jul 2025 12:58:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238690; cv=none; b=JforlUsodTNI+TtjkzQPjFj3Woz2ct8OI8uSYp4evLj6wyuArQJAOiiPSSWfzpeZxf1cxaxD2anAG8sesIJEyDuLpdOGPuy//XAlIqk6RHE8WsWyUXpksOyVGbjlaTBDMdiCgJKPXkRXHQgl+wJjWk6pooARZlTbJay1507n8rw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238690; c=relaxed/simple; bh=BKvuiOBqgHCQIm3MGLLe9t9yZBDaLPJiHTcKkR8dS2g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JjqBS0LiLH0pOBrq3dxpns0FOWiAApXPYpnKAqQiyc+6D6bWPoimzNU3nKDdXoWWoFVYxdj6TLIf8jejR3ftS24En1KppVf9T9DWmjnklPktrnhT7MrvwH+mVM1R2PIkpIsCp9Ai5Q82KQhUSQpNfMotzaU0dyIjDmuQw2gztDY= 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=BzhNTVeX; arc=none smtp.client-ip=209.85.221.52 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="BzhNTVeX" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3a51481a598so1183290f8f.3 for ; Fri, 11 Jul 2025 05:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238686; x=1752843486; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=AWjAPYRuv78L63LZKDTf1ZKpw8MclurSpz8fHMfB2Y8=; b=BzhNTVeXmtjNJvpN3aHCt2plIxfGIWyk7aNvnAkbVjy/b38RS+GQluPi4Z4rtwGeAz IKLQB9OuV5kqFzGyxduGcEbsKoygoaaGMmTIUfpeDL+cBZonTGHfdelnk0KLxqyuAj6f CDc60QfzvFfyUzSNirRDwcqr8CwF1eeT835e2fWQ/2u+986DYM/+hTR2N7AAdErK1gpI aHNCFcmi5rDeWqs2bo4LChKg9fiyKLmH4TdBJTU4AJUX+1P4qJE/eMbVHdWp3nynXJX2 +5gLidJarqfI/Lu9zddwrab2QfMCRVLEjvwIlczpjWWLZD9rdkerIfy6PuveMPY4M1Xd gMcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238686; x=1752843486; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AWjAPYRuv78L63LZKDTf1ZKpw8MclurSpz8fHMfB2Y8=; b=DDCwIBjQANywetF+5Ut42pOL8jw+GlBSBAU5eSRh7lzVTmfMUJqaxiF84zij1bOhf6 QquXZT6Q7T2bCKNoP/dMpWYHsiOb6nm2WZOgI6/gknwxKUidFYOR1D+xvowha2xxd7cL /U53YWCzkEY9Av9amKXvrzjHSfFNDtAa+6q6uLcUmMsVtUvaVdO0yY+i4t7VOr9xQl0M Rzf0/WrjDk1hn+esep8qvNrxbWUCKFRMPW4QLQD8Hj4wT9qitMz4LHCU+Og+SiXYlzVI TAVBVege4P7Dz7bVoMnUwPSAOqTW47ATOcAgmyQ78aLUng9+uM/VRVv2daN0vWz8BLJJ GtSQ== X-Forwarded-Encrypted: i=1; AJvYcCXtOI0+MUYb2Z4e7eDxF5EfeDsY0p2m0LYoqK6qYVxPbrr9Ao3sAj5tbWnULAJbaK7o6cfQuNOYjqR36BA=@vger.kernel.org X-Gm-Message-State: AOJu0Yzwjus1U32BHumbHG47LrscPIUHKrvAId3+JAdlVFg4pTS3Ya1x moVNOISHVsfOdyeJiBIeI9xnHfNaTdXvyQs/8bNCaiCxwgNUz04QY+STAUDHORr2vzA= X-Gm-Gg: ASbGnctMnfeEbLw6Hw0DurQkgT/9woHY+KbEbPdanTQtwpamw8SuaLQ+9EeNWLQ7p9j D6FwPjs4AUF3eVciIGwFeMW5bHe75pjTpTRoUHLe/FPaGwZFKE3Nxldo/ai8WOkTPk+AWWu2sty FhT3z1/n8eHurKaH81yCBiQ4NXqPHznDtKkRY8F6PL6CDadmaviDsfapZgfKit5W8vyaQSw4dwM s4KoEK/bBKBHBOmP6L5KcXeYuqhLr8icMlmDCOLB7VGKTTObnOOkcKUzNR4O97BrxgKz2gcV5sf iSAr7K1O4QVvGNUgMYVEpuT7Qj+u7j2v8JXM4nm37nZU4nSy8MHqlTFZlo1YKTQXnBYwGJzFyDJ tJqx0/xm7pzeTngEhU978lMrIAa8FQzz7wYz24Y35czVDzrmN1iFVscgeEic6qaG4XtIPashoOA 4= X-Google-Smtp-Source: AGHT+IGp1bakrJvow4zyavX2gOZY+N8rlEo+qFgmN/7ER7BE1KeIT7HJymmPWF0kYw8JPtkiv7Ujiw== X-Received: by 2002:a05:6000:2089:b0:3a4:d0ed:257b with SMTP id ffacd0b85a97d-3b5f2dd474cmr2283608f8f.22.1752238685741; Fri, 11 Jul 2025 05:58:05 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:05 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:57 +0100 Subject: [PATCH v7 05/15] media: qcom: camss: Drop legacy PHY descriptions from x1e Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-5-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2750; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=BKvuiOBqgHCQIm3MGLLe9t9yZBDaLPJiHTcKkR8dS2g=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpTEfswbU4UPgeVmWYMnuxy7qAAd3qpJv56Q pghCayzYmOJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUwAKCRAicTuzoY3I OiNAD/4+bum0Y+XKTMw1SNJDo0VGXndefkd76SCW8bpswhrX+jGWuhOEDxJjqMK0QjE4JNIvfBL 2aJcAwcqaUtYz4n8bwojaR78oBbLE5Gq8Jlam+Ip8tyhPugfZuouFDwVI1VCf0NjMyLWAouFYwq GjCM4LgNqXIzPbGmab+t37rk2EImlH25bqRmiahqqPLsRNqEFg6ResOnnObTzXQjM+NcCJiFDSR tjfibao5UBZC8j52xGWTfYilFgPI3WAWb3eubSw4eZdJbzy/qm2VgDYFgsjVdIX/kEwxfT5/oYa OuBz5CeIxIh7kM5N03OJWXh6lta065G9T/MOX8hphNEngXz0ZuxCfbL9wwxfrQPqPFc+709aZmA mIP9Eud5ExU3Ccm+vpk6Cp4aZIiIL0yfbd4JOpUeP8vi7Wg8L8pWjg4D2SHN5eYUFbP+R25eLkL s2j5kyyKXZR4GnFnOFwjV+2zeYQ3g55nQisYu5O9iGk4fBB/CSaLRG6vFK0JCqm006PfBC8Uf5s jCHEU98yINZNfilJSLbrTFHPqpG7VljaTTzKulq98FQ4d4qK3HDhAMquv5Lt+g7lzmb+OKgtOdl ss22shRy/0RFIGVA9F8Vr2O8hGznijWVgKHf4KuYR7MlRMC/g7La42ySnNPOJADfuQVwZqvx1A4 pX9nMtVVUFUOIzQ== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A x1e is the first CAMSS SoC to use the new PHY interface. Drop the redundant legacy CSIPHY descriptions. Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss.c | 29 ---------------------------= -- 1 file changed, 29 deletions(-) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 1817fa7f922b3b30168655bffbcd629feeec167a..1585b5985fc45130238120bdfdb= 461477971fb9d 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -2486,13 +2486,6 @@ static const struct resources_icc icc_res_sm8550[] = =3D { static const struct camss_subdev_resources csiphy_res_x1e80100[] =3D { /* CSIPHY0 */ { - .regulators =3D { "vdd-csiphy-0p8", - "vdd-csiphy-1p2" }, - .clock =3D { "csiphy0", "csiphy0_timer" }, - .clock_rate =3D { { 300000000, 400000000, 480000000 }, - { 266666667, 400000000 } }, - .reg =3D { "csiphy0" }, - .interrupt =3D { "csiphy0" }, .csiphy =3D { .id =3D 0, .hw_ops =3D &csiphy_ops_3ph_1_0, @@ -2501,13 +2494,6 @@ static const struct camss_subdev_resources csiphy_re= s_x1e80100[] =3D { }, /* CSIPHY1 */ { - .regulators =3D { "vdd-csiphy-0p8", - "vdd-csiphy-1p2" }, - .clock =3D { "csiphy1", "csiphy1_timer" }, - .clock_rate =3D { { 300000000, 400000000, 480000000 }, - { 266666667, 400000000 } }, - .reg =3D { "csiphy1" }, - .interrupt =3D { "csiphy1" }, .csiphy =3D { .id =3D 1, .hw_ops =3D &csiphy_ops_3ph_1_0, @@ -2516,13 +2502,6 @@ static const struct camss_subdev_resources csiphy_re= s_x1e80100[] =3D { }, /* CSIPHY2 */ { - .regulators =3D { "vdd-csiphy-0p8", - "vdd-csiphy-1p2" }, - .clock =3D { "csiphy2", "csiphy2_timer" }, - .clock_rate =3D { { 300000000, 400000000, 480000000 }, - { 266666667, 400000000 } }, - .reg =3D { "csiphy2" }, - .interrupt =3D { "csiphy2" }, .csiphy =3D { .id =3D 2, .hw_ops =3D &csiphy_ops_3ph_1_0, @@ -2531,13 +2510,6 @@ static const struct camss_subdev_resources csiphy_re= s_x1e80100[] =3D { }, /* CSIPHY4 */ { - .regulators =3D { "vdd-csiphy-0p8", - "vdd-csiphy-1p2" }, - .clock =3D { "csiphy4", "csiphy4_timer" }, - .clock_rate =3D { { 300000000, 400000000, 480000000 }, - { 266666667, 400000000 } }, - .reg =3D { "csiphy4" }, - .interrupt =3D { "csiphy4" }, .csiphy =3D { .id =3D 4, .hw_ops =3D &csiphy_ops_3ph_1_0, @@ -3898,7 +3870,6 @@ static const struct camss_resources sm8550_resources = =3D { static const struct camss_resources x1e80100_resources =3D { .version =3D CAMSS_X1E80100, .pd_name =3D "top", - .legacy_phy =3D true, .csiphy_res =3D csiphy_res_x1e80100, .csid_res =3D csid_res_x1e80100, .vfe_res =3D vfe_res_x1e80100, --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 0FA132D63E4 for ; Fri, 11 Jul 2025 12:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238691; cv=none; b=N1BixOFwKznCYuhFcROd9BNlLCoHNV2ntwFFEfvazACs+x+LPtmPgBoVAVgk6I1rQZPX4pKCuwN4hMNi1HI67cbuT2qjdH/AAmbvlfOcVndlqCO5Stl8LZxgG59Gd4Ai1WgfzeWQc2VEEqvPWW7pKJnEfxUxOuLQqhvuxHPM7dQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238691; c=relaxed/simple; bh=s/FOJbSlQeO3+Z2J+SJp/YZoIIMUI5Bn8uUQnBwBT0E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XHyA3Hs4+nJCANRce9yf9rTkcNPHzfjpIDDlERtHyvcULKZCKGTSdpmXHYiAgMNlUcdiiCuOgoEkVDj8c/c+/g6gW7HHfvWMxXtG9MUEpYpwi8OsPBsDdTA38p6U4HzYGZKCg2OyEZzhxgF0RcSA8+jjK029XoPPoaN+15lHlGg= 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=KqP53cyl; arc=none smtp.client-ip=209.85.221.51 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="KqP53cyl" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3a6d77b43c9so2015333f8f.3 for ; Fri, 11 Jul 2025 05:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238687; x=1752843487; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2J/cnuWdOkYkLDLmAVpB1tJoL9yoCzJpgqRMTTxoVtA=; b=KqP53cylcMe4r7F+4dIxcky6PvPo18aP0ot6E8zLHqYTGVnqyFh/8yJmiLFKtrxdkU SmqTIZ1RrlWdKIKFt3R3sWrxIHX/aMnAJaAv2WtWbeEFRKeEmj31nWI2SImRHQKdF8qz l2GdQOhc89SJMddYJIYDqsRqJGK9UxQ4lBQMQFLLG+cLNnvZMy4gQ9W8XaGSyOLOgk7U Y6L6OExtDNecuMkMNjwDtLqY+STc1Jd7kdC0Ntvrn0pq8BN5uBgR0GzuGJfw0UmLvAQS RYaNSr7VP/p9FQy5J5FwXSVY2WgVO2dHnzgpLOeBlms9zOn8uxqPxbsKlIwv5kuaNxpU HmcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238687; x=1752843487; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2J/cnuWdOkYkLDLmAVpB1tJoL9yoCzJpgqRMTTxoVtA=; b=vqB25VrYSQqQ/oWVntZBlbOUR9cSpzojYbZvscoJACAEZWZeoIqbDzIwgiZrk1gY2S T0B8l1Pk66is2APb81slqI6gVr6MshUD40tJvq60ynPfUW6l8rqgdsj12bMW94alwf/Q ALN/EhZ7bRFwo0aPHyJWLYIbc/P9Zq9kQ89Rb3hC3vau4J9hH079PYxXNQu2oWZXcwsA NOsQ0HuLHcNCAvIDML2yYtFGgLrkyACAwReu5W9m2d9aALqc7H/uFPCIRo033Yk9VVvW WBc3byG6wnclOp08DwMVpRJwdg93YnReYDEInFtxuXw5prSR0G2AmSOkqbGEdixDrbi3 5BtQ== X-Forwarded-Encrypted: i=1; AJvYcCXElh7kFGY7Ofhd4IRdKxLAW218cXCU+Z/lUk2TYh5+WOaQIMWBenl2ORWhzSWxEe32shsUwL35KbSdje4=@vger.kernel.org X-Gm-Message-State: AOJu0YyTxymmLSqjjjBPqZEQ2z+H6IX+Xwc5JcfuIWB4x2isIvYlpbsi H1g6bGF43hbtQBJk08SzuU3u17EO94WXdnpA+s0eKpWmkEWPPR6HW/jX268QrAjjTwM= X-Gm-Gg: ASbGncs7DZQt8ORMiQo5jXvHQQbgjLkiP+zWMjsH54K4c09vy5s/1tAU4GrzbxGvl71 ek4tMszpaCLyPYL00cI8rgj/2TNeZd0bWjTY1BD148hnhHOIB4aDqQsfAyPFpXvmohnoscbnfA2 L2uh2XPjF886EHxBmPoyBk7vmo5PJZ6mn5GzODhUO92Cxwa87v6jy5PQvyoSvdu4mMZc0P2ZNqz umIru1KJ0O8ND9FfTYfIDZiOqqQADr3K5V0c9oeVnssEh2qxoExXnSFSCi13zpXA6untQ+CXoj4 6Gt0ufgZPhfJdFjNAXYmMmKw0Er2UghWfEvf1iIdxTgGfVj5yfJl0E+8wGePcOvJ2MbE1GiDnCv Nc3Kk5kiWaT+xviSKa/DwxHbrpoU/MrA6JekG+zSfK61WY7qVRzto2mpLnAaadkrl X-Google-Smtp-Source: AGHT+IHvcftvippoxTzUMJZLipfURwlMqWOTVLT9wxj7eNWp0iqgE5g0VRrFKt+R2FyVjN2LvI2ebA== X-Received: by 2002:a05:6000:2dc3:b0:3b5:e2ca:1c2 with SMTP id ffacd0b85a97d-3b5f187d0c6mr3318556f8f.2.1752238687019; Fri, 11 Jul 2025 05:58:07 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:06 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:58 +0100 Subject: [PATCH v7 06/15] arm64: dts: qcom: x1e80100: Add CAMCC block definition Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-6-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1750; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=s/FOJbSlQeO3+Z2J+SJp/YZoIIMUI5Bn8uUQnBwBT0E=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpTFx8zkceNiUaYUsZdvK7WQvRVqH+03l0zy bCCWoyEDsuJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUwAKCRAicTuzoY3I OoJcD/0Tbn7oETww3XOod3HFb0uUXY2Ruy9prCVJDZdiqMlCft2C9sMT3KyCPvsEW67o9RU5Ypy o+FqkIpAKekjMuBQv8N9WAUEO4fyYTmL8S/TwLU1wNLzpAk0cc38m/vXh2YkGxwuPfWbmNuWUOr 9dC4zj1HyXQSUd4WwAUJ5rcNCJA3f0akDP60V2jdCZDqC6qFhYxrxAbDIVAJQsE/JwcQCsWR1W7 0r5prowzaXXMV9S7EuXxiyufZ0AqhJ6MQA8Kq7EbFNnwVEsF4Y0KEU33wV0bePisQySMHSNLNyR c/bWa42NsH8TctDa//2fqMy2nQ1lA6NNn+D5S7mQbd5qhBWhccw2zJ0T+FfDgwfOriYxoK27m8o 2BdyezWCVegXutdV3c2+Wr+0muNns5hNNifpGOEEWMUMg5xbiSa5CIdYphmK2cpPNJY4oSVDMg+ XlRC3y3ckDgCxl+GCothjDk3YjpN5f+m0GA1OvWtmhXap/TZvJTdb83YDgbCQ/nLLN8/5uPG//+ 8Ht56rygJLZQkwhUTj53hBqH6hunsNrN9IX70/WNR6VMLv4l2XJ965MiAYDiuJvLwGKNMKzA/P6 GTPCH+S0JsRKpgNNLWHoBEmnjV9JUYhKRVQEgV8LveN1NzyAWwfBY7cJOgszBmwjR28OPukoGtj bjK9obxCrIuMOng== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add the CAMCC block for x1e80100. The x1e80100 CAMCC block is an iteration of previous CAMCC blocks with the exception of having two required power-domains not just one. Reviewed-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index a8eb4c5fe99fe6dd49af200a738b6476d87279b2..1dff82692ff6702c5577ae9e693= ce3f7ea215eee 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -5,6 +5,7 @@ =20 #include #include +#include #include #include #include @@ -5165,6 +5166,22 @@ usb_1_ss1_dwc3_ss: endpoint { }; }; =20 + camcc: clock-controller@ade0000 { + compatible =3D "qcom,x1e80100-camcc"; + reg =3D <0 0x0ade0000 0 0x20000>; + clocks =3D <&gcc GCC_CAMERA_AHB_CLK>, + <&bi_tcxo_div2>, + <&bi_tcxo_ao_div2>, + <&sleep_clk>; + power-domains =3D <&rpmhpd RPMHPD_MXC>, + <&rpmhpd RPMHPD_MMCX>; + required-opps =3D <&rpmhpd_opp_low_svs>, + <&rpmhpd_opp_low_svs>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + #power-domain-cells =3D <1>; + }; + mdss: display-subsystem@ae00000 { compatible =3D "qcom,x1e80100-mdss"; reg =3D <0 0x0ae00000 0 0x1000>; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 096662D3204 for ; Fri, 11 Jul 2025 12:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238692; cv=none; b=clhjfnFThBkZBX3jxS8QvOM9LnY/Ll3WP0RLfZNbLsM61NrSJH1Aq816o0vSXKboYn08ZN4/jXjV7GQnTyoZ/QNXLJtdEaci8eiXkANtbC/nYJcKC93XPh8TGK3KScuzz4D8/YNbAXH5FmVDH+pI3ti7nldQ7tVO/tz8sRJ5i3w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238692; c=relaxed/simple; bh=ETI/AHSUJsz5JS2Ws7Cricsh5CI+Ea01tbS9XwH/NpI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hXq9WURV5irCsTSPm/ohHDxT1NQFUEN/TDcS067IaFuxttkw+3RHRuzXfhE/R+T+k2KKMG4p13LUXBW4NGwtEZcgTqD3pB/kn57Udgb4FnHi+BSTAfmxkFQ+19kFlpjVQuAuiS1gjGYSb34ief9pnorpOIC4cWbTFkQb4Xc+AxE= 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=e/06DyYN; arc=none smtp.client-ip=209.85.128.47 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="e/06DyYN" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-451e2f0d9c2so18324635e9.1 for ; Fri, 11 Jul 2025 05:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238688; x=1752843488; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6i097IaLYfYDmLJQUaR4DhbEpB4vYLQ/9VvicO+IExI=; b=e/06DyYN1sxCE9yzW4cwQvu+aBK3XzNSdBXgz3yySs3LQKrsW9NCvrNJpHo5ARYfmR W2/th/gGmodaG1kLZGWCYOJrQ2R107D8NJa5TEZ916ZdXd2RCCgIVKUR9apsdeZOWtwL L3530XxFoG3tduWZYn5YaTh5sdieLqWQWnKHGiJVsod4W+I0T5pZZUqRgK503nnuG+Vm 1lIIeqNVqrs4RFw1zetyA7GRAgadv8nua0GnfKtCM++F6z1r+Bs6q2Few7Pm09hH2c9Y xTVIqdClb5hw4TZXTuqJZ9CdfDkx4gZJ9BmCeLl/ZTfxIS+a53Pi/4c8ft0fHGfh4uyJ oKoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238688; x=1752843488; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6i097IaLYfYDmLJQUaR4DhbEpB4vYLQ/9VvicO+IExI=; b=q6/kiZ1axyt5KjbEBH1yuCz49L8h4DiA1KyU56EPsAQ2f9HDdH2w8Th+Rd1+NlK1Lq fIPaw2fr3dsRmhTWg9b4E7d2B4LuxPSI3uDXb+Bfk75+gNnVpEyJrNXFdyvNnw4eNdYY eGNsRUYPOq3B1jqhcMXN0Zo9/squA+RFVRD0RSdOgkXBq9B+VtG8NVA6dzHjHSvJuNmN w4fDwFe1DEeDgsHU6RnOdsuqIOITxmGlJZQdq/5nTKh3TxKP6vwIH+Kjadyd5bCb6u63 iO6bUtERiENKlABUfjj79OgYOgS4BlFp9sV2oDUrU/B07PkPqJ7hmFCrr5nBDlEkP0d4 XDnw== X-Forwarded-Encrypted: i=1; AJvYcCXUb+cWBulzpBYcT5TankQ0pSh8yD4IUyT26PbfxMImHexytuBIKqqYwtAKbzms413N5fpOMjFhxszj8wY=@vger.kernel.org X-Gm-Message-State: AOJu0YwaeC5ZBJ2bqPpdWJd7ZDuatIVINJJihJn813ndw9D+CbQqqnyV cqnHgUf7cgizMZmw3BZl9J0p7snymt5FEUXayceRZ8F+Dq5LGMfyk4U8fBKzqWKpQcc= X-Gm-Gg: ASbGncsEKQ85z8AZwWATiezXkEXEO2E2/ebnaMlI30LOKyg2/jfIYyDWKtmKd25dCHm 6VbBFsZ9REJfwDqXK2EBKVIW5fPItIoBnM9MGsEKcAMEazgP0EdDijl9BchBiPUucFOWv1/kexU +fqJbDirvTht8mCIyV8WL7ufkAu7fcEhFsgh4WfKyH9mIlunGquPdTJNcO46ANNlDo0dD1h/Pz0 M9IEqQ7+R4io9E9a3/HXbHmbeIT9h6yVr6QpzB1MB6+tC97Vz3WmtNbbdKr7lEs3edBTzMjJhJr kA9ZDyr07ZDvxrPgqc/IAi1uDuiRzO/sUQq9R9zfk3eqRl7vhE7m14q54xurpoApcMAB0ZyeLL2 1pS86bs2tzepV6VgklM73rSRMpcFCQ9o/NcFJC0pgxDi9ZAQHcSoAtATTARfBkEf+ X-Google-Smtp-Source: AGHT+IGZtXWyw/8SR1DLstRR08snUclu5qzLJBHDYMN9S9fdvA300uTGgLyM9TfRjfWqlBAhXwUl9g== X-Received: by 2002:a05:600d:7:b0:43c:f509:2bbf with SMTP id 5b1f17b1804b1-454db8d8cd6mr65769055e9.15.1752238688302; Fri, 11 Jul 2025 05:58:08 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:07 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:57:59 +0100 Subject: [PATCH v7 07/15] arm64: dts: qcom: x1e80100: Add CCI definitions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-7-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5106; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=ETI/AHSUJsz5JS2Ws7Cricsh5CI+Ea01tbS9XwH/NpI=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpTCnUj7uaQ+qyTQJJKB7O6eUF99RuHZZ/Lk Dp7CAixej6JAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUwAKCRAicTuzoY3I OonYD/0d76E9g5Sy10ttlZYEuf6AtNQPIwrEpcKjC2bCkpXUTwc+cYm2FCmGafcua8N1qNjlVTD KL/flfBXRgMtZOfNEJYz0FLNtErkr9z4dKhoEDtdu0KqcgxTEzdEfJMGIkqxbjOO3lc5TTAVzjb B5dK2oiehJ7oAgg8BCxOZ1qUGFd3wE5/vqjvknt7altskmuuX98zRtF+a7CBPVFYRjdw549qZno PsUnwFZKUaQV1/lZD1kI5z6c7iiVLmMnwS8RAglNLBXGNJtUwfp0a4r1U2BczDVcScoIw4ma3s9 fafz/HA6AYQ1IFJaNfew/sz33AbsOFNDYpHj7tAhzmr+tqmMsCCAdqjxP5qbtJGyoK6oAzar83k NqGQaj0G00a2gFVAXGSF+x84ZCEhxxgrKnqmIjqMwKm18ZrBHAPjbiKld/69+SAsiTzaCCe4PzR MLJcTh+DRWMXXu2D/7XbS03Ef5lCi1fEG5mT/+j/U1AO7TaFaI1jQKQiUtwzYl1x1WE+dxnM+B7 0oCh6zO6EerWD9Elk4EDQOEuimS32+awoyq3iwOwe/Q7z4wo87pb4vRVrp5J1XrjvDqMz9GdL8f ehoA6H5E3xGDBXxRCAyCGdkMul8le5pTn1On5eZv7qeZK6E+SC2hq1wfhwIGKhsP5kGzBaSQ/Xh EwBfxOhXwykJogA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add in two CCI buses. One bus has two CCI bus master pinouts: cci_i2c_sda0 =3D gpio101 cci_i2c_scl0 =3D gpio102 cci_i2c_sda1 =3D gpio103 cci_i2c_scl1 =3D gpio104 The second bus has two CCI bus master pinouts: cci_i2c_sda2 =3D gpio105 cci_i2c_scl2 =3D gpio106 aon_cci_i2c_sda3 =3D gpio235 aon_cci_i2c_scl3 =3D gpio236 Reviewed-by: Konrad Dybcio Reviewed-by: Vladimir Zapolskiy Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 150 +++++++++++++++++++++++++++++= ++++ 1 file changed, 150 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index 1dff82692ff6702c5577ae9e693ce3f7ea215eee..41245e8592f78edf141141f2f5b= 7c5b841318f46 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -5166,6 +5166,84 @@ usb_1_ss1_dwc3_ss: endpoint { }; }; =20 + cci0: cci@ac15000 { + compatible =3D "qcom,x1e80100-cci", "qcom,msm8996-cci"; + reg =3D <0 0x0ac15000 0 0x1000>; + + interrupts =3D ; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_0_CLK>; + clock-names =3D "camnoc_axi", + "cpas_ahb", + "cci"; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + + pinctrl-0 =3D <&cci0_default>; + pinctrl-1 =3D <&cci0_sleep>; + pinctrl-names =3D "default", "sleep"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + status =3D "disabled"; + + cci0_i2c0: i2c-bus@0 { + reg =3D <0>; + clock-frequency =3D <1000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + cci0_i2c1: i2c-bus@1 { + reg =3D <1>; + clock-frequency =3D <1000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + + cci1: cci@ac16000 { + compatible =3D "qcom,x1e80100-cci", "qcom,msm8996-cci"; + reg =3D <0 0x0ac16000 0 0x1000>; + + interrupts =3D ; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_1_CLK>; + clock-names =3D "camnoc_axi", + "cpas_ahb", + "cci"; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + + pinctrl-0 =3D <&cci1_default>; + pinctrl-1 =3D <&cci1_sleep>; + pinctrl-names =3D "default", "sleep"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + status =3D "disabled"; + + cci1_i2c0: i2c-bus@0 { + reg =3D <0>; + clock-frequency =3D <1000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + cci1_i2c1: i2c-bus@1 { + reg =3D <1>; + clock-frequency =3D <1000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + camcc: clock-controller@ade0000 { compatible =3D "qcom,x1e80100-camcc"; reg =3D <0 0x0ade0000 0 0x20000>; @@ -5790,6 +5868,78 @@ tlmm: pinctrl@f100000 { gpio-ranges =3D <&tlmm 0 0 239>; wakeup-parent =3D <&pdc>; =20 + cci0_default: cci0-default-state { + cci0_i2c0_default: cci0-i2c0-default-pins { + /* cci_i2c_sda0, cci_i2c_scl0 */ + pins =3D "gpio101", "gpio102"; + function =3D "cci_i2c"; + drive-strength =3D <2>; + bias-pull-up; + }; + + cci0_i2c1_default: cci0-i2c1-default-pins { + /* cci_i2c_sda1, cci_i2c_scl1 */ + pins =3D "gpio103", "gpio104"; + function =3D "cci_i2c"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + + cci0_sleep: cci0-sleep-state { + cci0_i2c0_sleep: cci0-i2c0-sleep-pins { + /* cci_i2c_sda0, cci_i2c_scl0 */ + pins =3D "gpio101", "gpio102"; + function =3D "cci_i2c"; + drive-strength =3D <2>; + bias-pull-down; + }; + + cci0_i2c1_sleep: cci0-i2c1-sleep-pins { + /* cci_i2c_sda1, cci_i2c_scl1 */ + pins =3D "gpio103", "gpio104"; + function =3D "cci_i2c"; + drive-strength =3D <2>; + bias-pull-down; + }; + }; + + cci1_default: cci1-default-state { + cci1_i2c0_default: cci1-i2c0-default-pins { + /* cci_i2c_sda2, cci_i2c_scl2 */ + pins =3D "gpio105","gpio106"; + function =3D "cci_i2c"; + drive-strength =3D <2>; + bias-pull-up; + }; + + cci1_i2c1_default: cci1-i2c1-default-pins { + /* aon_cci_i2c_sda3, aon_cci_i2c_scl3 */ + pins =3D "gpio235","gpio236"; + function =3D "aon_cci"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + + cci1_sleep: cci1-sleep-state { + cci1_i2c0_sleep: cci1-i2c0-sleep-pins { + /* cci_i2c_sda2, cci_i2c_scl2 */ + pins =3D "gpio105","gpio106"; + function =3D "cci_i2c"; + drive-strength =3D <2>; + bias-pull-down; + }; + + cci1_i2c1_sleep: cci1-i2c1-sleep-pins { + /* aon_cci_i2c_sda3, aon_cci_i2c_scl3 */ + pins =3D "gpio235","gpio236"; + function =3D "aon_cci"; + drive-strength =3D <2>; + bias-pull-down; + }; + }; + qup_i2c0_data_clk: qup-i2c0-data-clk-state { /* SDA, SCL */ pins =3D "gpio0", "gpio1"; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 2D1D02D46B0 for ; Fri, 11 Jul 2025 12:58:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238693; cv=none; b=Qg9/cVFeqiFrdui1TFesbHSU7OEdBdfV0cOnxL479t3WsROAcjYtV+7WtDM8FvDGz52xZzBzGD96Gvmb/7tDzZfqUbAXdWifSDQJabYAzY/jX5z/7HBt8fZhfKtXTz5bae7QTprGrCo+cke2qhY/4ET/J5TFIFZ9/rZVAiQafC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238693; c=relaxed/simple; bh=Sk+XLN+fch0oWoINUVwniKgPhQoXp0xYBRIRNEdHrJU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YsEWP+7tCdC4M+q5ccShqKoRea8FO7VG0Mpp1cr7u1w9WaiHxyYKlpzxcRLkLiYNc6o8Eu+apL0I5M6sarMEJ21XrllDCwAnZi84Moc9ZPwR9hXt3bvmSErsKmRIhPxZtUlQvTuX3heZRKIUJbsC0qSwCmZ/YQayjFbzJfeDQH0= 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=l5Mr7b+0; arc=none smtp.client-ip=209.85.128.42 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="l5Mr7b+0" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-451d3f72391so20579435e9.3 for ; Fri, 11 Jul 2025 05:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238689; x=1752843489; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=d0TSyovWiYo0zQThET59bsfsSUy3rPkQ2lfj8hcRygA=; b=l5Mr7b+0Oji4DJcT0E1aeP4Ki3WOMoLl6dVN4t5s3WQewvqVKEfSvQMaxmdx9ELVo/ 0YwGNGFzFGF1DLhXEjVNeiiLpwFV/Ierg1AKwFNIaghuyH87Gt/WV6wWvRw7hHJCSepg xJOcI+1oooPmsJ4tcUthMsz5Sszv+5iCbhweqTJBXOa12Xul7We6awWJFMQNeqhxBYzP kLciId5R+lOkEvvThkG3zG6t5Fv9i8wZAQCx8HkgM17rHpU8i8KMcIcgsgLsJmKAxarC qQIE77efGgy+WCB7rnl26EUD3Fmo1r1kttT5UJgRllcBNeawpIBpaXY0S6kcJQqzJgDV H2Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238689; x=1752843489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d0TSyovWiYo0zQThET59bsfsSUy3rPkQ2lfj8hcRygA=; b=VonLyrxuIkwCBWg0giHddytgHhm594v/LWuxcoJJV/fcM3OE2kU9zDArRCc1+XJMdJ 0FzzCx6Ot0rfrSF/ziqXoZEdiPJRne0wj/lPFkscAZCG4ZoykS2y1VDk3F7ymeVScqE0 +HGd0aCH9kXm39laFPGe+Kzyrxcr90Te+V+cpNVAv6iUGEv1wG3NR223/Rhx1UpxPMTZ uJicA03EO3h7rsnE1zWQM5KnCboG270ezDD4g+L2wVp9qIAfEygaJ8scgSvOI2VGTj77 ido1R6i4pw9q06H3nxvazuSCLkNm1e08vvBoNMUD0WMzsWvMc+oM7VkQBtrlscQHP2MP Wj8w== X-Forwarded-Encrypted: i=1; AJvYcCUYRz1BRGUZBHuEHxWtR2qY94ulLZv5qTBtcZG0ktSNLXIkU2nrXO0NucIJi/60/jugrdSh/+7v03PKNsQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwWlH52ezBgNGZfcTp21Qm3JpoBotdmpcBXWnQQm3j+8Ro0brCi JIShADDlBUIKchEXutn16JopQd4pcT09uBbkYLlu6bEguHVKMQEaDJskK96DwZlwrCE= X-Gm-Gg: ASbGncsPCZveM0VZb8SOkLs9gQLMlV21m5WvWaj+tp7eSo/tlU84gwSwQOCQf3WnahA KH83KBozj7LP3mCGzblPH7+7e2COSDtdM6iwnXDggeJabFrSbv8yUxr8vkQTyu0Ra0ZMhoyOfGE OeZ/dsDf6eoM+UwBRIaH0i80h+qe8YhiOVy5fW61p2MH5c7StOHnQGgPHG9aMqckzezeJepyPH+ Xd2grXjKr/smtBkIg6+/v9Zw5QO+fPXX7Y/qnqtU0gE8NmZ1/Mq8Alja5oic1BQgdSjthdyZ3Hi 8Cw8LSXIeZG7GkGDpDe9pIYnelc00oYDBWMy+8tNoCV2A1gkXlBuM4dS9iQAliLOoA3TQpD6slI EUsa6YIudQHbjOjv9VAAqtjqrtGA1Wl+d09hUt25eLHfCNwU1pDIbfcil8jZqT4fF X-Google-Smtp-Source: AGHT+IFw8QMth7RNEHRPxzNd8Lkx83ng6nvNC1bJ4o3fh7Hh8yer4bOnz+VGr7l+hp1XTzf7ZEiRcQ== X-Received: by 2002:a05:600c:638e:b0:453:a88:d509 with SMTP id 5b1f17b1804b1-454ec15ee55mr37137235e9.10.1752238689486; Fri, 11 Jul 2025 05:58:09 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:09 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:00 +0100 Subject: [PATCH v7 08/15] arm64: dts: qcom: x1e80100: Add MIPI CSI PHY nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-8-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3307; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=Sk+XLN+fch0oWoINUVwniKgPhQoXp0xYBRIRNEdHrJU=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpTQnI8GFdMlYF+BdvI6MSWYnrPVcz1ZMzNp nn8o0Apj3uJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKUwAKCRAicTuzoY3I OqkyD/9cc5wBQgDeWieg156Wstei4KLNf4HtxNYf4TCZpkSaLTeXIa1o5ph6q+DoXlW8GtjO4fN TXzq7am0Ia+TI3rNVY+rJ6fESUFEr9v0SguWhS4rSOYJ7P1RM2OVZ4ylAtmcqloOG2jqIwCWne4 a3I9lOaWwhHNBO+E+HBB6lvw6HO9dkcFiPTBdX6gcfaMg0Md+tmAHdlQDv3Tl0roJdCrH3IOcws ulnVsm2x97Mo2CMI9T4CgVXT/ItpsDssz8wtei+UzjRiCufz+dM2aHYpBdncxfQzc6li4v8f/7J wGxtrSVAOCO8AeMLwzP7ytJ1SeXLm8btVLhpT6Z549FkvjCHkDnHCl8P4uKMgmC0wDLFJmkmKbr 3aIXBJIASWxxqov++QPyvLRLrqKaHIOvejrTXBkqqQ/1guTQ9IA7gQ/rD2W/Qv2DFa7aloGTD+F Tbob1qtO6C6dPGDmoSvdfKtUTWmVKGuZ+Oqp/7Kr+OPS9wRHyYKgD002ZzGkouEHJO+ZrjARi29 HMOzm2WNDImoY375zg4vfQn0vvvCVfgd5bH3twqsb5MUz/wZO5fUSo5DRzm8KV1SjDkVce7cvvc Y9uRf9BTvr6NvPgytVHgCTxVAr1yQUn19DgoTYVrGhCdpC+LU+KcgRiPNakH8Tv9JOILVnTCnhX SqkB8oXNcutBwcA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add csiphy nodes for - csiphy0 - csiphy1 - csiphy2 - csiphy4 The irregular naming of the PHYs comes directly from the hardware which for whatever reason skipped csiphy3. Separating the nodes from CAMSS as we have done with the sensor I2C bus aka the CCI interface is justified since the CSIPHYs have their own pinouts and voltage rails. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 88 ++++++++++++++++++++++++++++++= ++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index 41245e8592f78edf141141f2f5b7c5b841318f46..e385d6f329616360e089ba352be= 450c9eca6aab6 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -5244,6 +5244,94 @@ cci1_i2c1: i2c-bus@1 { }; }; =20 + csiphy0: csiphy@ace4000 { + compatible =3D "qcom,x1e80100-mipi-csi2-combo-phy"; + reg =3D <0 0x0ace4000 0 0x2000>; + + clocks =3D <&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 =3D "camnoc_axi", + "cpas_ahb", + "csiphy", + "csiphy_timer"; + + interrupts =3D ; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + + #phy-cells =3D <0>; + + status =3D "disabled"; + }; + + csiphy1: csiphy@ace6000 { + compatible =3D "qcom,x1e80100-mipi-csi2-combo-phy"; + reg =3D <0 0x0ace6000 0 0x2000>; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CSIPHY1_CLK>, + <&camcc CAM_CC_CSI1PHYTIMER_CLK>; + clock-names =3D "camnoc_axi", + "cpas_ahb", + "csiphy", + "csiphy_timer"; + + interrupts =3D ; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + + #phy-cells =3D <0>; + + status =3D "disabled"; + }; + + csiphy2: csiphy@ace8000 { + compatible =3D "qcom,x1e80100-mipi-csi2-combo-phy"; + reg =3D <0 0x0ace8000 0 0x2000>; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CSIPHY2_CLK>, + <&camcc CAM_CC_CSI2PHYTIMER_CLK>; + clock-names =3D "camnoc_axi", + "cpas_ahb", + "csiphy", + "csiphy_timer"; + + interrupts =3D ; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + + #phy-cells =3D <0>; + + status =3D "disabled"; + }; + + csiphy4: csiphy@acec000 { + compatible =3D "qcom,x1e80100-mipi-csi2-combo-phy"; + reg =3D <0 0x0acec000 0 0x2000>; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CSIPHY4_CLK>, + <&camcc CAM_CC_CSI4PHYTIMER_CLK>; + clock-names =3D "camnoc_axi", + "cpas_ahb", + "csiphy", + "csiphy_timer"; + + interrupts =3D ; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + + #phy-cells =3D <0>; + + status =3D "disabled"; + }; + camcc: clock-controller@ade0000 { compatible =3D "qcom,x1e80100-camcc"; reg =3D <0 0x0ade0000 0 0x20000>; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 5370A2DBF48 for ; Fri, 11 Jul 2025 12:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238694; cv=none; b=rznYqBpjleM2Eta5NsjuR3DlnHCj1H+IloUvjjIbpBMOQswBraya3xFtu9nWu6SLd/7fuqwEFDRAfnGbyUbnhnkKe3z2JGzYsnmUU12FToxXgI2Gk9T/9I/xt9G6xC1mDC786PZ4lMYcXLwh4gq89jurLoG/kS5/W7HHLbMwVAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238694; c=relaxed/simple; bh=afR/VpOG1z/05Kmbd1Lwd5KUUa2slFlpn5oWxYzHcV0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ijhcr+QaY7d+EFMJ9+NdguCoKCQO5S30DOCfLbrOlt7mfZG4TSWKb2zEKbbowNtofdI7C//GuqhDlFAgRDqnxXGkGBbpbqVEEcPHlUoyoaVkC8oWfDJVM/h8aeUkr0XIAzvawP/IP8mBbVhma3YNP5ylHIi/s2W2Hwddo7DupfI= 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=BzNKnsQh; arc=none smtp.client-ip=209.85.221.49 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="BzNKnsQh" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3a51481a598so1183356f8f.3 for ; Fri, 11 Jul 2025 05:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238691; x=1752843491; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qgqmdh8Hqa4doV4MBCFCiNXZ92zEgFq+2zXdl7tC+X0=; b=BzNKnsQhRJcCPYacQuoEF2MG0v8RxTEnwL8cJP01C9YR3fJTXo+9ou1fjq704ucDyQ gO2CYbORWquTDjAeSpq17Wi4X477RtlJg1FLh3s+HHG0cEgBVto1i1Pso19HuQl0h3ZT Zqr7NPldKj2rnKEuYXQ9bDVt287m9rye+uiacIvwTJHnIORMzpob5a0QPMt2gbkcyS4d dyvH2aKH1hkDzdD1aDdRDHpN7i7qNUx3blGZ3IVWPqXbZ2da0FAdIcMfC/NvYD10uLGD gFQiznMbo91NiKfHOlVNeUujpppNqVWesZj9EY5n6NFXOwHHmEMsf+k9Hqy0f42BYMfE RL+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238691; x=1752843491; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qgqmdh8Hqa4doV4MBCFCiNXZ92zEgFq+2zXdl7tC+X0=; b=eaAwHq7KdP9LCZ8rxgQTF7fiq6l/DIedD4ifxlTe1LJ8VLAlRZccgIJFrqKO2GitUy qfBGL3ahsPUme7ze5cfZzK3s460pD1W4/7SwOHwQ0qb/18h0oGw49neliGa07BPyvuvt sv05J0Fp/vb60cud8iHgDrXZ6597DLZqUbPXjX3iMfeyGD/dPzug5D0/WSIlB338eHp7 iL1YVkbTUwHo7vbPwZgcPzbA9zK9n4RNV+aeq4ZHbezt3W/9ljwLIgkhEXvEqCC0JLFi 4ebE6wnPPZRhqNyUuUvvIc3JbRvAYZej+PzW2xAoZ6vTN1iNcwa79FuxK5/V0G+eSpdX z6Aw== X-Forwarded-Encrypted: i=1; AJvYcCUpZmeLPHQiKyFXOnXC3dMwS3k7mcUHLPm/zhAOtBCXSGcuqZfYbY4aOmiNKlH2WWxrqYWaiTZTiARi8/8=@vger.kernel.org X-Gm-Message-State: AOJu0YwOXdGiqmWeE0jI9fVL4amDlhKWqgkQI09OsTs/D2QgRY5bVUFV XIj7Kl78khcVeeSW98ZtJIVib3tN/Kx97vh4JiBs+kOnBWALBy07MW3pQegMpBo3rrU= X-Gm-Gg: ASbGnct3vyiPwUczaR41aE9TCgNY8/APnJ6bzR/t4Bn/iM+HPywVfMFO81S0uSVNgsu aO+HOnGrq0B5q02SEkyOzuoHRapMnS2bM3QPXL1djovx8H3uWtbyissOVrl0BPS+LnXv7YuIQbT 0AZiNKKa12eQufrKIdmkTRBIVGJUe5qM98nqtfc1frf70APFb3ViVp21fRTkjc81UklOvAa4MOh 3kA2WRISGLf+j/Bt1Tu/8xlMzKD686Ya/UsxMcOtmi6Cs1PqQOHn+Mf3000Zl1PiZJqBL7b942y i4Swni88eMMhKEJSGbJVYZ0yxuPaXw+hhvxUa+adXLly81lAdANtWNnqrXjZ+/NIiDMleN0qmJF WiP4rzVDoj5EFD6Cc6C/5xAD3DQsVrYLbfAue7qjSfr+sbE9rlcgzyVfEaKBKED4w X-Google-Smtp-Source: AGHT+IFH5xU7eCi3Qw029iOutAbx3qiinPlumEFqhOvJWzstyzzOkWTh2NvwX9QI/3octWtZKgbqnQ== X-Received: by 2002:a05:6000:240a:b0:3a5:8a68:b839 with SMTP id ffacd0b85a97d-3b5f2e26c14mr2587744f8f.45.1752238690658; Fri, 11 Jul 2025 05:58:10 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:10 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:01 +0100 Subject: [PATCH v7 09/15] arm64: dts: qcom: x1e80100: Add CAMSS block definition Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-9-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5338; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=afR/VpOG1z/05Kmbd1Lwd5KUUa2slFlpn5oWxYzHcV0=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpU9v2K5drXP7fl9A5a2ajvc5gVh8SRZi/ds jwR2NABVlyJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVAAKCRAicTuzoY3I Ok9oEACp8jJ8AxFh6FZDZRCtFCaLOqa+JwWC1Sf0ztEFidYpRrWqFvYXCy8Kv/fKyqP1P8g9+dT 6a/Bab0G0m77gHb9YmtNgGhOcZFcdHML+xmFP3oJH0bpHqt2obF4vigLCBfSRHh/HdxzRANMoS2 GqFik4NCIOOAhRPL5lGIeMMVTABxrFp8ALwdELSQFZshzK1wKMrHW0qVPvmNq+7Ie/FjxoWHjRm Me9iSL/V1ACpR+P0X088K6jFk/BmZFHbbCuxhXzk17T/qRoA/FWskUqpbMDsew43hdmXmQPnGxp K51lYYpi1wC9swliJxgwmL4+hLeSdnIqlnDxMUzc83P709Cb68sfSSfg2Ke9a8IM3Piy4JCl1fy 9MTsJNMI4aLOb94g9fJn0Hg8E7bqX2krU1c9lcmnyTgxks7XOKu6P9BUI8BYCzPwxHEhCl4aDwG BR3wZAOJaklq9KcT4ILktIDXcvLJicDRZhORh9JVOff2ngeRxaZi8aiVdjH4JvqIUffwl5f6srn HbvNse6+XKcEJaHBH5Xb1xbR0LB4gxNpRc+PYPicrmAL+yPrDt+1NqBS7Lj9wIC4vtZvQhkVoKG I2iSQkImlric+9zN9VfSJQUsioTqcUBXAPOSu59H4csWmxF1Mci1SzURrbqFVQb54CgjrCXUSKr ITOosbQieDyp1NA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add dtsi to describe the xe180100 CAMSS block 4 x CSIPHY 3 x TPG 2 x CSID 2 x CSID Lite 2 x IFE 2 x IFE Lite Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 158 +++++++++++++++++++++++++++++= ++++ 1 file changed, 158 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index e385d6f329616360e089ba352be450c9eca6aab6..838bb1b50973332dea6d0bd95fd= b979dc319e98f 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -5244,6 +5244,164 @@ cci1_i2c1: i2c-bus@1 { }; }; =20 + camss: isp@acb6000 { + compatible =3D "qcom,x1e80100-camss"; + + reg =3D <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 0x0acf6000 0 0x1000>, + <0 0x0acf7000 0 0x1000>, + <0 0x0acf8000 0 0x1000>, + <0 0x0ac62000 0 0x4000>, + <0 0x0ac71000 0 0x4000>, + <0 0x0acc7000 0 0x2000>, + <0 0x0accb000 0 0x2000>; + reg-names =3D "csid_wrapper", + "csid0", + "csid1", + "csid2", + "csid_lite0", + "csid_lite1", + "csitpg0", + "csitpg1", + "csitpg2", + "vfe0", + "vfe1", + "vfe_lite0", + "vfe_lite1"; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_NRT_CLK>, + <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CPAS_FAST_AHB_CLK>, + <&camcc CAM_CC_CPAS_IFE_0_CLK>, + <&camcc CAM_CC_CPAS_IFE_1_CLK>, + <&camcc CAM_CC_CPAS_IFE_LITE_CLK>, + <&camcc CAM_CC_CPHY_RX_CLK_SRC>, + <&camcc CAM_CC_CSID_CLK>, + <&camcc CAM_CC_CSID_CSIPHY_RX_CLK>, + <&gcc GCC_CAMERA_HF_AXI_CLK>, + <&gcc GCC_CAMERA_SF_AXI_CLK>, + <&camcc CAM_CC_IFE_0_CLK>, + <&camcc CAM_CC_IFE_0_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_1_CLK>, + <&camcc CAM_CC_IFE_1_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CLK>, + <&camcc CAM_CC_IFE_LITE_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>, + <&camcc CAM_CC_IFE_LITE_CSID_CLK>; + clock-names =3D "camnoc_nrt_axi", + "camnoc_rt_axi", + "core_ahb", + "cpas_ahb", + "cpas_fast_ahb", + "cpas_vfe0", + "cpas_vfe1", + "cpas_vfe_lite", + "cphy_rx_clk_src", + "csid", + "csid_csiphy_rx", + "gcc_axi_hf", + "gcc_axi_sf", + "vfe0", + "vfe0_fast_ahb", + "vfe1", + "vfe1_fast_ahb", + "vfe_lite", + "vfe_lite_ahb", + "vfe_lite_cphy_rx", + "vfe_lite_csid"; + + interrupts =3D , + , + , + , + , + , + , + , + ; + interrupt-names =3D "csid0", + "csid1", + "csid2", + "csid_lite0", + "csid_lite1", + "vfe0", + "vfe1", + "vfe_lite0", + "vfe_lite1"; + + interconnects =3D <&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 + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_CAMNOC_SF QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_CAMNOC_ICP QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names =3D "ahb", + "hf_mnoc", + "sf_mnoc", + "sf_icp_mnoc"; + + iommus =3D <&apps_smmu 0x800 0x60>, + <&apps_smmu 0x860 0x60>, + <&apps_smmu 0x1800 0x60>, + <&apps_smmu 0x1860 0x60>, + <&apps_smmu 0x18e0 0x00>, + <&apps_smmu 0x1900 0x00>, + <&apps_smmu 0x1980 0x20>, + <&apps_smmu 0x19a0 0x20>; + + phys =3D <&csiphy0>, <&csiphy1>, + <&csiphy2>, <&csiphy4>; + phy-names =3D "csiphy0", "csiphy1", + "csiphy2", "csiphy4"; + + power-domains =3D <&camcc CAM_CC_IFE_0_GDSC>, + <&camcc CAM_CC_IFE_1_GDSC>, + <&camcc CAM_CC_TITAN_TOP_GDSC>; + power-domain-names =3D "ife0", + "ife1", + "top"; + + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + port@1 { + reg =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + port@2 { + reg =3D <2>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + port@3 { + reg =3D <3>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + }; + csiphy0: csiphy@ace4000 { compatible =3D "qcom,x1e80100-mipi-csi2-combo-phy"; reg =3D <0 0x0ace4000 0 0x2000>; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.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 D4E8A2D3226 for ; Fri, 11 Jul 2025 12:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238695; cv=none; b=bJbxKUC0DNLtfittMO1O0uMS1UzuxJ6AZoujCbEjL8PSjY3kyhlmh+K9LLI/iei+QLeH2O5dAdJP+sjKuKPGjZ/CeDX2UngyKLdffYZC78TmwGrsd9HeWsR4cloj1C9eTfVdVWeiuFKWAFzqz6j0ibLwRgaIolGoPjmTGGfdI+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238695; c=relaxed/simple; bh=DC8lQQgBhGrUjuVpvDAzUOPXyBUoKAMOWS8W0IK286Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NU6YMK+/b/2XZ5VErycWj9+5GMOOPe6PDsZ+wS+Z6EIpFBIvvUaYUdiuTo7qnA7xCfQvMGxjmN+c0xzKOQeCcXhT2oV/I6XNpYpazC71hpBVCkuXtrog25lCKTlfoF7jB5KqabgIvf3SNKr41+JS8NsTBi8V8iBPEvqUYFZt6Zo= 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=grU52zbM; arc=none smtp.client-ip=209.85.128.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="grU52zbM" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-451d7b50815so15330375e9.2 for ; Fri, 11 Jul 2025 05:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238692; x=1752843492; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4CMfrZlT6BOfDK51FjmKuZQYkC8CEqLLJ+DCN6w6Vww=; b=grU52zbM4frZhFEMQWwmPH1auPRmh/0wGljv3Kyh2RgyLPj8nuXmqcnbnUPo70fAmr oaeJywO2eU6NqPakdEo04Gl+QxVhWR2LZDBi6GPA54EJMrCf7uI4yZXkyBqzJ4fz72nZ ey+09J9red1sDMl3uaQbkerhTmGzvSz38odLV99+NLEZAEUvPm53ovRhTpG8SZXMfPTj spw7a6uoKuElhfe6huS8GNuiSHrrIv1CAKMNaaJ/+qBjK0pripPvvYZ5ExnccrQHLA53 1PY6J0dIHVhNmfHpBU2tBFBQ6BJS9ELQ1QDTgzFVU6beLqZO8Wyu3ZdJdPe7JNov3Kh3 0Wcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238692; x=1752843492; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4CMfrZlT6BOfDK51FjmKuZQYkC8CEqLLJ+DCN6w6Vww=; b=kuDMyLo4qUGpx1aoyl9sbJnpuI3z+qX8XJTCKnK0fi/oXDP7BTTXMMsD/smL/jks/9 io4IjcJbWpvTDXsynz4eFLjsYMBJ8tzub6cM8+SDXXPwmWrz4WSN0Vhft1EASuo8uuAJ Mz19FjozBbaWhe2nA/sdHDPoWuGQWp2oXwqo5BgLfTCFVa9ZpxpisE9XmWs71n35SegI SzSdXJHWyFZTcK/q3lqUucINPeX6u+50VMAQY4MoJRtRWKhG455aO65FjYl3+cUOavaE apetKCmWYPxovQE46HC+J4+lV5J6Yn2LZmioYhaJ4dQc+LSJSbSixIhPZY7CR3pEpDGR Q7fg== X-Forwarded-Encrypted: i=1; AJvYcCWDeZnQJY7aT9c1/VGMLlgpxbr0kSUjvfE58ixJoSWqXPZS8I/du/CRf/teJZG9P2u60hnrlKqDZyUrpVI=@vger.kernel.org X-Gm-Message-State: AOJu0YxgHucOdAcR2gQajx4nTZyH8AMvZURh3oNaB7eU86A2Na4FGwel +7lWUsTpo64BIKeYT11IiGD0cyoU6BwO1xVt24zWGjQPomb3avARV0/pSMikECaPvPo= X-Gm-Gg: ASbGnctt/ZllvhEwEWvj1fyU3+/t1VeyuqQUkrGlSiIafnT5SXOekor5eri/LkwDEV3 TnJ0tNyukH+kZlqlXYm1w48kMuPf6SQ23PQNwt/Q91rmdeyTc/NmktVP8nf3Hwqn5gU6mIpeJ5L zPgcYj0IGOhrt2W69f6mH6YZ30dJmj2C2XFZdWnL52uWplNMAV7w8J/6DuWG0XsdMb81SvbjUNi 2dkcIVpWgDI+iaqsCwlb1E+Te17Z5k/VffCpAWfIW6olrD5ChV5ZiupoP1hbK6kFmA5uZfg2xgt ct+NOTuMwrFWirCY2iNFzUcceXmW7qMHEjfnCEVU8/MROjfdv5VHqKsooQrHSsP+W8t39+cF28i yAYCBSnk2aO/tkLF7yLiRx9lTbdz1n3gAegzBm7Ul7W5gbSTi8phnR1Bf8HY8gqNg X-Google-Smtp-Source: AGHT+IFeN7RssZ8OZq46whVzMLk2ZaK0VONX5ojCESZtAHH3N+yYFixxxLG2K5wteMhwrNLjZyD69w== X-Received: by 2002:a05:600c:608c:b0:455:f6cd:8719 with SMTP id 5b1f17b1804b1-455f6cd8ac1mr5110775e9.20.1752238691851; Fri, 11 Jul 2025 05:58:11 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:11 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:02 +0100 Subject: [PATCH v7 10/15] arm64: dts: qcom: x1e80100-crd: Add pm8010 CRD pmic,id=m regulators Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-10-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1602; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=DC8lQQgBhGrUjuVpvDAzUOPXyBUoKAMOWS8W0IK286Q=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpUVxNLCyGgV/xKZbQ373RcoCEKK5iErK3Oa +LkMmEITyWJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVAAKCRAicTuzoY3I OqPyEACmzIqvaXkIDWbD/Gln56eur3/lpZDyJDaOwABLvZO0pAML9msun28tWxabKpb8buWiJtg l/tt6tt9tjAH+jjwVpqWDJSWC7lqAw48Lh7fndVbB9dCP/6cM8Pgf4Jj5DTIUvf9v4F2sWAvClc kWU664KVXvulo1FhfOHXCxD6WzQmoZJobKqRCMPZ+NEIsmshZDpU9LVxQUcwlPl4bP/aC4/gTdT 6vlxB6fx2VJqyuRLzmL+KjVqr76W249aO7bxcbPdMCqLX1iAMNL4gfzAuVuJ28GGiq6AyeKti6L y7+EFGa9iibgaKee0Uyeuy5RSvHzi5mnQoZcfOOtsWVIqD65CauAA10uX0WBYk+3UoYmEE5OmCP 4kOdr4t4Kg4Q+SW4Th0eaJ0F6ignNn6ClCOXqIswGQMzllN9vyY2EZdxwzWtPhy7qONQUQaGYd7 baaTKPRcEFvjfGr3/8UnxvazrVhUrurUxAa1qZtm5RPoS+IC74MSfv7ItqdSwIelIQkuzfxZ+w+ 7pTz1PyX4LMsibwnQJHEae/0PFToK4v/NJGFTPmuTLxg0U3rQF16hdAeXpxKICQzeETbjXNd8FS NqKX04AF6hARl828nKdh/jRhVKEzTswpiLYxyTP82Xg7aJzWUrAJc0ot4Pr4GbvwlDA5XtNlvCf sQ7g9lCmwozagpA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add pmic,id =3D m rpmh to regulator definitions. This regulator set provides vreg_l3m_1p8 the regulator for the ov08x40 RGB sensor on the CRD. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1-crd.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1-crd.dtsi b/arch/arm64/boot/dts/qco= m/x1-crd.dtsi index db87b9b5be63d4fabf5ced20b23080a1a49b1207..08268f60c305cd69baf937fced6= d37f2ea788b62 100644 --- a/arch/arm64/boot/dts/qcom/x1-crd.dtsi +++ b/arch/arm64/boot/dts/qcom/x1-crd.dtsi @@ -960,6 +960,36 @@ vreg_l3j_0p8: ldo3 { regulator-initial-mode =3D ; }; }; + + regulators-8 { + compatible =3D "qcom,pm8010-rpmh-regulators"; + qcom,pmic-id =3D "m"; + + vdd-l1-l2-supply =3D <&vreg_s5j_1p2>; + vdd-l3-l4-supply =3D <&vreg_s4c_1p8>; + vdd-l7-supply =3D <&vreg_bob1>; + + vreg_l3m_1p8: ldo3 { + regulator-name =3D "vreg_l3m_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1808000>; + regulator-initial-mode =3D ; + }; + + vreg_l4m_1p8: ldo4 { + regulator-name =3D "vrer_l4m_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1808000>; + regulator-initial-mode =3D ; + }; + + vreg_l7m_2p9: ldo7 { + regulator-name =3D "vreg_l7m_2p9"; + regulator-min-microvolt =3D <2912000>; + regulator-max-microvolt =3D <2912000>; + regulator-initial-mode =3D ; + }; + }; }; =20 &gpu { --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.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 ABD862E0415 for ; Fri, 11 Jul 2025 12:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238697; cv=none; b=REXSvviRHhX4+6K9eVlk1XSrSo7pgS+vFcvOk0tcG8BrfPel2z3YMBILRpCsIo4oCXx0ahPOXPL5qJZwUlQQusZh6kGLgrZELEDFr6x4xhe2BVzTVzHi3s2wGqTnEXwEovJGcVg0Ct8oL2cTGYUGuEikqtl7paj+1rvieioKIAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238697; c=relaxed/simple; bh=LgmLX2RZ4X74crWj3cWM7ysfcUms+MkA5YpXJ0oww+k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ty4b8M8I0PjC2EGE2q/l7V0lRgb/jS69YlIYuGxbfSA6UBHkA2cQEwzlaNL3hJS1pTkZ3BDfQcwNehcC56RrrztNFZ1vrNFksM22Rn2pt0fDce9afLMs9F2GUUYJ3SQvKn0DR349cUHEjMNwqJn2/F5m4lSFmYsUT/LXGjC/Bxs= 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=apYSwzo8; arc=none smtp.client-ip=209.85.128.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="apYSwzo8" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-45555e3317aso3916595e9.3 for ; Fri, 11 Jul 2025 05:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238693; x=1752843493; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+v3EVCAyFusaLk3mZgTj27fJdcuFLP8tgaOmyEGMO98=; b=apYSwzo8GOYswXWU+tEJXi9Xi/1RDNQeQWuvf6wasldrmadL+oagH/+V2x7qCawtUt yQrPHuMrKuwaIiEkL7J9FEKkiK1RwwVCztF3Rcf6XvhM5heqQTGPUp1AZvJpUs2yOj4u AYi8Uq2FDkFB3wJ4VzT4ai0hkdgobeyEKnV7zOPM68QpK5bB5qlC8EmsCnY8N9guK9/e mYqaYbXKAwga1gQ9ffO4huYYSKmPQ9hYDNZBs7JHUyjLDyNFyipqd6C/QAtDfqdASGpO MrFL2n3dSR6S7OwR6+cjobMGRTok188wM8zte/McYjQjdUQ3SGXVxsdmvp5XdCXDgHVc rB6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238693; x=1752843493; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+v3EVCAyFusaLk3mZgTj27fJdcuFLP8tgaOmyEGMO98=; b=imtR+A71PShLg03OamFXYMzgCORdeYHAtzCRbsvAMHtzxuOcTTiEPEk332RbXDVq1+ NrkH49Cb9lWaaAN4JgDiLD5nxTJNTS/KhFXjZoZVbPmeoSxf9Ug+F9csTF6YYi/3mM6I H+96+19aQpTJwnFA79wy9QX3gNQNy7qzOHKzgKBrtvIDvyZt3c8tVNUsxYy8V8h12/LQ i3soHCKZBB3XOdgU1W5tRiduqVhHP3Fn5wGQyRt95VqPNUDYpEj8IBTObBbMb4hVPpZm Ul9aKlKA0T7eDLQRPuemime6ViOAp7h+YJwv6tpYcxg3ooX44BpNmtZBSYw+WEzNIp4n ZI7A== X-Forwarded-Encrypted: i=1; AJvYcCXwketFr1PYxiJLoaUcNjlUmKqUOGtrKN6iIP0vMPNxoxQD3Qq0EBMdPvhQGStyDnAAXsen1qVPoGTX5qQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxLUrp3BK/KR12KFxszF8rIMoJN0b0MgWNKcqmj3jeM5lTi3yoH rK4tSkUjRWemR8VyEOUirpfvnVqSFRyj0KG/p82PB6UtoU8r69497hT8TE13pmPXXzg= X-Gm-Gg: ASbGncuC/nOckH2uHdA4Pr97v2DL8sfVTcQbvP2ER5EKi3u5WJiMAYgJ/sd3MdBha8t VIo54egTvglteCs5td1EWLcWSkwiOsQfVM+qQMBz+X0Eh78l07G/G8n61VEjIbiVhkgxbve1ZuY qBiDL3HTe2dnQU3hG7B3b/HFUQtFffz0lgLk1lP4yozYfPG9PVW7P1ZfCnGcYUW8ny3D64cp47A cwrLeju4pVXu7rY3ci2Zd2rG+6QqQla0pD9tzSGAoNHcxMGJlcXSEG1ZgS70cJ5UpY9LKApj0hf G5w/k9vrZo4b5NRW967kF6DWIKnVJ/FbEs+mVCGxc5Ppu4bKIbqvoMAMZGS5y56ROziPWe3eJpt MaurR+Yb0jec+VrNFdg7P+HkvCNGnwlLFgeWe7SXnybNur/KGTWQaZ8upKpUQu9DZ X-Google-Smtp-Source: AGHT+IFcUrL4U8BMr0ery0/fbdYJur+qbwccfjgkJyTk+hxObOyLPZL+GDqLrqXXn2LckQoe02uDyQ== X-Received: by 2002:a05:600c:a111:b0:455:f6cd:8703 with SMTP id 5b1f17b1804b1-455f6cd8a4emr4821665e9.31.1752238692986; Fri, 11 Jul 2025 05:58:12 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:12 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:03 +0100 Subject: [PATCH v7 11/15] arm64: dts: qcom: x1e80100-crd: Add ov08x40 RGB sensor on CSIPHY4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-11-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2618; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=LgmLX2RZ4X74crWj3cWM7ysfcUms+MkA5YpXJ0oww+k=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpUJ/oNArjEu8vlINVYmk0Bt78iBMUWoXJmM MeayObaeNKJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVAAKCRAicTuzoY3I Os8CD/40Lx4A93Vu1OHr1cQG0dkBFN5D1Z7OqePE2tHQVtU7wXvnFt5RZBGU2toYGraJ3Qa7SNS bHLSi9QunZgANBZlqP4fwm+RzfHdDCwdyCgcEdaK0k6OO/3el7c2PZRqs997/7DuJor4i9hiskA mb9nBWRhaZ11ZVw/rR88oaRV73M8iq3pgXf9u/Z2uIhbFbjZ9lkD2y3susuDsf20VNz2uIUsdYI tvo7mVpA1pihuFOA2P7/0jHd7EtSYoHZzDOFG844+Zglnk7bcfLo5S0F8qDo111Ibl0smSSDX0Z E+ZshY2nQqUIjTsSdhMDNyX67eJBvrYtYIooIJhaFn5KMkZQcmAyyxzgHVvNfZUetSSwl1yOFIF TXXyyRWDsO7+kRAa1PGoG63gmIUUA1MMGBBSMcFTtuyRZGWtevRgJr7TE65XR/wEqWUHSnJ3Upz VJNDlqC5R7ZAgO4bva8cC63+3qSoMMXDYYmwn0CreAsfMg+C5++rWaLxO4xlnWrkOZrC6vDesk/ 6h7uTx71DWc8/sE5b3xSjfeLFPYQNR90cj/PtaZEC/l4VaKTbBLrpHb8SFX8JbSzPqpXGKq0n3D KQWvHji75yycEpjUkvTuK/JkcBG0gA0KZrNFWuEZWunjdoLL5iSB6IzGcXPzMexlv6k8lyHK2CK T1REWftHPQ+V9rQ== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Define ov08x40 on cci1_i2c1. The RGB sensor appears on the AON CCI pins connected to CSIPHY4 in four lane mode. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/x1-crd.dtsi | 78 ++++++++++++++++++++++++++++++++= ++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1-crd.dtsi b/arch/arm64/boot/dts/qco= m/x1-crd.dtsi index 08268f60c305cd69baf937fced6d37f2ea788b62..ace4ab2b9fc0faac8233a40220a= afba200ff05d9 100644 --- a/arch/arm64/boot/dts/qcom/x1-crd.dtsi +++ b/arch/arm64/boot/dts/qcom/x1-crd.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include #include #include =20 @@ -996,6 +997,67 @@ &gpu { status =3D "okay"; }; =20 +&camss { + status =3D "okay"; + + ports { + /* + * port0 =3D> csiphy0 + * port1 =3D> csiphy1 + * port2 =3D> csiphy2 + * port3 =3D> csiphy4 + */ + port@3 { + csiphy4_ep: endpoint@4 { + reg =3D <4>; + clock-lanes =3D <7>; + data-lanes =3D <0 1 2 3>; + remote-endpoint =3D <&ov08x40_ep>; + }; + }; + }; +}; + +&cci1 { + status =3D "okay"; +}; + +&cci1_i2c1 { + camera@36 { + compatible =3D "ovti,ov08x40"; + reg =3D <0x36>; + + reset-gpios =3D <&tlmm 237 GPIO_ACTIVE_LOW>; + pinctrl-0 =3D <&cam_rgb_default>; + pinctrl-names =3D "default"; + + clocks =3D <&camcc CAM_CC_MCLK4_CLK>; + assigned-clocks =3D <&camcc CAM_CC_MCLK4_CLK>; + assigned-clock-rates =3D <19200000>; + + orientation =3D <0>; /* front facing */ + + avdd-supply =3D <&vreg_l7b_2p8>; + dovdd-supply =3D <&vreg_l3m_1p8>; + + port { + ov08x40_ep: endpoint { + data-lanes =3D <1 2 3 4>; + link-frequencies =3D /bits/ 64 <400000000>; + remote-endpoint =3D <&csiphy4_ep>; + }; + }; + }; +}; + +&csiphy4 { + vdda-0p8-supply =3D <&vreg_l2c_0p8>; + vdda-1p2-supply =3D <&vreg_l1c_1p2>; + phy-type =3D ; + + status =3D "okay"; +}; + &i2c0 { clock-frequency =3D <400000>; =20 @@ -1608,6 +1670,22 @@ &tlmm { <44 4>, /* SPI (TPM) */ <238 1>; /* UFS Reset */ =20 + cam_rgb_default: cam-rgb-default-state { + mclk-pins { + pins =3D "gpio100"; + function =3D "cam_aon"; + drive-strength =3D <16>; + bias-disable; + }; + + reset-n-pins { + pins =3D "gpio237"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + }; + edp_reg_en: edp-reg-en-state { pins =3D "gpio70"; function =3D "gpio"; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 0CBFC2E5432 for ; Fri, 11 Jul 2025 12:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238698; cv=none; b=q01T7wciHWNaCPtQWRM4cQGBKcnhDLT9N27qBFgILu3iopVelYBj+FFU8X0hX4NVFvdCfGzhUcIUK3PNvkk03Q3zbdoZGIQ2oTgUzh3RyO/LlJAqC4rQOsFGS/OLW2iWiAH57c5dz9sMGDFGkEGSGxRxhL7GY4OjNb6VofYXEVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238698; c=relaxed/simple; bh=uSDaDaav64zb5yYxypWWibFdUxaoPe5jKMH1pUZLk94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=keuBEJVWsHFJnBwXJNlqiJwimHyfNSINIE5/j2PT8dLkkdGkDt8z9kK3K6rX5DBU7mktiFZStz3G7Qx+V5R0+6had96PXA84QmQG/CJR4OnypCR0dnphRNlyntMnlAbrMhMcDcxIyjF6wxX4BJ8Uf9h8UlwIaBn7c1+yZaFXbwk= 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=Ds023dpA; arc=none smtp.client-ip=209.85.221.49 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="Ds023dpA" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3a53359dea5so1246718f8f.0 for ; Fri, 11 Jul 2025 05:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238694; x=1752843494; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dCX8cXoRpgVx4P5Io0U7mbR/WruUP4Knm+tOtVt+Hmc=; b=Ds023dpAjFm/8I06Fklf696c9WE0RAVjIBUQ89HTFkasW+08G8FoeyDTAVghoEk+NU iofxdTu7cIgp0zOiTVQJY481r93Nhhd9jUeFN4/vtN9+MRQ7bV7RJng5SLXiEKSBxaGF qHbgxTWf1juZZnYmiT+BrHk4nJgDJIEkmxTUkWvTuZKCQGhp2kxo8BVaPsX9vVqLOBee 6CTHyeUinLiMm1Ub/s1mXAeNwC4Hx/+nIxZGdpI8gvI8qdSi/BDDirJWyBaFcusQjHuC Ckm8JarB8u8j+pxroTijwOa4GfVhK8uwXBeuBMRXWJq32VK7g+UmQHP1yN7iyigqpYFI XhyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238694; x=1752843494; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dCX8cXoRpgVx4P5Io0U7mbR/WruUP4Knm+tOtVt+Hmc=; b=L4P5QNc2btcd3Ia3yGvTT0ad5JLzBPghlsR3DMOth05l3PK6ZvJ+8yxh05sdQF3NNH OVZCgsKvRdTIWbbSEZyUT0pOcYVIy3VxPg67c5A2DDBK9G2OXQYNDOHVoIiVVODe1i8I sL2Qk8tu1+1Ae5FWNKI2/QcKPoAl0Xi4Kr1TTjDfwjNokR9N11yGLAq/Wi2FnBbAOWOM vrNyJGDvGguPUvpWIAZ7ly7ZKuz9zWR9L4LJxQDGOXMGrFjetXd2BV5EbKtyDrIE2zSy 6rQCQ/lLBP+ZjdY6Wz6Xs/UNHpfPXF8fV29O+bHCeIXBPTZ8VHwQG+MVDBFX4WYz0FDz F7QQ== X-Forwarded-Encrypted: i=1; AJvYcCUI4HEtMcMhrF4aIBRvobIWq2bLH9U2I+bPG28O9/NnHSoUhB8flWZ7suCfEkmWSVA39nUjNnGSF2I1z8g=@vger.kernel.org X-Gm-Message-State: AOJu0Yw34ACBdCfxwMtoY8HAs5lFfQ+jovhCfa2bZGYdh8NUcVjxU+WP JZAc2ZCHomXutcZESN7j2fCQ9VPDlojBLWjxbq2VfMSJsCNHE3TVEumIE6hThEAXonI= X-Gm-Gg: ASbGnctj3Lz7mq2S6rJuHbdXQGWn9f+Ok8qHKvWH6BzMl0S1PlkC1y6/eG+wnHN2XK2 C7e9CLwd0//gynj4LG7PovFqGbF8RaAVXmuFdRKGZJkIta1XcKl39dJMYa5ddMTZDT4YmdjKjXA P8uWgklY/kDzFd/cxCw2sOyGYxEVahjVbwawzm+CTKUCrRDcnyOw8Yww0f9VoQbDTrlfDLKcTL1 Tdff64nkQ2IUJVxGlopSkwNDsDQwZ/QfK+vpc13KRmfB/2gmWLtnNpIJVik5kHWvkpbn8NGsHdY zjtEyHfgm+kK+isfM5uYobgFnjAdBNZE0Kfo6vYsm9RGba6u0yt4r+O5oTgPehw12iliHFyq6v3 YHD++yJY//ynl8R1WViRm4Zj6BUU4f5z2wL0VgzXbzwAsKRKJp/SNFPnp6cZqZS50 X-Google-Smtp-Source: AGHT+IHRdrwIdEYn1uWxB8RWx/mQy9xRQiWitmMhrYOydAjTq4r03EUNHWVCdeBVi97TcQejktiaCw== X-Received: by 2002:a05:6000:2913:b0:3a4:f744:e00c with SMTP id ffacd0b85a97d-3b5f2dfd84cmr2243331f8f.29.1752238694191; Fri, 11 Jul 2025 05:58:14 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:13 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:04 +0100 Subject: [PATCH v7 12/15] arm64: dts: qcom: x1e80100-t14s: Add pm8010 camera PMIC with voltage levels for IR and RGB camera Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-12-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2864; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=uSDaDaav64zb5yYxypWWibFdUxaoPe5jKMH1pUZLk94=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpUR6ijDo6ewwpWh7R+yqfwdvx080SbYU0ga UnLG43hu8GJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVAAKCRAicTuzoY3I OqGnD/9To2DAf4tBf4dnVNpVdMKjTwLe+wGnSXZp9TNedJD46rnySjgr4T0z5++Pq+VGRUi2e2q G02DcGPZ7JjafRmei0ewJJzDvdtGKiCPMSmo/9zFxU4KRWAHFffydGvXtWByGpfec13af96dSfg +tGcyt1E/H34cpcHHIXYmb4KMFVaLlGaldAsminlYZawgFMQFNiq6cbHy4TGvNGz6Abm119gJUL yPcyAshaKZUY8QGuOnisJvrekp6apsAlAFDT0jJUy7JDPFaN5k0CXjph3Ns7K0dLsX3KgEu2pDr 5QBnY0TfmsseKIOtt4eU9h87WsH/XRgshexll06g+tt+sQeJbMVOfUAbRAjyaPlZgagIuMMWguy OqcTaQ20/tgoMDwklaHhUsANgmgj2n3IQCYeDxbSbzqhdRgZ9rzYfK/Y6XOXMH2XbN8s7z/cKP2 Y2pWiK8pQThF10KEqVFYLpXL33GWTDoQwdDTScze9dbc5QpLOMEX3BUEfENw2XzUBKA/dbkR6Gn +AiiThdh53EiPaeQqat7QdyzuFHfOuKJc8lOsRVw8TJWhQXt24kHv8NASvaHHz1rMhQdxQZu01S ZAJTFDCRrDdgE/cfYOm36j+j6fEwUYRCKAp7xiGp1zKztjDSnf5kYbp9In40suEOG/KmlubqEBK X/zVkaDMgaRI5DA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add the PM8010 PMIC providing the following voltage rails: vreg_l1m_r @ 1v2 IR sensor vreg_l2m_r @ 1v2 RGB sensor vreg_l3m_r @ 1v8 IR sensor vreg_l4m_r @ 1v8 RGB sensor vreg_l5m_r @ 2v8 IR sensor vreg_l7m_r @ 2v8 RGB sensor Signed-off-by: Bryan O'Donoghue --- .../dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 59 ++++++++++++++++++= ++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi b/= arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi index e19daf0f41f1f081e4b0c04be71e37f6ef492b6d..c9215c1a37cf4e7bad1512f52af= dfc18ea616127 100644 --- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi @@ -580,6 +580,13 @@ vreg_l6b_1p8: ldo6 { regulator-initial-mode =3D ; }; =20 + vreg_l7b_2p8: ldo7 { + regulator-name =3D "vreg_l7b_2p8"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-initial-mode =3D ; + }; + vreg_l8b_3p0: ldo8 { regulator-name =3D "vreg_l8b_3p0"; regulator-min-microvolt =3D <3072000>; @@ -823,6 +830,58 @@ vreg_l3j_0p8: ldo3 { regulator-initial-mode =3D ; }; }; + + regulators-8 { + compatible =3D "qcom,pm8010-rpmh-regulators"; + qcom,pmic-id =3D "m"; + + vdd-l1-l2-supply =3D <&vreg_s5j_1p2>; + vdd-l3-l4-supply =3D <&vreg_s4c_1p8>; + vdd-l7-supply =3D <&vreg_bob1>; + + vreg_l1m_1p2: ldo1 { + regulator-name =3D "vreg_l1m_1p2"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1260000>; + regulator-initial-mode =3D ; + }; + + vreg_l2m_1p2: ldo2 { + regulator-name =3D "vreg_l2m_1p2"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1260000>; + regulator-initial-mode =3D ; + }; + + vreg_l3m_1p8: ldo3 { + regulator-name =3D "vreg_l3m_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1900000>; + regulator-initial-mode =3D ; + }; + + vreg_l4m_1p8: ldo4 { + regulator-name =3D "vreg_l4m_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1900000>; + regulator-initial-mode =3D ; + }; + + vreg_l5m_2p8: ldo5 { + regulator-name =3D "vreg_l5m_2p9"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + + vreg_l7m_2p8: ldo7 { + regulator-name =3D "vreg_l7m_2p9"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + }; + }; =20 &gpu { --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 49DBD2E6D37 for ; Fri, 11 Jul 2025 12:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238699; cv=none; b=njWEKd5yJKGtYHFwmregd3DgQ6oUIKo8DtfZdzJkQVbqXZy6KzB02WtyJJiCvfZV7HqPjVmzly6CmmuWv7HGXbeLKSIXoqg0NBV74dQElOucZ6NSCeNkx4R5q5dPrUbLOoNaZmnLaji0OnRxPZ+dmdLn5tHpXa6Le402r/ZwWCA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238699; c=relaxed/simple; bh=OIbZXI7Fqtsr2N1ErAtcz28YXQvukvskASHmIGTxHjQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BRQsmdSgxv0BWQeE4zCgkTdhF51jOg+NoiM/dGJ8/XZ7iAAK0neMB0tdpJ+qhmrqDcerTFddrTbNK11MVFBPB5J4wnNU3Mbp0MFi3DoUtAAdeqLVtrU2Q5u0FC2Tcx3mg7kRsmB2NiK6HW9rZrFxg9hy7J5anGU30HD3LJWC9QE= 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=wXp66qFu; arc=none smtp.client-ip=209.85.128.42 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="wXp66qFu" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4530921461aso13568295e9.0 for ; Fri, 11 Jul 2025 05:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238696; x=1752843496; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=3SucpDS7vC9cfAy5LQNwU3pNWXAJDKjkDJcjlvI3KuA=; b=wXp66qFu0JL510CjxMxZY9O/WNLiwQGRSB8BPxY+vd3ytmRusqG5iGVxIGwS6SpMzX +LH4pSeBhbmyKJoCbva5C7TA/3qHgf2I4erjlVYXYQoLspLowS+lihMSD8a/q4KgTjbh q1MCYjCRsVWxzNH+QrtQSVgiIUicNHlhiWUyN4W4vXxVIA4I81Dsk9XzOy54/uq5J+Zn ohDEkix+xujgLY1fOdjQpByRT6eahZDr5Fs9/appWlLXRtjQaBxm/MI2/HNN3UBa00TG iFxICAS+BIj9g4QuLeitLJptsmG14OgJKZ3N3BL9kj1QBTwJGqaAxmrRRw0eSB9E+Kst SWfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238696; x=1752843496; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3SucpDS7vC9cfAy5LQNwU3pNWXAJDKjkDJcjlvI3KuA=; b=OIYGRC9ertEeKQDXAPJuoAdi3YW3C5y7N7vhReRNEChwcJJlgpDdh/YbQQzqicO2kt wbLxLtZ62Dq79pc6QaBWkYZBxz3Xg8aNWPAmX51Q3zMHd5YCj7soaIQVIKijiveGVFTk 4byGulONonSa6/wljAWeT5g43D4qezW/FpjM7Djqh2mHRGxsf/jnq+un+Ef6V4Fw58s/ P3yi9tatgWJWLU2ry+ShpOLXLaeIpcyq/RLZK10xy8A78o1Iz4/OxtGQ/85xJXwH12pK biX/ySHBMqBnd4b/HiZ4HbjWbAk2LK29Rxf2se/gpsyYZyBqnkRFid0/26oPzGvrD3aD 7chw== X-Forwarded-Encrypted: i=1; AJvYcCXjtgXfKLgQbHg1fvs1Zx5GALZreawRaNDuDLf8rlfPG0xbdy9qeGbtoLWE92M36++Yi26GX0ahpYvOnSw=@vger.kernel.org X-Gm-Message-State: AOJu0YyQdEAOeZZqt00Chhwlv02dlyiYIrV0cKRB+QHyj4dlb+yChYaX poFUn1b6DMLdZ9YJayfpwKpa8k5QuIBPhNk0eWspWWT5c41obfpcepOuXiwvNCuU964= X-Gm-Gg: ASbGnctrlgKqMoEEjaco/fRT0qOuN8yIMSmqz/7fPAyycp0Dz2Zt/ILhzHhgc8B5LJE YJR12YsJeLA/SEBjPYE6dgDObYsYv7LgtT+zEbVy2C4mqBf2x/CfgRuOH0AxZiuUE1tHKKy9R/m snSgdjMMpr9ZmsaOl1P1EIHrrigZDDfpKdE5oK1s8kIjDScp3m/VkG5d+HRqyA7kP2pDJiRoCb+ 7m9ZmABl5s2ud/bz8RSFTWUv9OxDroMlP6/jE8IlWMxiWIYQoh8VNDEjNVDpL3N6+mKbyD+SVLh 8oqrFjWQJ0Sh4W0AMe14tsTSd1S98WPbkweVOnLsYjcbiZw1PcjFbB+nMvCtlO//rF26bsCP7W6 XensuH/+Coi9nJbosUsdzGSnVFg4UUn45at9wNnzcvWBHtbmNMq0MagkILqGtAb2X X-Google-Smtp-Source: AGHT+IEIJnot7r7LRs2kSwUSDm+1stPbB9hmDcKHwINPC/bVI0UDi3/vu0xGOR7MGNjXTWyEMDaR3w== X-Received: by 2002:a05:600c:3d8f:b0:43b:ca39:6c75 with SMTP id 5b1f17b1804b1-45565ed6320mr25875905e9.16.1752238695515; Fri, 11 Jul 2025 05:58:15 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:15 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:05 +0100 Subject: [PATCH v7 13/15] arm64: dts: qcom: x1e80100-t14s: Add on ov02c10 RGB sensor on CSIPHY4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-13-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2678; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=OIbZXI7Fqtsr2N1ErAtcz28YXQvukvskASHmIGTxHjQ=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpU1dDFIG1VZpzK3GiFeC6wBxppvGh3XV3IO XbnUs2etYuJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVAAKCRAicTuzoY3I Or65D/4jFFRq2KshTyiflYVc7Ui+U+HW+98zn6d/hWNWxtkl12OQNIkZOhSVtyof0njhsMYBi/r E15fwPHQgM2ZMYvCOxPXTAanBoUHRajNevlUNvHrCTB/ExultpXyaN4VkXJWiR4PMi5n3/89cuC hazED5SXphSeMhFwgo91ZNjza7KCou3GYetRezVZQC+tiOkUCig38RjAuNVCpOcYXvMnXHR/FCs FJHFsenF1EfpsEPkjs4ml+hUzVhO3KLTkxw5xk4QWQi88f6bLvdexME3jebRENlAyBWgwohL360 qjR5+WnkqpiO5eIhsTqY3qlx5aBz0bkLTONqPMQpVJsUK4FNpzAs8NI3yGcmGljczoLzD60Dd1F 0lkN+4/2DCRpwwqKUZ+30Dh89Ab5PcFCsPGg3kEgsVoMV8KXDDDgj8YI4wzNAzTm8caR8115ALv 91OWIu8+rS9U/XEJtPxE3EwMQzquHzRPQa+uBCWAgR+jpqpGzChg+0Y49n4vOq7uKclTxqdJWSZ OsHD4E5DBbpJIYCxORyZ2VpuE6c42s7CZNk7e8lDWrrUaMwF4gqQu9WdXqTzAZ+BN0/R1qmyaAk HPZnOr4wkM5yiLDR3TwXILUGZTj3PxF2mzJWAM3y7pL+SvAozlV3j+BnwQHMaborfPRSqu+A1ci nCi3Kn1jiH40zbA== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Switch on the ov02c10 RGB sensor on CSIPHY4. Signed-off-by: Bryan O'Donoghue --- .../dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 79 ++++++++++++++++++= ++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi b/= arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi index c9215c1a37cf4e7bad1512f52afdfc18ea616127..2930921b624f03e72da1fc22506= 391e6764e1ef9 100644 --- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include =20 @@ -884,6 +885,68 @@ vreg_l7m_2p8: ldo7 { =20 }; =20 +&camss { + status =3D "okay"; + + ports { + /* + * port0 =3D> csiphy0 + * port1 =3D> csiphy1 + * port2 =3D> csiphy2 + * port3 =3D> csiphy4 + */ + port@3 { + csiphy4_ep: endpoint@4 { + reg =3D <4>; + clock-lanes =3D <7>; + data-lanes =3D <0 1>; + remote-endpoint =3D <&ov02c10_ep>; + }; + }; + }; +}; + +&cci1 { + status =3D "okay"; +}; + +&cci1_i2c1 { + camera@36 { + compatible =3D "ovti,ov02c10"; + reg =3D <0x36>; + + reset-gpios =3D <&tlmm 237 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cam_rgb_default>; + + clocks =3D <&camcc CAM_CC_MCLK4_CLK>; + assigned-clocks =3D <&camcc CAM_CC_MCLK4_CLK>; + assigned-clock-rates =3D <19200000>; + + orientation =3D <0>; /* front facing */ + + avdd-supply =3D <&vreg_l7m_2p8>; + dvdd-supply =3D <&vreg_l2m_1p2>; + dovdd-supply =3D <&vreg_l4m_1p8>; + + port { + ov02c10_ep: endpoint { + data-lanes =3D <1 2>; + link-frequencies =3D /bits/ 64 <400000000>; + remote-endpoint =3D <&csiphy4_ep>; + }; + }; + }; +}; + +&csiphy4 { + vdda-0p8-supply =3D <&vreg_l2c_0p8>; + vdda-1p2-supply =3D <&vreg_l1c_1p2>; + phy-type =3D ; + + status =3D "okay"; +}; + &gpu { status =3D "okay"; =20 @@ -1448,6 +1511,22 @@ &tlmm { <72 2>, /* Secure EC I2C connection (?) */ <238 1>; /* UFS Reset */ =20 + cam_rgb_default: cam-rgb-default-state { + mclk-pins { + pins =3D "gpio100"; + function =3D "cam_aon"; + drive-strength =3D <16>; + bias-disable; + }; + + reset-n-pins { + pins =3D "gpio237"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + }; + eusb3_reset_n: eusb3-reset-n-state { pins =3D "gpio6"; function =3D "gpio"; --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 932542E7654 for ; Fri, 11 Jul 2025 12:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238700; cv=none; b=GgkrzeyvLhaJ8hU/Iz5qCcrP+/D5k3nzo2XzcuSAufJf0X+4Ofh68W+W4Xc/++dxZO7FXDXgRnMFo/8ETSp+7Wshu0RJ5pYdkusfShvT6QuIQQUFiLev/yMF8PziZ8NU80gCrmn1trCz7t6UQ3l48IuJu30ne6SRBhOq5rcu9kY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238700; c=relaxed/simple; bh=JuMfXpzZJqCKUZySt+S5Ow7vJcUCRTmY3zPLXLDylck=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AtyXPw7oKg56Wd4hnOX6oKoyoCkbUpGFF26SZPQeKrVn3FYI9cHXUPzhRETinAhU9TDzIA/IygMfeKd5TPsYlbr7DmKE5e6lyoXQMvLPCe2WtqYj/gQXPzoIpssQf+NpCQ0VdRuXhEsnMgQEDO6k9T15KfcqSOT+srH+CprWk1g= 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=s722S1ma; arc=none smtp.client-ip=209.85.221.48 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="s722S1ma" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3a522224582so1046790f8f.3 for ; Fri, 11 Jul 2025 05:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238697; x=1752843497; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=pktvql5qXi5RHa6y7vJTm1ICaz3CVlfcGW+HEZczjkI=; b=s722S1maSKpj5bKECASvZyTFvVP4+8TV01skE0SPzUN4llQ3Q7aBZfbdk9dxF6c234 AvVPTtD0kKPQL2uRSWjzg4MpY2XYUxqXAcPB+QAT7VEG3X7iwXOL+POB8qYOq8E7odXF E17sEkM+v5LVl+3KQtY86Ho/vBoxRSCREL0KAoGc6NzuHbpk7ywCzaml/wwC+pCCT1bi xTasf7k4qbKNQPcwGkkvw8iFVCqDUaAbBoEbv2EJcOai80g40FDV3sAYjKU6s28TCNt8 NHrarngufH6uZyjJ4ppC9rniI3hcoB6f6NCFgPvRuhs/7KWVVH5gFUdmJHw2uc1nl83u sEzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238697; x=1752843497; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pktvql5qXi5RHa6y7vJTm1ICaz3CVlfcGW+HEZczjkI=; b=YdHaYF5H00EHpC+/09ZtSQ5LygdGJGS5zyWpAFLOaaox9Sm3qQho1kC6cCfhkOjX1+ UF0Rx45WDHMqo8m9TfhCvmmjcFU78jhV+QxfTQBuO9ijgTWuJYHlYKGUhjsJD+Lyd43A jR3tU6vabIh5/rOs96/cC5IMXgpRKtPo8YcQDSGPTFFhtYibHyrJuzMbQQLNTezPEsOO tklnS1jOJsS2MNi+2i5JhdTzpfeupAivRsFGW8sXciey0AGBkc26qzZVntwZUG+IUwpH Y8mffEQhV03hd1l+FS+kdJj5YUW8y1d4ZbCdFRWJcbpe34nJl0XLYak7vnwJ7ewwFuSE /xug== X-Forwarded-Encrypted: i=1; AJvYcCV3GOEZ/U9A1ELNrhv+sYlSzR96zOE7KiYTMAhGAe1dcIQy2T+j5mzjPz2HXHF+fV4G1wxVgLDlH47iYBE=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3Km016M5pUmEhaN6P+7Ei7xVJVrdZxxPxCdy+iV2mLgVoBidT iNioSWb99Pz7GY41TDrkjY6YuMMzZMFP/Eh2SGDgbOTH4gZcjQsfavpcnSB0YLd7pSY= X-Gm-Gg: ASbGncsBmQd9ZbpPP/NlUUeA3balM+FmMTwVZpfXV7NTDhYsQdH+84hEwn4dHprv8uM 7L2llHaAPrYNQZNsXuApUJp8OGLpMNC2NQ5a+/PIv7BuT9p/6R+C+vNc5wYXY12nLnt1030l1QT aTgTqOOyGWvYjpE/2swlDcKfY6eWGUqXF+gfb9T0fhofiI/6mAVi2K6A4vZ+n3iKck73Hp+glXC m86n8IrqWSKlCA8dncrgb+h9NJdpGNelN0hjbbgdChYogvRyQZLVkMstvSObFJ6XfU5ESaO3cyP rSHGovJLoYqV+Fb4dHvoOR7S0RfSVvGVbSuYyqWMYPMCH4WswtwxLnWfUuKR5QnRZY+9uUhjeWZ 3uI6HB3DjcXCLjrRtrE5txPzRQZ+lX6/4F41kcAdFbkDw03ZEXsABC+2BVs97Hb/e X-Google-Smtp-Source: AGHT+IGJ3flhCLSOXK3CHO11MPCEW41WFI6YSEJ3lV/vNzkSbt9mh+xtyOKj1hmUEY7xp1DN0bdp6w== X-Received: by 2002:a05:6000:230f:b0:3a4:f70e:abda with SMTP id ffacd0b85a97d-3b5f351dea6mr2058389f8f.10.1752238696782; Fri, 11 Jul 2025 05:58:16 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:16 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:06 +0100 Subject: [PATCH v7 14/15] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Add pm8010 camera PMIC with voltage levels for IR and RGB camera Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-14-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2295; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=JuMfXpzZJqCKUZySt+S5Ow7vJcUCRTmY3zPLXLDylck=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpVZjDDAeLwqpUWjJ5s/P4/FwWYA0N5tDyMB J9tcma9TV6JAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVQAKCRAicTuzoY3I Ol6bEADBgHcb07UJdu9PCUH2ZAUA1W7bpVPwuCrhdYn+9S96M99YcP7qC2ifWC8+74sJfcmM4lS Okwjo5Z3u0CpvCjnWQzbSshdaWqD6SBjMviQO5CYDE3v2S0cpTBZTpee1OGc8ge2ntEYdQTa7oM 4IrHt29dO5MSnGBWmjGmeMbzv7Ewheg2TNiP0u9/koOeDmt24y79QdIfRXiCYiljcWIQ6/KLJ/I YkCT6gwJw4efDasPr6IxTkyrWNfIAFa0rareIFvJD3uX4Ui7hjB64iDXBsz7SAxv3i/A6uH6vXc TmphaR6uAMfPl2kmhuW9rViKM/8R3DEI20JSswtOIf/14lkqqJ/1BMCHpssYDCfK5xoeItQp+Mx VdiKu6ZofhQBkh8tF0Lxo+z8DxD3Uq3VK1V2hb5icd3qtVgTqz4NqCh+T4Wv56mVfpKPMNqHdgd sZzwNMX/8d2+QkANALvYwgxlGZmdqj5WfEvbMBCCeDP71lBElzi3M+tvlhVA7SXwoSg/2YflJU0 Am4XKRZCDp21ipdv1QwxTvmuHw0MpZDHPNdh5KFvD/pVBIN1p2/d2Rfj2LAEg6wjvFWqBe/sUU9 qe5OMzUWYwXEL7Pu30C1PBsETlLOrtZ51pnuRZAJ93mKcxbDuttT9Z+LuQN6Y9Ew82ww3oFN3QD FZIxwMqXysJvTIg== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add voltage regulators-8 for Camera on slim7x including: - vreg_l7m_2p8 - vreg_l2m_1p2 - vreg_l4m_1p8 Signed-off-by: Bryan O'Donoghue --- .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 51 ++++++++++++++++++= ++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arc= h/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index dad0f11e8e8583df6fd8aeec5be2af86739d85fb..ce2625f8fe85287a16fc3c85cae= 5d58f99cc6fc2 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -693,6 +693,57 @@ vreg_l3j_0p8: ldo3 { regulator-initial-mode =3D ; }; }; + + regulators-8 { + compatible =3D "qcom,pm8010-rpmh-regulators"; + qcom,pmic-id =3D "m"; + + vdd-l1-l2-supply =3D <&vreg_s5j_1p2>; + vdd-l3-l4-supply =3D <&vreg_s4c_1p8>; + vdd-l7-supply =3D <&vreg_bob1>; + + vreg_l1m_1p2: ldo1 { + regulator-name =3D "vreg_l1m_1p2"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1260000>; + regulator-initial-mode =3D ; + }; + + vreg_l2m_1p2: ldo2 { + regulator-name =3D "vreg_l2m_1p2"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1260000>; + regulator-initial-mode =3D ; + }; + + vreg_l3m_1p8: ldo3 { + regulator-name =3D "vreg_l3m_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1900000>; + regulator-initial-mode =3D ; + }; + + vreg_l4m_1p8: ldo4 { + regulator-name =3D "vreg_l4m_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1900000>; + regulator-initial-mode =3D ; + }; + + vreg_l5m_2p8: ldo5 { + regulator-name =3D "vreg_l5m_2p9"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + + vreg_l7m_2p8: ldo7 { + regulator-name =3D "vreg_l7m_2p9"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + }; }; =20 &gpu { --=20 2.49.0 From nobody Tue Oct 7 08:35:49 2025 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 ACBD42E888C for ; Fri, 11 Jul 2025 12:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238703; cv=none; b=YBwuUD7slYENE4tQcV04qYaIeDLtfG5jKWdEAketf1QnoL/MnrtLMB77/BmksPjV6qPnsiH0pTi0RgAffsv+OUp/bnuLrD5uyqwXlUfjb9vixIJ/vz8hqZyYkqiMaKPuwwogp72dYpFgeE9bF76C4tjiLFiptve/5DFlKK5BTJU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752238703; c=relaxed/simple; bh=C9vyDaOV5NYtX9bb7spylzRsGwk5yos/Ys1krrlhY08=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qnqE945WxshzXqoSzuUYSdaeyNsSU1ChMKdKuSEiHBizjc4b5nLR9b/BP9I7x8ZVeQq78SmzxlaGQ02mb/cinNOVt50NR9C5SPBWSoIB4xm3hjL6Q5n0J18XDrb2YBfs3MTVkRCxiRCJzH1jPG54QZ9bRhF6UYXoLBIuOf0uqX0= 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=yj49IzKm; arc=none smtp.client-ip=209.85.128.53 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="yj49IzKm" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-451d54214adso15272055e9.3 for ; Fri, 11 Jul 2025 05:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752238698; x=1752843498; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=PTGaqV+0h7/0datJWGHGz6KZlpOcm5tykg8eDuHMHVU=; b=yj49IzKm96L3r0La/+GpZlVbrstv1OPw0L+AQ4ud/QbMwMeuuLvVV9DWPwttXv5TMn 9Q771+sm4ttzjlZ5PQZPIKKeu++pydUJphB8Y9G/uJ8a2qtar0lZOdwxwZScPSlxjzGg ZCjYTzad57kIa1XSpKO8XhcyytMZy0C2yvx+7Gca/wpahv2OoxW1tmIXmqgj2ljCXQlD OMKhiXj9jt6rxnSJfySifeEjF7g2H/6nZcwDqc7rciY5yRr1PGV8VBQH++TfcIU8LH/7 +2eZzu/MOzXFoiFsUdNDl+CI9JLDFC1x0oV0hqRnJvlh2aAISpP48+Fb8bCFg4BmYRmK TVFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752238698; x=1752843498; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PTGaqV+0h7/0datJWGHGz6KZlpOcm5tykg8eDuHMHVU=; b=eu7zO55sti8v3bIddQ+HndG0hjz/PymG46TB/eCd86tv5I2P549Q4c0f3jNyNUnF/7 SZtcpX7ZSTufz+xiewcVlYZXN3X1LQtSTWUHhoxAUQSnGGh0iyjapQq08gG0EZXbTnpp eABVk8gWiaccltiMVdZgAJOWfyLNsiQEQZnaYUH0upUVAplLT6WkfZv0P6ZhUcEBig6d 6GIjekqiYdbXLao5XUp+3/hu5ZchijLOhLnNRZdTB+sef71gCMBCeFyPJliQuYc8uBmn 3a4aE/u91YSCuCCE1TmB95mfe/nfKHNSr29xZyzzcPjQy5TaSPhzbeN1s56b4li3fRel I47Q== X-Forwarded-Encrypted: i=1; AJvYcCXznjcp2yqJXKG7VaTBdGxWkkZRYhNtVrbk9xJFfrSIBKURPPbH1dSX+z/DlwDWd6RBe4bc1UkZ/lWkBuU=@vger.kernel.org X-Gm-Message-State: AOJu0YzgGJqqmQAt4v3/5W0JYjqA1W6VN1CS5v0ezE/XQqdbWX+48ifW j/Sw/t+Od2QcpyjOD5MvZPSsjMs6mEdKjbRvrnj9QWdUKNECTM5UFGfllIH249eU2IU= X-Gm-Gg: ASbGncuC/B4AEA7Qe5KVB9JmH/BVuvW1j9sbhaG4rQjxXsdWAYFtYfMeWCWyHZHTGvY epCqk+kspmgpYTifZRX+LRpSM8IIx0cpGaylSfFCc7DqvQ32mwUPGmp42RjfUreMHWhEC4IhYo1 AJTzkWcMAS9fMo0W9gAfzYjmoJoHrP1gqdXcmDI6ZLUGrYIFaBxAK28OIbvvnWgsTfVG57AX1cK F2btKbV6DInuUUPvq4fqQ+ZyYyW2V5k/MLrPpjSysoMg9W4ytv5OBQPdH2dLz41xeqdNNiQMGE0 HZW5aYfaDDU8V6rbNgvUMDLky9kO4Rub+ntpCmycR21ezAxa+R+lBkXjTpTxqZ7Gdh3UQVbw/DQ fom6otJ39BYP63HFP3Ch0Od/Vjn0JJoM9w8Y7bPGSrqs5MWyb8/jEt/4ovLGMV6EgZya59LFHEi M= X-Google-Smtp-Source: AGHT+IFCHpUoX/HdEVnfz+XU4F2soi1Yd/YGDDcREga/YCT29fq7TqkoWGu6imjg+HeOFqsPi2ntqg== X-Received: by 2002:a05:600c:8b21:b0:43d:42b:e186 with SMTP id 5b1f17b1804b1-454f427c7a3mr30607115e9.8.1752238697970; Fri, 11 Jul 2025 05:58:17 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc1f70sm4373648f8f.27.2025.07.11.05.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jul 2025 05:58:17 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 11 Jul 2025 13:58:07 +0100 Subject: [PATCH v7 15/15] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Add OV02E10 RGB sensor on CSIPHY4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-15-0bc5da82f526@linaro.org> References: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> In-Reply-To: <20250711-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v7-0-0bc5da82f526@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2579; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=C9vyDaOV5NYtX9bb7spylzRsGwk5yos/Ys1krrlhY08=; b=owEBbQKS/ZANAwAIASJxO7Ohjcg6AcsmYgBocQpVKby93aooqqFZgIAkI0Zq70RwsUYqkwnKK PIEumEYlkWJAjMEAAEIAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaHEKVQAKCRAicTuzoY3I OrxdD/9Gz98ieKZie8uzpC8roldjOvnRq+YZAN93WXuyq94RLFPCwJdIAXaqeakdB0XMwz+/LIg CEKMWnQyqGxJ1YQebwrxouOIsXRAx26CajH3I9TJo81Z2Wv9+4vAvQGHHoPdEyX7t83Z6qrzGBL OUSaOf8aef02eJTe/Z4JPPnHIo7FNlHDL2cSs2WBbmy83xIeuFedW0pcmfYi0oXLSsDn/uOzYPe 6hX7v9lBeDcC9+a8yj2FwR1ns3ruoodWRB80qmXiZLnW+L+VW7/PCS/0XKg2Ljve1hO+YVoEACS svInO4NJ9uSfCra3yjXqh7Lng6pA4c1IBXUQlMqVuFZlr0o/K/dcOKiFPtsossJr4paWs0i/rGO c4S79Q/ymFOfJ7G5keTi9qliA4pRIH246WhGolriO6MhDVdShGfDpmgDGCyyvYuf3N5Kgz1UGAN tPFLU8cYmnIIxniInb3n/iVQT9mEeO2MxOwfREP92cmDRgenjcNZJb+MbnwHMbEi9BH/LYTxFrC RG2ZQrQ5KpqpqaxGoFvVpoRy3UmDG692A0azeyO2o2aWjgXz91C/DcxqwWnrij4o7wLcWfb80r+ kXoRPnfryzCyQjScFQML1+MyZOZnHxvaTsEPwFqto2ozPSg8pN+CNv5iN+MdfUfgKLlzfAJsOb9 p3yqqWnGvMxdqTw== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Add in the RGB sensor on CSIPHY4. Signed-off-by: Bryan O'Donoghue --- .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 79 ++++++++++++++++++= ++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arc= h/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index ce2625f8fe85287a16fc3c85cae5d58f99cc6fc2..6176e7e7299b471e2535a43b302= d3e4871396462 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -7,6 +7,7 @@ =20 #include #include +#include #include =20 #include "x1e80100.dtsi" @@ -754,6 +755,68 @@ zap-shader { }; }; =20 +&camss { + status =3D "okay"; + + ports { + /* + * port0 =3D> csiphy0 + * port1 =3D> csiphy1 + * port2 =3D> csiphy2 + * port3 =3D> csiphy4 + */ + port@3 { + csiphy4_ep: endpoint@4 { + reg =3D <4>; + clock-lanes =3D <7>; + data-lanes =3D <0 1>; + remote-endpoint =3D <&ov02c10_ep>; + }; + }; + }; +}; + +&cci1 { + status =3D "okay"; +}; + +&cci1_i2c1 { + camera@36 { + compatible =3D "ovti,ov02c10"; + reg =3D <0x36>; + + reset-gpios =3D <&tlmm 237 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cam_rgb_default>; + + clocks =3D <&camcc CAM_CC_MCLK4_CLK>; + assigned-clocks =3D <&camcc CAM_CC_MCLK4_CLK>; + assigned-clock-rates =3D <19200000>; + + orientation =3D <0>; /* front facing */ + + avdd-supply =3D <&vreg_l7m_2p8>; + dvdd-supply =3D <&vreg_l2m_1p2>; + dovdd-supply =3D <&vreg_l4m_1p8>; + + port { + ov02c10_ep: endpoint { + data-lanes =3D <1 2>; + link-frequencies =3D /bits/ 64 <400000000>; + remote-endpoint =3D <&csiphy4_ep>; + }; + }; + }; +}; + +&csiphy4 { + vdda-0p8-supply =3D <&vreg_l2c_0p8>; + vdda-1p2-supply =3D <&vreg_l1c_1p2>; + phy-type =3D ; + + status =3D "okay"; +}; + &i2c0 { clock-frequency =3D <400000>; =20 @@ -1290,6 +1353,22 @@ &tlmm { <44 4>, /* SPI (TPM) */ <238 1>; /* UFS Reset */ =20 + cam_rgb_default: cam-rgb-default-state { + mclk-pins { + pins =3D "gpio100"; + function =3D "cam_aon"; + drive-strength =3D <16>; + bias-disable; + }; + + reset-n-pins { + pins =3D "gpio237"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + }; + edp_reg_en: edp-reg-en-state { pins =3D "gpio70"; function =3D "gpio"; --=20 2.49.0