From patchwork Wed Apr 19 06:17:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 85199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp146110vqo; Tue, 18 Apr 2023 23:20:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YWGYV8FvrEDmyixQjXhPRt8h77DOutZmggdD0+YfZc7Y31iBUtL1GGAK42Zo619uKokW0r X-Received: by 2002:a05:6a00:2387:b0:63d:45f3:9fc with SMTP id f7-20020a056a00238700b0063d45f309fcmr1662004pfc.5.1681885237664; Tue, 18 Apr 2023 23:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681885237; cv=none; d=google.com; s=arc-20160816; b=KQJjdwnTnq7Y4G8DABWpIqkjxbfmXIuRlqlUWQZuqhHJ2ISwqY+IECNLs6jJDn1QkQ 4BakO3xUNom1Sm7Zh6eRXmFBaM7ztYI9dz51xaak6g5TGfvVbKYm/O1AgZ063bN+wNRn RgMKZOA+6RbWeSgbTHIbSHQEtEWbULLwC4WsXE/9a1ccYRiJTuRNfOTmk9j6fd4ZwFWX MQ0/mkR9ME2clkQgoZ3Na7ZfCio/YXNoc52mWd+8XnfAwbaR9yyBQe032VkU9x34mX5h 6tQrsCwU95Z2qmeKazVOm85EyT86o7FV/XxicsV4sfechu66uS26GY597giItD67xh+P enwA== 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=Fm0aTVswfF119yj8u2DtQRLssdzWg+pA7dI7E0KBRYA=; b=obIGfpt7Sa/zHNF3ZB1j7uJneD/e7/W4GeqFLXwOE7IDJKOSrRkVJ0dbQ4h7jUMamA 9ctqvLjaHYrKzqhJNBMPkxqaFtTvpec3uJASpnbPBv+H4Vi87QfAjcHq2jzMof9FhPUv A4BPvp3Dmuh2slAtbZgJugz/b1sVgKnRDgBKdmX4A19pAf4+LwvZ+6+mvrCcbtZyIKZ9 akPbYDLU1TcRjC36VCILE8TcsZTM1iVKkMF/cVvYIaYK+DFE41HlUWprjHyr40RO8lKO mMT9gEoEQsahLOxoAoQtb58ccG0pnwkrburNSR06v8/nn2N4adS1bYnwIN0YyMUxzyBO 3/1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LOPajOsj; 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 v7-20020a655687000000b005139874b88bsi15704646pgs.87.2023.04.18.23.20.25; Tue, 18 Apr 2023 23:20:37 -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=LOPajOsj; 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 S231226AbjDSGRe (ORCPT + 99 others); Wed, 19 Apr 2023 02:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231642AbjDSGR2 (ORCPT ); Wed, 19 Apr 2023 02:17:28 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 215BF5257; Tue, 18 Apr 2023 23:17:27 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33J6HDMw124874; Wed, 19 Apr 2023 01:17:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1681885033; bh=Fm0aTVswfF119yj8u2DtQRLssdzWg+pA7dI7E0KBRYA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LOPajOsjiDebkDoW8RBBKJKi89/KEypHSE+CY7q5mABQfPO6bW4acfN0ejz6gmv+i XhqBrB4lZAZbaIGVFmZZPXoCUmHUXv4GBp1Sqy6k1WuCmFmvujZdiUlQVaeqFSzi5B LebDNhrheO1zeGl9Jyg72by8GbMqwXi0YmRQbgkg= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33J6HDAo125729 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Apr 2023 01:17:13 -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.16; Wed, 19 Apr 2023 01:17:12 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.16 via Frontend Transport; Wed, 19 Apr 2023 01:17:12 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33J6HCoW040858; Wed, 19 Apr 2023 01:17:12 -0500 From: Jayesh Choudhary To: , , CC: , , , , , , , , Subject: [PATCH v3 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Wed, 19 Apr 2023 11:47:06 +0530 Message-ID: <20230419061710.290068-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230419061710.290068-1-j-choudhary@ti.com> References: <20230419061710.290068-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763584494704729193?= X-GMAIL-MSGID: =?utf-8?q?1763584494704729193?= 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: Minor cleanup to fix dtc warnings] Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index e9169eb358c1..5fb7edf4f5a0 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -5,6 +5,9 @@ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ */ +#include +#include + &cbass_main { msmc_ram: sram@70000000 { compatible = "mmio-sram"; @@ -26,6 +29,25 @@ l3cache-sram@200000 { }; }; + scm_conf: syscon@100000 { + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; + 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"; + #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 */ + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>;