From patchwork Thu Aug 3 08:04:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 130450 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1025886vqx; Thu, 3 Aug 2023 02:42:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEmIYkO2/f/uISVQpOpyRdele9cy4lowy77GpVj1qT0xHsEIZFnv5SO004PFFN5dd11W+/r X-Received: by 2002:a17:906:77d6:b0:99b:d1d8:d747 with SMTP id m22-20020a17090677d600b0099bd1d8d747mr8048416ejn.27.1691055724672; Thu, 03 Aug 2023 02:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691055724; cv=none; d=google.com; s=arc-20160816; b=AB9Oczd1nPPcAjepmpYicd1Mz2lWUrytvcaemk6LZrkVsW7Zwz3pRv7pKpvK+kwWmP YB/3/PcureFJd7dDt220DLEn+PadqKwksMBb/aFAId0wJzogKk9KcYID51ECesZXoeBo /SekmB469bLKJCqsqEv6I/SZFx+1V7McwJ2bZBcZTcXmBjBTW32GHB/SrecHYLBl9OlU 4qEm6lkR41xZg3SUTxTuTeb5MxUhtRNuZa0Jxaiqg+/c5JAjp8lvrxS65kd3A7GeDCHm J06kKFV4QGunLPOQtC9kei3b9I3YPW3u8Rk8Gfwz4niSl9TaspxKQKjaIEYNyljg78Ks VbJg== 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=ve06D3t4W/tUXDNcwRhQryFdwGzl0r1RYMYd9ehYB2w=; fh=+vlOAzCRn4wWx3NhTAdKXcv+5UezRmic0jBYTC8wbmY=; b=H0hv57AEmNToIIS7C1cP++VpyiJ0WqoxHxdoUOCAL0/3hRGWZ1XIT6A9CJnMt8G6sD 8SpV5fARsa/jCPrSGM44sqlbHyNhY4h4Hgwf9u44qPzBaMVd857PCrgva4oRP1jpBzCK +PJEaDQ4Q5hjsu/0NqYZe8/976FAhuJIgWeNnj77j/pLgCpCBjBqQGzAWu3F0rwrHVw7 rpiyuU7nTfmkwMgA+auG32VC43PH1gMGigbUoQSz+hTpyYfDaV9KrlNqXgSG8bMgrXhY 85JNWh6yhaGg0BtL4ertZ8DwS6Rwy7j3sS852+Ig+zqC1fz2SQ4rTImUaX3H4kEygfjG 5/Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=H87unWu0; 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 x7-20020a170906298700b009952c411261si31028eje.192.2023.08.03.02.41.41; Thu, 03 Aug 2023 02:42:04 -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=H87unWu0; 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 S234331AbjHCIOG (ORCPT + 99 others); Thu, 3 Aug 2023 04:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234434AbjHCINP (ORCPT ); Thu, 3 Aug 2023 04:13:15 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9506EB8; Thu, 3 Aug 2023 01:04:59 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37384iSL104508; Thu, 3 Aug 2023 03:04:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691049884; bh=ve06D3t4W/tUXDNcwRhQryFdwGzl0r1RYMYd9ehYB2w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=H87unWu0J5dyo/i4UanIcJQcas9648m4+1Xc/Fpf3SIePz1u+ClW6YHKhnmwIryDi fHhD6U83Bs2hIXQI2QHNmoNb69s8kSDmrfSDij0P0DljKDflliIv1riWw/UvhKtdx5 Y3+jsh5x5rclMXUnVpo3RIvYRtGoszcxn1isP2BY= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37384iIl017955 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Aug 2023 03:04:44 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) 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; Thu, 3 Aug 2023 03:04:43 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) 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, 3 Aug 2023 03:04:43 -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 37384hDf125947; Thu, 3 Aug 2023 03:04:43 -0500 From: Jayesh Choudhary To: , , , CC: , , , , , , , , , , , Subject: [PATCH v9 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Thu, 3 Aug 2023 13:34:37 +0530 Message-ID: <20230803080441.367341-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230803080441.367341-1-j-choudhary@ti.com> References: <20230803080441.367341-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 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: 1773200447491642518 X-GMAIL-MSGID: 1773200447491642518 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..575aa70570dd 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>;