From patchwork Mon Jul 10 10:17:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 117837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4933481vqx; Mon, 10 Jul 2023 03:52:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHyDDptdHrFnU5lyhTRo/+/9O/gQNjWCY/lk8/oSE22w38odQjxOmyiWbbTg6jeXrW9e9/t X-Received: by 2002:a05:6870:7389:b0:1ad:3199:cead with SMTP id z9-20020a056870738900b001ad3199ceadmr13155011oam.15.1688986347180; Mon, 10 Jul 2023 03:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688986347; cv=none; d=google.com; s=arc-20160816; b=RXdSnDDdbGlCMVHCuuxFHJUYNuCRc+S7nU/ui/TbmrehFijWzVLsEWzpyMIVNZdicp YVTt6O09ab0vu5GBhZEI3SISQJL655BjAU6bYf4OKJxnBqGagWCfCTe+v8bjugZPHB7W ObbeO/FHq9Wrv5XgnjW4wMF2LyIt+JsAd+Yy1h+wp5SMTT4b2KXo8TNTypOjCxljHst5 r+TWFU2ZEU47IMJJqC77Hhsw9AD4cecCpLxxkoCWRVemZm17GamDQ+gBqzCWKoiegQ+O PfCqmyRCC0bK5w0lo0k/Chz/w2UbFkKAJEG110VgeGbSvxyk8kkIERjlALD/FIoIUZ1S AQJA== 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=afIalA/2EGLrZ+whpFAV6RbJAZmGQFimwb42DU5j1xk=; fh=uedaQHy5phy8YnGk/hWRkPjhfKGNuhFMTlP3LsC7nA4=; b=JULHXntzLuWCnMQ5l6Eve8+zx1hdL39dZXw8yiEwbHaYp5ww0vcG7zxLq8Xt3mhMT3 rN6Nh1QEois6s0sC5hcWPEEtE4wVOMbIg1uaoGa98hTW2YVkmvXbVk2zWbYpNU/6ALOY BBfLZZmvfFDvLeoDhI4Sgx6QPvvkwLrzl5fJvvUXzok6KjZazjJO3XCXpE6gKD2iDH2e MwXbN7KCjA96Hv/ftZj/qH+3hUKGx7EwsEPipelVW/fMlM7C2VQz34IlJZtiGu6jEeec LOjRjUwKMEffgA9ukwzSCJ4sulAsl4HLQ/+v1lj1T2mtn5r4wbo63KZ2VOByqWIfvqVX ejaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OC6Tac6p; 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 dt6-20020a17090afa4600b0024e2afd72a3si7110817pjb.182.2023.07.10.03.52.14; Mon, 10 Jul 2023 03:52:27 -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=OC6Tac6p; 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 S233258AbjGJKRg (ORCPT + 99 others); Mon, 10 Jul 2023 06:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233405AbjGJKRV (ORCPT ); Mon, 10 Jul 2023 06:17:21 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 130CEE51; Mon, 10 Jul 2023 03:17:16 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36AAH802002434; Mon, 10 Jul 2023 05:17:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1688984228; bh=afIalA/2EGLrZ+whpFAV6RbJAZmGQFimwb42DU5j1xk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OC6Tac6pTNWK/R6qHTL8S/yK5WnedxQRVlcccHCJGTjYUl9rJkyCfLeHI77s95a95 X2Myfl810JQiODUOC0pU8uQEoyMV7MuqCfkax+9Da1ABscEoMhIVciPVCCKH9aZaFh Nrx0TnfooOCu+GW/+JWYJ5SWgyC9xs6a0ByP23mI= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36AAH8kv018488 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jul 2023 05:17:08 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jul 2023 05:17:07 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE101.ent.ti.com (157.170.170.31) 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; Mon, 10 Jul 2023 05:17:07 -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 36AAH7mY126100; Mon, 10 Jul 2023 05:17:07 -0500 From: Jayesh Choudhary To: , CC: , , , , , , , , Subject: [PATCH v5 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Mon, 10 Jul 2023 15:47:01 +0530 Message-ID: <20230710101705.154119-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230710101705.154119-1-j-choudhary@ti.com> References: <20230710101705.154119-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: 1771030547832065931 X-GMAIL-MSGID: 1771030547832065931 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: Add reg property to fix dtc warning] Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 2ea0adae6832..68cc2fa053e7 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,26 @@ 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"; + 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 */ + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>;