Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5544043rwd; Mon, 5 Jun 2023 05:23:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mCl9aw4vn2H4Ur8leV5WEIMLhVp5P08kn2D2qbipm+KZ0iCS8hoTGGg1mzuq3pdi9NcjR X-Received: by 2002:a17:90a:8b92:b0:256:845f:333a with SMTP id z18-20020a17090a8b9200b00256845f333amr7567439pjn.19.1685967802006; Mon, 05 Jun 2023 05:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685967801; cv=none; d=google.com; s=arc-20160816; b=Ty70ZjLHD9B7rK5bWo7soSuBDor1XNq6W0kF2p+RLzpT9GGId5ayUnC/qJ9w4ekVbh y7JrYqkv+b5TXIaLBkIkCJqIgXSTq11ZNmYDpxY1ByAGnBM3ePVqGQfcmJTZhpNj93nc KSa2Mi3+EiQ/vjAeUGpNjPN/PRb9shRECI5AYvRo6WYTmvPEjCegt2hlzViR6TcldSTA vJt9LuG43RWBgQeBhK56kOSV5CeXBVkOgHINWaORMvZtg+dPuUfJmhk+lvh6eALTEtqN naAu8Dqfjorqryzp0y18nAjC61lENsWXZ82CixbU4lSqMoYP+twGZGL8jE68Whv56j7d iyLw== 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=Bna0OJEO37zY8GKg8ty2AAFUPBuJk2joFarkAdMMNVo=; b=v3Wyim0b0rUTaAQ4r4NyyMXLEffY2Ooc+Uq5AQNRFvRKz3ZcFKPxGRj2GLE1AcNw6n p+8CZIrurCS54iSQd3OoHIedpRTRi9AbblegF8/96y+sBRlPspUSisxvVCRE+ivbx3RD plr8HsjamYBykFTKvrlBhzZCcScnhZrDGvQsQN79IbQx7S7KpUXvZhy/cbfDAOQmX3a/ mVMfu6g/afn2Pmezp6clhR3ThzCPI7VU4JhEWfTaVeNRbwSjD+UmDLumGM0VrwgEpSni ldn6VUeHpb1ssFm69kfKQaMflzyXQPMhh0VHLhR7pa/EURBPZ+Xja4vpEOcXsaRgDlbR Zw5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=i7S3K7PW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk8-20020a17090b4a0800b0025979e8c246si438612pjb.70.2023.06.05.05.23.07; Mon, 05 Jun 2023 05:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=i7S3K7PW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232824AbjFEMKe (ORCPT + 99 others); Mon, 5 Jun 2023 08:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230296AbjFEMKc (ORCPT ); Mon, 5 Jun 2023 08:10:32 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EABA392; Mon, 5 Jun 2023 05:10:30 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 355CAKPo022936; Mon, 5 Jun 2023 07:10:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1685967020; bh=Bna0OJEO37zY8GKg8ty2AAFUPBuJk2joFarkAdMMNVo=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=i7S3K7PWMO3QWBxvtxbJZgfCEcjiQRna9Ggr3+WTjQre3WcvAZxNuF9bim6w0ttJ+ HaUKYhUOY8b56dar5WEWdWDHgihMYan3DYGUc02Ce1IWid0gB82pQhuZfAtGJ1w4no Q30f1OnB9/vl1v5ZWYdlyz+5EFI+2fwvt+CzTLjg= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 355CAK5h095221 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 5 Jun 2023 07:10:20 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 5 Jun 2023 07:10:20 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 5 Jun 2023 07:10:20 -0500 Received: from [172.24.145.152] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 355CAH5N021196; Mon, 5 Jun 2023 07:10:17 -0500 Message-ID: Date: Mon, 5 Jun 2023 17:40:16 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] arm64: dts: ti: k3-j721s2: Change CPTS clock parent Content-Language: en-US To: Nishanth Menon CC: , , , , , , , References: <20230605110443.84568-1-n-francis@ti.com> <20230605114924.56ccpd6rvddnr463@undying> From: Neha Malcom Francis In-Reply-To: <20230605114924.56ccpd6rvddnr463@undying> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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 Hi Nishanth On 05/06/23 17:19, Nishanth Menon wrote: > On 16:34-20230605, Neha Malcom Francis wrote: >> MAIN_PLL0 has a flag set in DM (Device Manager) that removes it's >> capability to re-initialise clock frequencies. CPTS and RGMII has >> MAIN_PLL3 as their parent which does not have this flag. While RGMII >> needs this reinitialisation to default frequency to be able to get >> 250MHz with its divider, CPTS can not get its required 200MHz with its >> divider. Thus, move CPTS clock parent on J721S2 from MAIN_PLL3_HSDIV1 to >> MAIN_PLL0_HSDIV6. >> >> (Note: even GTC will be moved from MAIN_PLL3 to MAIN_PLL0 in U-Boot side >> for the same reason) >> >> Signed-off-by: Neha Malcom Francis >> --- >> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 2 ++ >> arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 ++ > > > Is this the only device with this change? or are we doing that across > the board? if so, could you please do this in a single series so that we > don't have a mix? > Currently, this is the only device that has moved this flag in DM side. None of the other devices (except for J784S4 which also made a similar change both in DM and U-BOOT) have this change in flag for the upcoming firmware release. >> 2 files changed, 4 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi >> index 2dd7865f7654..331e0c9b4db8 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi >> @@ -738,6 +738,8 @@ cpts@310d0000 { >> reg-names = "cpts"; >> clocks = <&k3_clks 226 5>; >> clock-names = "cpts"; >> + assigned-clocks = <&k3_clks 226 5>; /* NAVSS0_CPTS_0_RCLK */ >> + assigned-clock-parents = <&k3_clks 226 7>; /* MAIN_0_HSDIVOUT6_CLK */ >> interrupts-extended = <&main_navss_intr 391>; >> interrupt-names = "cpts"; >> ti,cpts-periodic-outputs = <6>; >> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi >> index a353705a7463..b55a3e9daf85 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi >> @@ -333,6 +333,8 @@ cpts@3d000 { >> reg = <0x0 0x3d000 0x0 0x400>; >> clocks = <&k3_clks 29 3>; >> clock-names = "cpts"; >> + assigned-clocks = <&k3_clks 29 3>; /* CPTS_RFT_CLK */ >> + assigned-clock-parents = <&k3_clks 29 5>; /* MAIN_0_HSDIVOUT6_CLK */ >> interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>; >> interrupt-names = "cpts"; >> ti,cpts-ext-ts-inputs = <4>; >> -- >> 2.34.1 >> > -- Thanking You Neha Malcom Francis