From patchwork Fri May 5 14:14:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90461 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp456355vqo; Fri, 5 May 2023 07:39:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6DYaV+eH9ejh/dUl5Aq93v8COK1CY3SP50vewaLtD3g3AXWL9vmn7fJVlZACN+DGzBukiW X-Received: by 2002:a17:902:b087:b0:19e:b6b0:6b3 with SMTP id p7-20020a170902b08700b0019eb6b006b3mr1669174plr.15.1683297551869; Fri, 05 May 2023 07:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683297551; cv=none; d=google.com; s=arc-20160816; b=QY1X2/PRv6XwOj711lig+aUBKBgzGCpJOpRm1JT9gNRL+pOnMgY9aeTX9YHtdYNETx 8/oitA3zVHAy1Pgv9D+TICvr40zxd8AyTW/u446w4rC2Ls9uKTN524rveKjlAXuU0xol Z1OgcIqF3RjPTrep7Nzyqczy8cVnLhozOz9AKfJIlVgwlm5NzR56aRyAyJ/Ib0nHpPmq wp9wJLUpcaAGvI79Jm6sDRSVb8M+B/LxwFYH8NT5uoFxMP6ms8phzgmHz6gbQN3g1cz1 NZKR7uabeW7MPe6KvW7O5/vbI43IwkVsxA6YweCe0xQi+Zq3hB7aUwUty5o29d0tYBo2 eBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=A6MY1RpIq6O6rWiub7FmaVtJ2q4gONym7Vg55BSgnWc=; b=FsVU4kgPFc2i4++1dcArNrci7MmUC9PSDBdpvcYw3R/u9iZax9OV6mqKPRToAhzM5H 5tU+CO2eTcMyBc47xPGcvt1V/by3uB65Zd4kNNldDif7+4a2TcuS8mRO87xFSGJGDhC/ 80QsCCRXasFQDlv2XX8XXbzjSXDhw6ceeDXMMEwlywWMYSjImfcwKKBV3FdCVWn3e/51 c/SbJ4qfy94iYDaxDNOxDOc06C60QwBQ6ATi0mbkTxOXmcKGexJXtF4Ns70waYyXro6w ODQ1czSeTNlnzWk5FB+RojUkCalkHN1QWnuDVUXTBUj2mrH3vuij2YTmslZyNA7MUOwa aaIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fAqfuX4v; 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 m18-20020a170902db1200b001a6dc4a98f7si1799013plx.365.2023.05.05.07.38.56; Fri, 05 May 2023 07:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fAqfuX4v; 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 S232821AbjEEOO0 (ORCPT + 99 others); Fri, 5 May 2023 10:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbjEEOOY (ORCPT ); Fri, 5 May 2023 10:14:24 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3847132A2; Fri, 5 May 2023 07:14:22 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 345EEB6m017122; Fri, 5 May 2023 09:14:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683296051; bh=A6MY1RpIq6O6rWiub7FmaVtJ2q4gONym7Vg55BSgnWc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fAqfuX4vTjLwVkA64W6k7e+CT+52fuv2JC3Up8bPZsn1ZixDFOgZQS994knC1SXI+ 3DrdkMyTNMtPpgRCaSrCQvPhdTUKZODAozLhnGcocTj+he57C6zlxLSkgCl6WGUoqI Ow7dwjgpGzIrKMpvA79wVFTmt0QEN5RVcMvNBZRk= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 345EEBUf011659 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 09:14:11 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 5 May 2023 09:14:10 -0500 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.23 via Frontend Transport; Fri, 5 May 2023 09:14:10 -0500 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 345EE93J029704; Fri, 5 May 2023 09:14:10 -0500 From: Vaishnav Achath To: , , , , , CC: , , , , Subject: [PATCH 1/4] arm64: dts: ti: k3-j721e-mcu-wakeup: Add HyperBus node Date: Fri, 5 May 2023 19:44:04 +0530 Message-ID: <20230505141407.15134-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230505141407.15134-1-vaishnav.a@ti.com> References: <20230505141407.15134-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 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_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765065413240980317?= X-GMAIL-MSGID: =?utf-8?q?1765065413240980317?= J721E has a Flash SubSystem that has one OSPI and one HyperBus with muxed datapath and another independent OSPI. Add DT nodes for HyperBus controller and keep it disabled and model the data path selection mux as a reg-mux. Also the register region range for FSS only have description for registers up to 0x7c, update that and fix the fss node name to fix DT compile warning. Signed-off-by: Vaishnav Achath --- .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi index 24e8125db8c4..6dfd76619a4a 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi @@ -174,13 +174,34 @@ status = "disabled"; }; - fss: fss@47000000 { + fss: bus@47000000 { compatible = "simple-bus"; - reg = <0x0 0x47000000 0x0 0x100>; + reg = <0x0 0x47000000 0x0 0x7c>; #address-cells = <2>; #size-cells = <2>; ranges; + hbmc_mux: mux-controller@47000004 { + compatible = "reg-mux"; + reg = <0x00 0x47000004 0x00 0x2>; + #mux-control-cells = <1>; + mux-reg-masks = <0x4 0x2>; /* HBMC select */ + }; + + hbmc: hyperbus@47034000 { + compatible = "ti,am654-hbmc"; + reg = <0x00 0x47034000 0x00 0x0c>, + <0x05 0x00000000 0x01 0x0000000>; + power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 102 0>; + assigned-clocks = <&k3_clks 102 5>; + assigned-clock-rates = <333333333>; + #address-cells = <2>; + #size-cells = <1>; + mux-controls = <&hbmc_mux 0>; + status = "disabled"; + }; + ospi0: spi@47040000 { compatible = "ti,am654-ospi", "cdns,qspi-nor"; reg = <0x0 0x47040000 0x0 0x100>, From patchwork Fri May 5 14:14:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90456 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp441875vqo; Fri, 5 May 2023 07:18:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4u96bgB+/XuyE8gWL0o7LR7qrQ70vsnZygmi74lUhCA1Uj/Ie/iJj6qzoIq742Y9maIzZ9 X-Received: by 2002:a05:6e02:491:b0:331:7885:3300 with SMTP id b17-20020a056e02049100b0033178853300mr1325599ils.12.1683296334223; Fri, 05 May 2023 07:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683296334; cv=none; d=google.com; s=arc-20160816; b=U8m8Mr9LP1vSuYHNVSqfBIxdFPQCGk3VObv6bHml5tbeKPA/ySPXK8M6FPpdCm0/7p nL2l8e6Qr01V9Fl1XUL9/5hoNwfT/BVRDlfogji7PC7XvSkGNeHso6F0zeNUYoh9OsCz ySzaA6VqwmcH1ZRlrFn3TnPN//oY9xam4kWNAvYEJ398RRyPpuokCJ/qaKVtK3uk6kdT Z3XXJYUsOw06GsyrO8G1R9Hr3MSlKa0f3KG2CrnN8MWEFPkDZdmPmd3DcStLs4Kn35J5 IevWINHgz8ZnU0VrZftTSshu338Q/V5iA7rwzbPdg3c3TlXBe+Ldi8ALu3TaS3C7iL05 VxqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tf7N8yRo/cJzE3pogIoE41wNiI4g2yE68m3Zl2rTtZ8=; b=JHKPik/ux7wQwO5s5EtZXSR4tqjTaz+MGAJMCIGNI3CVP4KLn3VFFsLwDGp99mEZYu Bj7f4G9bdbmHIzEm6FA4fvoFNBCiLrrY3BP64XLC6GRA/fU/CUjNJm3R8dkSLk3yDWFQ rBG1OVk2y+qMXU3z0sjVstWxa2yHb2TAr2ETvolTc9wZQRDgtBBRngKH8ow3ATNgyRMy bg2OHEOj/suELz29NwTHBm2GV7lahQSnv+36jdlpXyemC3q75BBt09t5Gq1aYldd5fZ4 Nb8NBC9AifK0gxiI3v1vMuuoD7372/JdHJC1bgJLeUx1xJNpC60vPQ0dIzp28ZlY/eRg ik3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ltem0Ueo; 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 u6-20020a022e46000000b0040fcf45dfdcsi1075938jae.147.2023.05.05.07.18.38; Fri, 05 May 2023 07:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ltem0Ueo; 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 S232828AbjEEOO2 (ORCPT + 99 others); Fri, 5 May 2023 10:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbjEEOOY (ORCPT ); Fri, 5 May 2023 10:14:24 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14EAB13C08; Fri, 5 May 2023 07:14:22 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 345EEDZB077915; Fri, 5 May 2023 09:14:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683296053; bh=tf7N8yRo/cJzE3pogIoE41wNiI4g2yE68m3Zl2rTtZ8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ltem0Ueo6h2bsFmMAr9HwBS96+Zu57dOuDf2kIk0uuC/kWgBImLwowKudCDI+UUl/ RRDuQRl7NZd0MXeJggXOyrJGF17Ug8cMvhasPjJdRijpZG2gc1uftimItU1S7eiALp CoiORM0jCchSniZq9wVtNnyrucUgfFnMjKM5MORw= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 345EEDST000583 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 09:14:13 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) 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.23; Fri, 5 May 2023 09:14:12 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.23 via Frontend Transport; Fri, 5 May 2023 09:14:12 -0500 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 345EEB8K022278; Fri, 5 May 2023 09:14:12 -0500 From: Vaishnav Achath To: , , , , , CC: , , , , Subject: [PATCH 2/4] arm64: dts: ti: k3-j721e-som-p0: Add HyperFlash node Date: Fri, 5 May 2023 19:44:05 +0530 Message-ID: <20230505141407.15134-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230505141407.15134-1-vaishnav.a@ti.com> References: <20230505141407.15134-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 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_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765064136853690728?= X-GMAIL-MSGID: =?utf-8?q?1765064136853690728?= J721E SoM has a HyperFlash and Hyperram connected to HyperBus memory controller. HyperBus is muxed with OSPI and only one controller can be active at a time, therefore keep HyperBus node disabled. Bootloader will detect the external mux state through a wkup gpio and enable the node as required. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index e289d5b44356..d7cc40486e42 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -165,6 +165,25 @@ J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */ >; }; + + mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CK */ + J721E_WKUP_IOPAD(0x4, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CKn */ + J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CSn0 */ + J721E_WKUP_IOPAD(0x54, PIN_OUTPUT, 3) /* MCU_HYPERBUS0_CSn1 */ + J721E_WKUP_IOPAD(0x30, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_RESETn */ + J721E_WKUP_IOPAD(0x8, PIN_INPUT, 1) /* MCU_HYPERBUS0_RWDS */ + J721E_WKUP_IOPAD(0xc, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ0 */ + J721E_WKUP_IOPAD(0x10, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ1 */ + J721E_WKUP_IOPAD(0x14, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ2 */ + J721E_WKUP_IOPAD(0x18, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ3 */ + J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ4 */ + J721E_WKUP_IOPAD(0x20, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ5 */ + J721E_WKUP_IOPAD(0x24, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ6 */ + J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ7 */ + >; + }; }; &ospi0 { @@ -185,6 +204,22 @@ }; }; +&hbmc { + /* OSPI and HBMC are muxed inside FSS, Bootloader will enable + * appropriate node based on board detection + */ + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_fss0_hpb0_pins_default>; + ranges = <0x00 0x00 0x05 0x00000000 0x4000000>, /* 64MB Flash on CS0 */ + <0x01 0x00 0x05 0x04000000 0x800000>; /* 8MB RAM on CS1 */ + + flash@0,0 { + compatible = "cypress,hyperflash", "cfi-flash"; + reg = <0x00 0x00 0x4000000>; + }; +}; + &mailbox0_cluster0 { status = "okay"; interrupts = <436>; From patchwork Fri May 5 14:14:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp457157vqo; Fri, 5 May 2023 07:40:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Vg7+UvuJbCYQxyyVY0VU7PYh4Y2bghRQzA84tol+XMdcmWtev6xxNuqqZ2s38w9hF6bxh X-Received: by 2002:a17:90a:ba8a:b0:240:f8a6:55c7 with SMTP id t10-20020a17090aba8a00b00240f8a655c7mr1670990pjr.20.1683297621384; Fri, 05 May 2023 07:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683297621; cv=none; d=google.com; s=arc-20160816; b=kFVtD4TUp+KL/HjXoz05nY1Gy+CQW7ZPUXrNSJF4/bNJWQM22dja2EAJPdmPwCotcr MNrSLjpXUumUyHGbLfEbrx/dBG4IuefYXlfQXepnhlbcbSOSSBG0VP77jDthLgIuS3fS MmV81BGgi/DNi8K29mcYYeo9ap6zaaT1nDQLamfCxgpWLLUT6QxEp7RbQF7JDpjwEZd/ /lFO8ynOjErnDbJLqdcDlCvmCg+zGjfrew6vnvlcUBOqx7MNpPjgvSvzy/lrwYAL0A3D Bt1U4epXF+vzGTtRMWaKJyuox5quUmeLUbwL3ur8i4zns2Le6XaKchOIVARqa471Twsv Ls5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gSYZYifaWkVjTuAYaiTversyXzWIB/rrjeZtE7PYkRM=; b=I7C8MXdrys/nv2JW3Yl/NdOQBiyTkJei7UCbV2Ai52yI6jVu1Ep1rMtO/Afa6t1MzI u6gmebU5EGM8fLfb6yH0Dgkzy4g0OFtyzZUw7HdC5gf18Z3s0JjG549LtIQmwNidFvkK UnxVFYp5FA0mVffdFV2NVuhjPfLdZbOUp0csy/nsENAWeX50xeQC0GrjvxUIuqg6P+4m alyG1wQX07KSnWZ29aadkV+JHrcwztQ2Axv3Md8vyPG03DLZzk735ZBcbZ7lyql4URhs +gm8mgmN5zWHAYfT57x6fNZu3SXNhrvWIlyjj/bZHg05IiZ5xycwhyQD1TamgQwX2GGA cDMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wsFuV5zQ; 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 m24-20020a17090aab1800b0024e2bb99e67si6417772pjq.7.2023.05.05.07.40.07; Fri, 05 May 2023 07:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wsFuV5zQ; 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 S232830AbjEEOOh (ORCPT + 99 others); Fri, 5 May 2023 10:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjEEOO0 (ORCPT ); Fri, 5 May 2023 10:14:26 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C1215691; Fri, 5 May 2023 07:14:24 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 345EEE6i039499; Fri, 5 May 2023 09:14:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683296054; bh=gSYZYifaWkVjTuAYaiTversyXzWIB/rrjeZtE7PYkRM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wsFuV5zQBVuuNA7u/Z+WNp/GX7v2IhtKbN4ykkoDKNfDaACw99jF+2p/gsQk2BCgd C0cTkgfzq8HUAkfzaxYncjYYu1ms5cuQhoB0xiT2YT78FJUXK5x1uyc7aeG0jM1n/y oWEYJbc5Oi0h99shNx+RuRM/mkNh1pyEkfcEvf5g= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 345EEEMS000596 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 09:14:14 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 5 May 2023 09:14:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 5 May 2023 09:14:14 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 345EEDhg090883; Fri, 5 May 2023 09:14:14 -0500 From: Vaishnav Achath To: , , , , , CC: , , , , Subject: [PATCH 3/4] arm64: dts: ti: k3-j7200-common-proc-board: Add OSPI/Hyperflash select pinmux Date: Fri, 5 May 2023 19:44:06 +0530 Message-ID: <20230505141407.15134-4-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230505141407.15134-1-vaishnav.a@ti.com> References: <20230505141407.15134-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 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_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765065486306729569?= X-GMAIL-MSGID: =?utf-8?q?1765065486306729569?= J7200 common processor board has an onboard mux for selecting whether the OSPI signals are externally routed to OSPI flash or Hyperflash. The mux state signal input is tied to WKUP_GPIO0_6 and is used by bootloader for enabling the corresponding node accordingly. Add pinmux for the same. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts index 63633e4f6c59..f5cbb4b7a9fb 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts @@ -98,6 +98,12 @@ >; }; + wkup_gpio_pins_default: wkup-gpio-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x70, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */ + >; + }; + mcu_mdio_pins_default: mcu-mdio1-pins-default { pinctrl-single,pins = < J721E_WKUP_IOPAD(0x0034, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ @@ -187,6 +193,11 @@ status = "disabled"; }; +&wkup_gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&wkup_gpio_pins_default>; +}; + &wkup_gpio1 { status = "disabled"; }; From patchwork Fri May 5 14:14:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 90458 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp455085vqo; Fri, 5 May 2023 07:37:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cp1jFzObIc1vDTCLWqZ48OnQ3/9s5yeUhnnuAw29t4KbwyVN7hB9s7c/P0iJ4+XpZ3H8p X-Received: by 2002:a17:902:e5c5:b0:1ab:1bdd:b2eb with SMTP id u5-20020a170902e5c500b001ab1bddb2ebmr1989086plf.56.1683297444965; Fri, 05 May 2023 07:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683297444; cv=none; d=google.com; s=arc-20160816; b=L6ttMg2bIFJo1NWSrKguGGxV2uLu4ZsLYX0BsxQK3NrDiRR8fWUApGekQnszaN9FHZ uSbgBZI3W8jQaY8HYJVaLqHDb7oPUbeEJEF5mcLbfO+aGDVVNJuWJWY+3U2SqOOKuQgu BOQTXGAlaVOnyFNfUeHKOioyn1rf8fSMF54wnh5dTKrFRvSBPBnao0blX+6CMXf2Fidi HhVmk59BlxfIy6MrWnBzBwRQHxvJzotsSBbDF94FdWsGQxgTo+6J1shLk8t84YBqKsho BYHFCwI7yRy9c0LhaUdNq/tkfOah5rU6Aif8fULINluZzo0OXMhgHQZBZdZzAMuMVqXV N9Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Hr+PHNhH9rhdb55UYrnWCj1dBhKcIPEet3Eek/wL7+g=; b=LOuQ1S240Vy/c++WNCSAmstkzn6X2AEtq9QZdFksI5pHiYaF/9+7cDvfUrFq2Eraov ebFvJ5YpN+uutzJyj8QsYcZ44I18sYzQXcqxLc24w7nBa63LR+6sh+AaevTRWc/Dci7p Vw58ofUieylaBmNVIDE40xqaeqrpuBFScwtqazLyOW9zse7ei+UUkCnHomTNo1d5wsIq Bi8kBcwb+59ckiXyWpuON5CJQJRcQR61RbzesSO5MnqskPA49KrgbYHCt5G9QwYrji9I gG5uJWgNOl06K7Elqtzk5f2OIdw1g6c24CGhPY45Rpndm+8PtYKqbAwE482OLL1uauIk S4UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s7ExkWIq; 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 w17-20020a1709027b9100b001a691f376e8si1737110pll.415.2023.05.05.07.37.12; Fri, 05 May 2023 07:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s7ExkWIq; 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 S232840AbjEEOOd (ORCPT + 99 others); Fri, 5 May 2023 10:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232813AbjEEOOZ (ORCPT ); Fri, 5 May 2023 10:14:25 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB2511623; Fri, 5 May 2023 07:14:24 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 345EEGYj126099; Fri, 5 May 2023 09:14:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683296056; bh=Hr+PHNhH9rhdb55UYrnWCj1dBhKcIPEet3Eek/wL7+g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=s7ExkWIqcl0Qm69wny51wI8cQ1u392Hkssy8UuM7sIOB3E3EQ285Y5VPd+t6GrYeI BmlthhQYRgw12YL6JVWEhOUKzqpMB1ujGY6UXhqOGuKwL/MLOxh0Z53r7naKdvXDDx 6Y4Uj5JZDNGH+KxE/Mj8APohdAEoBluSlh3+Uo/s= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 345EEGj0011681 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 May 2023 09:14:16 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 5 May 2023 09:14:16 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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.23 via Frontend Transport; Fri, 5 May 2023 09:14:16 -0500 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 345EEFdL068377; Fri, 5 May 2023 09:14:15 -0500 From: Vaishnav Achath To: , , , , , CC: , , , , Subject: [PATCH 4/4] arm64: dts: ti: k3-j721e-common-proc-board: Add OSPI/Hyperflash select pinmux Date: Fri, 5 May 2023 19:44:07 +0530 Message-ID: <20230505141407.15134-5-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230505141407.15134-1-vaishnav.a@ti.com> References: <20230505141407.15134-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 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_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765065302001146749?= X-GMAIL-MSGID: =?utf-8?q?1765065302001146749?= J721E common processor board has an onboard mux for selecting whether the OSPI signals are externally routed to OSPI flash or Hyperflash. The mux state signal input is tied to WKUP_GPIO0_6 and is used by bootloader for enabling the corresponding node accordingly. Add pinmux for the same. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts index 7db0603125aa..b7a2f23b2c67 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -363,6 +363,12 @@ J721E_WKUP_IOPAD(0xb8, PIN_INPUT, 7) /* (F28) WKUP_GPIO0_2 */ >; }; + + wkup_gpio_pins_default: wkup-gpio-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xd0, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_8 */ + >; + }; }; &wkup_uart0 { @@ -420,6 +426,11 @@ status = "disabled"; }; +&wkup_gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&wkup_gpio_pins_default>; +}; + &wkup_gpio1 { status = "disabled"; };