From patchwork Sat Nov 19 04:08:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp548692wrr; Fri, 18 Nov 2022 20:11:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf51oY/6GRCGRiBa5+shjuaPzJV6h2JRjKlq7m6I8plxe0DD7Tz2QbEcROTmJPGo4kbK3F9u X-Received: by 2002:a05:6402:3642:b0:459:53dc:adc9 with SMTP id em2-20020a056402364200b0045953dcadc9mr2300469edb.166.1668831096185; Fri, 18 Nov 2022 20:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831096; cv=none; d=google.com; s=arc-20160816; b=0VAtm/e2kfOnoOS6Vsr22PNb5w49mpXHJ8LArQFtvkZqNmbb31YZH1kk8x/ArBKxIC X60QSHaddLZtqRgeEF3Z/dKPcD+Zg/6edOemkzolcWdawYpY3FJpCmgWZa/AEW4QwYjK q8QZO+ZqK9Zs3krTbbcq+nKD7wax8JBR1OujpFM/k+R/6JZmVeTE+3tyPjHrDxSV6iu7 Gb409Oujty0UTZagZvEfyzDBc4WmMSd0AYZ+Dz4TH1a7a/RyeDwhfzOf9xOU7VrCYdTB uJkfO1OXoYUo0NreUKMBdlLW6a0WI6Jz4Ejw/KhZTWBw6F5Gl4vrr8HxjOIM5q4IJqu6 k3kA== 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=Z7PmexFMzjsMKq/hM3kpC78Li0Ya2z8I4QF30Hq1gkQ=; b=CmhWXONg+R2y41fl82f4jj11a73lU2LSJA4wno4LFZtVBfcowyPQ5a/XEgoU+dvciP aXKA3QA7gAs+eRg+GrIAbd8RqT8zUzOxC+hRvuTGfFsh3vN3FPBJBSAZ5/6b9N5US1Cp aCdJH4sgDJTzm1Uthu58hx6ERwIf7tJ1l6GAbnJKTujCAyi7BOFUlEHLd8/r/85Mu4gG CQqBB/HOBTt6ngkUEM4C3iGl7tWQKZATN1eljJzRpf90vWaNO4crB9MBdfyb4+1E/ztp zECqW6QGHyrsChe4/hIPmrLSeG3tbrdgPxLVOan3Hy1wAbxxqI0bxIXnN8+GyR6v1mOT HJjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vU11k5Xc; 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 xa3-20020a170906fd8300b007b29208ae71si4906039ejb.202.2022.11.18.20.11.12; Fri, 18 Nov 2022 20:11:36 -0800 (PST) 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=vU11k5Xc; 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 S231717AbiKSEJq (ORCPT + 99 others); Fri, 18 Nov 2022 23:09:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiKSEJk (ORCPT ); Fri, 18 Nov 2022 23:09:40 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108CD7119A; Fri, 18 Nov 2022 20:09:38 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49FBI042806; Fri, 18 Nov 2022 22:09:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830955; bh=Z7PmexFMzjsMKq/hM3kpC78Li0Ya2z8I4QF30Hq1gkQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vU11k5XcS8As8I//OuJ9yNqnR1AzQ2Jot+bpv8nlKETu1FBLCub/GrzRHsh7i7rII 7aofQYftv9tr7RWWMAShhaDqzuVPzMZaqAtmc2m1XRUHqHDtgd81+0YvKghia7Oayd cHxaKmRby0R378vs9Nv20kyKpTxFpg4xBQKuy4+g= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49FAh002080 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:15 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 22:09:15 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) 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; Fri, 18 Nov 2022 22:09:15 -0600 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 2AJ49Clv092839; Fri, 18 Nov 2022 22:09:13 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 1/8] arm64: dts: ti: k3-j721s2-main: Add support for USB Date: Fri, 18 Nov 2022 20:08:59 -0800 Message-ID: <20221119040906.9495-2-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896235281784274?= X-GMAIL-MSGID: =?utf-8?q?1749896235281784274?= From: Aswath Govindraju Add support for single instance of USB 3.0 controller in J721S2 SoC. Reviewed-by: Ravi Gunasekaran Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 8915132efcc1..b4869bff4f22 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -26,6 +26,20 @@ l3cache-sram@200000 { }; }; + scm_conf: syscon@104000 { + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; + reg = <0x00 0x00104000 0x00 0x18000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x00104000 0x18000>; + + usb_serdes_mux: mux-controller-0 { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 1/3 mux */ + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>; @@ -745,6 +759,34 @@ cpts@310d0000 { }; }; + usbss0: cdns-usb@4104000 { + compatible = "ti,j721e-usb"; + reg = <0x00 0x04104000 0x00 0x100>; + clocks = <&k3_clks 360 16>, <&k3_clks 360 15>; + clock-names = "ref", "lpm"; + assigned-clocks = <&k3_clks 360 16>; /* USB2_REFCLK */ + assigned-clock-parents = <&k3_clks 360 17>; + power-domains = <&k3_pds 360 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dma-coherent; + + usb0: usb@6000000 { + compatible = "cdns,usb3"; + reg = <0x00 0x06000000 0x00 0x10000>, + <0x00 0x06010000 0x00 0x10000>, + <0x00 0x06020000 0x00 0x10000>; + reg-names = "otg", "xhci", "dev"; + interrupts = , + , + ; + interrupt-names = "host", "peripheral", "otg"; + maximum-speed = "super-speed"; + dr_mode = "otg"; + }; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, From patchwork Sat Nov 19 04:09:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23213 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp549276wrr; Fri, 18 Nov 2022 20:14:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZMEwwnLYkKvhGZuJf6IKCaA6zlb3MurCN9EnBGVDk9qfWwDyUsbZRI6AtZ35j1JIwY27P X-Received: by 2002:a17:906:8419:b0:7a3:28c7:5835 with SMTP id n25-20020a170906841900b007a328c75835mr8733857ejx.32.1668831242813; Fri, 18 Nov 2022 20:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831242; cv=none; d=google.com; s=arc-20160816; b=QINDPWxcPWnBYVrx8OKAD3nr629qEojKaslPZZINYfdRZSqf5b8G5fVxV2Q44i08pn 3ee8o10srith7auBO5mdVf4vELmGzU9c7ULkdZEz3oZWdOA/tAIxivMzQpX8OwLc8it9 EPi4TmYiY6hKIt8ciseWtQ+m8LKNIK64JALOSKzB9XIhVl//cwVOijEmyHDHLt0ytiZi YR3nzLVIyfwQrnSR+AoCoVzJGoGHviRBDOh+cFg76FqjhJ6/lewWou6PhGtbH/Gayif5 qnHujnnMjQMopn7DaD8TFkrNKHpLileInJW5rif0YCDkugpc1zux6CN6FDV65d8TdsN8 8Z2Q== 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=nTXKFoxeOAhEe33MRGywHIvIOBS8b2DvlT1+7cUv9js=; b=boyzLG74sJ3TLPNDpwYhEFyfegBNwDvoOSwfVHZGqll+Ke7bqGI7fKX0b4RdfY8Fkp b4t9Z5Y8t0meMGcsyIPIns3LEaPFS8KBLRyY3by6V++wKTQCo7hOz9RQrqsK2bRlrZCb lOf1u2Km5NI3ZcaZNymqSoj93ToDFLgr8ZAYNyD2YEH5warpLjQ1GiIArP8HQoRdzw6u 5YTjqAo9syWj4QJws850ikgx3fIdUWYoVhsZSiAqzfiMEy+YYfAENwOnU/LcZM854oyg rQvioksRLy0xBeyJkvVOAza4OPGoUo/dJB+YARwa90KLixjaXdOc591ZDR5zG3581rNu yPwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y9+G4wOi; 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 y11-20020a056402270b00b00443e3fe60a0si4811514edd.622.2022.11.18.20.13.39; Fri, 18 Nov 2022 20:14:02 -0800 (PST) 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=Y9+G4wOi; 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 S232651AbiKSEKG (ORCPT + 99 others); Fri, 18 Nov 2022 23:10:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbiKSEJl (ORCPT ); Fri, 18 Nov 2022 23:09:41 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6979E73415; Fri, 18 Nov 2022 20:09:39 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49KS3042814; Fri, 18 Nov 2022 22:09:20 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830960; bh=nTXKFoxeOAhEe33MRGywHIvIOBS8b2DvlT1+7cUv9js=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Y9+G4wOig9vNW/BgRD/JDixJOZcMpankEO/qw/MTbRx4hw/4o9ClWivQ7J2lXyc36 MhOIOH/0Va320BjV/JZvufV0mMYMILvrU45q14PkEmPeEtBXZp4oYYg0kI0NlIkCzs Alnt2q1SZGnYTMqe7IeQ+XjNYb5UqBy+FDbvPlyU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49KNa002111 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:20 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) 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.16; Fri, 18 Nov 2022 22:09:19 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) 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; Fri, 18 Nov 2022 22:09:19 -0600 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 2AJ49G3S118696; Fri, 18 Nov 2022 22:09:18 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 2/8] arm64: dts: ti: k3-j721s2-main: Add SERDES and WIZ device tree node Date: Fri, 18 Nov 2022 20:09:00 -0800 Message-ID: <20221119040906.9495-3-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896389438589755?= X-GMAIL-MSGID: =?utf-8?q?1749896389438589755?= Add dt node for the single instance of WIZ (SERDES wrapper) and SERDES module shared by PCIe, eDP and USB. Signed-off-by: Matt Ranostay --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index b4869bff4f22..adbb172658b9 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -5,6 +5,17 @@ * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ */ +#include +#include + +/ { + serdes_refclk: clock-cmnrefclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <0>; + }; +}; + &cbass_main { msmc_ram: sram@70000000 { compatible = "mmio-sram"; @@ -38,6 +49,13 @@ usb_serdes_mux: mux-controller-0 { #mux-control-cells = <1>; mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 1/3 mux */ }; + + serdes_ln_ctrl: mux-controller-80 { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x80 0x3>, <0x84 0x3>, /* SERDES0 lane0/1 select */ + <0x88 0x3>, <0x8c 0x3>; /* SERDES0 lane2/3 select */ + }; }; gic500: interrupt-controller@1800000 { @@ -787,6 +805,42 @@ usb0: usb@6000000 { }; }; + serdes_wiz0: wiz@5060000 { + compatible = "ti,am64-wiz-10g"; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&k3_pds 365 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 365 0>, <&k3_clks 365 3>, <&serdes_refclk>; + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; + num-lanes = <4>; + #reset-cells = <1>; + #clock-cells = <1>; + ranges = <0x5060000 0x0 0x5060000 0x10000>; + + assigned-clocks = <&k3_clks 365 3>; + assigned-clock-parents = <&k3_clks 365 7>; + + serdes0: serdes@5060000 { + compatible = "ti,j721e-serdes-10g"; + reg = <0x05060000 0x00010000>; + reg-names = "torrent_phy"; + resets = <&serdes_wiz0 0>; + reset-names = "torrent_reset"; + clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>, + <&serdes_wiz0 TI_WIZ_PHY_EN_REFCLK>; + clock-names = "refclk", "phy_en_refclk"; + assigned-clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>, + <&serdes_wiz0 TI_WIZ_PLL1_REFCLK>, + <&serdes_wiz0 TI_WIZ_REFCLK_DIG>; + assigned-clock-parents = <&k3_clks 365 3>, + <&k3_clks 365 3>, + <&k3_clks 365 3>; + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + }; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, From patchwork Sat Nov 19 04:09:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23210 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp548856wrr; Fri, 18 Nov 2022 20:12:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf5xRdLYCi51T4RUbQeHWDYawzXvPTM/SOcYpoxjujjR8xoIPOQRFtLCUeCixAOvOcF1/t2P X-Received: by 2002:a17:906:3953:b0:78d:39ac:3129 with SMTP id g19-20020a170906395300b0078d39ac3129mr8722970eje.24.1668831133370; Fri, 18 Nov 2022 20:12:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831133; cv=none; d=google.com; s=arc-20160816; b=M7P0fBsGexvLWNfk6W688RcEecspMY5elbd0o5QkN/4KK+4zZGezlNNu1IWzOnCJjU c/2EA3WRlBghbK9FNTbNPs86YtKzkPqu+C4elP/yBfybhAKL6qr7UfJg7/UjB88Cv3kT 5hR5q1ag7bPMd2gkGIbZG/DjpI7QpOFtEthAJk/ZSbtPxi42OSjHGu6TbRRbg1n60aHb 79xRVuSoQ8lX53bDFdFfaKF/bcQGkrHD4dtVGEHUBNfYjbUptkG3JZMgAsCc2gF1HhT1 dKkR1QKQ82qXKE52CCG3sHpbP4pNvC88IUarQYB6Gp1Be2c5s528enHUvdhZH0bs2RSA jtLg== 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=3/PmZFZG4wdOtu+Bp3yVc8a2T6eh0IBWQ26UtZ+B7j4=; b=jmv+vZPjsNfnsoad26w66ousq7Qd8rQhqIMuSa6H2nUWM48X1vd8XJ5VyULbuxEhVW 538QanMAUbgrmpWkcw75wbWtGnUPLhy62XqTEszuM7/Hl+q1C8VIwgr5QATqmJYkBd41 X5uOCbyK5GSivX7hPe8OHkK3fEEggk7QnwSzYLL4m1c22sXyycjwZAYtzuipPjhBsMwd gXLFgXbQVeLChVYD+c0PLFjjUTbwCFpOUjnSZGa3rQ1DNTWXWHO9NDHMc05Zk6nGpQAU yPYwx4c+FQajlXNw1O2zSdJ40i5lFr7P04D1y6C/TmRPxnDlOpn9Gs4hnucp0kwoCk/L /Y8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yqCnNmJD; 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 l10-20020a056402254a00b0045d9ceae669si5218564edb.404.2022.11.18.20.11.49; Fri, 18 Nov 2022 20:12:13 -0800 (PST) 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=yqCnNmJD; 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 S232430AbiKSEJ5 (ORCPT + 99 others); Fri, 18 Nov 2022 23:09:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbiKSEJm (ORCPT ); Fri, 18 Nov 2022 23:09:42 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 402ED74A99; Fri, 18 Nov 2022 20:09:41 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49OKK046327; Fri, 18 Nov 2022 22:09:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830964; bh=3/PmZFZG4wdOtu+Bp3yVc8a2T6eh0IBWQ26UtZ+B7j4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yqCnNmJDrpEMKrmOKAL/FIOMgnN7NUdaWyusVlT2xBnsMMHi2Q7djW5fR+QCTcCGZ YCktNEX+h5Ko8sOG9ydxgBk3tbZtGADQvive4WpBeA4QVk0W3Se7xWpnVv8XNOozpl B3208731uAGOltLC1UfiQAVyV9x5FVs2nhZquUi4= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49OGv067670 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:24 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 22:09:24 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) 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; Fri, 18 Nov 2022 22:09:24 -0600 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 2AJ49LDg085489; Fri, 18 Nov 2022 22:09:23 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 3/8] arm64: dts: ti: k3-j721s2-mcu-wakeup: Add support of OSPI Date: Fri, 18 Nov 2022 20:09:01 -0800 Message-ID: <20221119040906.9495-4-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896274706312791?= X-GMAIL-MSGID: =?utf-8?q?1749896274706312791?= From: Aswath Govindraju Add support for two instance of OSPI in J721S2 SoC. Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay --- .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi index 0af242aa9816..46b3aab93c4b 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi @@ -306,4 +306,44 @@ cpts@3d000 { ti,cpts-periodic-outputs = <2>; }; }; + + fss: syscon@47000000 { + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; + reg = <0x00 0x47000000 0x00 0x100>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ospi0: spi@47040000 { + compatible = "ti,am654-ospi", "cdns,qspi-nor"; + reg = <0x00 0x47040000 0x00 0x100>, + <0x5 0x0000000 0x1 0x0000000>; + interrupts = ; + cdns,fifo-depth = <256>; + cdns,fifo-width = <4>; + cdns,trigger-address = <0x0>; + clocks = <&k3_clks 109 5>; + assigned-clocks = <&k3_clks 109 5>; + assigned-clock-parents = <&k3_clks 109 7>; + assigned-clock-rates = <166666666>; + power-domains = <&k3_pds 109 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <1>; + #size-cells = <0>; + }; + + ospi1: spi@47050000 { + compatible = "ti,am654-ospi", "cdns,qspi-nor"; + reg = <0x00 0x47050000 0x00 0x100>, + <0x7 0x0000000 0x1 0x0000000>; + interrupts = ; + cdns,fifo-depth = <256>; + cdns,fifo-width = <4>; + cdns,trigger-address = <0x0>; + clocks = <&k3_clks 110 5>; + power-domains = <&k3_pds 110 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <1>; + #size-cells = <0>; + }; + + }; }; From patchwork Sat Nov 19 04:09:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp548773wrr; Fri, 18 Nov 2022 20:11:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5roFNMftXIHUhaLVng/vgEbI3k+JSKvtd8r+lQXUjw1jmQ3BmLMjiA51pnPaK5YFo9olD7 X-Received: by 2002:a05:6402:13d1:b0:469:4a1:96af with SMTP id a17-20020a05640213d100b0046904a196afmr5726234edx.328.1668831117075; Fri, 18 Nov 2022 20:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831117; cv=none; d=google.com; s=arc-20160816; b=JW9iJNRY1BaZFTXRyiLdEiI3+AQDwHeMyYmkWzTz4eupTIoK3dNJv7BSlf0/snHFnD 8Cto3B6ruvNbuffK36ANknzj0dlc9jlWbdM8rPjtwZXE2T43SZfHUXnOQH1DzzUYyUzt xKGnE1cggKK0oEhEhcKzmxhGnztsnuCivVAjM/XJgg3ctbq+y20hsrJzwyK7vfHYSV8U LjFae7NTLAn5PB8nhxnn603DQ7Ps+dLoQPNPg78BQ9xNyBf2xFVHMJ3ey4V6iUBbPXbK 3MOCt2xdAWIIOOX9yIBbv4P0Q4bia5WCBgjzMtuXB6VzqxhgVvOUKS9kmRWiMBw52sTW 1zHw== 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=O161wI64MkqL1bXQrEKXqqHqqSz8Rg1odY1/d9cyRhc=; b=I9KceMIbPL2p/Rg45LFxnkjMcD3y/2R+NTgRRwBnBRstMTcPAt0TwV0OPqfszIxi3V WbAiTRebZTO2J2QhJn6dzOqWkX37w48N5cAJVsUe/27k9hmfMWkCmUHyRrddz3cBgs73 Zv8ovonR+VlBxkSusDoznzGMLsKaktkeGcbjCOQnqkyZDQVO44DPd83tKeJgfVbZ+55N lH+Gk9dH47lk2jlWoYQ+Y7wzRtFBmRi8HIOW0YczVNh6FUPq43LTFZhz+CQwsAyHx0Xk Jpw457yJwJuof3d8gpybzBUdjNFz5ezTaFo8af60YJ6LIThtDR8dP2UszjbOgzeL4HaR 3O/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RTOHdmrq; 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 z12-20020a05640240cc00b0046154f0f866si5189827edb.159.2022.11.18.20.11.32; Fri, 18 Nov 2022 20:11:57 -0800 (PST) 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=RTOHdmrq; 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 S232177AbiKSEJy (ORCPT + 99 others); Fri, 18 Nov 2022 23:09:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbiKSEJl (ORCPT ); Fri, 18 Nov 2022 23:09:41 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 148D174623; Fri, 18 Nov 2022 20:09:40 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49TRP062254; Fri, 18 Nov 2022 22:09:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830969; bh=O161wI64MkqL1bXQrEKXqqHqqSz8Rg1odY1/d9cyRhc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RTOHdmrqSfqjni5YL1rBnW9ND7AEKy/hmZDujbzKx5TaQavLWL80hF3L4IQN6LdDC /ImmlkFr0Y+rj/ZhmULEP/Jc+1zPlcbI8sAEiOypzc+gYzM5AVsGAJWW2AmA1sH3qd lOwuLjOwUMpTuezrZAqt14aFTUJiqo1HYkx2Bq2I= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49TCO001069 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:29 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 22:09:28 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Fri, 18 Nov 2022 22:09:28 -0600 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 2AJ49Q9j085523; Fri, 18 Nov 2022 22:09:27 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 4/8] arm64: dts: ti: k3-j721s2-common-proc-board: Enable SERDES0 Date: Fri, 18 Nov 2022 20:09:02 -0800 Message-ID: <20221119040906.9495-5-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896257339283991?= X-GMAIL-MSGID: =?utf-8?q?1749896257339283991?= From: Aswath Govindraju Configure first lane to PCIe, the second lane to USB and the last two lanes to eDP. Also, add sub-nodes to SERDES0 DT node to represent SERDES0 is connected to PCIe. Reviewed-by: Ravi Gunasekaran Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay --- .../dts/ti/k3-j721s2-common-proc-board.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index a7aa6cf08acd..c3a397484c70 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -9,6 +9,9 @@ #include "k3-j721s2-som-p0.dtsi" #include +#include +#include +#include / { compatible = "ti,j721s2-evm", "ti,j721s2"; @@ -296,6 +299,25 @@ &cpsw_port1 { phy-handle = <&phy0>; }; +&serdes_ln_ctrl { + idle-states = , , + , ; +}; + +&serdes_refclk { + clock-frequency = <100000000>; +}; + +&serdes0 { + serdes0_pcie_link: phy@0 { + reg = <0>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>; + }; +}; + &mcu_mcan0 { status = "okay"; pinctrl-names = "default"; From patchwork Sat Nov 19 04:09:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23214 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp549304wrr; Fri, 18 Nov 2022 20:14:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HakVSVP7ED04epRoF/mt0cymuV+SVmjO5DWLuGBIGeFoRT/BijzT/SW8vCH+x6Yp6OryI X-Received: by 2002:a05:6402:1045:b0:461:68e1:ced5 with SMTP id e5-20020a056402104500b0046168e1ced5mr8865472edu.142.1668831250723; Fri, 18 Nov 2022 20:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831250; cv=none; d=google.com; s=arc-20160816; b=wemAtu0znOLcOqY4NHtZLO+xcLJxaMIdzh9vToayzuU2OfM4CHhnlmiO17RbXmRbMK B+EZcrbpRGkqz1ZPUnW6Vhvfhv9KPXdL2F9106KxXMyd/01ox7NSr1RrQfbDBR3VpCRn Fbd7Krh3Get0EccTF35cX0WPvDqpuDexyItDsaOPN9Lhf3/ZBdOoeSzkowFVf74wFOVp sg8Wy6WqKeIPST61+V2fBUR0KAWldMTKiGSjgK/Ik+aTpNtMgjE7UPcCBtkOrJQk2CpJ eJ67ZQFEDFHs4iryRg+UgjcOvf/BAaKlLsQlCQFyTx9NCFM7AffYfAIXyk1s0R1LujLu LGDw== 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=ac4Z8P3rBXZkZq+HC3t7a6d1XGYyHS+dBSY/4gN4278=; b=OR0xC8nDFH37mneO9WDlR+wc6zz1whfzVzfRFGq42wbR7X+ilp/GtbW4nBTcbfbvDq 0mB5/u21fPRtb33DAyXosJRp0LGjyjz0dPV+kJkNDgBiVWgKFcPPt+GK8lSaq4k467YZ 7y5uJtSx2U/bnQHwnyE/NQpXMaUu4jsaM255k0Af5VEWIF/EX0t3OhxUWcxCWx+of/21 LcXoWC2dLX70wbAHkDx2UZEAZ3g3R2kgExIXl11jb9JN4thiNv7nniFYQwCorazcmDel ANa/T9HeUnynRRJZfiMjmrRkfo3CHk+cMEWNKhZN5OwfoZk2nHL8Roo7o7O1GYfJWCHP hNVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KyfGr6Ou; 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 d42-20020a056402402a00b0045cf3759408si4376226eda.49.2022.11.18.20.13.47; Fri, 18 Nov 2022 20:14:10 -0800 (PST) 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=KyfGr6Ou; 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 S233069AbiKSEKP (ORCPT + 99 others); Fri, 18 Nov 2022 23:10:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbiKSEJn (ORCPT ); Fri, 18 Nov 2022 23:09:43 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5A347119A; Fri, 18 Nov 2022 20:09:42 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49Yt3042833; Fri, 18 Nov 2022 22:09:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830974; bh=ac4Z8P3rBXZkZq+HC3t7a6d1XGYyHS+dBSY/4gN4278=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KyfGr6OugEZzF89WChSzlFXfwyzvGVeRQzzEhnPFwDBJaM03V8RJyvLHRN5V8BQjQ 75Hp0bnKGz3IvSD6DgTHB80JFvOvNQ3tzdZIRY6LKgEwLbdU8zlb0cu7jBARzqY8vS h70cAyGOdZoykRE32OQW4dj7VIaZ9wcfcKBaaErQ= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49YMc002157 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:34 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) 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.16; Fri, 18 Nov 2022 22:09:33 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) 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; Fri, 18 Nov 2022 22:09:33 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49Ut3118793; Fri, 18 Nov 2022 22:09:32 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 5/8] arm64: dts: ti: k3-j721s2-common-proc-board: Add USB support Date: Fri, 18 Nov 2022 20:09:03 -0800 Message-ID: <20221119040906.9495-6-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896397752278678?= X-GMAIL-MSGID: =?utf-8?q?1749896397752278678?= From: Aswath Govindraju The board uses lane 1 of SERDES for USB. Set the mux accordingly. The USB controller and EVM supports super-speed for USB0 on the Type-C port. However, the SERDES has a limitation that upto 2 protocols can be used at a time. The SERDES is wired for PCIe, eDP and USB super-speed. It has been chosen to use PCIe and eDP as default. So restrict USB0 to high-speed mode. Reviewed-by: Ravi Gunasekaran Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay --- .../dts/ti/k3-j721s2-common-proc-board.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index c3a397484c70..c787d46f89de 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -147,6 +147,12 @@ vdd_sd_dv_pins_default: vdd-sd-dv-pins-default { J721S2_IOPAD(0x020, PIN_INPUT, 7) /* (AA23) MCAN15_RX.GPIO0_8 */ >; }; + + main_usbss0_pins_default: main-usbss0-pins-default { + pinctrl-single,pins = < + J721S2_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AG25) TIMER_IO1.USB0_DRVVBUS */ + >; + }; }; &wkup_pmx0 { @@ -318,6 +324,22 @@ serdes0_pcie_link: phy@0 { }; }; +&usb_serdes_mux { + idle-states = <1>; /* USB0 to SERDES lane 1 */ +}; + +&usbss0 { + pinctrl-0 = <&main_usbss0_pins_default>; + pinctrl-names = "default"; + ti,vbus-divider; + ti,usb2-only; +}; + +&usb0 { + dr_mode = "otg"; + maximum-speed = "high-speed"; +}; + &mcu_mcan0 { status = "okay"; pinctrl-names = "default"; From patchwork Sat Nov 19 04:09:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp549413wrr; Fri, 18 Nov 2022 20:14:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4a2T+8Wrhz2ltckR6kf7/6V0+FnkQKkUQNdsTvatGMlYQwfkHrywQzagifBb3wbsmVPdzm X-Received: by 2002:a17:906:ce35:b0:7ae:215:2dd5 with SMTP id sd21-20020a170906ce3500b007ae02152dd5mr8263250ejb.208.1668831282970; Fri, 18 Nov 2022 20:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831282; cv=none; d=google.com; s=arc-20160816; b=sFY4Tlb7HDzwgDlGx17+tFtNKarXtn1zggBCTgo5GLR2QRtjcsHsuhilzH3zOvBxQO xIxMqSvbxd1b10efC7TCreJeMSWTbUE5q+e+mXe2KTvJ83L9XUoJ4aBXxDUGEfyAsm6G zX0kesyrH+sI3QQadNZhwByyWj93fxbnQZtiOJitGiR8gQdQTkpaYrK7DJeA1zBL2AWS 8AJzgwKIuA5cKGxHLGdfq45u+c5DzW+Zx447vwCXZHr3zkZ5ddZzMW3Zbrb8YsXkCkKN nGvB4OODiK4nruAS8TR+9KYghK7TdaHFaBoOv8zSro//EgfmqKqjAc59yK7+9VMDx1O+ HhpA== 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=664ekDjiGwxoAdpJEQPqESRVJIF1G47RriN6f9uEIx4=; b=K7bFBYgvZUN6mDTbSbTjymow5e/uMB0FGHpbb7cS/GbfK9QHsFvFcpNMngwazCH8Fq ntndIXwm142HXDKc6iLp9uD2T1mabugmTmDWxDmVRw0sNdGpp9kEGMRC6bmTtzEx9wpG VL+G4Wx7WohYuF0uwNo6TSHq6n4rRyLOD4Eo4pwhF+8KAYNR/FSROPhSRcPyq92LHPO3 GvfA0FIJlMDMIPwkW+wOxoCwJYMM56IP7HIZLOetTxjR9IwdgP9fwDnOXB/PkQQwVK3O dCudabaqvKwIDfsi0lhyoDGLLKuqxY5ex/HJdHtiT3ySPdLK5dVpyEYk01XUW6djPhLY u4ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YpXt8mGg; 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 i19-20020a1709064fd300b007a087ccd275si4823903ejw.384.2022.11.18.20.14.19; Fri, 18 Nov 2022 20:14:42 -0800 (PST) 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=YpXt8mGg; 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 S233300AbiKSEKU (ORCPT + 99 others); Fri, 18 Nov 2022 23:10:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231990AbiKSEJs (ORCPT ); Fri, 18 Nov 2022 23:09:48 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D45776DC; Fri, 18 Nov 2022 20:09:46 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49cZ4028766; Fri, 18 Nov 2022 22:09:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830978; bh=664ekDjiGwxoAdpJEQPqESRVJIF1G47RriN6f9uEIx4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YpXt8mGgWu5F5DGRX6tgbq5TTNHVMp+pL1kHFIfNAfC9bLmdZnzAF9bcuKzr4Gqcv 1l+NGL+88VOQp43WX075Z9R2Kb4MLwg8nzguvzwM7fDFcQLSGD/siU5JxrBKuR+Egk 9jYEx+pXXgwsbfenTDuP7Yt5AcegHMqUkBaxWJUA= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49c6Y001133 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:38 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) 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.16; Fri, 18 Nov 2022 22:09:38 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE110.ent.ti.com (10.64.6.31) 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; Fri, 18 Nov 2022 22:09:38 -0600 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 2AJ49ZSj085580; Fri, 18 Nov 2022 22:09:37 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 6/8] arm64: dts: ti: k3-j721s2: Add support for OSPI Flashes Date: Fri, 18 Nov 2022 20:09:04 -0800 Message-ID: <20221119040906.9495-7-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896431325471501?= X-GMAIL-MSGID: =?utf-8?q?1749896431325471501?= From: Aswath Govindraju J721S2 has an OSPI NOR flash on its SOM connected the OSPI0 instance and a QSPI NOR flash on the common processor board connected to the OSPI1 instance. Add support for the same Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay --- .../dts/ti/k3-j721s2-common-proc-board.dts | 34 +++++++++++++++ arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 42 +++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index c787d46f89de..0503e690cfaf 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -206,6 +206,20 @@ mcu_mcan1_gpio_pins_default: mcu-mcan1-gpio-pins-default { J721S2_WKUP_IOPAD(0x0c8, PIN_INPUT, 7) /* (C28) WKUP_GPIO0_2 */ >; }; + + mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x040, PIN_OUTPUT, 0) /* (A19) MCU_OSPI1_CLK */ + J721S2_WKUP_IOPAD(0x05c, PIN_OUTPUT, 0) /* (D20) MCU_OSPI1_CSn0 */ + J721S2_WKUP_IOPAD(0x060, PIN_OUTPUT, 0) /* (C21) MCU_OSPI1_CSn1 */ + J721S2_WKUP_IOPAD(0x04c, PIN_INPUT, 0) /* (D21) MCU_OSPI1_D0 */ + J721S2_WKUP_IOPAD(0x050, PIN_INPUT, 0) /* (G20) MCU_OSPI1_D1 */ + J721S2_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (C20) MCU_OSPI1_D2 */ + J721S2_WKUP_IOPAD(0x058, PIN_INPUT, 0) /* (A20) MCU_OSPI1_D3 */ + J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (B19) MCU_OSPI1_DQS */ + J721S2_WKUP_IOPAD(0x044, PIN_INPUT, 0) /* (B20) MCU_OSPI1_LBCLKO */ + >; + }; }; &main_gpio2 { @@ -340,6 +354,26 @@ &usb0 { maximum-speed = "high-speed"; }; +&ospi1 { + pinctrl-names = "default"; + pinctrl-0 = <&mcu_fss0_ospi1_pins_default>; + + flash@0{ + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <4>; + spi-max-frequency = <40000000>; + cdns,tshsl-ns = <60>; + cdns,tsd2d-ns = <60>; + cdns,tchsh-ns = <60>; + cdns,tslch-ns = <60>; + cdns,read-delay = <2>; + #address-cells = <1>; + #size-cells = <1>; + }; +}; + &mcu_mcan0 { status = "okay"; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi index 6930efff8a5a..2ffea00e19d7 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi @@ -39,6 +39,28 @@ transceiver0: can-phy0 { }; }; +&wkup_pmx0 { + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (D19) MCU_OSPI0_CLK */ + J721S2_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F15) MCU_OSPI0_CSn0 */ + J721S2_WKUP_IOPAD(0x030, PIN_OUTPUT, 0) /* (G17) MCU_OSPI0_CSn1 */ + J721S2_WKUP_IOPAD(0x038, PIN_OUTPUT, 0) /* (F14) MCU_OSPI0_CSn2 */ + J721S2_WKUP_IOPAD(0x03c, PIN_OUTPUT, 0) /* (F17) MCU_OSPI0_CSn3 */ + J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (C19) MCU_OSPI0_D0 */ + J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (F16) MCU_OSPI0_D1 */ + J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (G15) MCU_OSPI0_D2 */ + J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (F18) MCU_OSPI0_D3 */ + J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (E19) MCU_OSPI0_D4 */ + J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D5 */ + J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (F19) MCU_OSPI0_D6 */ + J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D7 */ + J721S2_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (E18) MCU_OSPI0_DQS */ + J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) MCU_OSPI0_LBCLKO */ + >; + }; +}; + &main_pmx0 { main_i2c0_pins_default: main-i2c0-pins-default { pinctrl-single,pins = < @@ -79,3 +101,23 @@ &main_mcan16 { pinctrl-names = "default"; phys = <&transceiver0>; }; + +&ospi0 { + pinctrl-names = "default"; + pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-tx-bus-width = <8>; + spi-rx-bus-width = <8>; + spi-max-frequency = <25000000>; + cdns,tshsl-ns = <60>; + cdns,tsd2d-ns = <60>; + cdns,tchsh-ns = <60>; + cdns,tslch-ns = <60>; + cdns,read-delay = <4>; + #address-cells = <1>; + #size-cells = <1>; + }; +}; From patchwork Sat Nov 19 04:09:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp549064wrr; Fri, 18 Nov 2022 20:13:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7lQfoNLGJ74wBz9d/6fVEcCBdv4u89CIWDQ+4nQJb5NWASj1igV+yZLHCYwNu9pk5PYecI X-Received: by 2002:a17:906:f252:b0:7ae:4236:bfb5 with SMTP id gy18-20020a170906f25200b007ae4236bfb5mr7852535ejb.428.1668831189795; Fri, 18 Nov 2022 20:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831189; cv=none; d=google.com; s=arc-20160816; b=ctgs3o3eYY81/i6wBGuKBye8GxCPCFWaFZZCh0befjx+Odd/AxJvaTvusM9Gyj92Dm E/nRJMQvdiqeXhqofHk5phK8IgFuskAua32dZ91BD0Z9B44IP0KIq9gDhk0OSwECg8UK iFb5ZoF3gbnig6dDG9QdhTju9f0IVwM6RgMmRkwBU67Ri4eRGOwCI1a1sfFKlvuxEwxv lHtWovRbUoac+vLOOoZLpVvsNCi9Z9qGSKUrXiFqJA5H3HQtdpZwu8/rfnMbdwzI25T0 5w1RDHBK4rlZ5FpciGBoPihaKklMB1ziyTaG1E8ALl0IEA4oldbp/hXZ6rRLVKNukCzk wplg== 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=BYL/GMzjP6vuyqmTQ9/yPWf3BAncE5bqZIl7zP3juDM=; b=s+bT6ORkJ+2175jxQIpRQbl7CzdL4xHdEYmI9vGXb4/XNIk0BSG/X2VCJ0xJsGxOT9 MLb8DCZVN9qRtfJr2xI+dWFVEqtdNLKgaQqe2d4u6CzwS84r6GjfKbZia7NDiWMv08M2 vRe/8KCHLC4MmSnvUMV1lMafFK8oXOtpYUE+h0lxW607nb7IWXFzlAdUDaEJ8XTIM599 I9FopJiE0cJhS/cne8OHdOV5g9W4vPET2TrOJOldgfX2AFeVXetyuJdvij0poJcQNFG4 u492tp9D2a1f0eILBmaaBuK7V221Jvl0h/7L8cS1iiVhpIXSKXllRyEoxPsZ0wXJAsSl FGvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LULT6bBy; 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 g10-20020a1709067c4a00b007aebd20575fsi3591223ejp.466.2022.11.18.20.12.46; Fri, 18 Nov 2022 20:13:09 -0800 (PST) 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=LULT6bBy; 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 S233521AbiKSEKb (ORCPT + 99 others); Fri, 18 Nov 2022 23:10:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbiKSEJt (ORCPT ); Fri, 18 Nov 2022 23:09:49 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC7E174A99; Fri, 18 Nov 2022 20:09:48 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49hCi028783; Fri, 18 Nov 2022 22:09:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830983; bh=BYL/GMzjP6vuyqmTQ9/yPWf3BAncE5bqZIl7zP3juDM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LULT6bBytXQOm59etv+OmG2/CZ5+iA+W9IUAaOMCrO2kb1hXi0K+d37ogjsUzUNoN 6YmW304Q9ajqVFEVECQibwJUC7eaHnrCcz7gg9/RbAdCwa8YZ9XXWC011gQ5TZWenB 89ZevVJkjNUIdzRQH5jOIalfcIbzfsqMgJNaaq7M= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49h3Z067740 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:43 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 22:09:43 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) 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; Fri, 18 Nov 2022 22:09:43 -0600 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 2AJ49eBg118853; Fri, 18 Nov 2022 22:09:42 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 7/8] arm64: dts: ti: k3-j721s2-main: Add PCIe device tree node Date: Fri, 18 Nov 2022 20:09:05 -0800 Message-ID: <20221119040906.9495-8-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896333685016630?= X-GMAIL-MSGID: =?utf-8?q?1749896333685016630?= From: Aswath Govindraju Add PCIe device tree node (both RC and EP) for the single PCIe instance present in j721s2. Reviewed-by: Siddharth Vadapalli Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra Signed-off-by: Matt Ranostay --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index adbb172658b9..04294e25d587 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -841,6 +841,67 @@ serdes0: serdes@5060000 { }; }; + pcie1_rc: pcie@2910000 { + compatible = "ti,j7200-pcie-host", "ti,j721e-pcie-host"; + reg = <0x00 0x02910000 0x00 0x1000>, + <0x00 0x02917000 0x00 0x400>, + <0x00 0x0d800000 0x00 0x00800000>, + <0x00 0x18000000 0x00 0x00001000>; + reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; + interrupt-names = "link_state"; + interrupts = ; + device_type = "pci"; + ti,syscon-pcie-ctrl = <&scm_conf 0x074>; + max-link-speed = <3>; + num-lanes = <4>; + power-domains = <&k3_pds 276 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 276 41>; + clock-names = "fck"; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x0 0xff>; + vendor-id = <0x104c>; + device-id = <0xb013>; + msi-map = <0x0 &gic_its 0x0 0x10000>; + dma-coherent; + ranges = <0x01000000 0x0 0x18001000 0x00 0x18001000 0x0 0x0010000>, + <0x02000000 0x0 0x18011000 0x00 0x18011000 0x0 0x7fef000>; + dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie1_intc 0>, /* INT A */ + <0 0 0 2 &pcie1_intc 0>, /* INT B */ + <0 0 0 3 &pcie1_intc 0>, /* INT C */ + <0 0 0 4 &pcie1_intc 0>; /* INT D */ + + pcie1_intc: interrupt-controller { + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic500>; + interrupts = ; + }; + }; + + pcie1_ep: pcie-ep@2910000 { + compatible = "ti,j7200-pcie-ep", "ti,j721e-pcie-ep"; + reg = <0x00 0x02910000 0x00 0x1000>, + <0x00 0x02917000 0x00 0x400>, + <0x00 0x0d800000 0x00 0x00800000>, + <0x00 0x18000000 0x00 0x08000000>; + reg-names = "intd_cfg", "user_cfg", "reg", "mem"; + interrupt-names = "link_state"; + interrupts = ; + ti,syscon-pcie-ctrl = <&scm_conf 0x074>; + max-link-speed = <3>; + num-lanes = <4>; + power-domains = <&k3_pds 276 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 276 41>; + clock-names = "fck"; + max-functions = /bits/ 8 <6>; + max-virtual-functions = /bits/ 8 <4 4 4 4 0 0>; + dma-coherent; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, From patchwork Sat Nov 19 04:09:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp549098wrr; Fri, 18 Nov 2022 20:13:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/BjRzeGBukui2R90W/qnvm0akLB5SbdSn3jpp8MepilR/CVPZfV/b5TEudi+nCGukf4Bw X-Received: by 2002:a05:6402:3711:b0:461:b6a9:c5cb with SMTP id ek17-20020a056402371100b00461b6a9c5cbmr8730263edb.148.1668831201052; Fri, 18 Nov 2022 20:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831201; cv=none; d=google.com; s=arc-20160816; b=QrqzVgTD9MGEfX1HjTmyaa0sBwFgughw//V/UM4lSaE7z7PzQJJUKW3xmT0Fa+dlqW RSIXPyg2AhC9SbSegbuxVbY8w8nnStCzsNzEf7pt4v+q8GsS/hTVnxsTsg7AY5zF3GKf ASBsS9ANQhzG6LFWhNmCKQdl2gUzIlgSxZVI/zb/FcDk9USmCBOSavy914m8iCsFoEUP s9suezCYNxs5kFJQ2u4ALar3WJEXH9pVNlQrhctKEbRAltIHJv+/ohVMDwisXrL2KyfB GiP8VndnWECUxpPGByZquw4gY7oNFhBDVOVOxw/XTEpcZ/HFbR0LpuJq+0+AnZE5+673 vX5Q== 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=OgYEQP4J8SMqbD3u6qzX6mSIQHDLRx28RzMQI7u5ykA=; b=lMFntz/hXSQzgz/Ibz+pKEDbsCHxkhj8mChU7OPNGBWiJXjfu92EPox3qZQnR359I5 TxorUTPFMt4fedMnM7zG9w+NgIFo02uc5nWyKgiicZIGrZB38XeF/uzUzKEqukzvrcX1 g0LioLrThvSkYBtHKNsz0LXnrt4HtrE+sYMgxcktMG5fnCf/QIWsBB25kASImzdn1NWG 5TiKORsQ4of2hZuZCQQcjdz6FqHABhQqnds/+M7Dyti+00xvKEEiSt8YL28BUAJBax6A jgrFebMV53nFKswVmqcNWKAl8k8Li/UET+WtX5qF59XGOYfCmpKE4a2gKNFnDlBkSJtf EAyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aZcQ5S5s; 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 z14-20020a05640240ce00b004599ae68f98si4718460edb.136.2022.11.18.20.12.57; Fri, 18 Nov 2022 20:13:21 -0800 (PST) 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=aZcQ5S5s; 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 S234080AbiKSEKu (ORCPT + 99 others); Fri, 18 Nov 2022 23:10:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233147AbiKSEKQ (ORCPT ); Fri, 18 Nov 2022 23:10:16 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D924375DBA; Fri, 18 Nov 2022 20:09:57 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49m2n042861; Fri, 18 Nov 2022 22:09:48 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830988; bh=OgYEQP4J8SMqbD3u6qzX6mSIQHDLRx28RzMQI7u5ykA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aZcQ5S5sNnDOIIdo1jVRG4CYK+E++08IY0Y6wATHf8HzUkq9QNZP4T4JIX4+5k/Lo 9TkJq8ygF7i+1OWIgUyL2ooceLEfhGRdbvjq8o35kFAJiaY44yhCN9qn2eHFypYGe6 hgLvvWVL4Z1UcNxWHGXx1nKP9zP+4Wax0K7EYqD4= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49mpw001176 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:48 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) 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.16; Fri, 18 Nov 2022 22:09:48 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE110.ent.ti.com (10.64.6.31) 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; Fri, 18 Nov 2022 22:09:48 -0600 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 2AJ49jj0085647; Fri, 18 Nov 2022 22:09:47 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 8/8] arm64: dts: ti: k3-j721s2-common-proc-board: Enable PCIe Date: Fri, 18 Nov 2022 20:09:06 -0800 Message-ID: <20221119040906.9495-9-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@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_NONE,SPF_PASS 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?1749896345198961604?= X-GMAIL-MSGID: =?utf-8?q?1749896345198961604?= From: Aswath Govindraju x1 lane PCIe slot in the common processor board is enabled and connected to J721S2 SOM. Add PCIe DT node in common processor board to reflect the same. Reviewed-by: Siddharth Vadapalli Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra Signed-off-by: Matt Ranostay --- .../boot/dts/ti/k3-j721s2-common-proc-board.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index 0503e690cfaf..862611784ab3 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -374,6 +374,20 @@ flash@0{ }; }; +&pcie1_rc { + reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>; + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; +}; + +&pcie1_ep { + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; + status = "disabled"; +}; + &mcu_mcan0 { status = "okay"; pinctrl-names = "default";