Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp359119ybd; Tue, 25 Jun 2019 23:01:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrQmEn0xBMD0xbGpwP9YjLe0m8yYzycGQLJlFxgbqb5iJaFgqN3NXkM2TPFnJbH8pX7q7G X-Received: by 2002:a63:205b:: with SMTP id r27mr1194783pgm.330.1561528868177; Tue, 25 Jun 2019 23:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561528868; cv=none; d=google.com; s=arc-20160816; b=a8f0UH7H6wvgEb6jqaJ6wAILVpafvZWsgjHZgsioiNF6C+pqtuAwDAJsMRub8bdLDd W9cz9diJNy+Dg32Ful/zZfgReJFhI5KgmiafaXrZmcZPY9CDXMUvqhVvazMOlDmGUj8X 1FEDEa3jy0uObjIp4d4t7rz0EeIdy3jfXnRdaSufhpWecoOEsNZNoIhlNV7xo36/yJfk W8g3m4P0k+uMVv44H5cicsGN6+l+O3ync+8BeWmEJUFj8pKyI67oqjtguojxQ8EUlrnN zKyQ7zWVTeOCHqFYMON3CjQ4uqBBUJ+P2/rV8rwmKQQb9NWI8c8nozCZyK5AFUBeWpFs EefQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=HVUML4z+0uJ3/8NRfZVvuXjLtrK+2oCxRsdfu2L1a6M=; b=RBqneKONsIyAwPe3+rWDhTas0V3g8dI6gN4LsyhE1454SUTjryMJESZ3/bq6LmkXaP /9FpIPtGp6vcXyiKou+1Hj5xggWL2Pm8BZBpodVOBewKIc1smuQzH1Twu7najIdU6QTb hvZZLRZw7rFPYRxO6XXDp83a04YUQ8i977/ATadhxMFbuyKdVTwwiV+dxQSqgHoVzpw9 DCH00uoDieo1fy+eCYbmpvBF7QZkTGCGMvFhDabk59PX2LNSjagaIj4BpTFgivTE4aG+ OiY4EftvkDbbSUXhFLeFOE0a3bjrNQIz6V022qICSfGf+ormtmklel1avMBNNemrWn7n EmhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CWpQiyUr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si8742266pgh.580.2019.06.25.23.00.51; Tue, 25 Jun 2019 23:01:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CWpQiyUr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726535AbfFZGAl (ORCPT + 99 others); Wed, 26 Jun 2019 02:00:41 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:54470 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbfFZGAl (ORCPT ); Wed, 26 Jun 2019 02:00:41 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x5Q60FSI085347; Wed, 26 Jun 2019 01:00:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561528815; bh=HVUML4z+0uJ3/8NRfZVvuXjLtrK+2oCxRsdfu2L1a6M=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=CWpQiyUrkMBOHsPtmLblyp5/OJuonzQnj2fMi494DDmBzu19N58HhjR094H07ThD0 WdazApgdj2HdhNHDu4mXZzg96r3Ug3SL2h0YHliiTN3RNNJscmrCoMJKdwSAxS5FhM hDa8XZg88rrN8st2CNYwc5hLgprqNF7+g0fH9I+k= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x5Q60Fhj077983 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Jun 2019 01:00:15 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 26 Jun 2019 01:00:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.1713.5 via Frontend Transport; Wed, 26 Jun 2019 01:00:14 -0500 Received: from [172.24.190.89] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x5Q60B6h031555; Wed, 26 Jun 2019 01:00:12 -0500 Subject: Re: [PATCH v7 3/5] mtd: Add support for HyperBus memory devices To: CC: Boris Brezillon , , , , , Marek Vasut , Miquel Raynal , Richard Weinberger , Rob Herring , Sergei Shtylyov References: <20190620172250.9102-1-vigneshr@ti.com> <20190620172250.9102-4-vigneshr@ti.com> From: Vignesh Raghavendra Message-ID: <1131067e-a86d-f794-f6ae-be0a2b3e5832@ti.com> Date: Wed, 26 Jun 2019 11:30:56 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/06/19 6:46 AM, masonccyang@mxic.com.tw wrote: > Hi Vignesh, > >> >> Subject >> >> [PATCH v7 3/5] mtd: Add support for HyperBus memory devices >> >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave >> interfaces. HyperBus is used to connect microprocessor, microcontroller, >> or ASIC devices with random access NOR flash memory (called HyperFlash) >> or self refresh DRAM (called HyperRAM). >> >> Its a 8-bit data bus (DQ[7:0]) with Read-Write Data Strobe (RWDS) >> signal and either Single-ended clock(3.0V parts) or Differential clock >> (1.8V parts). It uses ChipSelect lines to select b/w multiple slaves. >> At bus level, it follows a separate protocol described in HyperBus >> specification[1]. >> >> HyperFlash follows CFI AMD/Fujitsu Extended Command Set (0x0002) similar >> to that of existing parallel NORs. Since HyperBus is x8 DDR bus, >> its equivalent to x16 parallel NOR flash wrt bits per clock cycle. But >> HyperBus operates at >166MHz frequencies. >> HyperRAM provides direct random read/write access to flash memory >> array. >> >> But, HyperBus memory controllers seem to abstract implementation details >> and expose a simple MMIO interface to access connected flash. >> >> Add support for registering HyperFlash devices with MTD framework. MTD >> maps framework along with CFI chip support framework are used to support >> communicating with flash. >> >> Framework is modelled along the lines of spi-nor framework. HyperBus >> memory controller (HBMC) drivers calls hyperbus_register_device() to >> register a single HyperFlash device. HyperFlash core parses MMIO access >> information from DT, sets up the map_info struct, probes CFI flash and >> registers it with MTD framework. >> >> Some HBMC masters need calibration/training sequence[3] to be carried >> out, in order for DLL inside the controller to lock, by reading a known >> string/pattern. This is done by repeatedly reading CFI Query >> Identification String. Calibration needs to be done before trying to > detect >> flash as part of CFI flash probe. >> >> HyperRAM is not supported at the moment. >> >> HyperBus specification can be found at[1] >> HyperFlash datasheet can be found at[2] >> >> [1] https://www.cypress.com/file/213356/download >> [2] https://www.cypress.com/file/213346/download >> [3] http://www.ti.com/lit/ug/spruid7b/spruid7b.pdf >> Table 12-5741. HyperFlash Access Sequence >> >> Signed-off-by: Vignesh Raghavendra > > Cypress has announced the inclusion of Cypress’ high-bandwidth > HyperBus™ 8-bit serial memory interface into the new eXpanded SPI (xSPI) > electrical interface standard from the JEDEC Solid State Technology > Association > > for detail, please goes to > https://www.cypress.com/news/cypress-hyperbus-memory-interface-instant-applications-incorporated-jedec-xspi-electrical > Thanks for the link! Announcement seems to be from March 2018 since then Cypress has published detailed HyperBus protocol in public domain . Comparing JEDEC xSPI specification and HyperBus protocol that Cypress has published, they seem to be following 8D-8D-8D Profile 2.0 with Extended Command Modifier of JEDEC xSPI spec. Did you see anything missing/different? I need to study xSPI spec in more detail, but seems like as long as we support HyperBus Protocol spec from Cypress we should be safe. -- Regards Vignesh