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>;