Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1652725rwd; Mon, 15 May 2023 00:41:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4V1E9Q7hjPfNZXcMALkRWHA0pO4PzYqYyzkJ5Wwt7sTxDUV91ZItpVP6TjTNOgwV6MIcJ8 X-Received: by 2002:aa7:88ce:0:b0:646:74ce:a36c with SMTP id k14-20020aa788ce000000b0064674cea36cmr33757692pff.8.1684136468839; Mon, 15 May 2023 00:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684136468; cv=none; d=google.com; s=arc-20160816; b=H8viQVsw1Kosfd0iIdrKGzDOz3peaMkvtZBLuVUpEpFJUdcxvDH/qYelxhJLSsCisV Bo3ALxHcnEQ6URjz0lrO+ATvPEWQV7+Dx3ArC6XzcZO5Ytbcpb8PrGH4xNPwXejeUcGj H9H24iKL9QKWiShBRRXYZNBnlRCofOi0ngYwO0P4yO1iWwG3Cop5VczZ07L6uuP6KQ+h zBDKrLZAPuIsljH7pbkzhE4p515f7eMj+/f9XtlrRZ1ne+2JlUxzWjA/zBJWTY3TomQc ux6HO6bl53og2xaeQyNz8xRmyW1ZTP0PAGojEj4GeTtECSOzu8qrlk/ogU/TgVmys8pa X5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=08o8EyWqOpKfyd0hyqux8FTD1PJ7h92J62j8ZZJ/QPc=; b=laBnYyIfFwVKaQmelZst2re9lhkbTNvEgGa0/vH6iKaPj/XnN+guX+dXDSX8cQAKtC jPNIKiPpB79HVEpNZKwpUbaaKESCPM191RpgRqR4xy59pOBl/7ZF3cM+ocspmDTHOrng 9kdO3DHiykJoyyFN+LghrrHhzi0NMqzpBMHk/Uj9u1B4zY9tVP3F/sd2n9Xyv2bp2vK0 ScABe51lnirRzlZd6gwDo/k+BbTGWq7P3HxXZzM2g179Goj+pBGEUkUw6wOd67cr4fR6 YjI1RxeTjbVmGpSZS8l75KxqrKBkoWnhKflxV52kn0301jaBq0xxmt0PNqxw4RHk3eGN 9/Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=epLlIyNQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b24-20020aa79518000000b006434a04f2fcsi16456801pfp.297.2023.05.15.00.40.55; Mon, 15 May 2023 00:41:08 -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=epLlIyNQ; 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 S238345AbjEOHg7 (ORCPT + 99 others); Mon, 15 May 2023 03:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238258AbjEOHgx (ORCPT ); Mon, 15 May 2023 03:36:53 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BDEF1710; Mon, 15 May 2023 00:36:51 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34F7aZXP064742; Mon, 15 May 2023 02:36:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684136195; bh=08o8EyWqOpKfyd0hyqux8FTD1PJ7h92J62j8ZZJ/QPc=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=epLlIyNQwg2S18mNbFRtTHOFiobOWOEqtKi59Snq5qmCcg4ufveNCFY3OjQnssTXS XfDvmjbXLjBG8K9vvbY2evrifF4NJYDUOT2BeJQypbBcAm1F1+0BLQqmBFsGSH2oaL EDy6crlJT1B/J65hZhHkRZABDkHwDzECpg2WDyio= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34F7aZOE114774 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 May 2023 02:36:35 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 15 May 2023 02:36:35 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE100.ent.ti.com (10.64.6.21) 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, 15 May 2023 02:36:35 -0500 Received: from [172.24.145.61] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34F7aVHm059347; Mon, 15 May 2023 02:36:32 -0500 Message-ID: <65c6a354-434b-4e50-81ec-8ce705df2888@ti.com> Date: Mon, 15 May 2023 13:06:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 CC: Jayesh Choudhary , , , , , , , , , , Subject: Re: [PATCH v4 1/5] arm64: dts: ti: k3-j784s4-main: Add system controller and SERDES lane mux Content-Language: en-US To: "Verma, Achal" References: <20230425131607.290707-1-j-choudhary@ti.com> <20230425131607.290707-2-j-choudhary@ti.com> From: Siddharth Vadapalli In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 Achal, On 15/05/23 11:25, Verma, Achal wrote: > Hi, > > On 4/25/2023 6:46 PM, Jayesh Choudhary wrote: >> 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 e9169eb358c1..29be6d28ee31 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 { > Please check syscon address. 0x100000 is the base address of the CTRL_MMR module. Could you please clarify why the address is incorrect? The registers for J784S4 SoC can be viewed at: https://www.ti.com/lit/zip/spruj52 > > Thanks, > Achal Verma >> +        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>; -- Regards, Siddharth.