Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp26714rdb; Fri, 29 Sep 2023 15:23:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdiMa0s8LyXVkRSsndoYgXnx1Jp+72fuSen1sKs6z6O92K10h8aajjaLjWfvqiJPXbFu1S X-Received: by 2002:a17:90a:64f:b0:279:104e:1779 with SMTP id q15-20020a17090a064f00b00279104e1779mr5431402pje.16.1696026223138; Fri, 29 Sep 2023 15:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696026223; cv=none; d=google.com; s=arc-20160816; b=YFThM55U4zm0ZIOKLNj7iVvh69OpXyIH43P3JmmL4c1VxtVxOWI0gPwdKiWggBylLO nynNwqnr2DLVIjt4UuWc53wN23NJSEsrwDN0mLBxYhYx2cTxeTXKCQ5xtoEQ6c3puvxJ 033DWuIeIyBcxziq+Q7LCu8tJdgm1Dpgy7zqGA7Bk0jph7senaSbEnb2ITazpJzPCvmo wCd1AhKDO8ZZPri9ZXVeEIifC7Rr0IZxDeYqW77URKTxGyjVkh3kDK5eoptH1v1Bmoa5 XWjfkTDuALgluXqzLjyGbn4di3mykYVqkvgLB+XGsQptmI79pqFVHGXA4VtZ7VNFf73j Y6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Fo/ZMhzFTF6G7gZ+jZPeOdnwccHM0rKzSSb1DVm0Tfg=; fh=txWW7KzDndCkAlunZ/ZKYIognu8zx/YgRrkhsO5LEOs=; b=TcrXIEnN66KTabQU27vHB294jrsQ8hllqALhZ+eNrV23QC+Q/eiJY05SQJaVutineT ja3ax7pAvJ7918D1PF/KDQ6qh8LpTIHPDoN+pZjVvSCgQhhBVmlRVS2qEhk+/FYfauGO 1szgI2xOPZibRmGia9upYj6J8egjw9ONC5+lvvKl6u13I1LDO5E0VXnKGK1DIVB4ZkbK 5jC9VxFw0tbdZ4+atIH8NGoABER3mOz6vcD0Uavc3iVzqLtGRcZTaDIJqY7CCxreQNNX pYGqZqzRFodpUKN98Mveqmeye4mC69h/ck+PREAEIiTlG5QpR5awY/ypPNGzFKUB/tpZ PbzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20230601.gappssmtp.com header.s=20230601 header.b=p2glEL5f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u9-20020a17090adb4900b0026d40e6a7d0si2364639pjx.56.2023.09.29.15.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 15:23:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@nexus-software-ie.20230601.gappssmtp.com header.s=20230601 header.b=p2glEL5f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C98EC80A68A8; Fri, 29 Sep 2023 07:15:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233429AbjI2OPh (ORCPT + 99 others); Fri, 29 Sep 2023 10:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233344AbjI2OPV (ORCPT ); Fri, 29 Sep 2023 10:15:21 -0400 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 2610210CC for ; Fri, 29 Sep 2023 07:15:15 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-405497850dbso122077205e9.0 for ; Fri, 29 Sep 2023 07:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20230601.gappssmtp.com; s=20230601; t=1695996913; x=1696601713; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Fo/ZMhzFTF6G7gZ+jZPeOdnwccHM0rKzSSb1DVm0Tfg=; b=p2glEL5fXsTtp1TuynekPMs2GvwJ289ScEdvRSWwnUCZiMKY7UvVR8Cd4M+VegASna NiFoLbnigJC5/1oYnSoXFfE/hBk3teNcTdB8wWp+buUYT/r0hPyfhTfxxhL82V4hVWwS 5tgQPCbZ0Mnh3Q5QdNONzzuXBinAL9NI6Fuj7bKVjgl1j/hxbldugDjF4FmwmPIS/WlL 0HQZkD03uThpNKmB00Rjl3+Tv2nKK9MVL+W3lQwyTfkieQtiTCw5LSk+Rp4HbYN/leyc Blk9AsV05zu1PvH21eqtuBS5dX+tTsg4mdBQtmrIdAba8ewANoHcCAAUR2noSBEEbNYi khVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695996913; x=1696601713; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fo/ZMhzFTF6G7gZ+jZPeOdnwccHM0rKzSSb1DVm0Tfg=; b=erwiNUQ8fYMmgOsMYgwn9Hw51XlcmKZ8WwbOqu/nRIOYaqt5+95g9bBHtBxyQpiyim LFn8zCi1u8thh9ZwilYwLqI8n/JNbZN6VdrDojm2hfsjIKNjsFP/bYDBM2qw/rm4/PSs Dv/UDJ0k2DkFLtNUervdkrS/oPJHrXnpfpBfY4uwIk58U0PYFwZr+Qae4zWe3s90lWFc KLWV0Xgz75hJgGPFq5pDr2WXtrSFpk3iObCW0+aFShKm9zLbkVOFmZgTfILrIf4okkX+ hxnfKrpay7jTyfsCceTk5BotJqV97nSfHjUXPd7fi0kb0DVM76GojsxOE7xryjPPhzdV 0+8Q== X-Gm-Message-State: AOJu0Yy6XHRm5g7KnqgO+DuDlPQXpMJZas9C/XsnxK/+yqPt//piXvwm IUREFW8KRvN/NO+ypATJHcbhoQ== X-Received: by 2002:a05:600c:2113:b0:405:1ba2:4fd1 with SMTP id u19-20020a05600c211300b004051ba24fd1mr4202922wml.24.1695996913089; Fri, 29 Sep 2023 07:15:13 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id g12-20020a5d698c000000b0031c8a43712asm21607937wru.69.2023.09.29.07.15.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Sep 2023 07:15:12 -0700 (PDT) Message-ID: <1b5bd391-4bb0-44ac-88d1-e326bec4dd7d@nexus-software.ie> Date: Fri, 29 Sep 2023 15:15:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Add Camera Control Interface busses Content-Language: en-US To: Konrad Dybcio , Luca Weiss , Andy Gross , Bjorn Andersson , Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Bryan O'Donoghue Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230929-sc7280-cci-v1-0-16c7d386f062@fairphone.com> <20230929-sc7280-cci-v1-2-16c7d386f062@fairphone.com> <8dd470e5-ce33-3d33-98f1-e66935ca7b56@linaro.org> From: Bryan O'Donoghue In-Reply-To: <8dd470e5-ce33-3d33-98f1-e66935ca7b56@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 29 Sep 2023 07:15:59 -0700 (PDT) On 29/09/2023 14:35, Konrad Dybcio wrote: > > > On 9/29/23 10:01, Luca Weiss wrote: >> Add the CCI busses found on sc7280 and their pinctrl states. >> >> Signed-off-by: Luca Weiss >> --- >>   arch/arm64/boot/dts/qcom/sc7280.dtsi | 136 >> +++++++++++++++++++++++++++++++++++ >>   1 file changed, 136 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi >> b/arch/arm64/boot/dts/qcom/sc7280.dtsi >> index 66f1eb83cca7..65550de2e4ff 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi >> @@ -3793,6 +3793,86 @@ videocc: clock-controller@aaf0000 { >>               #power-domain-cells = <1>; >>           }; >> +        cci0: cci@ac4a000 { >> +            compatible = "qcom,sc7280-cci", "qcom,msm8996-cci"; >> +            reg = <0 0x0ac4a000 0 0x1000>; >> +            interrupts = ; >> +            power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; >> + >> +            clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, >> +                 <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, >> +                 <&camcc CAM_CC_CPAS_AHB_CLK>, >> +                 <&camcc CAM_CC_CCI_0_CLK>, >> +                 <&camcc CAM_CC_CCI_0_CLK_SRC>; >> +            clock-names = "camnoc_axi", >> +                      "slow_ahb_src", >> +                      "cpas_ahb", >> +                      "cci", >> +                      "cci_src"; > I guess this is more of a question to e.g. Bryan, but are all of these > clocks actually necessary? > > Konrad Hmm its a good question, we generally take the approach of adopting all of the downstream clocks for these camera interfaces verbatim. The clock plan for this part only calls out cci_X_clk and cci_x_clk_src for the CCI however we know that to be incomplete since we *absolutely* need to have the AXI for the block clocked to access those registers, same deal with the AHB bus. AXI: registers AHB: data In the above list the only clock you might conceivably not need is CPAS_AHB_CLK. Let me zap that clock from sdm845 since I have an rb3 right in front of me and see what happens. Crash and reset --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4402,13 +4402,11 @@ cci: cci@ac4a000 { clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>, <&clock_camcc CAM_CC_SOC_AHB_CLK>, <&clock_camcc CAM_CC_SLOW_AHB_CLK_SRC>, - <&clock_camcc CAM_CC_CPAS_AHB_CLK>, <&clock_camcc CAM_CC_CCI_CLK>, <&clock_camcc CAM_CC_CCI_CLK_SRC>; clock-names = "camnoc_axi", "soc_ahb", "slow_ahb_src", - "cpas_ahb", "cci", "cci_src"; I think the list is good tbh Reviewed-by: Bryan O'Donoghue