From patchwork Sat Nov 12 17:26:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 625754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E3A6C4167B for ; Sat, 12 Nov 2022 17:27:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235056AbiKLR1C (ORCPT ); Sat, 12 Nov 2022 12:27:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235036AbiKLR05 (ORCPT ); Sat, 12 Nov 2022 12:26:57 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA9C1838D for ; Sat, 12 Nov 2022 09:26:56 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id s12so11684218edd.5 for ; Sat, 12 Nov 2022 09:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dpMyyZIODCgPeoMAmw2SU7Pu4YfqcKyvkTsTIUX9teE=; b=lmn/47c6P676fOOlIoB3uqpnwNwgcVTtCIGDU7W4fNBwMZVPYPlwzuAR7JD5jCjUW2 N1MHyaFj/IKDc9ikLK8xQqXYX6K8caySNWsCXvoMP3z0l3r6SDG043NS42SsLAnDgf6H X6nh2cZo/IiZfUpVi06VA3pJzAUk6AMkCPm7LOSAc1ao9ys699AAaMKZAHkZIDij9VIC EKOv+Z3L3aVD6YBMKx8NWxU28+bHGYDnxGAT2ZnTpMMAipN6f+pFoKbAtxQKpYE2vSL3 PMhJqaqgIxeqG02ZpytICFt3NrpCF8s4CqXmh+q2pHdeIT0ETSvdUdNmEBU1+irex/Sm DvAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dpMyyZIODCgPeoMAmw2SU7Pu4YfqcKyvkTsTIUX9teE=; b=GHagLOXxWA1fryUNoKCH8qeh4+LlDcaERM4GCrBkTTzmkQjXATF9GlDpV2eN0D0YHM oqArq03vUm14FH7+wsnNXu4FAC3xo94H6z1f/ZWwGPW8/TfcvRWra2cvfJcE7SYieXmn SVtJBIsNOnbwCe+yc+IE5eadcTzWvVjDyY9hGOewN/daWx7OjklYDfSK8oMe0RYWXuBh unxr8JgNQplIPgWsXaPZY3olNTpZiIqwuI3G826f5mhcMVHFJg388hCdAS/LhvO8vPJK bca7vQiM/kr/cp2JqjlqzuZ/anuuV5ZN/gZ5AAbUHYX2oIdPtjn56ZYVBrZk77CFKx7s MpCA== X-Gm-Message-State: ANoB5pmdIzO0JDnDCxdlG7UQVQ2dfSSkqNQsyP71nYIvOOa42b5oGIkQ c2xtmolw8l288Bj4g3nI49CJHA== X-Google-Smtp-Source: AA0mqf73YwQNoLKaD4yrSL+QAEcEIQc+eEZXExtjd9FwDE21VbirDBFp+UG+mjzxOu8PhUsZYEQk2A== X-Received: by 2002:a05:6402:e8a:b0:463:53c6:56a5 with SMTP id h10-20020a0564020e8a00b0046353c656a5mr5901695eda.223.1668274014755; Sat, 12 Nov 2022 09:26:54 -0800 (PST) Received: from localhost.localdomain (2001-1c06-2302-5600-3861-6a56-0346-9c90.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:3861:6a56:346:9c90]) by smtp.gmail.com with ESMTPSA id qo9-20020a170907874900b0078c1e174e11sm2099265ejc.136.2022.11.12.09.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 09:26:54 -0800 (PST) From: Bryan O'Donoghue To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org Cc: sakari.ailus@iki.fi, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, quic_mmitkov@quicinc.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue , Konrad Dybcio Subject: [PATCH v5 1/6] arm64: dts: qcom: sdm845-db845c: Drop redundant address-cells, size-cells declaration Date: Sat, 12 Nov 2022 17:26:45 +0000 Message-Id: <20221112172650.127280-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112172650.127280-1-bryan.odonoghue@linaro.org> References: <20221112172650.127280-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org sdm845.dtsi camss already defines the address-cells and size-cells for camss, no need to replicate in sdm845-db845c.dts. Reported-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 3e7ceb0861eb0..7c88312333c22 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -1185,8 +1185,6 @@ &camss { status = "ok"; ports { - #address-cells = <1>; - #size-cells = <0>; port@0 { reg = <0>; csiphy0_ep: endpoint { From patchwork Sat Nov 12 17:26:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 624264 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCD33C352A1 for ; Sat, 12 Nov 2022 17:27:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235062AbiKLR1D (ORCPT ); Sat, 12 Nov 2022 12:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235041AbiKLR06 (ORCPT ); Sat, 12 Nov 2022 12:26:58 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635F917068 for ; Sat, 12 Nov 2022 09:26:57 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id f7so11696901edc.6 for ; Sat, 12 Nov 2022 09:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z38NVszeeRzwpeCo7llBZCNOGY8/lbL4u7FRY89ykkI=; b=YpP/W7fpkp+243on8JOUUN+Qr+osZ/b3gkWDIGsJmZ9MfG+/hyldpIbn+EfbcH01TB J55iN4eU3Zm2saAAsiarrRIGC74qvYX7AL+0eNVUGw1hXaoBbIpxU6/E8yeKoVjjenNB +XhN2iZOR9/eCiye9ykYmktilHRc0o040IbT4xL4kUScUYnptO6/RKC7odsQ8kACRXLq l+IDVlOaFTXcKpbFQjWACXI2tTd6rH6bo11U/LXdOE68sXEg+URxAJehtABAVncrc2bP u45E8FRZyEpqyhOsdALNl3jGF8wvytHIVOaWb+Dht1WbxNbUIVgEzTCbDFdYixdVQytO +2Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z38NVszeeRzwpeCo7llBZCNOGY8/lbL4u7FRY89ykkI=; b=3oGtQTTY/U28Lp6BhnSGDFts5A7GqUdkAals4qWOHEJ3XsZHvbV5tR1CYL0Z2eXbGZ BdjQSGPVlMFjyvwKUKUjSFldrCoEKyImMQG1pLQ2ddhT9P7Cwd8hM9gbC+BZZeD69JtL IrRZUFzCiCRW3OLZUlqkXwQTvKvmYytVwmLJeIxPIe4PRuTkXlUCOwso6c+8BT8ee2ef Z+W4skzBA63IVXsaVzqu8cxtDCy1S/pmYIJqfBq9cqqBYc6Z3bgiEXRW9PiyMDKs7fHx JgI9JOvsHiK+2vSDrnZ4flf0kn1+y67XT/pWEhwarxmh+74/oAdio0c3jHx8wPLQhKGJ np0g== X-Gm-Message-State: ANoB5pmD7qg7rQ8FkbB1OLlKkpbRG3S9EAjUyLF8SFMEkdNoULBaE4vX ZxZVr+yP+Jc4Yn5qFNYFoZxpDA== X-Google-Smtp-Source: AA0mqf5vdXHouvfKT3uRuv95XjECUr5LI2duP59LqQqBrXFB1b4w8za30xzeT0Laae5n7tznzqMt5Q== X-Received: by 2002:a05:6402:b7b:b0:463:ab08:2bc6 with SMTP id cb27-20020a0564020b7b00b00463ab082bc6mr5854206edb.143.1668274015984; Sat, 12 Nov 2022 09:26:55 -0800 (PST) Received: from localhost.localdomain (2001-1c06-2302-5600-3861-6a56-0346-9c90.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:3861:6a56:346:9c90]) by smtp.gmail.com with ESMTPSA id qo9-20020a170907874900b0078c1e174e11sm2099265ejc.136.2022.11.12.09.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 09:26:55 -0800 (PST) From: Bryan O'Donoghue To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org Cc: sakari.ailus@iki.fi, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, quic_mmitkov@quicinc.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue , Konrad Dybcio Subject: [PATCH v5 2/6] arm64: dts: qcom: sdm845-db845c: Use okay not ok for status Date: Sat, 12 Nov 2022 17:26:46 +0000 Message-Id: <20221112172650.127280-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112172650.127280-1-bryan.odonoghue@linaro.org> References: <20221112172650.127280-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert camss status from "ok" to "okay". Reported-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue Reviewed-by: Laurent Pinchart Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 7c88312333c22..ce95b51f17fff 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -1182,7 +1182,7 @@ &camss { vdda-phy-supply = <&vreg_l1a_0p875>; vdda-pll-supply = <&vreg_l26a_1p2>; - status = "ok"; + status = "okay"; ports { port@0 { @@ -1221,7 +1221,7 @@ camera@10 { avdd-supply = <&cam0_avdd_2v8>; dvdd-supply = <&cam0_dvdd_1v2>; - status = "ok"; + status = "okay"; port { ov8856_ep: endpoint { From patchwork Sat Nov 12 17:26:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 624265 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 973D4C4321E for ; Sat, 12 Nov 2022 17:27:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235011AbiKLR1B (ORCPT ); Sat, 12 Nov 2022 12:27:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235047AbiKLR07 (ORCPT ); Sat, 12 Nov 2022 12:26:59 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977BB1839C for ; Sat, 12 Nov 2022 09:26:58 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id ud5so19190591ejc.4 for ; Sat, 12 Nov 2022 09:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0U///bHfyu+eJ33f5aGcqLhAu/znMGGv82jQ6Af73qs=; b=wj648wajgFLhCRVsxrcj9DqgbvLXCkILxv/+4oZ3pteJUbDYLTTlM3xMbUddSTBtap 7sqWrQeniUFY1mzbMNYRsPqsgS40AluJg77gDi0rhKRsR/mZ0lNygjFThK5Nf7brax+N Dya7Am0sZR3QOl7jU0Qr6Pq0Jb1gnPURJ4hq6ZEph/Gy/LZ0U8O7X8KwH9a6Vsnjfmbu 9LzvESKf2oVXrCvMedE5/kvbQxsCL89risnW9+74h6iuwPLDLZDWweJNJKZm/uLbh309 6zZDG52q4PiH3HZrNrxG/uoeJgwIBDTc4x7R3g/iHJKyMAphgs+9nXNrs+7qmF/Y5kjp x2pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0U///bHfyu+eJ33f5aGcqLhAu/znMGGv82jQ6Af73qs=; b=6+sUqQ2GLkrLphpJCQiUCeChEsXcWsJc+DDKbeOIOsyWyF/0rvInvlIuHJzXXewdzR pQrQXexiUzD4OXbXu0Jd3NpdpUITsLPQLV/DgYnny5NSMjOZQm6ODRR6Ob3UaGalNl50 uH69hd8WDi4H93M8v0eHlv+Bgv/S/NRrTtLKMzYWL2bhrbORiMfca6qm9XqkdaYOKEF8 rY8JF2BsJfgL8NpGJWD4zybYpqA7ud33G1/OOoQ3sCcsjhIfcdEvNVUh8lVUVB8C5y5L B0sRKVZB5doV46hGxV/z5jbFFTixbImreXbiED97YbdggH6g16aAs0kLGFhkJMABuuxw M3yw== X-Gm-Message-State: ANoB5pn0IyJ5tMIfjYdxM0kb3uIZ49Meh0K6F8GCL2d1mSs7DOyot/3N 0GYObt1FZPfuBYnR9pdSAao6aA== X-Google-Smtp-Source: AA0mqf4SkjaKZ9V4hMiOv/JrPh/ow6CTPCVna8uWh4Yt2L4DrT22MtMPMORJF2XXJ0zSDL0TxX+V7w== X-Received: by 2002:a17:906:5048:b0:7ae:e9c1:760f with SMTP id e8-20020a170906504800b007aee9c1760fmr1468535ejk.18.1668274017153; Sat, 12 Nov 2022 09:26:57 -0800 (PST) Received: from localhost.localdomain (2001-1c06-2302-5600-3861-6a56-0346-9c90.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:3861:6a56:346:9c90]) by smtp.gmail.com with ESMTPSA id qo9-20020a170907874900b0078c1e174e11sm2099265ejc.136.2022.11.12.09.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 09:26:56 -0800 (PST) From: Bryan O'Donoghue To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org Cc: sakari.ailus@iki.fi, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, quic_mmitkov@quicinc.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue , Konrad Dybcio Subject: [PATCH v5 3/6] arm64: dts: qcom: sdm845-db845c: Use status disabled not disable Date: Sat, 12 Nov 2022 17:26:47 +0000 Message-Id: <20221112172650.127280-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112172650.127280-1-bryan.odonoghue@linaro.org> References: <20221112172650.127280-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Use preferred status "disabled" instead of "disable". Reported-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue Reviewed-by: Laurent Pinchart Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index ce95b51f17fff..5da91c646c200 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -1262,7 +1262,7 @@ camera@60 { vdddo-supply = <&vreg_lvs1a_1p8>; vdda-supply = <&cam3_avdd_2v8>; - status = "disable"; + status = "disabled"; port { ov7251_ep: endpoint { From patchwork Sat Nov 12 17:26:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 624263 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01333C3A59E for ; Sat, 12 Nov 2022 17:27:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235063AbiKLR1D (ORCPT ); Sat, 12 Nov 2022 12:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234983AbiKLR1C (ORCPT ); Sat, 12 Nov 2022 12:27:02 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31DA11742E for ; Sat, 12 Nov 2022 09:27:00 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id a67so11677948edf.12 for ; Sat, 12 Nov 2022 09:27:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nSUUwQe12TCrUZtPY3Ff/nSczO115cssH+ZZFPRNfWY=; b=QWPbg2kVPyG9dSkA0lKiGr97p73+h2vnD0BiwbCae9FOLYKrXXMasVcGDrQ8Y9oMVX bvKHwzwIxjkHGylXY1L+iEkmSpzjyuG+85epJNdUD080Pne648NWcO1ILMjeXkmBX66Y aBIJUp2q4bKV0GTpp5XX39sRXZvfVXcskPGuNV72xdvB1fgnQP5V1ixNlE1qgKpsRdVk dbBtOSgRd5IFnYKl+oprI+QYwRKAdqJzr7/on4PSqV5aaeE/VY0flTxdIR5yr73QcEKg 1QMTNKEvPjLlVuXW/L/oC0Q4HiwExSLD6kSWr3F1YHEmd98DrZuUaSInM2ZlP/S8AOQU J3sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nSUUwQe12TCrUZtPY3Ff/nSczO115cssH+ZZFPRNfWY=; b=HyVRrURJDwI84RYTqTLhFcCv1rM1z6LuDh38tIiBmm1iSChXKLHCd1D9SRxFs6cqn3 iAKB/tdXpHMxH08Ah2aRFdHk9xKi1D5MPrgDDp7pf2eR16DBqDEfnK8Pz8GX9bstU//k +ADTV//LGMxonOwSAqtXWJA6OwJI7joTkPCJW/pBkYgpQfCi3DNNbxvpwjuDN79s+3Rn +ojnvTl6LJYlI1Pbx2e7SAqwzH1JWSXfXcohNHGoZrP1qL+M66E6IannFCJ3x3BtxTtf LJfzdtGzOnqjjF+Hy0djjdWuKVSbU4a0i2jBbkPFBMaZDNwrih7/Sp1TLs/jAssOz7Ll mB1g== X-Gm-Message-State: ANoB5pmtXP38hBZoFut61A86MYwjNsLcuBTwaQ9YpjXlrRo64IqXrHq/ KE6wH+BYZ0V9Ztt/Q6rflmZ7mg== X-Google-Smtp-Source: AA0mqf530+BU7KlijIA5NQgyYC/P0vrcy4chBWsHcCTC3spDEV5YCruhx4ZDsyBUbXvJeBTXhUHojA== X-Received: by 2002:a50:fd8f:0:b0:461:46c7:310b with SMTP id o15-20020a50fd8f000000b0046146c7310bmr6132179edt.307.1668274018707; Sat, 12 Nov 2022 09:26:58 -0800 (PST) Received: from localhost.localdomain (2001-1c06-2302-5600-3861-6a56-0346-9c90.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:3861:6a56:346:9c90]) by smtp.gmail.com with ESMTPSA id qo9-20020a170907874900b0078c1e174e11sm2099265ejc.136.2022.11.12.09.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 09:26:58 -0800 (PST) From: Bryan O'Donoghue To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org Cc: sakari.ailus@iki.fi, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, quic_mmitkov@quicinc.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH v5 4/6] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Add navigation mezzanine dts Date: Sat, 12 Nov 2022 17:26:48 +0000 Message-Id: <20221112172650.127280-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112172650.127280-1-bryan.odonoghue@linaro.org> References: <20221112172650.127280-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Move the dts data for the rb3 navigation mezzanine into its own dts file. Suggested-by: Dmitry Baryshkov Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../sdm845-db845c-navigation-mezzanine.dts | 107 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 99 ---------------- 3 files changed, 108 insertions(+), 99 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index d534888bcfe52..70ce09bc63a33 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -131,6 +131,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r1.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c-navigation-mezzanine.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-lg-judyln.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-lg-judyp.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dts new file mode 100644 index 0000000000000..7bd0a15c72657 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dts @@ -0,0 +1,107 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2022, Linaro Ltd. + */ + +/dts-v1/; + +#include "sdm845-db845c.dts" + +&cci { + status = "okay"; +}; + +&camss { + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; + + status = "okay"; + + ports { + port@0 { + reg = <0>; + csiphy0_ep: endpoint { + data-lanes = <0 1 2 3>; + remote-endpoint = <&ov8856_ep>; + }; + }; + }; +}; + +&cci_i2c0 { + camera@10 { + compatible = "ovti,ov8856"; + reg = <0x10>; + + /* CAM0_RST_N */ + reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cam0_default>; + + clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; + clock-names = "xvclk"; + clock-frequency = <19200000>; + + /* + * The &vreg_s4a_1p8 trace is powered on as a, + * so it is represented by a fixed regulator. + * + * The 2.8V vdda-supply and 1.2V vddd-supply regulators + * both have to be enabled through the power management + * gpios. + */ + dovdd-supply = <&vreg_lvs1a_1p8>; + avdd-supply = <&cam0_avdd_2v8>; + dvdd-supply = <&cam0_dvdd_1v2>; + + status = "okay"; + + port { + ov8856_ep: endpoint { + link-frequencies = /bits/ 64 + <360000000 180000000>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csiphy0_ep>; + }; + }; + }; +}; + +&cci_i2c1 { + camera@60 { + compatible = "ovti,ov7251"; + + /* I2C address as per ov7251.txt linux documentation */ + reg = <0x60>; + + /* CAM3_RST_N */ + enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&cam3_default>; + + clocks = <&clock_camcc CAM_CC_MCLK3_CLK>; + clock-names = "xclk"; + clock-frequency = <24000000>; + + /* + * The &vreg_s4a_1p8 trace always powered on. + * + * The 2.8V vdda-supply regulator is enabled when the + * vreg_s4a_1p8 trace is pulled high. + * It too is represented by a fixed regulator. + * + * No 1.2V vddd-supply regulator is used. + */ + vdddo-supply = <&vreg_lvs1a_1p8>; + vdda-supply = <&cam3_avdd_2v8>; + + status = "disabled"; + + port { + ov7251_ep: endpoint { + data-lanes = <0 1>; +/* remote-endpoint = <&csiphy3_ep>; */ + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 5da91c646c200..f41c6d600ea8c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -1174,105 +1174,6 @@ &pm8998_gpio { }; -&cci { - status = "okay"; -}; - -&camss { - vdda-phy-supply = <&vreg_l1a_0p875>; - vdda-pll-supply = <&vreg_l26a_1p2>; - - status = "okay"; - - ports { - port@0 { - reg = <0>; - csiphy0_ep: endpoint { - data-lanes = <0 1 2 3>; - remote-endpoint = <&ov8856_ep>; - }; - }; - }; -}; - -&cci_i2c0 { - camera@10 { - compatible = "ovti,ov8856"; - reg = <0x10>; - - /* CAM0_RST_N */ - reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&cam0_default>; - - clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; - clock-names = "xvclk"; - clock-frequency = <19200000>; - - /* - * The &vreg_s4a_1p8 trace is powered on as a, - * so it is represented by a fixed regulator. - * - * The 2.8V vdda-supply and 1.2V vddd-supply regulators - * both have to be enabled through the power management - * gpios. - */ - dovdd-supply = <&vreg_lvs1a_1p8>; - avdd-supply = <&cam0_avdd_2v8>; - dvdd-supply = <&cam0_dvdd_1v2>; - - status = "okay"; - - port { - ov8856_ep: endpoint { - link-frequencies = /bits/ 64 - <360000000 180000000>; - data-lanes = <1 2 3 4>; - remote-endpoint = <&csiphy0_ep>; - }; - }; - }; -}; - -&cci_i2c1 { - camera@60 { - compatible = "ovti,ov7251"; - - /* I2C address as per ov7251.txt linux documentation */ - reg = <0x60>; - - /* CAM3_RST_N */ - enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; - pinctrl-names = "default"; - pinctrl-0 = <&cam3_default>; - - clocks = <&clock_camcc CAM_CC_MCLK3_CLK>; - clock-names = "xclk"; - clock-frequency = <24000000>; - - /* - * The &vreg_s4a_1p8 trace always powered on. - * - * The 2.8V vdda-supply regulator is enabled when the - * vreg_s4a_1p8 trace is pulled high. - * It too is represented by a fixed regulator. - * - * No 1.2V vddd-supply regulator is used. - */ - vdddo-supply = <&vreg_lvs1a_1p8>; - vdda-supply = <&cam3_avdd_2v8>; - - status = "disabled"; - - port { - ov7251_ep: endpoint { - data-lanes = <0 1>; -/* remote-endpoint = <&csiphy3_ep>; */ - }; - }; - }; -}; - /* PINCTRL - additions to nodes defined in sdm845.dtsi */ &qup_spi0_default { config { From patchwork Sat Nov 12 17:26:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 625753 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A58DC47088 for ; Sat, 12 Nov 2022 17:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235065AbiKLR1E (ORCPT ); Sat, 12 Nov 2022 12:27:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235048AbiKLR1C (ORCPT ); Sat, 12 Nov 2022 12:27:02 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BA5183B1 for ; Sat, 12 Nov 2022 09:27:01 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id bj12so19075790ejb.13 for ; Sat, 12 Nov 2022 09:27:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SW1r5A1hXNoZH6nEqF4dUZL+EuJMyzrztmVIxOhjiNs=; b=d0rqWd2ROhCeMqItrY0s6ZyhyL/DkJKtZNMrjKTajV15rFO9E3PatqYtHESnrxlnw9 Gw66PqLaHesZMl33EA20vXYgBZBL7jPAS19TQBXFfwj644SizU3hRDW0gHqu1lLktCjn CprMyumm7jdrZ9ftokGlu1gBZb+6CamVOe+h7b29nae9YBrv0JXIRInfTzu4WIjndUWD 5YV2/nvgYtijSWhmB2wAabcL0+LmyZhbLhfdx1Zwq7o+3eYXiczmmqdPiLMY3brf0lEN hMKfEa+WZkmUd+LPTPLLj2ueVwURV7V1TwUx+BU8p4xfX/qVgJmjpZqzSPfqwW/ojnsF ejvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SW1r5A1hXNoZH6nEqF4dUZL+EuJMyzrztmVIxOhjiNs=; b=h8C61SecuaKqNRtDdCWNXzQHpmsszrnjQGqMD+UjnQq6Pe+JwsIb+lPAjk4o/nevdD kRKIQNZGd4pTqti3gYA6917phHjUtiP2CBr46P5Pw2Dtx/seobYPl1NeUmH4uqp9sltE FuliQNi3zBwJNtZoPWXkLSGiFzeA+vM0Sh966nMDRD0uIb3fskvUGFYhmU4DJ3z02fj9 BV+oX10deNcZVW6YMYzV3P0HB8nzbt5r6LYTcFwFRG6EYE8fwxM2Qk/P6osFxgquCau/ U+yTMf2XZiDu41w4tDjUhvQ4XsabbHpiPHAeST6zTKqjMzVB6dLaNgtoGw6++D8tkq3C TwUA== X-Gm-Message-State: ANoB5pmlX3smiE3k05cr5OqwU2blje/XPQQgSIBv+g/UF9AI0Y18NdbU fB7V6ZoF1A9eISeWLL5wdK3CMw== X-Google-Smtp-Source: AA0mqf6JkadfF0Xg+BNYVPuwe4u3uA3lS9ReUnGIBU4q9V+mI06Y1wKol/KPEGL0ob5VIoacGMfhtA== X-Received: by 2002:a17:906:7c0e:b0:7ad:2da5:36e4 with SMTP id t14-20020a1709067c0e00b007ad2da536e4mr5352772ejo.680.1668274020022; Sat, 12 Nov 2022 09:27:00 -0800 (PST) Received: from localhost.localdomain (2001-1c06-2302-5600-3861-6a56-0346-9c90.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:3861:6a56:346:9c90]) by smtp.gmail.com with ESMTPSA id qo9-20020a170907874900b0078c1e174e11sm2099265ejc.136.2022.11.12.09.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 09:26:59 -0800 (PST) From: Bryan O'Donoghue To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org Cc: sakari.ailus@iki.fi, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, quic_mmitkov@quicinc.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH v5 5/6] arm64: dts: qcom: sm8250: camss: Define ports address/size cells Date: Sat, 12 Nov 2022 17:26:49 +0000 Message-Id: <20221112172650.127280-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112172650.127280-1-bryan.odonoghue@linaro.org> References: <20221112172650.127280-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The ports {} address and size cells definition is the same for every derived 8250 board so, we should define it in the core sm8250.dtsi. Suggested-by: Konrad Dybcio Reviewed-by: Vladimir Zapolskiy Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index d517d6a80bdcb..f28a8893d00d7 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3412,6 +3412,11 @@ camss: camss@ac6a000 { "cam_hf_0_mnoc", "cam_sf_0_mnoc", "cam_sf_icp_mnoc"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + }; }; camcc: clock-controller@ad00000 { From patchwork Sat Nov 12 17:26:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 625752 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13442C3A5A3 for ; Sat, 12 Nov 2022 17:27:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbiKLR1F (ORCPT ); Sat, 12 Nov 2022 12:27:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235040AbiKLR1D (ORCPT ); Sat, 12 Nov 2022 12:27:03 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE71F1742E for ; Sat, 12 Nov 2022 09:27:02 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id k2so19230811ejr.2 for ; Sat, 12 Nov 2022 09:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z7QgvGNEwbhmBG8RfAUhGnCMf8oICSZxdmaf5EMA/lI=; b=jQOWHK/RLj6Nt67dAQ29pP5GsD2NQHPkvvOHjeZCzNOvnzrKMjttB2suQ0Jzedr9gI Q4xOjtCv5PmFwHdx3bhxlzoWNTxvC8rMGpYjOlSUZs0hteqaRvkvnGKjP9U8cJtVy7+Z 8aFrJlS1Ifpu8blLKs7gN5eBtl2rXsDW83nbTKoru8T8+JXm31fFhY5kr8ReS1BVXkb1 zltuYRTxBQGSpbwCWsAEnjG3vHu1qKcEoYIkb9f2zbovTZ6l6J6IwqD7nKDzN810Bqkd rhIDkAEVALTN2H5exVC6niNKJ6+qLj08r675LdcRm6Ebsjgkh20CxJ9Ya2FlNgw6tX6v 2mXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z7QgvGNEwbhmBG8RfAUhGnCMf8oICSZxdmaf5EMA/lI=; b=ZCkPpEzsmZuLPhuwzsk39EwYVqrUASHb802N4OTqXCbYD5L1xqy2+L2uRriUaDcd6h rT1wgfFcNp+ddyZ9IYJGTpooWE7AiWMebVleUBtX9sBAaWJ+06uZaxtu1ZE7OOXMIrQD BXZaNiG9eCU5S5aIJwSodzJtUrMQkrimhWdWnIcHWmpaV6kS/NgQZ66nUc2xClok4IWJ 3E8hfBAbzkx6hqBRL7B5kkpoOmWJEZ8AQqBEZy0A4nr/S+VxqYlXLh9GqKoAuEmO+Fpr NVUSR7kUygctB9uAODb2galW0ZBsEwY4x+Qk3u4LsXEUXeNQv2Jv/EZnzNKz7SdYg9cq 2mJA== X-Gm-Message-State: ANoB5pkQsgeIJMS/k9JlhByJmLUKeZJjzzPGtvX7H2GtmdVY51+l52K8 tCiUu/e2rmgibkMD5rWVE8Eh3w== X-Google-Smtp-Source: AA0mqf4u852UGyZmqz0faQeeeBJmJVkzRVoRS/HyRLwfwX4dBQssrVE61mnbU1FhfEM4nD1xP0309Q== X-Received: by 2002:a17:906:9f04:b0:7ae:ed2:5367 with SMTP id fy4-20020a1709069f0400b007ae0ed25367mr5688859ejc.521.1668274021268; Sat, 12 Nov 2022 09:27:01 -0800 (PST) Received: from localhost.localdomain (2001-1c06-2302-5600-3861-6a56-0346-9c90.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:3861:6a56:346:9c90]) by smtp.gmail.com with ESMTPSA id qo9-20020a170907874900b0078c1e174e11sm2099265ejc.136.2022.11.12.09.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 09:27:00 -0800 (PST) From: Bryan O'Donoghue To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org Cc: sakari.ailus@iki.fi, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, quic_mmitkov@quicinc.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH v5 6/6] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Add vision mezzanine Date: Sat, 12 Nov 2022 17:26:50 +0000 Message-Id: <20221112172650.127280-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112172650.127280-1-bryan.odonoghue@linaro.org> References: <20221112172650.127280-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Vision Mezzanine for the RB5 ships with an imx517 and ov9282 populated. Other sensors and components may be added or stacked with additional mezzanines. Enable the IMX577 on the vision mezzanine. An example media-ctl pipeline for the imx577 is: media-ctl --reset media-ctl -v -d /dev/media0 -V '"imx577 '22-001a'":0[fmt:SRGGB10/4056x3040 field:none]' media-ctl -V '"msm_csiphy2":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_csid0":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/4056x3040]' media-ctl -l '"msm_csiphy2":1->"msm_csid0":0[1]' media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]' yavta -B capture-mplane -c -I -n 5 -f SRGGB10P -s 4056x3040 -F /dev/video0 Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/qrb5165-rb5-vision-mezzanine.dts | 63 +++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 33 ++++++++++ 3 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 70ce09bc63a33..5eadd251a0a16 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb dtb-$(CONFIG_ARCH_QCOM) += qrb5165-rb5.dtb +dtb-$(CONFIG_ARCH_QCOM) += qrb5165-rb5-vision-mezzanine.dtb dtb-$(CONFIG_ARCH_QCOM) += sa8155p-adp.dtb dtb-$(CONFIG_ARCH_QCOM) += sa8295p-adp.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dts new file mode 100644 index 0000000000000..315d524045cf3 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dts @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Ltd. + */ + +/dts-v1/; + +#include "qrb5165-rb5.dts" + +&camss { + status = "okay"; + vdda-phy-supply = <&vreg_l5a_0p88>; + vdda-pll-supply = <&vreg_l9a_1p2>; + + ports { + /* The port index denotes CSIPHY id i.e. csiphy2 */ + port@2 { + reg = <2>; + csiphy2_ep: endpoint { + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&imx577_ep>; + }; + }; + }; +}; + +&camcc { + status = "okay"; +}; + +&cci1 { + status = "okay"; +}; + +&cci1_i2c0 { + camera@1a { + compatible = "sony,imx577"; + reg = <0x1a>; + + reset-gpios = <&tlmm 78 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&cam2_default>; + pinctrl-1 = <&cam2_suspend>; + + clocks = <&camcc CAM_CC_MCLK2_CLK>; + assigned-clocks = <&camcc CAM_CC_MCLK2_CLK>; + assigned-clock-rates = <24000000>; + + dovdd-supply = <&vreg_l7f_1p8>; + avdd-supply = <&vdc_5v>; + dvdd-supply = <&vdc_5v>; + + port { + imx577_ep: endpoint { + clock-lanes = <1>; + link-frequencies = /bits/ 64 <600000000>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csiphy2_ep>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index f28a8893d00d7..83604b9772766 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3798,6 +3798,39 @@ tlmm: pinctrl@f100000 { gpio-ranges = <&tlmm 0 0 181>; wakeup-parent = <&pdc>; + cam2_default: cam2-default-state { + rst-pins { + pins = "gpio78"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + mclk-pins { + pins = "gpio96"; + function = "cam_mclk"; + drive-strength = <16>; + bias-disable; + }; + }; + + cam2_suspend: cam2-suspend-state { + rst-pins { + pins = "gpio78"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + + mclk-pins { + pins = "gpio96"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + }; + cci0_default: cci0-default-state { cci0_i2c0_default: cci0-i2c0-default-pins { /* SDA, SCL */