Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp64012pxj; Wed, 26 May 2021 16:15:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweo1ltTuTLMeXXO4b0I2RKqf7AwG9OwI1uAW5iRT4F0xFc0NadGhNclej0KT9yzDRmGrST X-Received: by 2002:a17:907:c19:: with SMTP id ga25mr680405ejc.33.1622070915975; Wed, 26 May 2021 16:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622070915; cv=none; d=google.com; s=arc-20160816; b=OMlnf58B3Lh+uojJqxW6cm9dGDOHUcXpLZdpDrrqcaloQBvg+baJjvsvWsUb0UBFth GMrzo7p4WIRYzH12a/f4M9OLVQiqZgb8n+dDfSgbmEQuyQ+qZxBQXwDJ9hjShPZxT2Oc H5VFaKuI7MUMeBu8M2N+sv5mYQJ98BPrMH/kF1owbEqfvROe5+PibuiV59QWKzUkJtrc CvaVwfJwPiUsmQ4Fuv9kF/E4n6yQ4oLDQFqKOJADQ617CIdRM/7ua8sEk5KM41fkNRAO Rj/oejOqJo2y1rKb6AgmxkGjgKRbRrOHx4V9ABjD0+lFsMGpLUen/S+Mlqu3wkHi6ktY l+og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8BlVm3DIICP/svEzEeltSo7VktmgriZgvwYWdSKLcYA=; b=V8zb4UaxrDPCok8wSGi2ku7pdYEADkxvzEbvuMXCqp+i2tpTxVLct/Mn7+PSQixS4j MaqxXkOVb5LVKtZr/tL0H0yqQ+Q+GCnS/XUidt1k/kPVVN4cCIij2DvPMDdTFg0Jjn2N s8KPr4ECC3BljrpC35gJYSjku/mCZyrL7Oo9SXi/pb0wBT2/J9Xnl1KZ4YH6+01U7lSp Z7Vc0SYuGFJC1faYwsFkSKduXuUk3+tjEVyydBF9oCqmJRV46+y7eWLSKN8YdHXmwy3Q v+x3p27sfYI+3Puv7WFWvhbFVAdAchhunm5LGna9Wxab93V3x1SFuOjNJZXfITa1cjBN Hobw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X6ytcxto; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si375973ejd.48.2021.05.26.16.14.50; Wed, 26 May 2021 16:15:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X6ytcxto; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235586AbhEZSqI (ORCPT + 99 others); Wed, 26 May 2021 14:46:08 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45760 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234863AbhEZSqG (ORCPT ); Wed, 26 May 2021 14:46:06 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14QIiRDn020347; Wed, 26 May 2021 13:44:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1622054667; bh=8BlVm3DIICP/svEzEeltSo7VktmgriZgvwYWdSKLcYA=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=X6ytcxtollfqmpoeCwnS+P+HPwh9MARwe64OUfSlrHY3+igZud1W+S+5X8FkZcfEn EavwzysaeM88BQJgYAe5ebycfV7lATWYrMJ4OXWAG2p8KrhCJu/SoG7tIW4BpNndWv Z4zFJDxCGoz6lgxgbSnMqoMF2I+nTQQfstNChXTQ= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14QIiR5G100310 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 May 2021 13:44:27 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 26 May 2021 13:44:27 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 26 May 2021 13:44:27 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14QIiR0Z055979; Wed, 26 May 2021 13:44:27 -0500 Date: Wed, 26 May 2021 13:44:27 -0500 From: Nishanth Menon To: Kishon Vijay Abraham I CC: Tero Kristo , Rob Herring , , , , Lokesh Vutla Subject: Re: [PATCH v3 1/5] arm64: dts: ti: k3-am64-main: Add SERDES DT node Message-ID: <20210526184427.wvn4kveus6vgedcs@polio> References: <20210526142921.12127-1-kishon@ti.com> <20210526142921.12127-2-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210526142921.12127-2-kishon@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19:59-20210526, Kishon Vijay Abraham I wrote: > AM64 has one SERDES 10G instance. Add SERDES DT node for it. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 56 ++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > index b2bcbf23eefd..a67f10406a8e 100644 > --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > @@ -5,6 +5,17 @@ > * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ > */ > > +#include > +#include > + > +/ { > + serdes_refclk: clock { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <0>; > + }; > +}; > + > &cbass_main { > oc_sram: sram@70000000 { > compatible = "mmio-sram"; > @@ -18,6 +29,20 @@ > }; > }; > > + main_conf: syscon@43000000 { > + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; > + reg = <0x0 0x43000000 0x0 0x20000>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0x0 0x43000000 0x20000>; > + > + serdes_ln_ctrl: mux-controller { > + compatible = "mmio-mux"; Any idea where the mmio-mux binding is and status? I'd rather not pick up a new warning against linux-next > + #mux-control-cells = <1>; > + mux-reg-masks = <0x4080 0x3>; /* SERDES0 lane0 select */ > + }; > + }; > + > gic500: interrupt-controller@1800000 { > compatible = "arm,gic-v3"; > #address-cells = <2>; > @@ -672,4 +697,35 @@ > ti,mbox-num-users = <4>; > ti,mbox-num-fifos = <16>; > }; > + > + serdes_wiz0: wiz@f000000 { > + compatible = "ti,am64-wiz-10g"; > + #address-cells = <1>; > + #size-cells = <1>; > + power-domains = <&k3_pds 162 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 162 0>, <&k3_clks 162 1>, <&serdes_refclk>; > + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; > + num-lanes = <1>; > + #reset-cells = <1>; > + #clock-cells = <1>; > + ranges = <0x0f000000 0x0 0x0f000000 0x00010000>; > + > + assigned-clocks = <&k3_clks 162 1>; > + assigned-clock-parents = <&k3_clks 162 5>; > + > + serdes0: serdes@f000000 { > + compatible = "ti,j721e-serdes-10g"; > + reg = <0x0f000000 0x00010000>; > + reg-names = "torrent_phy"; > + resets = <&serdes_wiz0 0>; > + reset-names = "torrent_reset"; > + clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>, <&serdes_wiz0 TI_WIZ_PHY_EN_REFCLK>; > + clock-names = "refclk", "phy_en_refclk"; > + assigned-clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>, <&serdes_wiz0 TI_WIZ_PLL1_REFCLK>, <&serdes_wiz0 TI_WIZ_REFCLK_DIG>; > + assigned-clock-parents = <&k3_clks 162 1>, <&k3_clks 162 1>, <&k3_clks 162 1>; Could we line these up to < 100 chars? > + #address-cells = <1>; > + #size-cells = <0>; > + #clock-cells = <1>; > + }; > + }; > }; > -- > 2.17.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D