From patchwork Thu Oct 19 05:40:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 155288 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp175946vqb; Wed, 18 Oct 2023 22:41:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+yv8lyZuJxPyspf/kUgQWJeDgJTq6BU38nkYwJN+qapxIbXFLRTXzncJyjksYatu9eZgk X-Received: by 2002:a54:4890:0:b0:3b2:f54b:8b1f with SMTP id r16-20020a544890000000b003b2f54b8b1fmr1108375oic.35.1697694084583; Wed, 18 Oct 2023 22:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697694084; cv=none; d=google.com; s=arc-20160816; b=Nte88iy77sXHsgzvGq4yqCM/F2y+8vlz/EZKbbmx0dG5oFnY2xD0o/He4IF2rPZ/wa IB2x29U6X5fmI39AHtQdwwTiS3v9zl/Phu3kYPhbX1um1dACXPlQb4HhZxeIi37Ymm5+ kT5WFsiN5048H12iIL94CxLoMTDpwMhWn/G/XLz+qI2UjpausVp3JX1xr6QJzxUPN8vA /aIyhMu41xWgmVYI+GaK2U7ZtinkNRD/56IjJJsXHttcbWydASctg2rGDlBAGCcaK6EB v/SqXRzswuTvmr/tlEQNVTr8pqttCUMCq51hNszbKnuhDuwuGZaNY27YtbGzG+Rb/m6r HT5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PRDvk/yhvGLHfgWqLs4QyICY9FBtECjobg+fOFKg+38=; fh=q/ylbNZ9GK9kHlmxeaIlyjumMxYLUo4ji0RJFM/7ilE=; b=T1w3qes5c5pKrm2ONroQ4eGMCBFFsDxM5bqGxqHVB43zgaGyxxk5mQZ7dWUhvJ1T1A 5yOilyyFOMLvbzJ2/UqHZn2NYp1+cxJzfIqQcm3BqmSwqWSJLnVVVYZWFuOlnkhb0KvU JpS4RDpxe0j69G/4ydxRo4SzUlCevpDBTfhUXXMPQrR5O+rlTAU77dK0kdb4N1dgEv0O /A+YJA9jekIUAWH2QHrO3LFzmDE0ovVc/d9Wjm12rhXRot/VXb2MMergx8CFgdXCEhh4 QAgH30pTOu/hWZKmgfagm2RAwjWyUQd48zJkzObHWE9sqGl7v/yZa8aQoYmWEzYfOsIC Udkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tUYskH4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g3-20020a636b03000000b005b8357f7450si2272185pgc.207.2023.10.18.22.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 22:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tUYskH4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EF79D81354B0; Wed, 18 Oct 2023 22:41:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230304AbjJSFku (ORCPT + 24 others); Thu, 19 Oct 2023 01:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232620AbjJSFkm (ORCPT ); Thu, 19 Oct 2023 01:40:42 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B303A121; Wed, 18 Oct 2023 22:40:39 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39J5eR8F047182; Thu, 19 Oct 2023 00:40:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697694027; bh=PRDvk/yhvGLHfgWqLs4QyICY9FBtECjobg+fOFKg+38=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tUYskH4j7NCUe80kl4qX9xrLmfqLCUkSuE5V34r4zNAZPiIgKk2LJ5Facvs2VumuO 3tjnhXoB9VtLAF3VvInXrWoZ0uCRA72GrRrcGOzBGzhiZiqZdNJzasnqCUB6D3WK8t 6AkQY4B3f1L1TZdq6VVlFvLrxTUm4i5wUSczP1YA= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39J5eRhO118305 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Oct 2023 00:40:27 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 19 Oct 2023 00:40:26 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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; Thu, 19 Oct 2023 00:40:26 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39J5eP8U090119; Thu, 19 Oct 2023 00:40:26 -0500 From: Jayesh Choudhary To: , , , CC: , , , , , , , , , , , Subject: [PATCH v12 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Thu, 19 Oct 2023 11:10:18 +0530 Message-ID: <20231019054022.175163-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231019054022.175163-1-j-choudhary@ti.com> References: <20231019054022.175163-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 22:41:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780161272232812385 X-GMAIL-MSGID: 1780161272232812385 From: Siddharth Vadapalli The system controller node manages the CTRL_MMR0 region. Add serdes_ln_ctrl node which is used for controlling the SERDES lane mux. Signed-off-by: Siddharth Vadapalli [j-choudhary@ti.com: Fix serdes_ln_ctrl node] Signed-off-by: Jayesh Choudhary Reviewed-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 6ca80d16ee78..d65788d16e22 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -5,6 +5,10 @@ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ */ +#include + +#include "k3-serdes.h" + &cbass_main { msmc_ram: sram@70000000 { compatible = "mmio-sram"; @@ -26,6 +30,42 @@ l3cache-sram@200000 { }; }; + scm_conf: bus@100000 { + compatible = "simple-bus"; + reg = <0x00 0x00100000 0x00 0x1c000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x00100000 0x1c000>; + + serdes_ln_ctrl: mux-controller@4080 { + compatible = "reg-mux"; + reg = <0x00004080 0x30>; + #mux-control-cells = <1>; + mux-reg-masks = <0x4080 0x3>, <0x4084 0x3>, /* SERDES0 lane0/1 select */ + <0x4088 0x3>, <0x408c 0x3>, /* SERDES0 lane2/3 select */ + <0x4090 0x3>, <0x4094 0x3>, /* SERDES1 lane0/1 select */ + <0x4098 0x3>, <0x409c 0x3>, /* SERDES1 lane2/3 select */ + <0x40a0 0x3>, <0x40a4 0x3>, /* SERDES2 lane0/1 select */ + <0x40a8 0x3>, <0x40ac 0x3>; /* SERDES2 lane2/3 select */ + idle-states = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>;