From patchwork Thu Nov 17 00:32:26 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: 13045968 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 3375AC433FE for ; Thu, 17 Nov 2022 00:32:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234401AbiKQAcp (ORCPT ); Wed, 16 Nov 2022 19:32:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233716AbiKQAcn (ORCPT ); Wed, 16 Nov 2022 19:32:43 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 132A245A08 for ; Wed, 16 Nov 2022 16:32:42 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id t4so78451wmj.5 for ; Wed, 16 Nov 2022 16:32:41 -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=X8ELHDGYZkvIUDG1EOo8d9+2Q92ZZ7kCaKvs0deEyqA=; b=W25TP9+nSxFtCu11gy5JbWvSQ9cc/VgfL4wbgyjTvLJ6p7veEZWBh1RtfNk5T/wVYo 0Z2O/nhaq6pXpl2aq80kjc0KoDJZIBxpQs2LY78Kx8iWpEOSMB0vzJgLuxVLYlhidwU2 lJvDQV5RpLuGecBmFto2kzBjK6AeC3sr2OBpNXgZtfn5ZEIRzbQGN72uLjH6N2ZHe01O maSad5+Q7ZHGkuXN6gU5l83lsiBq67qpFdUWkwf+A6QUQ0Ny/4/IX5NSkbzWKMHuku9S zvMcDEsYq0qDYJcQfzyxg3rcrsAxArqcN6WHpUTxUK19IHgbPXNSgOVSnQh/a+LZavyq 9RKg== 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=X8ELHDGYZkvIUDG1EOo8d9+2Q92ZZ7kCaKvs0deEyqA=; b=XOncdTcb/hNjEtC5XgwqG7bwm8YUe8I74bqwugi7Mayzk+RJ4ULQdiXodBsBWkhsLY hkFRu5w8oWTxtZ85izS9ZJad3KfdMNdw5xbM7Y5TyreLSYRnhNLR0eEBkz0cH/KjDr3u RbfL4AkusTgpF5NZFvvzXN2Q87VHszHnydgozbrSTLaIFJnWyzntvxp8ZUs9UdP5seaB 5aFUeeJhvBn9/0HruwskYKVbjU/Alcktb0R3Z03fA7piqxaselMgVdTWFtlQL7liMLzC BYExTkTNX/ArNFlvs8yq/iaAUujdMhRAQ1p+Q3lwvIrTrd084SpW9zlG+0yfATHnsZnG 19Dg== X-Gm-Message-State: ANoB5pmq4hRfQezvYUQVFvoMrmYDAkB0nQ88TP1KGMiI+W0pou1K+4Ne qhvAoPcuRW6TCFwtY6SxdM9Ljg== X-Google-Smtp-Source: AA0mqf63J+419+aiLtn1nm91IX+YhUxYIRBFbwvesdyErzoQds1xxEGLUef1H1Efqewa/T4NyeLd0Q== X-Received: by 2002:a05:600c:43d6:b0:3cf:a856:ba2f with SMTP id f22-20020a05600c43d600b003cfa856ba2fmr133372wmn.37.1668645160694; Wed, 16 Nov 2022 16:32:40 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:40 -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 v7 1/7] arm64: dts: qcom: sdm845: Define the number of available ports Date: Thu, 17 Nov 2022 00:32:26 +0000 Message-Id: <20221117003232.589734-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The number of available ports is SoC specific so we should define it in the SoC dtsi. For the case of the sdm845 that is 4 CSI PHYs => four ports. Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 1a257f6728874..29e6d64e74c97 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4368,6 +4368,22 @@ camss: camss@a00000 { ports { #address-cells = <1>; #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + }; + + port@2 { + reg = <2>; + }; + + port@3 { + reg = <3>; + }; }; }; From patchwork Thu Nov 17 00:32:27 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: 13045969 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 CAA11C4332F for ; Thu, 17 Nov 2022 00:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233817AbiKQAcs (ORCPT ); Wed, 16 Nov 2022 19:32:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233716AbiKQAcr (ORCPT ); Wed, 16 Nov 2022 19:32:47 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D789528BF for ; Wed, 16 Nov 2022 16:32:46 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id v1so248932wrt.11 for ; Wed, 16 Nov 2022 16:32:46 -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=hcJ7ckAKj+TSphLa5849tAwMuokA6a0ep+HYiPX+3Ow=; b=cQQvvk1kDr4i4SBvObsya6cZwKnIa16mT68QlToRDuYEs/24YJEWoLI7lQdWAyybUB MbsEFzzx7xQ4B4PWJlkj1ZZDXuVqBlvqViCn6U89TfQnaFN5k+MlgpzsgmIPz38Zh2J1 B86iRBXOrTajo5rvv/zirLbuKUzwMAKC84WZDufEK4k2WIuec5aAiietxNISWNEGZDNj boAWuKkzNoNDJixiQrvZCehXqUqJQU6ReXiHy1vYF/S0LPbg6SvyS9LWQbfXN2s5ErpT 5U7LMWBwsGwjg1dzPL4cCIyEMpg7VHfJciz9JIrc33oNueWRykZ/P/9bfa9W9KB2HgAe OTaA== 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=hcJ7ckAKj+TSphLa5849tAwMuokA6a0ep+HYiPX+3Ow=; b=5S8DENVOhcetQ7RuGeIOOCEpUIzVz/Lf+/UNV++DlxOYkilR8ntf/1eEZYGNvktE+Q SEVFqDvNIbfnZqwiyb5uWQ9X0zRKF7GRM5KXhlJTqWHzRrZBhvWATLac8eTXK3Da5Nsu uWOWZOKFVEy7D1HXxP0cXdtAxHuNmxbIsAkErHJ/7N4p0IxLhqoE7jNgiMmb9RZjjcyo ee+PrbM/oeOou2UgycCFyVIJlIUQND75XCYVEHUVkZM42w2hS+cSypQDLMUfvP5LD8KI m63qlBc67ST7b9ewDLx3lSH/l0/+KMdxnshoNZW5d01vVFGZ6PBgYjqg9hrUay10c7Iu tGCw== X-Gm-Message-State: ANoB5pkLDShJlS05AvyA1OEtFs2USAX+ohGW3R1f/EnKkf3DGkykdpyj F4Tv89lhiIiBORNwPd+rY84MPKnKEfQvFQ== X-Google-Smtp-Source: AA0mqf70iLy8S8U5QPDOOmqfP80gM9a/zZ1GBcJW3JaLKQ5aX/3Z2mYMeq405Rgw97SmXGsC0yPzJg== X-Received: by 2002:adf:f951:0:b0:23a:2311:b35 with SMTP id q17-20020adff951000000b0023a23110b35mr36523wrr.183.1668645164922; Wed, 16 Nov 2022 16:32:44 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:44 -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 v7 2/7] arm64: dts: qcom: sdm845-db845c: Drop redundant address-cells, size-cells declaration Date: Thu, 17 Nov 2022 00:32:27 +0000 Message-Id: <20221117003232.589734-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@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 Reviewed-by: Laurent Pinchart Reviewed-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 Thu Nov 17 00:32:28 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: 13045970 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 75501C43217 for ; Thu, 17 Nov 2022 00:32:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232682AbiKQAcv (ORCPT ); Wed, 16 Nov 2022 19:32:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbiKQAct (ORCPT ); Wed, 16 Nov 2022 19:32:49 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE865803E for ; Wed, 16 Nov 2022 16:32:48 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id a14so300415wru.5 for ; Wed, 16 Nov 2022 16:32:48 -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=hQcr30bJP1FYEY+9bPzjICI4lLDqoYAjeySIr0YdZDc=; b=tZNT/ZwjsmTHBJ7QozvWWX+BmmVI1DlvlVLR1W3eaFlFL09/+kQX6clfmJA3cMbRG5 HJFWrxSw9a5WIF9y2GiYX41D+OYewVOmxSGEZHBKZkoLwXZ9CAjobcloTNC8+gu6n7Hf exen9nPgZAG12Sa2E8YIspaKZNHPpv0bCqeLrCKXoAXDISxgJcIsf/WTxAHlyTxzxAJO SXwRRQo2DLiUjLIAcqHg82cgjgH9Akg0p1G7PNi57dS1sn4t7AMETCOmKxBTla1CqAHg Cv1ELX+ZYO6Qv4/1buZSwUERsaMyNUQ5YN3GeTcypIBmwSWPMGWid2f4fGAcekLrhE/p Ruaw== 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=hQcr30bJP1FYEY+9bPzjICI4lLDqoYAjeySIr0YdZDc=; b=aOoqw3w1Eb+aOvoW6DWDkqOFZ6HlKqTsG/gUvs+/kmBK28+gOaM8F3Q1pg4OqmxfiD fCCHogV6doYEjydRvVAtiDSGTu7wj/6vMzsb5u0LJIjzYk1Vum/984IgASr/9cvQnEMO qLb0qfldLRSvw8GwaCdtSsle8UPKsBYKeaRuK481Br/ZrMPxivt5ZRZMvHQqSjdJGA3A DVcy3tXh+J0fmqaRSO6G+k7RoOMwCZ9KJfj9F1oPB9AoVxYsapp+uu7SemmFzTkqx9Y3 bJnAOSV8/qXJT+QNzsQ2AugE0AKCZa471eFYjcomKKHMwqD0hlj1WN+TTadYqkZj7DbA TE8Q== X-Gm-Message-State: ANoB5pnBPPAB4+rL5CmcACTdXHBgmdyKPZsaUUWcJyXToJFili9Q2oEZ tsarXlIzwaVYqm9AsHM0OLmeWH664l0cxQ== X-Google-Smtp-Source: AA0mqf6e/GV5irgamuTCPec/NEXyzqwIkzhdd9VFF8XDTAFHpbntDfqoOzuSQfwxNWNMdhnVUt3cEQ== X-Received: by 2002:adf:e986:0:b0:241:8435:ea7e with SMTP id h6-20020adfe986000000b002418435ea7emr40429wrm.103.1668645167318; Wed, 16 Nov 2022 16:32:47 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:46 -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 v7 3/7] arm64: dts: qcom: sdm845-db845c: Drop redundant reg = in port Date: Thu, 17 Nov 2022 00:32:28 +0000 Message-Id: <20221117003232.589734-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The reg for the port is specified in the dtsi. Remove from the db845c dts. Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 7c88312333c22..8a98f3e86b41d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -1186,7 +1186,6 @@ &camss { ports { port@0 { - reg = <0>; csiphy0_ep: endpoint { data-lanes = <0 1 2 3>; remote-endpoint = <&ov8856_ep>; From patchwork Thu Nov 17 00:32:29 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: 13045971 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 94D9CC43219 for ; Thu, 17 Nov 2022 00:32:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234504AbiKQAcy (ORCPT ); Wed, 16 Nov 2022 19:32:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbiKQAcw (ORCPT ); Wed, 16 Nov 2022 19:32:52 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A71457B66 for ; Wed, 16 Nov 2022 16:32:50 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id w14so276309wru.8 for ; Wed, 16 Nov 2022 16:32:50 -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=tcdtstQsKk2G63NblmToYrdyw9q10P2eTnPQzla04GU=; b=sOecY4Fy4anRIpLdMV4e3kkrJS/n1KuUajiBVjcycQ5IeewDlfGPLhkYIDQSj8prXE RP0NL5LvubhuVU51gzbyk7OiPh6bsFB01sKDn4kNoaBws4KfHYK8hF7ykFMV4HRZ6oQ7 MHzVL5c956hhIKVw/GDR2rZY129TcQ0D2X6V0+doPc/z+pjikIKUylqcEtblZiZ/DU7l 9/DIoC2oSXqEH0O3bBKITj7gJ2nVSPzk/eg1Np4vQrBVxc8dnrMsPg2LZGxMgaxYXUeH jD2MH5gkFQ06p6slE4+qIE6TU8QisTYZJlXT6NuXlhX9vnYxh1sieZ/hOwz7YZrY4NRc uC8A== 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=tcdtstQsKk2G63NblmToYrdyw9q10P2eTnPQzla04GU=; b=ViSZUZHRerm/ftJnZJdYZIEWv2Nh4yA5Mi0kyAgx5sQFILlqdE5MMTEm8WahBdyppQ qym3S8VFCKrF83kZrGHl2alsW0l4gw98mWLonYTyhcims5mA+7TtVUCDsWrXqD2c6rnF IDCkij5DdqONAs2lyxZkt4COqvgkaQxaD4G97TsGUcm96HTQLi8atZHvQtbobcBtJAGv xqeH/GQqqik7B+wOMiZYhKIRHfpUzfx1FhJCziN2q+NvcCcL2pFQ2kbe/ItoK0OduMMz +C88QlOoD+BenrOY2RqYXKhKkYHBnt2x5R234hQYJ17Hy3HsUyBhtiAT5lwPRUSS5W/V dkYQ== X-Gm-Message-State: ANoB5pk9jZrmJuYFd2dIz8Rjzly+mS2ctBqhtSo1FKfY/HEXDA1XNAY9 OtDHbseoWDUPZsRQXBsJO3kKoA== X-Google-Smtp-Source: AA0mqf4FHapTgxG6fDq395XcQt3K1CdqYO2TunjV93yBViJMSmzQATxhzc+FJfPux20YS8mMFSNSQQ== X-Received: by 2002:a5d:522b:0:b0:236:8201:119c with SMTP id i11-20020a5d522b000000b002368201119cmr15244wra.558.1668645169186; Wed, 16 Nov 2022 16:32:49 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:48 -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 v7 4/7] arm64: dts: qcom: sdm845-db845c: Use okay not ok, disabled not disable for status Date: Thu, 17 Nov 2022 00:32:29 +0000 Message-Id: <20221117003232.589734-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Use preferred "ok" not "okay". Use preferred status "disabled" instead of "disable". There's no functional change here so no Fixes has been applied. Reported-by: Konrad Dybcio Reviewed-by: Laurent Pinchart Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 8a98f3e86b41d..be946f71666bc 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 { @@ -1220,8 +1220,6 @@ camera@10 { avdd-supply = <&cam0_avdd_2v8>; dvdd-supply = <&cam0_dvdd_1v2>; - status = "ok"; - port { ov8856_ep: endpoint { link-frequencies = /bits/ 64 @@ -1261,7 +1259,7 @@ camera@60 { vdddo-supply = <&vreg_lvs1a_1p8>; vdda-supply = <&cam3_avdd_2v8>; - status = "disable"; + status = "disabled"; port { ov7251_ep: endpoint { From patchwork Thu Nov 17 00:32:30 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: 13045972 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 ED08AC433FE for ; Thu, 17 Nov 2022 00:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234464AbiKQAcz (ORCPT ); Wed, 16 Nov 2022 19:32:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234455AbiKQAcx (ORCPT ); Wed, 16 Nov 2022 19:32:53 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC90E4730B for ; Wed, 16 Nov 2022 16:32:50 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id t4so78785wmj.5 for ; Wed, 16 Nov 2022 16:32:50 -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=yWW8UuJ/BxO4nM6TqB3D45Z5tX0e7fD6LJhIzNErQBY=; b=ckPgP7ugAWDftenZvRD25uIF770wObV1KHqC9tb/eMZZGEXm3esSv7Tm34uULgptQH KCSKyMy+KCNh6OZiL/XJRUlirQCuodcr1MDd19Y0B4YDcfYkiTSglHDtCPmkBNqexYGK 3D6YLfLzFryzLCrcyNjUeZW7s9Yna5SEc5kukrvKnBBvQFuHJLFn9e3OmT3LBTZRyDES aROdYyr90b9qKDS+uFlKzT7axfHNBDclg8wtbhHhEiaxh3ksCSl7lA17QyhxZXeblF0S CydFXAK5m+YbTnO9gVhg14EwXpWcnT0U2wQ/U7paZ9QBl6fdplf9DXxeNX3MwU6mTW8L 8RMQ== 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=yWW8UuJ/BxO4nM6TqB3D45Z5tX0e7fD6LJhIzNErQBY=; b=cCT8HTL8YMIkyyZaBwaRr6Ia8d4NLNzJxV3m7oyyWsAijGkjVfV2n8X5JOlW5W4dXV S7/+H+IXc+nD5Z/FeQtVZy7u7B6wjcJNXKKMZBEqOdxwzMMPwFxN0XvAOyWPATZxHg2p O4ZHUNFB1EcQzcUt3/dOvALA0hXbu45RzDWu+7anNrb/5Y+SCA+4cmS+MZc5yAHHeLx0 fb0HSw04smiXOQmVOxSMptA0EynQsttBSVi/EpLTtZaEfwwrvtgzLkBd8JaIpgJRCVmO ydQMi2kKVgIbzPSXyxn6vNG0A9FV6I0wHF0NWqqzZFZkKetBbhi9a9iqGeciirAYiyNO GFQw== X-Gm-Message-State: ANoB5pkXiGOHozHHP89U5QZXK4wgYKpuJNvGcIOMOISxAJSlTVAtuSIw ExyNmE7sWs0OvzYjI4+3o/WJbg== X-Google-Smtp-Source: AA0mqf6m6VIvn5gPpltzccX2D6UJ9c+o2lXFgC/9f+ivjIaGwu3NtTUrlO6+uFArIjD5wxCMEB7EsQ== X-Received: by 2002:a7b:cd8a:0:b0:3cf:e0f0:9e8 with SMTP id y10-20020a7bcd8a000000b003cfe0f009e8mr70001wmj.156.1668645170494; Wed, 16 Nov 2022 16:32:50 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:50 -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 v7 5/7] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Add navigation mezzanine dts Date: Thu, 17 Nov 2022 00:32:30 +0000 Message-Id: <20221117003232.589734-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@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 | 104 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 96 ---------------- 3 files changed, 105 insertions(+), 96 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 afe496a93f945..4c81c1ee7f7c7 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -132,6 +132,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..a21caa6f3fa25 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dts @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2022, Linaro Ltd. + */ + +/dts-v1/; + +#include "sdm845-db845c.dts" + +&camss { + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; + + status = "okay"; + + ports { + port@0 { + csiphy0_ep: endpoint { + data-lanes = <0 1 2 3>; + remote-endpoint = <&ov8856_ep>; + }; + }; + }; +}; + +&cci { + status = "okay"; +}; + +&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>; + + 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 be946f71666bc..f41c6d600ea8c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -1174,102 +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 { - 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>; - - 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 Thu Nov 17 00:32:31 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: 13045973 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 C5FEDC4332F for ; Thu, 17 Nov 2022 00:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234497AbiKQAc4 (ORCPT ); Wed, 16 Nov 2022 19:32:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234476AbiKQAcx (ORCPT ); Wed, 16 Nov 2022 19:32:53 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D45C5BD62 for ; Wed, 16 Nov 2022 16:32:52 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso3210420wme.5 for ; Wed, 16 Nov 2022 16:32:52 -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=J5GtwnbHFc8JFwvCMf+qKNxY1iza8pBV0u1xvIJjvmI=; b=AS8t/hBXzwxi5nVWsnoSdYaw3l5EsXTlzAm39sRlLRHGwpTmY2sBk2ZtXcsPH8gbiK E33hzBZFv6qkl7v564PeKFudnQ8SJfbmJOAZc4HziJEzA0kuDaoy3TVSl0nf4K2x45i7 7r4rxCgTgbMhZYfMXODBCYxq0OSHgA3zwYozt64kuqXzQOkmUABP5d4/kAU6QQPdw5/F TwYpnj7m1OjBumdkFKYL+Fh+d98MGTHjsvMMxjXd6q7d8Bnjr8YnF+e4mWqsLup3RuKM ZH0+krWw09wVjHdbJG5VX2qv0e7xuglRU/V5P/vfedePO3LD6NmfyWWEmk/VwsjvBbNb KySg== 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=J5GtwnbHFc8JFwvCMf+qKNxY1iza8pBV0u1xvIJjvmI=; b=DXiXdsl6uEQ9t4zvmGSOUT87GDnJ/3jV27nfBc+sxcgOGaeRGmU7X23ajpGWSvpZUV Zs2aNmcObsYs3kDtyzwSyh7xcr1P80X9SNEC8rTn8KQUn6iHdNh1QeA5GekB6H/jINt+ Xfv+D3g5b1FX6wMPlKuI7LnM0MlHR9tkzCremTxkGSHvEMOpHfaxPe8zv2pZj9UvtKzE juhtMJjCFzggHh1J62h1i/5xuDMd+0BS0tcwlsFZ9jgp1cOnO6IEg0zU8TkOpZ9rVBkK D/fLNlpAhrckCfCGoOPiwh1IajZNdOPQBAhxVNuSvlcqY6luHCY2n16/Ev3k9H1uAyn7 8P8Q== X-Gm-Message-State: ANoB5pl8NAzHZfl7K4+FLwWhGBm/YBuav7GXLgGgEDZTTFMPDqeyjziW bAiVhYMDGgZzQfI6cLzxnqde1Q== X-Google-Smtp-Source: AA0mqf57JNoZXn+kDpyzVK4BsIzocPIT2S+8TOhlXQm1RVB9cnPGdta9jkAZK1lVbeV48o2sbkON4A== X-Received: by 2002:a05:600c:34d3:b0:3cf:a7a8:b712 with SMTP id d19-20020a05600c34d300b003cfa7a8b712mr3617947wmq.124.1668645171958; Wed, 16 Nov 2022 16:32:51 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:51 -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 v7 6/7] arm64: dts: qcom: sm8250: camss: Define ports and ports address/size cells Date: Thu, 17 Nov 2022 00:32:31 +0000 Message-Id: <20221117003232.589734-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Define the set of possible ports, one for each CSI PHY along with the port address and size cells @ the SoC dtsi level. Suggested-by: Konrad Dybcio Suggested-by: Laurent Pinchart Reviewed-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index d517d6a80bdcb..806aa19ad93ce 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3412,6 +3412,35 @@ camss: camss@ac6a000 { "cam_hf_0_mnoc", "cam_sf_0_mnoc", "cam_sf_icp_mnoc"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + }; + + port@2 { + reg = <2>; + }; + + port@3 { + reg = <3>; + }; + + port@4 { + reg = <4>; + }; + + port@5 { + reg = <5>; + }; + }; }; camcc: clock-controller@ad00000 { From patchwork Thu Nov 17 00:32:32 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: 13045974 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 20D90C433FE for ; Thu, 17 Nov 2022 00:33:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234463AbiKQAc6 (ORCPT ); Wed, 16 Nov 2022 19:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234469AbiKQAcz (ORCPT ); Wed, 16 Nov 2022 19:32:55 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A274C5802E for ; Wed, 16 Nov 2022 16:32:54 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id h186-20020a1c21c3000000b003cfe48519a6so3246311wmh.0 for ; Wed, 16 Nov 2022 16:32:54 -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=cxCtipzlYDIIAQBkY+tMwHx0HI0/L4B0N979h3EHaqY=; b=oEW3vscOD935J3eqACkIICdPZ+ejwNEKrbNLoiapghwZpmbGcGJd/T5KJ3V1tli2ZJ OZYF3db3tnZ7Mu9ALRfaiKlAV5Oup4RPpDjcfVS2s9QT0TnCGzA59Xp+DmrVCpVQ36Nb ua8qvWg6McLEPunhoR8JwdYz3vNZMqKOws5YNUetpohNXsJV8v7qAgninweOWSshahqc sIaUNbVoR9AL9yhOeq/sQ8tDAq3STGI324k0gv84NlFOp4R2Jx/KqkSj3nz4ehYlyNUR n/F3ZqcKnmI33Cuij3QHDrq46PWdW69TIiSVTJU4opKWepQ+4TDAHrbS8+LBZ7EEFSS6 eUaA== 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=cxCtipzlYDIIAQBkY+tMwHx0HI0/L4B0N979h3EHaqY=; b=WStUxeAsSjzCyqmGhKTq1o5UsW1opZQ3Pz1SrWwjZEmfMNrH3T9OJJnuyTefUooD2e 0th+57b2tW+DD3mo/0SDC8Fdow/YwNLN28O8wH0BKHAZxoXMvVF2qCvimxsSkVSW8Ufd nRfk/NxpFcZp7a1a2o5FOPDkrrgCTIOBF/x/jeViLlNdLsDY4fbDgN3YS8GDKzEdCHME WsKnQXNbMmD/8I46jgII9Fya4UD1mPOd4bAADu0f4H77hznn3pikWkjjj53Y1x+PGdMh ypyE4iD+1t0XrbMqVTuFSHcgl0hPCZI+0yjoPZclgTEoZ+NXm+KlhWOMvn9x3zPCN2sm utkQ== X-Gm-Message-State: ANoB5pmkiloCZpDRi2tNKEdjbkZhrm860kEtDYNSwkLc7nbdnpMyXhHT wDbt38Sq2ACGUeEBVu1cHA4U2A== X-Google-Smtp-Source: AA0mqf6DuPmLkEFEaw8/5icatodXnzlJmqBYsUhMnT/7lGQltUMGTmNC18YJ8YCH+QQSUQZ/bBzP6Q== X-Received: by 2002:a05:600c:6012:b0:3cf:cb16:f242 with SMTP id az18-20020a05600c601200b003cfcb16f242mr121301wmb.82.1668645173259; Wed, 16 Nov 2022 16:32:53 -0800 (PST) Received: from localhost.localdomain (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r18-20020adfe692000000b00238df11940fsm16472703wrm.16.2022.11.16.16.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 16:32:52 -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 v7 7/7] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Add vision mezzanine Date: Thu, 17 Nov 2022 00:32:32 +0000 Message-Id: <20221117003232.589734-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117003232.589734-1-bryan.odonoghue@linaro.org> References: <20221117003232.589734-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The Vision Mezzanine for the RB5 ships with an imx577 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 Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/qrb5165-rb5-vision-mezzanine.dts | 62 +++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 33 ++++++++++ 3 files changed, 96 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 4c81c1ee7f7c7..f5a76ec8a85e0 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..bb149e577914e --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dts @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Ltd. + */ + +/dts-v1/; + +#include "qrb5165-rb5.dts" + +&camcc { + status = "okay"; +}; + +&camss { + vdda-phy-supply = <&vreg_l5a_0p88>; + vdda-pll-supply = <&vreg_l9a_1p2>; + status = "okay"; + + ports { + /* The port index denotes CSIPHY id i.e. csiphy2 */ + port@2 { + csiphy2_ep: endpoint { + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&imx577_ep>; + }; + }; + }; +}; + +&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 806aa19ad93ce..d37694342b53f 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3822,6 +3822,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 */