From patchwork Tue Nov 22 10:16:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24236 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116441wrr; Tue, 22 Nov 2022 02:18:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf64mr3dMkUutrwzUKdWRV0VB7G0CtQt3Yg5Cnx5JgH+SXqH4rwj2TLEMsXMU9A6/XpXE4RD X-Received: by 2002:a17:90a:4e41:b0:218:a971:d847 with SMTP id t1-20020a17090a4e4100b00218a971d847mr11071049pjl.91.1669112290647; Tue, 22 Nov 2022 02:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112290; cv=none; d=google.com; s=arc-20160816; b=QvtboYAxy0oH2I+jGCFJCfpU2GH6MXEEOPc18Mny9PclPCCgguiNDfQL1raglC1Psg Ka1TTybHJjUgUE7OuMX3t9lt/bzua/ud1U919QYKAixjzT2LainXn9rhS+/AI+YHT9NI AHbsexSrSHjnlQSMJAy8FWCVdM1BHRuUcS/fuKaKgUzWL0b4Z7b37W7OY3ot9IxCCqRB ym12ehYHoIuqJKRTgAEwhsVPXOIpspTr9cUvT8Gp6OH8IKjRQ9DdjOn7J1onGdBVkD/u CsMwBj7Ip7GbW1Osv6O28uSAHDrldJ53IuekwAjusQv5kvMRUhLlf5GAozTTVcruGPp2 4h7g== 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=cihFYalSUxzDMMvRqEW4qI5yoP9SgK4arrJbMS2wtyFi3fmUHuo6a9/ffFE4PNkJef hCn35g4UO63f0jmo77LaRQuaySjP1/rFommoQ9iFMd1WdI14ayNmzkfPSsFmd+8ZKJPK nr65AJunIDz76CAp6C61zy/pZqIyaFfMpL5jhFCpYbbxd+Sq3tJXrgNc0l8vd77ng/Io 3usinp48/mVlGdHU9sUG7G8s9gq/Hj+8pm/CuoNv3wCv4Va2N1Y/GeAm15je9kBzJ7YS 1gBRoC3to0NbdB/QCyT8jgBDu2+dJwt6GOSp2r+ZJaDawvhj5YjxzRT8t993hz89RaBo xmfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=H4iic079; 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 f14-20020a170902ce8e00b001853ad3944dsi16012891plg.480.2022.11.22.02.17.55; Tue, 22 Nov 2022 02:18: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=H4iic079; 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 S232923AbiKVKQm (ORCPT + 99 others); Tue, 22 Nov 2022 05:16:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbiKVKQd (ORCPT ); Tue, 22 Nov 2022 05:16:33 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9454E528BE; Tue, 22 Nov 2022 02:16:32 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGQPJ008103; Tue, 22 Nov 2022 04:16:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112186; bh=Z7PmexFMzjsMKq/hM3kpC78Li0Ya2z8I4QF30Hq1gkQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=H4iic0793Mjgy3XymWMdqV/Xufj+ZMALa7l6tdSRs0YGwHXF9sozTIbHI3/sJq9W9 ZstPW0VB3Mji3xPMyCEusqJJbWSm3Pjk506B7GXPytRDUvdxZ3hKyDgt8bOAvt1M/3 w5qSvkxni1Nx0+z2Wpei2fLz1EeP6f0U+Cbr4scs= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGQBY079473 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:26 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 22 Nov 2022 04:16:25 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.16 via Frontend Transport; Tue, 22 Nov 2022 04:16:25 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGM9h088710; Tue, 22 Nov 2022 04:16:24 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 1/8] arm64: dts: ti: k3-j721s2-main: Add support for USB Date: Tue, 22 Nov 2022 02:16:09 -0800 Message-ID: <20221122101616.770050-2-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191089265216355?= X-GMAIL-MSGID: =?utf-8?q?1750191089265216355?= 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 Tue Nov 22 10:16:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116468wrr; Tue, 22 Nov 2022 02:18:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf62gMw5QPRHALN2Pm7peCdNO5p64BLq0J6FZSeHyfcgbuO0IZca+mKOjsaYFgJwlLcUg3X2 X-Received: by 2002:a05:6a00:1407:b0:537:15fc:f336 with SMTP id l7-20020a056a00140700b0053715fcf336mr13629474pfu.60.1669112294598; Tue, 22 Nov 2022 02:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112294; cv=none; d=google.com; s=arc-20160816; b=oM4LIgdqYhUW0AJA90INLRI/uOSioR0MFOpXUK4YW/TYWZL2un6U/Ok6VJ+3AfoZCI jpforq6OhRyx/n5TslXKsspLTXSxFqCAQ+phIe6a8HeobGkKspKoj1ziWWxrw+PvNmnm Nxg0Gn98PvnBrLKGvNWl086EIv1wHJXIjxuMwOYeRGfoBYxzozKwlnTX0KF3l3w7N7ca JhPYcKnyTZg/EGPTAcuBfSc1OPjj2kOm6p3FqtuGX0RdSjVdUVlVP4HhYZpypLtdu8KG 6SSneB1aC0up/tfgpr7UGA8CiI2Pg3KQBmPt5CyR6NhvjHK56q6/3yYc3H46cGbnVk5E RPAw== 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=aP3WJxdmh6Lz7lDEVBUKu4BJt1bFVAwOK3NP7I/9rR0=; b=moufxMY3qY5ykAAZ0DK8MsifYUFQwIF7hBktsKs8bjvRkFvRjrd/5vAZPTBWhrPubC vshc4IbbSv1DQJtORPUcwv23lOrJdH4qUzOIdoGc7EjnBXwnW+t2RyUOEeFSkW4F5IBE PUCG+AIqknc4I6NFz1dnC4QuGWci5yy2uebPkI+J4+f69DfYaX+bQgOlsc/9iat1gfXx tJMbfc2Hg/Q8/y7qXHErX5/JYOlwpleWUUWBqCmil77xNLY4l/5nu5Gpc6YRsxfVNXw/ wak2mR/LBncvFRUR3QSN4Qb+tsiGrDCEtqaXRFvSxiFBsDPHMSINaHs2g1MXJSLDok0d CsZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="uTdwXwu/"; 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 i12-20020a170902c94c00b00179f1584540si15468842pla.564.2022.11.22.02.18.00; Tue, 22 Nov 2022 02:18:14 -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="uTdwXwu/"; 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 S232804AbiKVKR1 (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232934AbiKVKQv (ORCPT ); Tue, 22 Nov 2022 05:16:51 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F39AC54B38; Tue, 22 Nov 2022 02:16:38 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGVUb095995; Tue, 22 Nov 2022 04:16:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112191; bh=aP3WJxdmh6Lz7lDEVBUKu4BJt1bFVAwOK3NP7I/9rR0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=uTdwXwu/VF9Sq6hGnIEfogbb6YlBPTXYOQnFbaLxfQpXZmqvjRfG5KUXk3lAxNM1r FeDT48f72lkXcV7/FN9i1BxnHyj333b2JgA6wJ3pBkAP4FULaKkoOuIlfeOmy1KayN UPrPV3gTp6m5IoeESWRHOs3H/aY04sVzzpybdW9c= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGVOL079489 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:31 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) 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; Tue, 22 Nov 2022 04:16:30 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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; Tue, 22 Nov 2022 04:16:30 -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 2AMAGRRL088764; Tue, 22 Nov 2022 04:16:29 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 2/8] arm64: dts: ti: k3-j721s2-main: Add SERDES and WIZ device tree node Date: Tue, 22 Nov 2022 02:16:10 -0800 Message-ID: <20221122101616.770050-3-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191093312441003?= X-GMAIL-MSGID: =?utf-8?q?1750191093312441003?= 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 Reviewed-by: Ravi Gunasekaran --- 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..2858ba589d54 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,j721s2-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 Tue Nov 22 10:16:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116514wrr; Tue, 22 Nov 2022 02:18:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7b4jwUkZLVlh/CGDVVT/EVYpUFQzgx1oij+rnnj2LgAZpJ6VcFet6iP5ijFrG7DpNajk6Y X-Received: by 2002:a17:903:204b:b0:186:ce8c:e654 with SMTP id q11-20020a170903204b00b00186ce8ce654mr14176282pla.89.1669112298898; Tue, 22 Nov 2022 02:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112298; cv=none; d=google.com; s=arc-20160816; b=cTxBZc64SxlbSC+T8TN7+ow4+bnNLqTPn+Mc0O17y0m1oYrdwMcUKXbwG4JL8Nld+f CwXAhMxdY6Aaai0SaB1r7esR70lYZxplni9yZZlds7XLD25oky7vNlOhYN5WDlL+qu26 cvV3PsshAmB/oFWZuVP4DM2NQwLgpHP23FIeh2Exg+wcqPpOeQSTeef8XpDG4PZmB2gL U1qsM3vAocmk9CV4WXCETWaidMyan+nYEnQnH9n8vt8mjPz9BOPMYTA9MRZUKgXOabPF /JITchh8D/9ULbY0Y/OhvnVhx3/UMCrBslGWjlmJxZfk9sijOLUl4CVwoQNHGRhLeose 5Seg== 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=7XMhmvKT71DPaKS3tkFn0sdC7Ss8ho1ooIEK9FrNNII=; b=ZtsrZadaWffg2DvK72tz2n80b2t7kzif1Rf7cXgJ1BFtX7kuDn8k+uZ5lXC/PjEI4F /tqYZK4vU1yYtRwEyGk31M6SEM+IyhZApfH44xw9i8bWxG4B3d2Wwtwn8m/Sb+Ev/Jvd fUf7C+bCgpFJyN/TkTSDgKhd/fN/eY/hZi+A4nm3kanRVSAEhhSpFy0f2gy+rGw+O73W gNZXOpfTc2PczQ+PsK6R4tDT0Cekw0mQGVAqJIuFP0p5mVqrviN+VKqg/HiPKNUZWpeb FxtFMrc3Fy/7fqpb70lipQ+kqdzfDj0PspIATVI9iz2U5w7gHQ2uDAEFGtXfEI1jE5G5 R7CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ElYRyWkG; 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-20020a056a000b4f00b0056ce0f64370si1827910pfo.108.2022.11.22.02.18.05; Tue, 22 Nov 2022 02:18:18 -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=ElYRyWkG; 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 S232618AbiKVKRb (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233040AbiKVKQy (ORCPT ); Tue, 22 Nov 2022 05:16:54 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B01554D6; Tue, 22 Nov 2022 02:16: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 2AMAGZLP118362; Tue, 22 Nov 2022 04:16:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112195; bh=7XMhmvKT71DPaKS3tkFn0sdC7Ss8ho1ooIEK9FrNNII=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ElYRyWkGPg0auxUD9zrMAVP4QRbgH3oYoFqev8CWYIT2p8Vc53FUSkRpZT19wINxd hl/nFWX5yl0HGM/CFbOdnMllQmvdfiV8EaZoNFs25xN5BgwFO5PHYxOwaHDK71Rome X/CSmT/Lq6UcMC9Z44YLvD022E7BhRH1TGuymbgE= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGZqt079512 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:35 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) 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.16; Tue, 22 Nov 2022 04:16:35 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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; Tue, 22 Nov 2022 04:16:35 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGWqL030012; Tue, 22 Nov 2022 04:16:34 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 3/8] arm64: dts: ti: k3-j721s2-mcu-wakeup: Add support of OSPI Date: Tue, 22 Nov 2022 02:16:11 -0800 Message-ID: <20221122101616.770050-4-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191097558970774?= X-GMAIL-MSGID: =?utf-8?q?1750191097558970774?= From: Aswath Govindraju Add support for two instance of OSPI in J721S2 SoC. Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay Reviewed-by: Vaishnav Achath --- .../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..a588ab8d867b 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 = "simple-bus"; + 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 Tue Nov 22 10:16:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24239 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116537wrr; Tue, 22 Nov 2022 02:18:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pHwk2Q/1A0SlMlGgCIAXmtyWceQqq28LHeS66uyVsHj5jWSpqcddPoEfmwCGft/cMlsHi X-Received: by 2002:a17:902:ca14:b0:187:3fc8:986e with SMTP id w20-20020a170902ca1400b001873fc8986emr5208755pld.4.1669112303219; Tue, 22 Nov 2022 02:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112303; cv=none; d=google.com; s=arc-20160816; b=p7CIvCtS67Ppliu3ogfBnm5GT71wZr+8hpHS3XwXu0gmvAepQ5i4Hg2T3Z0XF6S4Ou pF+9swr90fJ6u/269KdIJ2Gm8AxBmUOIsjrJrojtjaqexsNMMr1wnFd4oXdzapnwCAJM NCFlUWAOvhcYJFFf21W5YNkqMfz7EQSfpHQEGmxruDR6tVh4F+D4/Ow/T9TL6fTTAfGK 9jBReJEeutT5WVuqb17s0h2tvEH1rQslCvcq9sOPAskptzlnFT3kTcy+pCi4FHxrlSaQ 7wT3MIOkHFwn9sR5rXysEFujb7dJOgPegFT2xk6uosIaAN3YW/gc+eiAVFQMYxxwV2N0 n23Q== 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=lGO32kLZliGIw6/005OEj3QCVzdbh+4uvL+0nWDc+8FtM2cGEDt4l6k6Ut/MxST8yt yVEAhr6WghlfAdvb4CEfBPFy4aI0ETssTn5AUn8Yxr+6b3Rg5ShT2MGEuRNBNDuN6jKH Gt9N7TaXiSY9ak3qU5p1vjytkz+UN87f4TNqDaao5N3Sz2sLGFw/ONhPOmNGnZp1wj/w nwLO+PZzmXeiX0d5cPCLtDadHAfmeorFonsSgayBM5pTylIFuutho32oh9UtQA+o+w2B 0ckOYfGWHQqWtfLAgDv3FmZL9IhhJdU6bJRiWt2WEzN6wYK2arGVBdjNlD55JlDQCP+f 5JYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iE6yi9OP; 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 c3-20020a170903234300b0018542a1b588si15710531plh.196.2022.11.22.02.18.09; Tue, 22 Nov 2022 02:18:23 -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=iE6yi9OP; 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 S233069AbiKVKRe (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbiKVKQ4 (ORCPT ); Tue, 22 Nov 2022 05:16:56 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E937C56540; Tue, 22 Nov 2022 02:16:45 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGerc116927; Tue, 22 Nov 2022 04:16:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112200; bh=O161wI64MkqL1bXQrEKXqqHqqSz8Rg1odY1/d9cyRhc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=iE6yi9OPjfMSL/QeaNvw2OsHPBeW8UCSkjgzm3zAqQW9cQleFR+RoinztIc3WotI0 5omkiInNyiSiMAtnjJ1B9NNFWfGcGwSasWEnRzBX2QHPQfutYP4cyyugRuElAAU6Wa h92lkTysL4su7tAiPjbESnzj5x4kXpu48dNRs+8A= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGeHQ057008 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:40 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 22 Nov 2022 04:16:40 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.16 via Frontend Transport; Tue, 22 Nov 2022 04:16:40 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGbrI030043; Tue, 22 Nov 2022 04:16:39 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 4/8] arm64: dts: ti: k3-j721s2-common-proc-board: Enable SERDES0 Date: Tue, 22 Nov 2022 02:16:12 -0800 Message-ID: <20221122101616.770050-5-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191102460633857?= X-GMAIL-MSGID: =?utf-8?q?1750191102460633857?= 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 Tue Nov 22 10:16:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24240 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116610wrr; Tue, 22 Nov 2022 02:18:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RrqRVr3EMmz8NcJ3NFZpeBDBLLpKZ8n7fS2xj28B6FGDZeT5tfKietOyQJTlVeIECAypL X-Received: by 2002:a17:903:3287:b0:188:d4bf:dbff with SMTP id jh7-20020a170903328700b00188d4bfdbffmr7892541plb.19.1669112316080; Tue, 22 Nov 2022 02:18:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112316; cv=none; d=google.com; s=arc-20160816; b=Bipz0z+RWSjARWW/Wjco4UZuIksf0r/ajhNVPf9M7xBJmPZ5ftbTYXX3OcqTjLETtt u513cORmsrtC0KLYMoyQEMBlflB6a5JR0HKLzsm6g2xigZ/UMN7FUlJvplAnCrPKbtGV tw6gUuiFD0T353MXCPGHbJj+1+2hIbP94STW/WUjqBnQ6cFMdNqMm2iZ14QOKHkOnQEv nI45XhHV5i8tihR2WluoEf1AxvnDuqXPiyV6WJKbSzOeZPalZuUD428iW33AxOVG0/xw /v6QAqKlAsDk/P+vYkyiVj9Pq3MR7/M+ButxsVXdFaWBcIot9W+38CJNerOgYRe52JwB zoFw== 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=txQsDckvHaAiZclViQWAhkddF2qv1z4fBFsVNmgfYK2k6NQP8lyvcWvQ9noYeMvvpN Gj7gE/2ghhQjaHVRt6Ey6FSe8ZhzM/daDiXyO0d6SbgtwaDDN+bPkBqH1CHBLXZWuNhy VXAv69kRAPNrWuXtIwM3ln9ikW4A3hFRJPGaK5t8LiweR1ljHIL9Q1gmrZLg7oDO3V1b Y0RIdOZIyHzM77I9cYjuZPZt8X9vO1gXQXSDBk7VcA6E3ONz+lvWW2uwiheBm1sYYMBr mkzzkBC5ox+BIRF3YGytBDnAPs1JLNHPhTbx9iQ0jd1Ec53sws4H3FXUM11cg4oJzbvs 0P5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=twiD3GSe; 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 u3-20020a634543000000b0046ff70b1cf3si2245077pgk.463.2022.11.22.02.18.15; Tue, 22 Nov 2022 02:18: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=twiD3GSe; 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 S233205AbiKVKRj (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233399AbiKVKRA (ORCPT ); Tue, 22 Nov 2022 05:17:00 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84AAB51328; Tue, 22 Nov 2022 02:16:51 -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 2AMAGjG0118385; Tue, 22 Nov 2022 04:16:45 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112205; bh=ac4Z8P3rBXZkZq+HC3t7a6d1XGYyHS+dBSY/4gN4278=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=twiD3GSeMPrLYlxSLVLnkzZvQqvferS+enX6t48JadDlVZDVLLWwdc00VW/fKz/NN 7Uw7pE27vX8EZhrrhr8574EFGPSMFiBzozW2Z7+g96fk51idRspgKDpFQprT7mtxS+ qFmkMQ3DzdC1b7PD8XyNvskpme+G6Raf3uAxDEMg= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGjm2019851 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:45 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) 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.16; Tue, 22 Nov 2022 04:16:45 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE113.ent.ti.com (157.170.170.24) 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; Tue, 22 Nov 2022 04:16:44 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGg5t030109; Tue, 22 Nov 2022 04:16:43 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 5/8] arm64: dts: ti: k3-j721s2-common-proc-board: Add USB support Date: Tue, 22 Nov 2022 02:16:13 -0800 Message-ID: <20221122101616.770050-6-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191115842572606?= X-GMAIL-MSGID: =?utf-8?q?1750191115842572606?= 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 Tue Nov 22 10:16:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116622wrr; Tue, 22 Nov 2022 02:18:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5LxJakztGftQoMviHGntr4J3IzSu6hEKN0BNoZelj8658Y7anTaBzQxouzpBhrnpGmkTDz X-Received: by 2002:a17:90a:e2c2:b0:218:825e:17f8 with SMTP id fr2-20020a17090ae2c200b00218825e17f8mr21171049pjb.129.1669112317617; Tue, 22 Nov 2022 02:18:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112317; cv=none; d=google.com; s=arc-20160816; b=k/nBjw70XSHhoNLQCuJvY7wieFtfpN1zQG0IDCgwTTsfT7RliawOKHsOQD/s64yHlz XoPITaTLnJgieTgV5KxkRZTjNe+6ZtfR4darZC2Yqh0yXXd6BPfbjp0GtVgtr7EBU7Mp 8qW8QlDBHv6mRcNtup+2hu+SvDoIZHcfROGYUVZ1xRJjZsUd73MNnlc4Hr9azxJejS/x 4mqz3CnTaSrvK8VJeevjUk5+YUDiEv0+Re2MavEZebazQr3DqT5QTjkrlGUf5m6fXeGD 2hM+35XeBr90YzQibdvPjyCvlEdnOo8Jm7ENu64j6cEziPIkH5Zf2CYZDR2S5AdNdvMI OJuw== 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=qccaHtsjS3dDwbKk61xAsRVa4LafG22BQCcajMZJrbJUi1wT3+VYVGOIVIm+E4B/7f keR1kBYH7fHBxbwWd74pI0UEM3TqApuBWFSEmZifwxQp+KQ7LMlB0K0nlPtzAE1Vfzsz eU57TythpfXm6y5psajB/Lc+sPmpoeZFA0SRI5hOVQrBpjjJrAKU/IrzbBkkR86RtJXR spjc6PieVLp2Wf+1DdNBxvqC6bHyKaWeNhgfRiK0UNP66mK6br3xKdYPSKeJuOrs7bab GAmxsKHZA8ShsMJK6pbiQsk9lxZXNy0uAMuzJO7ct6q6RBXtCruTTMct4FSj6sr9oPRj FNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sZzbImbH; 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 j3-20020a170903028300b0018930d070bdsi2693419plr.72.2022.11.22.02.18.15; Tue, 22 Nov 2022 02:18:37 -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=sZzbImbH; 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 S232254AbiKVKRo (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233489AbiKVKRE (ORCPT ); Tue, 22 Nov 2022 05:17:04 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918A854B25; Tue, 22 Nov 2022 02:16:55 -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 2AMAGoih096025; Tue, 22 Nov 2022 04:16:50 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112210; bh=664ekDjiGwxoAdpJEQPqESRVJIF1G47RriN6f9uEIx4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sZzbImbHgdaolLmqKI77wQoMGQ0q6QqyBlzhwlm9999KjTeKBtmYLJCUECjLns0R1 rINN4x1joRTCYxmJyMQlRVC8o7s5Ds0v02THNPKC1M31+LbHeipGp8VQ1Dj+ArnecX IQ2pAKAdANvhIo7q+reoKOsHLDI648gH3jcLyZJE= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGokl017906 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:50 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 22 Nov 2022 04:16:49 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Tue, 22 Nov 2022 04:16:49 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGkHN088950; Tue, 22 Nov 2022 04:16:48 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 6/8] arm64: dts: ti: k3-j721s2: Add support for OSPI Flashes Date: Tue, 22 Nov 2022 02:16:14 -0800 Message-ID: <20221122101616.770050-7-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191117873322986?= X-GMAIL-MSGID: =?utf-8?q?1750191117873322986?= 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 Reviewed-by: Vaishnav Achath --- .../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 Tue Nov 22 10:16:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24242 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116624wrr; Tue, 22 Nov 2022 02:18:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+fif3rYNntlyJCvMsX4xT50pqB2fy61MDNuVnuvEqDlqg5UHi/9xh/AIhgaeRaQFBUZVe X-Received: by 2002:aa7:91c9:0:b0:56d:8e07:4626 with SMTP id z9-20020aa791c9000000b0056d8e074626mr24697284pfa.70.1669112318313; Tue, 22 Nov 2022 02:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112318; cv=none; d=google.com; s=arc-20160816; b=giI5UPnRgenf3xRWvYzwMxvj0lnX30rk7G6tNL+dGL2cuahmaNliWQ78ILZuu6YAAE yAgr4AmapW35UtQnNyaGZLbo48Eg5wezeyd03Wc4slcMsZfnUXOEf0aSeycBefS3zJ0f yZK/h1SuF+FnDnFqWy4jEifOC7WY31csvj8h160Lt8m5wVXguv2m6d/MLQpict5a+HQi Mw8WqZntGEsl1zDQYCT57p03ffKLYp0TX9lHTiLvF1eZKWxGshipI+apFeJr9waEpkfg ikmsj4opuYfSXY5liZeUK99bC2xNP3UTQdeWHAAiZeBzdRrtLPGmAwHuAvlUW6j1x0xJ aJzw== 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=Q+QMvPeLlcBvjDSfmGIGLrMc1QSDQX9bUOXq6vu3/pQ=; b=B2qgwoBRsJcXV1TFkppZrB11ATDVpcX66C+f51Z0WeQLT3WJpMl2AIug0f0ur6pta6 1yLUm3TltbQf4AY/oRPMssdakrPoU3U30DV1+t6pGGnMpawK34fEMinD84mQZ0WcZEFg BX9CkzdSaUYeau6zQQRm0EuBvJpWCFqD5AGerVu32Brmdyk36HKQ7OfGU9iBxdDsI0Xn xaY/ZS1H01TDhHtiHWDVvmTYpy9iaV3G13UddqKnT5bMLC7BpjQbv/oBZoPcJ4aVLaUB xSaqLqBXeZWrr7aV+sLjQF+5LuNV/1+tDeKTeRY1WsQ1pDOzR7gPcUFr2Z50BUN/esnk Tibg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="fag/lo4z"; 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 p18-20020a170902e75200b00188fe19d3dbsi13297293plf.163.2022.11.22.02.18.20; Tue, 22 Nov 2022 02:18:38 -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="fag/lo4z"; 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 S233042AbiKVKRs (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233512AbiKVKRG (ORCPT ); Tue, 22 Nov 2022 05:17:06 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEE77554D1; Tue, 22 Nov 2022 02:16:59 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGsws116962; Tue, 22 Nov 2022 04:16:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112214; bh=Q+QMvPeLlcBvjDSfmGIGLrMc1QSDQX9bUOXq6vu3/pQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fag/lo4z8KrE1vj5lCnVDi+3W/CLq/ca+NsBs993M2qS1fVOZVZ71O4Z3V4ZV0c4l DViocQexAb4Z77vTepoJ2z8Mb3mDrvuX7R1s58VMJXdpsq3gzN+HBaxEcw5FKD3/uO uitr3nbEn2X/VBQ0FYnNYfxbf6rru3wa8YuNbJAA= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGsmC019885 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:54 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 22 Nov 2022 04:16:54 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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; Tue, 22 Nov 2022 04:16:54 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGp5Q088978; Tue, 22 Nov 2022 04:16:53 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 7/8] arm64: dts: ti: k3-j721s2-main: Add PCIe device tree node Date: Tue, 22 Nov 2022 02:16:15 -0800 Message-ID: <20221122101616.770050-8-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191118144092416?= X-GMAIL-MSGID: =?utf-8?q?1750191118144092416?= From: Aswath Govindraju Add PCIe1 RC device tree node for the single PCIe instance present on the 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 | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 2858ba589d54..27631ef32bf5 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -841,6 +841,47 @@ 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 = ; + }; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, From patchwork Tue Nov 22 10:16:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 24243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2116627wrr; Tue, 22 Nov 2022 02:18:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf65xtm7f8Cj9TvGi2SYy23NiVcUHUJ1Ose6lJZcTa+3j6w2GJetPYVdUNInEKOtbNs5Uzd0 X-Received: by 2002:a17:902:748a:b0:188:4ba9:7a04 with SMTP id h10-20020a170902748a00b001884ba97a04mr8535707pll.45.1669112318321; Tue, 22 Nov 2022 02:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112318; cv=none; d=google.com; s=arc-20160816; b=BomUx3PVDfGpkIa8kUOxSvqMlGV2FP1tlt/M84cN+2F5dFp7CEolZSMVdkPfZbRhOM CpoU2/3vXmqaDJdrxYzSWba1ZwXuj0KUK9OcYt8BHeOSX11v4y9hOBpmkuy2ec9f1/c1 HHRd/qC2JzR8y7f8lSyXk9R04y/qWkWRxbDiXUuX4DR5YKMS/4IXcEXtWX7Laj9UVwkZ WUTAkNnKYanr0kaizQ0wAIwG3FJ6Ki1dKBpCbkGIJ1/SNq1jKgDvo98o2r8Po2fwUv+P yW0+zKvYO/jYavllkt89WyhTpSqCWKFW8tTaEkfi0bcrIEEIZy08JXhpntmwVBWDag// P54Q== 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=cN2rqEsmXZ3LoONcfjQ9oRQd9dmNmx7VWNhQa5s4nMQ=; b=uajRPmqVwtYnlw/MVy2hDr1zcFv8w8qR3InDjSR7KcxR/OPOh9q31l2c6GX6onrDYy ImODClLQ3irtHeSTVS2MULqz7KSr+Gt8HbLt9VAbcj3SjBN//X+QgXusA4yHki0/4n2t Ky56mGydy8zbpmzfs+mviuqGh4Cpm199d6dj5SVSLO8ao21iEahSbdQZtvro8cDG3ay9 oedGQTTGu5FyJ+k8W5jkWCIJF6M4uzFfsbMEqEsANdoR9DG0+Y7jEDNSrZEj9jpEhOMY 3B6FP+iTA6IwkSPl8jjePyJOtts3wDwCZeGMC61YCJSL1jSzvnPQz+ZA912pAMYF7d8f mE2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qMoBQ3A5; 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 y7-20020a17090322c700b00186a98b58d8si15566495plg.134.2022.11.22.02.18.24; Tue, 22 Nov 2022 02:18:38 -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=qMoBQ3A5; 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 S233469AbiKVKRy (ORCPT + 99 others); Tue, 22 Nov 2022 05:17:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233522AbiKVKRH (ORCPT ); Tue, 22 Nov 2022 05:17:07 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1FD554D6; Tue, 22 Nov 2022 02:17:03 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGx7d096045; Tue, 22 Nov 2022 04:16:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669112219; bh=cN2rqEsmXZ3LoONcfjQ9oRQd9dmNmx7VWNhQa5s4nMQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qMoBQ3A5gutUxye5sZgifXP12FkJVMXlFleeEMFHbiMvvpsaBecI2Y6W30TRdc5ET vFB1NIv9clqbs9bcbNlbcnwp24WNaygv6y5itflvBfBYRYXo+x2RftVMVSppCE33CY V260ZHSgNcWpCi4NH05Q9sgZZpffmHS8rFV2bfDE= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AMAGx0C079817 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 04:16:59 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 22 Nov 2022 04:16:58 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE110.ent.ti.com (157.170.170.21) 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; Tue, 22 Nov 2022 04:16:58 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AMAGuUm089004; Tue, 22 Nov 2022 04:16:57 -0600 From: Matt Ranostay To: , , , , , , , CC: , , Subject: [PATCH v7 8/8] arm64: dts: ti: k3-j721s2-common-proc-board: Enable PCIe Date: Tue, 22 Nov 2022 02:16:16 -0800 Message-ID: <20221122101616.770050-9-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221122101616.770050-1-mranostay@ti.com> References: <20221122101616.770050-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?1750191117916878867?= X-GMAIL-MSGID: =?utf-8?q?1750191117916878867?= 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 --- arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts | 7 +++++++ 1 file changed, 7 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..561d70cdee9b 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,13 @@ flash@0{ }; }; +&pcie1_rc { + reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>; + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; +}; + &mcu_mcan0 { status = "okay"; pinctrl-names = "default";