From patchwork Tue Aug 1 07:00:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 129048 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2502973vqg; Tue, 1 Aug 2023 00:36:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWlQ5Nq42+w96kCVt6UvniP1Pf5u4Tvy+5GLcLjcqHABT4Z/v/EtjUb34PQZkgaGwlPH9E X-Received: by 2002:a05:6a20:4282:b0:13d:d5bd:758f with SMTP id o2-20020a056a20428200b0013dd5bd758fmr6956478pzj.6.1690875363118; Tue, 01 Aug 2023 00:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690875363; cv=none; d=google.com; s=arc-20160816; b=hZ62aQKUukt8+AffQFb2UgPrZj9BjcPnoQbhO7HS3ItU6bCNz/X95Th6NbmRkEGkUu pNEsydk+hmkzpuZUGXww+H2gX8wYda2J61b40rGF/I2knJ/OZKxZMXYx9cD11P87++8W HzWsVQ2JeWpr3GzeGjBYJfSRCbMIAGDztuZDgg++8moB6fP7kb9+xvHFUPVJSOYJwgvL 8OItCzzlGAOwUMHH5qS181xfBI38iuD6c+g2uYkTsSJuGC0D++8vgdtC5Y3yeBTVTz2l 7puKG38MdfWsHWe+EfhdJwW1xvQGBK6HXsbUPjx9VrXTozVnkw+SfoSH0M+mfJv8Z9d2 VQvg== 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=jjXz9PDPb8U2cbPp7jDeDNFfIUPelpFe4xHXHJZofPE=; b=TugYNYLKXsVLMPf4j0iP64G7vAndexrFHpfMGF8nWUe/bsIonAXs91MzsYWWRYVfVL ArNQLoJw1B68RBxQccVK8E6LrWoU35AEuUlaQbXGzSzzCtgnsmrNKtgqLVbasSUsoBi/ cLYjfq7l71VVPJFNTBc+PHd1RbseVtsLkVIk3pXZHCTMBecngMNfI6xuyFgPrTMAu5+n RP+ES3KxQbZ4E+D+m8JUnw4i3JmIxCgC1ER+OQYFHmVi5aAgvmzq9AOfWK9eMjcDMPET FQX3xcUwaEx0FhcNYkI0vQy+Fm/YtZ2JKrL5qvEqghYSDcVwaG8uURy7xhzOkvz+M71B TX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="cdWvhN/t"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j64-20020a638b43000000b0055bc30dbcd0si1831138pge.742.2023.08.01.00.35.49; Tue, 01 Aug 2023 00:36:03 -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="cdWvhN/t"; 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 S231979AbjHAHAf (ORCPT + 99 others); Tue, 1 Aug 2023 03:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbjHAHAd (ORCPT ); Tue, 1 Aug 2023 03:00:33 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34A741BD; Tue, 1 Aug 2023 00:00:32 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37170MGn070230; Tue, 1 Aug 2023 02:00:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690873222; bh=X3x6k1zji9d9U6vqr8s1cUu8um3A871vwUjolziuKI8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cdWvhN/tpNQgYJEo8gXAIYAOAzF6ozKLWyG6EWc6U15jSESaF6jPpvYNRR+uLP127 g8sc916HNQIyQe3UZXFA8lR7OGWIx4/IBbD0kA1rvc4vGijErdxmKO14KL0VRvnRnG kzLJQtCJaKyGfyR0V8MFTy8FXXgeb7eZaByYA78A= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37170MHn020932 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Aug 2023 02:00:22 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 1 Aug 2023 02:00:22 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE105.ent.ti.com (10.64.6.26) 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; Tue, 1 Aug 2023 02:00:22 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37170LsF118126; Tue, 1 Aug 2023 02:00:22 -0500 From: Jayesh Choudhary To: , CC: , , , , , , , , , , , , , Subject: [PATCH v8 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Tue, 1 Aug 2023 12:30:15 +0530 Message-ID: <20230801070019.219660-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230801070019.219660-1-j-choudhary@ti.com> References: <20230801070019.219660-1-j-choudhary@ti.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773011324772223751 X-GMAIL-MSGID: 1773011324772223751 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>;