Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1982775lqo; Mon, 13 May 2024 04:45:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpHcqzcsrM47llfxpYOa9LKV9k9GvHtHgKg9zDJvJMnrctYmJzvkRy3cEgksdfDcpDp8b6EztYrPVwmJrJ9jpKDz3RN0ozYSAjzKZQxA== X-Google-Smtp-Source: AGHT+IGapV7nK35nDyZRKcbLgAT4zL0XrKNF33JAGJ0c251g4POdJlLJ0QERYAtv8e2H1KDhUd1Q X-Received: by 2002:ad4:59d1:0:b0:6a3:290e:2b0f with SMTP id 6a1803df08f44-6a3290e2b22mr62510726d6.23.1715600718574; Mon, 13 May 2024 04:45:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715600718; cv=pass; d=google.com; s=arc-20160816; b=EIM+7AbX9yZ7e049OL4x0mHOFb5+iXe7yCMZ5DO9K9Nbltap6SHohaldr8OExR4YSy uyqDMDeI8P9/WiayY4lCp9SfUdsP9ubeMcaoetpu+h6tq6TlH/BDYHSdOV2y+G1Bxyfo glIRYmxRcYDEBsMCvOOzoI1v2pNpr3hwH3LXMe2U5wl0cz5nc63sf511Wv87/y6fB3zm S8HqPl9sVEGnTPSQmDP/jWHSiyjxSStp2VKRG67yea9ivjLD4z0B/y2GNrzYmWb9xabA S8msa1oE5a0PvMj+rbSd+u2aKhmF/JGJGhpza4yPCi2uYq5UASTs383lU2plfULwKKZ7 2pIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xLaxHkTgfKR3NuNoAwYQ0NKBtG4coec1Hji8POGoKYU=; fh=nq2KPgpbER4yJ8AFOltFbdhxySgtxELZfPeQ2DUlm28=; b=bZM6IzxkhWy0cxCuRyloLb4YJlH04Nw7bWSSSYeUp06LtIi6o3D4J3Esglp9sNI6uy jrCfRECiJ48mvFWGu+0ku4p/7g/PtT7pkLTN9AhijLIzhGcQ2pOpmTdJ8uv+vVtAwIWR UwxVXz5oKwuXs/B4iay3Ibe6OHuOTWRU4H4jTiIe7fjGy7dFTUJX5F9Kf2iam2VzKPaZ I9v5tV8VtwSxdK6oEaJ59OlPTSmgh+Q4s1INJe4ycT/SaYrQ02Vxk6mNF1Ri6638Fokk Wzm2mq6RiK4IW0afI4Je04LiKCK13F91p045QUgd0hkRQeeCxYTs7edmKK3/o/XOGcvJ VsbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZG00S7Ib; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-177514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f307254si98842096d6.597.2024.05.13.04.45.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 04:45:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZG00S7Ib; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-177514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 228A71C22B7D for ; Mon, 13 May 2024 11:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89B7914D2B4; Mon, 13 May 2024 11:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="ZG00S7Ib" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FB2614C58A; Mon, 13 May 2024 11:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715600701; cv=none; b=cHUBUa1lZ1n025/M3g0+schks1tyAUO/wcqKeO1mOclJgGaeXs2GN1XCorVxAP2NsdDPBkAtW3Ncopl7EWhk5XhcTXSk4W3BKEMQ35oJZD+zb/SG/PlxzoFSdpvGUQJzgBubB6HdHjlUtSv5882dWTXKrBCHX3KJAOx3O/f+7eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715600701; c=relaxed/simple; bh=P6YnmEhWSK1fGtRlqUQFTnOvu1mUBDpmWoFsKM/oklU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ER4QO+S0Uv311CB5Lq0Ot5DDA8j0SFKFHCBC5+2e4ItxPdqFDJXDN2+ntxIMKgeZh5XnQgyG+VEw25jbvlu/WWsb6eRxrKvuu8S9H8SCjRQRtDaEjeTizk8y6fcP2WW+viAr5yEj0BPEjRKGsLQOlkDTcuTiPI3M0pwvKkxsIvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=ZG00S7Ib; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44DBir8K106181; Mon, 13 May 2024 06:44:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715600693; bh=xLaxHkTgfKR3NuNoAwYQ0NKBtG4coec1Hji8POGoKYU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZG00S7IbzcGliDZazsvN6cvujeajwhmB3m617PZ/WXnEdDWJc/+n67JPnUsRtUudF mcoCi6vEAwE8KTsZ5RQEJOlAjSU3kAZmMan/JeXbgt5QO/mSlUdIdGnPjegrJDa5fk YZiV63+Xkm0gxhP1S+2BNZu9c4BH9opA/sG9Jr1Y= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44DBiqaN020199 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 May 2024 06:44:53 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 13 May 2024 06:44:52 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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 via Frontend Transport; Mon, 13 May 2024 06:44:52 -0500 Received: from uda0500640.dal.design.ti.com (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44DBiiZh086026; Mon, 13 May 2024 06:44:48 -0500 From: Ravi Gunasekaran To: , , , , CC: , , , , , , , , Subject: [PATCH v2 1/3] arm64: dts: ti: k3-j722s-main: Add support for SERDES0 Date: Mon, 13 May 2024 17:14:41 +0530 Message-ID: <20240513114443.16350-2-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240513114443.16350-1-r-gunasekaran@ti.com> References: <20240513114443.16350-1-r-gunasekaran@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 AM62P's DT source files are reused for J722S inorder to avoid duplication of nodes. But J722S has additional peripherals that are not present in AM62P. Introduce a -main.dtsi to define such additional main domain peripherals and define the SERDES0 node. Signed-off-by: Ravi Gunasekaran --- Changes since v1: ---------------- * Newly introduced k3-j722s-main.dtsi to add main domain peripherals that are additionally present in J722S * Used generic node names - renamed "clock-cmnrefclk" to "clk-0", "wiz@f000000" to "phy@f000000" v1: https://lore.kernel.org/all/20240429120932.11456-1-r-gunasekaran@ti.com/ arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 64 +++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s-main.dtsi diff --git a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi new file mode 100644 index 000000000000..1fd88cc8545f --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Device Tree file for the J722S main domain peripherals + * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include + +/ { + serdes_refclk: clk-0 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; +}; + +&cbass_main { + serdes_wiz0: phy@f000000 { + compatible = "ti,am64-wiz-10g"; + ranges = <0x0f000000 0x0 0x0f000000 0x00010000>; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&k3_pds 279 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 279 0>, <&k3_clks 279 1>, <&serdes_refclk>; + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; + num-lanes = <1>; + #reset-cells = <1>; + #clock-cells = <1>; + + assigned-clocks = <&k3_clks 279 1>; + assigned-clock-parents = <&k3_clks 279 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 279 1>, + <&k3_clks 279 1>, + <&k3_clks 279 1>; + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + + status = "disabled"; /* Needs lane config */ + }; + }; +}; + +&main_conf { + serdes0_ln_ctrl: mux-controller@4080 { + compatible = "reg-mux"; + reg = <0x4080 0x4>; + #mux-control-cells = <1>; + mux-reg-masks = <0x0 0x3>; /* SERDES0 lane0 select */ + }; +}; -- 2.17.1