From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Samuel Holland <samuel@sholland.org>
Cc: Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] mtd: rawnand: hynix: Add support for H27UCG8T2FTR-BC MLC NAND
Date: Mon, 2 Jan 2023 11:06:30 +0100 [thread overview]
Message-ID: <20230102110630.4c68e038@xps-13> (raw)
In-Reply-To: <1b17f332-827b-c8b1-807c-9c6e38caf173@sholland.org>
Hi Samuel,
samuel@sholland.org wrote on Fri, 30 Dec 2022 10:08:13 -0600:
> Hi Miquèl,
>
> On 12/30/22 06:45, Miquel Raynal wrote:
> > Hi Samuel,
> >
> > samuel@sholland.org wrote on Thu, 29 Dec 2022 13:09:03 -0600:
> >
> >> H27UCG8T2FTR-BC is similar to the already-supported H27UCG8T2ETR-BC, but
> >> reports a different ID.
> >
> > Can you provide a datasheet for this part? I am surprised by the page
> > size. In general anyway, it's best to provide a link when adding
> > support for a new component.
>
> I was unable to find a datasheet for specifically H27UCG8T2FTR-BC. The
> best datasheet I could find is for H27UCG8T2ETR-BC[0][1]. However, there
> are layout parameters for H27UCG8T2FTR-BC in some versions of the vendor
> NAND driver[2][3][4]. The Hynix chip is packaged as Essencore
> I3T-8GQ8T2H5TARC, as referenced in that NAND ID table, which is the
> actual package on the board I have.
>
> Regards,
> Samuel
>
> [0]:
> https://z3d9b7u8.stackpathcdn.com/pdf-down/H/2/7/H27UCG8T2ETR-BC-Hynix.pdf
Pointing to [0] or [1] in the commit log would be nice at least, even
though we cannot get our hands on the real datasheet...
> [1]: http://www.zsong.com.cn/userfiles/H27UC(D)G8T(U)2ETR-BC_Rev1.0_0826.pdf
> [2]:
> https://github.com/engSinteck/A133_Image/blob/main/longan/kernel/linux-4.9/modules/nand/sun8iw15p1/phy-nand/physic_v2/nand_id2.c#L1592
> [3]:
> https://github.com/launchfur/rg818-kernel/blob/master/modules/nand/sun8iw15p1/phy-nand/physic_v2/nand_id2.c#L1592
> [4]: Adding member names to that table entry:
>
> {.nand_id = {0xad, 0xde, 0x14, 0xab, 0x42, 0x4a,
> 0xff, 0xff},
> .die_cnt_per_chip = 1,
> .sect_cnt_per_page = 32,
> .page_cnt_per_blk = 256,
> .blk_cnt_per_die = 2112,
> #define NAND_MULTI_PROGRAM (1 << 3)
> #define NAND_RANDOM (1 << 7)
> #define NAND_READ_RETRY (1 << 8)
> #define NAND_LSB_PAGE_TYPE (0xff << 12)
> .operation_opt = 0x00002188,
> .valid_blk_ratio = 896,
> .access_freq = 40,
> .ecc_mode = 8,
> .read_retry_type = 0x050804,
> .ddr_type = 0,
> .option_phyisc_op_no = 14,
> .ddr_info_no = 0,
> .id_number = 0x010026,
> .max_blk_erase_times = 3000,
> .driver_no = 1,
> .access_high_freq = 40,
> .random_cmd2_send_flag = 0,
> .random_addr_num = 0,
> .nand_real_page_size = 16384 + 1664},
This and what is displayed in the two datasheets pointed above looks
very much like out-of-band data to me, I don't get why we should treat
this part of the array differently? The OOB area is not only supposed to
be used for ECC bytes (even though that's how UBI make use of it), you
can store all the data you want there (but it's not necessarily
protected by the ECC engine, which, in general, matters a lot.
I don't see how this datasheet would be different than the others. They
don't detail the geometry, I would have expected them to do it if the
page size was anything different than the standard?
> ".option_phyisc_op_no = 14" references this entry:
> {
> /* 14 */
> .multi_plane_read_cmd = {0x60, 0x30},
> .multi_plane_write_cmd = {0x11, 0x81},
> .multi_plane_copy_read_cmd = {0x60, 0x60, 0x35},
> .multi_plane_copy_write_cmd = {0x85, 0x11, 0x81},
> .multi_plane_status_cmd = 0x78,
> .inter_bnk0_status_cmd = 0x78,
> .inter_bnk1_status_cmd = 0x78,
> .bad_block_flag_position = 0x00,
> .multi_plane_block_offset = 1024,
> },
>
Thanks,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2023-01-02 10:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-29 19:09 [PATCH 0/3] mtd: rawnand: Add H27UCG8T2FTR-BC MLC NAND Samuel Holland
2022-12-29 19:09 ` [PATCH 1/3] mtd: rawnand: hynix: Add support for " Samuel Holland
2022-12-30 12:45 ` Miquel Raynal
2022-12-30 12:46 ` Miquel Raynal
2022-12-30 16:08 ` Samuel Holland
2023-01-02 10:06 ` Miquel Raynal [this message]
2023-01-02 15:50 ` Samuel Holland
2023-01-02 16:59 ` Miquel Raynal
2022-12-29 19:09 ` [RFC PATCH 2/3] mtd: rawnand: Support non-power-of-two chip sizes Samuel Holland
2022-12-29 19:09 ` [RFC PATCH 3/3] mtd: rawnand: hynix: Expose the full H27UCG8T2FTR-BC chip size Samuel Holland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230102110630.4c68e038@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--cc=samuel@sholland.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox