Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp819514rwb; Thu, 27 Jul 2023 23:37:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlGHrRGLLG28NlnbBdwfvzoR9qCuVANWMyifNtZCYR3fzSznZJKGBj3VuEj34SUCjapZXvFk X-Received: by 2002:a05:6a20:7d9d:b0:135:1af6:9a01 with SMTP id v29-20020a056a207d9d00b001351af69a01mr731624pzj.8.1690526245704; Thu, 27 Jul 2023 23:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690526245; cv=none; d=google.com; s=arc-20160816; b=k3egLv+LvZVUdg9XSJVFB/GGf6zclA7XzFQlsFpAKqGDG96MaAAq9pzHjn50ue6FXY gkT3A4SItz7gYaj6dgh4XcvY6RDjQLwVT6SKkeNi7/QxSoE3gJwTHSNOVHTKp1wq6Jvj ncQYTiFzCt0Pyi8t1vJFs1jvN0e5oRkcd36cW75arMX47pPQdLCOAZGY1Ky5d8Co+/6/ OOHp7i2hfKzNribgq7ypB4tohIWnI8SqV91+ZuwdaVL8bgJcSLax2D+K/YgK6mC/2exO 20fmxKrYB2+1BMmhTntKE8E2adcUNM04bVV33AT1MkcE3aNCuZwxgWrgnqy5LeijXr6c gDSQ== 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=X3x6k1zji9d9U6vqr8s1cUu8um3A871vwUjolziuKI8=; fh=VbV9N1GPDHJSx1zSa94GedlkCyTWumT2e60pC/ah0HY=; b=WtLWPtFeKvuVMhg+UJ2xcXPpLaEssi9Hbgk8vJJRkcbAPfzn5GoTZ1w2UlMq8unpWb mSU73JL9S4FX62JigukEBustgOsr2BxyCGiRnXesAnuUEsMWw3yXkSc36r2XY/WwtQI6 SRkYG0B2uABKg+0rePinNVFSaeoZb/gCsGqa6NoZO0trXLlzurDY8Nu0ygRwH6ki1i6Y YSF4IxhgKQIiRnISf133rZCwbdVnTgg60Enscg57X7hESbQK+l/Fg3dEyKbC6UrSii6/ vB0rs/eTESmaOBgp2SJpCp9ENDYFtjGA+rSNFfSohZTVSJNlILRcGf9vM437yy5Yia/a 5bjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QTO9XyFU; 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 cq24-20020a056a00331800b006870f7747f6si684856pfb.160.2023.07.27.23.37.13; Thu, 27 Jul 2023 23:37:25 -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=QTO9XyFU; 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 S229573AbjG1FJQ (ORCPT + 99 others); Fri, 28 Jul 2023 01:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233345AbjG1FJN (ORCPT ); Fri, 28 Jul 2023 01:09:13 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4AE30C2; Thu, 27 Jul 2023 22:09:07 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36S592TI089293; Fri, 28 Jul 2023 00:09:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690520942; bh=X3x6k1zji9d9U6vqr8s1cUu8um3A871vwUjolziuKI8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QTO9XyFUQcZxPZDEsB4HgPzk90kMqLd4If3KoijOUUYDPH6VwL9N4pPWMAWljiff+ LjqNri/mGAwphNilDoM5EgG+qWDSohGG8UGqUxg4VMvanw8yJg+uTXUJropIBC2Mcd WbJ/4Q1pBfV6b3RB0uiJOuuk/lzqxmDacitB6GBc= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36S591qj008799 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 28 Jul 2023 00:09:01 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) 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; Fri, 28 Jul 2023 00:09:01 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE107.ent.ti.com (157.170.170.37) 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; Fri, 28 Jul 2023 00:09:01 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36S590BC113567; Fri, 28 Jul 2023 00:09:01 -0500 From: Jayesh Choudhary To: , , , CC: , , , , , , , , , , Subject: [PATCH v7 1/4] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Fri, 28 Jul 2023 10:38:56 +0530 Message-ID: <20230728050859.7370-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230728050859.7370-1-j-choudhary@ti.com> References: <20230728050859.7370-1-j-choudhary@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 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 --- 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 11f163e5cadf..8a816563706b 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 = "mmio-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>; -- 2.25.1