From patchwork Sat May 22 20:51:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Xu X-Patchwork-Id: 446301 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8782C47080 for ; Sat, 22 May 2021 20:51:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 743F26128A for ; Sat, 22 May 2021 20:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231390AbhEVUxV (ORCPT ); Sat, 22 May 2021 16:53:21 -0400 Received: from mail-eopbgr130042.outbound.protection.outlook.com ([40.107.13.42]:43781 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231398AbhEVUxU (ORCPT ); Sat, 22 May 2021 16:53:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WaGT6JHx8VpKaSOFtekvxkOseSAThzsUV2qzCddor2URnatHDj8nqlVf28hmr1CdP/avTnk4RGrMVWTprLb92j2nUMlUMIGCy5yup8HNRPbEz6U2WrJg6M78OQtbFesWG8i4BAiD9HTsvTyEqXp5hmRfOuP/8HbqZvbS/oMbfJGWbnIQLSUJM1D5aiZiMoeBhjZTWndvTc585M5fk+SQ9+7slqhVunL0u1DvEw+MnbgLkroIKbgRcPhtw+agSRTeJNTu6qyyOAB5Yq3csbjbejwf68DboBLlFBUP+ZtyCXcWU4h5j3d/YIBC8eg9s4EP+bci/B9ctIwWf57iI66Pog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApkNm0WnV0hrf9HLNluiLuPwSg1BB9dZzxi0v1qWR+M=; b=L8lhRPMjaXavJugem2s0dSwCOjdveTyucGUnLPKZ7HMsIxDE5ptC4qogmzXzwFsIRpXV2IlTziSQ/MpUZrJjZQS3QSm5+fM8BTaK9ke2mf1gU97gnSI2zpODEixBo970L6mruW6/RESkgEgKVfEMVSeoyds1zwnqt4IsLDjfPLjQDbQiuVd4m1/SYr+1ogMIqcx8CPIMKy/aTyfpXcDW9ZabUy22ZDqUfe6QImhY2fc6gfwrrLidVZZxUmCe3Jv9q3wZD4RSOQt2+nrjZolwdHmXCDSFXevfVdByBz+XWvf/DN8Xyu9KDiUOiaKUgg3NiNiu7XLSm4TdgJpZiLkqog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApkNm0WnV0hrf9HLNluiLuPwSg1BB9dZzxi0v1qWR+M=; b=nkgKzoXAQTjM2v5X/QcTqzFkP+qaj1kQSWrRkwFovJ0llmgct8eCw+MVZLJK9Y16ozzmkiStvmhDNuiWXEQb6ebBfpLeCYnqg6A7xigaB3k+ZtwmIe2bXKoac8UHI+BpCZQqLytGBKWIxtt5wvwn9GTd+tyetiE7sCuoa9+byeo= Authentication-Results: geanix.com; dkim=none (message not signed) header.d=none; geanix.com; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8774.eurprd04.prod.outlook.com (2603:10a6:10:2e1::21) by DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23; Sat, 22 May 2021 20:51:53 +0000 Received: from DU2PR04MB8774.eurprd04.prod.outlook.com ([fe80::285f:56e6:a248:1c78]) by DU2PR04MB8774.eurprd04.prod.outlook.com ([fe80::285f:56e6:a248:1c78%5]) with mapi id 15.20.4150.027; Sat, 22 May 2021 20:51:53 +0000 From: Han Xu To: sean@geanix.com, han.xu@nxp.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: mtd: gpmi-nand: add new fsl, legacy-bch-geometry flag Date: Sat, 22 May 2021 15:51:36 -0500 Message-Id: <20210522205136.19465-2-han.xu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210522205136.19465-1-han.xu@nxp.com> References: <20210522205136.19465-1-han.xu@nxp.com> X-Originating-IP: [70.112.23.252] X-ClientProxiedBy: SA9PR13CA0154.namprd13.prod.outlook.com (2603:10b6:806:28::9) To DU2PR04MB8774.eurprd04.prod.outlook.com (2603:10a6:10:2e1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from umbrella.lan (70.112.23.252) by SA9PR13CA0154.namprd13.prod.outlook.com (2603:10b6:806:28::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.11 via Frontend Transport; Sat, 22 May 2021 20:51:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 054d7a80-71ce-4daa-0e72-08d91d636dad X-MS-TrafficTypeDiagnostic: DU2PR04MB8582: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xfCGj6M45O9ZjXOnTHorVgPfaafNwtG6p9ng5iOlyGhSOlwu7RhK8jFq+NrDw3Kho19U4giSX3IXrDZh+qmWzlyRwoHwdN9LOnDmzOG9QDHzXkqUnLtmQXpiOu7ymX3ymlSo7skQJUD8mnoizkvsOxBd+shNxlje5Cv6noBOTmV/mB1ZvpGTbj/9r1puylRY9H8pNQxNFIwbiWNyOOWeFMDlnGSA4njuFzM8kSrKmjWH5ZAcefIWkhgqTKmFjW1BUhi9//RDc/1zeBJISjwNLTQCDnnplcT1Ek7qO9+1ZgtB2m4NLKrhwDN4ZSqMMfkTZOkH4//qW+63bAvRxBvbHbh2gRAnNiWx1qi3QvBatnY6taAjix72855JErfjS0nYDN4IDP/Ei2bjhi0dxXkzgvwQwjkhLxXDenfX2YpmHJbFKCh1bLavZxGuIdzHf5mL51DgEeTykrxtqim1jTP/xnpvejLsSO0xTfdiZ+MMSZ1CPCy0S4espnIEvaiVT9hIJaJj2H8sNaQ4I3etBLHAEQunk8ESDUzmK/AQUje7f+9H35XqW6qK4fqTvcYpv6nL3TK0z3uiLenjn9ND8W5tXrb/4nBq1JHJvskScsq5mzBSK3Kjjc8XDzPBd8QUf903g/SMyr0/VjxcYT3P5dzTDgHYZN5cpJAXQnkSTS+1zUs= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8774.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(366004)(396003)(346002)(39850400004)(4326008)(83380400001)(8676002)(6666004)(5660300002)(86362001)(186003)(36756003)(6486002)(6512007)(8886007)(8936002)(66556008)(66476007)(2616005)(44832011)(16526019)(26005)(52116002)(1076003)(956004)(38350700002)(66946007)(478600001)(2906002)(316002)(6506007)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ap1BaTCCW0VyeacdIHfFw7Wq72ZKvpkNfcZfSkk6kSytU+tCKkeo/LFabyp3nEsvzB5ly2HyhWh651W4z7scFjsqCpQE1LDJnhqtXb4rLKfljrjTocp0Ai0HFYst19xqBy6+BvNR5DWKyMXX/jydDP6eDOE8SapWJLNGiAKapG96kIMQmSpQeDFpYIiMpYcZCxF7e5N2VujgmMtqvfwidQcHoOpyOE7EpuHIoXa7B8wPzRejM8/l5ihfNnodsukAtDe1OSsmAC8NwMw/AXsME4nfyppqdDKZdd0RobjC1R+Fsz9XfTNjp+XnZTAT00/96MHKkirxh7IAJmXZxGWwGw94apQwERj2eYgk62phUd0Q9LxMmWn4nu+iZWdblDbvn+Nzt6oEMzk/2kL58DlJ+Rt15lcl9AfgdkCO0iwSqz3cFWcCRSyAn4ChUq1uoD7aDSJbJ7FXi/w5/3omLz+f+JhRX4Zf/LLXCmDPjGW6+fn29n2utaAmtLg5rzcFPSLt8auPgwNQz3u63+h0AvXFYIakaPfOmvfCJJWPirYWGgRrqu+RWA2T3lifmvyZQp+BCpe6V7Al44YW2Z6N/HvFskrMX7JxVLiDDT4l2OSDy/UUH3QQLTz1LhhHJECzh78UOS6+I1kyuM/kCPod8mkynZ3oZ5kdw89T/ifXN5TwKRJhR1xFGlYPIbydmZBdikzUM/+q78xEzLVYP05JXoBYjYZbI5zd4btFrDvp4BKVQAb+24i66CKY3hRLPO50Ypshhgyi/viqKJUikbxHfDT0oPKb4yEHBUfvYSUJVJIfOuwOV50lVk5oZK8d+yemy2wyfEfiVnzwi+7pTP622nSk1bz16yspncTTOCgTbCm0lo4OsgAv7Vl/wnIsYKH/XpIBN+zzat4L/lXa0iX9x3hpSdh3QNaLkIyDMLBTfCvIpZ/QH2f/6fP5F698PdP5M8Nl4+ABN1mEBYMS2ExKcOXiG+onSNDaAR1ISh1OvMGha6pnRnMPwv3LRugxU7nYFszvpV3l9yjN0rtCiVVSYhyIiTnoZ4ZjDWwgwzj/vd9HVgkDUTboICqH8UTBktcpB9Szh/hvXQ4Qd/yN+v+30IYOR4BD+FM2gYWx18Upk/InoCsHbQpBFSQZNYwLOHRPT3MQ64icNljHh4quEB0fBeu00VUZ2bB2To2/dcV34KRvN8F5u7ivlccuMMXxYUtJ4zZ23uVfzeNlRgjEj27tXNIk3oHHRRlf41Ym+u3QfvgFWXcceRXBn2djIirE/G+oJRp8W0H0HpMyd4H4wXia9ZSvfW80FKvVyMelpa7Gn9BPapdqkIYfWufvYo0WoMVmEatT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 054d7a80-71ce-4daa-0e72-08d91d636dad X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8774.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2021 20:51:52.9806 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IFRqdJ1fyUqwmYrUTlBHRSd0SWiXCG7EvunPlxOt1sEIOWE4M/kyGuWlAzYK1rGo X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8582 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org New bch geometry setting uses the minimum NAND chip required ecc strength and step size by default. This flag was designed for backward compatible. The fsl,use-minimum-ecc flag can be deprecated. Signed-off-by: Han Xu --- Documentation/devicetree/bindings/mtd/gpmi-nand.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml index 9d764e654e1d..5f4eddd132a1 100644 --- a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml @@ -62,6 +62,7 @@ properties: fsl,use-minimum-ecc: type: boolean + deprecated: true description: | Protect this NAND flash with the minimum ECC strength required. The required ECC strength is automatically discoverable for some @@ -69,6 +70,14 @@ properties: if this strength is not discoverable or this property is not enabled, the software may chooses an implementation-defined ECC scheme. + fsl,legacy-bch-geometry: + type: boolean + description: | + Enable the legacy bch geometry setting, which will set the data chunk + size larger than oob size and chose the maximum ecc strength oob can + hold. This flag was designed for backward compatible or old NAND chip + support, should be en/disabled in u-boot and kernel at the same time. + fsl,no-blockmark-swap: type: boolean description: |