From patchwork Wed Apr 5 11:14:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 79566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp224887vqo; Wed, 5 Apr 2023 04:25:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6fW5lCoZI0ePX45fabr4avmy7YkD5B79MPVQ772SK6Id6ghwWJuoslMWFIuN0rhzVJ7Qe X-Received: by 2002:a62:6dc3:0:b0:625:2ed6:9070 with SMTP id i186-20020a626dc3000000b006252ed69070mr4685992pfc.22.1680693911168; Wed, 05 Apr 2023 04:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680693911; cv=none; d=google.com; s=arc-20160816; b=Jk4x6RHOdAhcPmLLYBfqzTOu/edRJiVhU7llIyZ22PC8gARZbzumZeYdd0JcnejNUi dvLK2v8ZvAIoTj3sd+li0gm84eh1XSjIu4TkM0g6cB0Lr/FhfhhsVz/Odt7ga59TVrTj Nz7buj9eKHeBmLU4NaH74JfyoZKqP4GazUDu1vFazt77YQdEaXpyaxhlU291wW5JdEOm BwFc1EpXUlwZtvdX82N2DEMkH6VxbYS886od6ZsXfAZrYGE5Rzhg7pPcX/GLdfIEMvo5 toAolJFMqGvLJbKxm6EGYAgdlbFjRoYXKGxxKlI6MCio7gA70jWu8yV5kahhNcKxxNeU y5Og== 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=gJwIOSAR6mPpOZd/TA9dQZe8R4GmfYpdvlq9WvMeFY0=; b=EFbXkknCrY7pnK5tjFweJg+2Vdo767NaR9Jqfk1KQsuI+JYPEbIYFkNts2sV72li/I Xn/7McaWOIdT0NEG2bRLHQruoULkpxczpo6PJUy1K6E7H3p2fPlN4Ih+UymCx+U8AYdJ yqjKsCIP8D9F1oGvojXl/rU8Bv27HfMSVCDXn6PaGOgleUJ6yP6nrbWG2EnrPiISpIAO Kcu4jo92aVQvSMx3eAF/Bx05ao7wCo9ssha/QH/WH0u1fB/VeCPjCQuAWAS+9V3dkavq gapk+iQthxLXuly+6fTzamom8+zMp2kE49DXZip+1QxaoDuJ12eTT0GXBW5RhI11++mc eIsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="X2WIYs/j"; 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 p15-20020aa79e8f000000b0062e024b49c2si7768245pfq.152.2023.04.05.04.24.58; Wed, 05 Apr 2023 04:25:11 -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="X2WIYs/j"; 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 S237582AbjDELOa (ORCPT + 99 others); Wed, 5 Apr 2023 07:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230130AbjDELO1 (ORCPT ); Wed, 5 Apr 2023 07:14:27 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71328123; Wed, 5 Apr 2023 04:14:26 -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 335BEFTV107840; Wed, 5 Apr 2023 06:14:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680693255; bh=gJwIOSAR6mPpOZd/TA9dQZe8R4GmfYpdvlq9WvMeFY0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=X2WIYs/jO2+F/t4VI0YJduBdo+MByJIJAzpa/E5GFI4Mm9hL60zevGS8ntLtVIf3I JnHunOCKiJu4qCE6vbe+aTI3H5Q+3x1BYewS5X8KqcBv2/+FjpjsRMalPofuEkz/Uy Gku/rF/Rc1wFKHcHCuT4JC4xKqfEYGL6cyuz7s0g= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 335BEFoH036784 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Apr 2023 06:14:15 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 5 Apr 2023 06:14:14 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE106.ent.ti.com (10.64.6.27) 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, 5 Apr 2023 06:14:14 -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 335BEEVv120241; Wed, 5 Apr 2023 06:14:14 -0500 From: Jayesh Choudhary To: , CC: , , , , , , , Subject: [PATCH 1/6] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Wed, 5 Apr 2023 16:44:07 +0530 Message-ID: <20230405111412.151192-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230405111412.151192-1-j-choudhary@ti.com> References: <20230405111412.151192-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable 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?1762335298507402964?= X-GMAIL-MSGID: =?utf-8?q?1762335298507402964?= 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 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..344f4ffa0b82 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: scm-conf@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>;