Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6181390rdb; Thu, 14 Dec 2023 10:18:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCGNABlJ2VTkd9TflFinFRQD/57zoBDRKfj2JgYi8eKelJ8Ekv4cLg9w9kgnBFMZ3IVESD X-Received: by 2002:a05:6a20:9711:b0:18f:97c:825b with SMTP id hr17-20020a056a20971100b0018f097c825bmr5487177pzc.101.1702577935081; Thu, 14 Dec 2023 10:18:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702577935; cv=none; d=google.com; s=arc-20160816; b=e1p2wkfdfwFG7C7Agn8e58n45Xcox7ufdE7D5hh7i7/j7LsWoi1NJzf/iS96Qr6yEy TNeEkqErPaEzaK5Qjxf+ery8AdHys2OHduHxOEqZEWMkwUP7kq1SMFy/BV5OIG3ydAxK C73JgZZd00RUAQ9nRcS6P/Z+FPf9xtFbCHQFhH2qNZJHJQQ3WeR4HUTiUbWfyG5mte3y 3FE9GuXR795XKBIVXOg+uXSasFP+HbKWdv62dzSbSnT6qGnK4s+ef109PvzT0EZc8zPA SS2kAOX0ntp1tN2uFQPU6OIqf+tvQUSN1LDyooIj0LrWbYd/BqFoZU7FbOH3L0VPuunx 5rCg== 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=aUXxNIE0oyhaGNjYhqDm71JIvcw2/l7lxWAlHlBLujc=; fh=mY6YjsTpj+BTocZhgE/lETq+wCrcC+aGurPac+ravlk=; b=U6AOpGnfzLbG9qMW4vLVeFF36x6XgpqeoqlTN2vjyQtJPyqTl4DiLZcE+tLVShonAM jDN5eVHiMYMZrV5TOdbnL0dDrT87sWHTSSgDY1dEk0cKKYUv+F96FMGAkWZd2T5MntK6 hzmzIncUClh8J4LG1hy766w3kepISDDWdTOlzrVd5XRTqrCzx4Ube190E3rGvTu8OwQG 6a4eDS2PvmEhc0/8lvo+eXz+6ktHn+w9ulJnHF41lUQ+0+/OFiHHswhWB5iQTg30Zofv hXXgXwOdSF1g8eQaZq9PDCZQYiRs21Q2QHFr8KJD7NrNRii3uWDoW0oefwLGm0j42Mta gDDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kAgstMJo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o20-20020a635d54000000b005b3b8896199si11343644pgm.591.2023.12.14.10.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 10:18:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kAgstMJo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 65392806532F; Thu, 14 Dec 2023 10:18:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1572983AbjLNSSU (ORCPT + 99 others); Thu, 14 Dec 2023 13:18:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444209AbjLNSSS (ORCPT ); Thu, 14 Dec 2023 13:18:18 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4218810F for ; Thu, 14 Dec 2023 10:18:24 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50bf82f4409so930677e87.0 for ; Thu, 14 Dec 2023 10:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702577902; x=1703182702; 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=aUXxNIE0oyhaGNjYhqDm71JIvcw2/l7lxWAlHlBLujc=; b=kAgstMJo59Uulo15INN4HDJUpYM5JnIK6OhLAqGBKXFXoFlG5KzO0OKnGvj4x4U1Bt 99U6Uvg4F/Zk1hRyp2EmW80qYBzV5GpZEbazT3cPB6GdhyfI2vcVP+4zQfavpPs0nE7M U8V/ngLyCpW8C5xBQEv5+IExNEGawEBMITF0FyCrq919AnehwLZsPVTQVUUdGk7IOuTK sAPpyuluR7T+QQxIqxbKHFT0N0boAPJXS83QT5uW5RDGvkZl2sRO3pNENlzq/BNMDq/Z eiweJL7VX7z7LWsbTokpTJTJuaLxe6UQYEDWr7d4GJKkbUuBsI1XmZmhuatJ0aPW+SKA mdLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702577902; x=1703182702; 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=aUXxNIE0oyhaGNjYhqDm71JIvcw2/l7lxWAlHlBLujc=; b=W+6yukuuCJoIuvmiIhgkQqL7omnWvcsnNUjq8KcSu29WE7HyT+eD00hBVUEpxO+WRq P4Y87hYDuvWce2BPzp40Ssf1ltN5wUtlbyBSWLGrGGyWJIGANroM6wERPSMl7KciNDVR KCVUnlyCBd2zA3G0MpECL80pl7wa+traXenOEDFtxeLhY2YH+1lCKTQnrCOH7FvDFoXu i8sk0aVm9xXug3y/CrzMQWrgA0sqKKE1hyUhGcf1AUJ4AyTljoHGMWsSC1Y+MPMK6scn clkNvHPtAM0IG+onaOcr6VK1lISbTMEPqD7HjeJkwoascjVJQNSyyJu4SG9z9PHGkid3 ZR+Q== X-Gm-Message-State: AOJu0YzDcF8OtEfKp7EfKBU8ThzyjSwlaWtakSrUx28NeTY24KO7DuVH AOBxlScRJRXzGLraUNl934RBDA== X-Received: by 2002:a05:6512:398f:b0:50e:15de:9931 with SMTP id j15-20020a056512398f00b0050e15de9931mr1257549lfu.24.1702577902567; Thu, 14 Dec 2023 10:18:22 -0800 (PST) Received: from [172.30.205.72] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id c16-20020a056512105000b0050d1a0e7129sm1659686lfb.291.2023.12.14.10.18.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 10:18:22 -0800 (PST) Message-ID: <92e9039b-a0e3-4f93-aaa8-226ef9e8b613@linaro.org> Date: Thu, 14 Dec 2023 19:18:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 7/8] arm64: dts: qcom: ipq5332: add support for the NSSCC Content-Language: en-US To: Kathiravan Thirumoorthy , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20231211-ipq5332-nsscc-v3-0-ad13bef9b137@quicinc.com> <20231211-ipq5332-nsscc-v3-7-ad13bef9b137@quicinc.com> <8cc2a8ec-632e-4e3b-b13b-d1523a61c136@quicinc.com> From: Konrad Dybcio In-Reply-To: <8cc2a8ec-632e-4e3b-b13b-d1523a61c136@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 14 Dec 2023 10:18:29 -0800 (PST) On 12/11/23 14:28, Kathiravan Thirumoorthy wrote: > > > On 12/11/2023 4:02 PM, Konrad Dybcio wrote: >> On 11.12.2023 04:37, Kathiravan Thirumoorthy wrote: >>> Describe the NSS clock controller node and it's relevant external >>> clocks. >>> >>> Signed-off-by: Kathiravan Thirumoorthy >>> --- >>>   arch/arm64/boot/dts/qcom/ipq5332.dtsi | 28 ++++++++++++++++++++++++++++ >>>   1 file changed, 28 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi >>> index 42e2e48b2bc3..a1504f6c40c1 100644 >>> --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi >>> @@ -15,6 +15,18 @@ / { >>>       #size-cells = <2>; >>>       clocks { >>> +        cmn_pll_nss_200m_clk: cmn-pll-nss-200m-clk { >>> +            compatible = "fixed-clock"; >>> +            clock-frequency = <200000000>; >>> +            #clock-cells = <0>; >>> +        }; >>> + >>> +        cmn_pll_nss_300m_clk: cmn-pll-nss-300m-clk { >>> +            compatible = "fixed-clock"; >>> +            clock-frequency = <300000000>; >>> +            #clock-cells = <0>; >>> +        }; >>> + >>>           sleep_clk: sleep-clk { >>>               compatible = "fixed-clock"; >>>               #clock-cells = <0>; >>> @@ -473,6 +485,22 @@ frame@b128000 { >>>                   status = "disabled"; >>>               }; >>>           }; >>> + >>> +        nsscc: clock-controller@39b00000{ >> Missing space between the opening curly brace > > My bad :( will fix it in next spin. > >> >>> +            compatible = "qcom,ipq5332-nsscc"; >>> +            reg = <0x39b00000 0x80000>; >> the regmap_config in the clk driver has .max_register = 0x800, is this >> correct? > > As per the memory map, 512KB is the size of this block. However the last register in that region is at the offset 0x800. Shall I update the max_register also to 512KB to keep it consistency? No, it's fine, I just wanted to know if it's intentional :) Thanks! Konrad