From patchwork Fri Jul 21 13:20:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 123857 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp215652vqg; Fri, 21 Jul 2023 06:45:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVvhqIqsU3Xm8lmtmH8qLQ6guerC9P0a9fmefO8LC6apE2spPDyTFPFo2+x83/kjR/NwgJ X-Received: by 2002:a17:906:8a73:b0:994:47a5:a377 with SMTP id hy19-20020a1709068a7300b0099447a5a377mr1598374ejc.24.1689947136782; Fri, 21 Jul 2023 06:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689947136; cv=none; d=google.com; s=arc-20160816; b=ADE4SpG8yfNWY9FxL7eufypD1XEFswxdICfcIXEf776Ys4SH3slTS9xqs8AOnDwwi1 0SOK9/Jzj953IdfDZmZevm9dR59lAo8ifGfmJba6dNz3sn8kcHO85IYFyBS/ZPxM62Ys kaRPBbz5z80LVLqvD3TMeUrpFYJ/6wwdonYuCRHNpG3fNwm6TfdNsPKSdppkOu5JM7ud Yytf2blbM5pAaql8PmJwTmQ4F+JWusu8V8aIq0tEG77f3cLkY9ohLDxPaABdX24Rrus/ ER4hTZSLlyYDIwS/JPV4lp6ieiSV5EHmgIlBpRuuEuix+t9Dl96gitFQ+PGg2q03mLrk 3pjA== 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=MXayQYw4V/GIxyImdbqDq8ACt0mMIAEVNa7UYKj6SoY=; fh=5VmUa+z5NenSxQb1ANopV6x91cWvb0iG+9+PqOx16KI=; b=bey3UY+ijO+bVTwO9gQgT+8LKMmAn8i1Hf7sMTiAXDUpRXEKl4G85p4JZRXSDxW4a1 ePhC8SrLFF/C/RVIVliIdP7rFTXJJSB2QdDPM8EDjoKtq49vOErdrhnt8UM/4laAW2mu 7ylIEtnqFW+jUdKqJoylvRDeo5uSEMlveVrjBLAMyn1OZRfZU7yChGJTsc8AB25J1WeX RK2sjfIbCjAqtOnXib03M9O0K5RufyTOgD5ufbt685W9RqEvZ4NBDXKMppfMDIjFvVha Azt1V2ZpMxlAljbYvcwCEHnc3UyZ8HUdqCOOnFOuSeR1FsInaLOIf0PEnRze2wTmF0uL AXlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Vh+h/eCL"; 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 li16-20020a170906f99000b009980c2658e0si2087219ejb.763.2023.07.21.06.45.11; Fri, 21 Jul 2023 06:45:36 -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="Vh+h/eCL"; 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 S231204AbjGUNVm (ORCPT + 99 others); Fri, 21 Jul 2023 09:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbjGUNVi (ORCPT ); Fri, 21 Jul 2023 09:21:38 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8DE35B5; Fri, 21 Jul 2023 06:21:03 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36LDKWKA075337; Fri, 21 Jul 2023 08:20:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689945632; bh=MXayQYw4V/GIxyImdbqDq8ACt0mMIAEVNa7UYKj6SoY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Vh+h/eCLJWYq/bvH8/ZO2bSusIkpcIRMAap3nI0PcrRwaVeYTdLKo2fhyXzYc//Tt AiqO2ZvBAIL09Sg8lNByrMwbSwHkTj+amjPQDorTXHAkCjwWVUhkfYttjEck5QEuyw BGcAhERDnAQQ/r6nmcymUBwhpE7DXm8dWfT1TNNg= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36LDKWtQ047710 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 21 Jul 2023 08:20:32 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 21 Jul 2023 08:20:32 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE114.ent.ti.com (157.170.170.25) 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; Fri, 21 Jul 2023 08:20:32 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36LDKVEd107324; Fri, 21 Jul 2023 08:20:32 -0500 From: Jayesh Choudhary To: , , , CC: , , , , , , , , , , Subject: [PATCH v6 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Date: Fri, 21 Jul 2023 18:50:25 +0530 Message-ID: <20230721132029.123881-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230721132029.123881-1-j-choudhary@ti.com> References: <20230721132029.123881-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: 1772038008738230350 X-GMAIL-MSGID: 1772038008738230350 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..5a4da4eb8d3d 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: 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 */ + idle-states = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>;