Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2243603rwb; Thu, 8 Dec 2022 22:47:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yZkR9sHwbgk+YZOtzPt/bmEBUtOLfQYRqz9pHv1iffaKL9NNqBkQJrkAiXJZedCStx0hN X-Received: by 2002:a05:6402:180c:b0:46d:aaa5:823c with SMTP id g12-20020a056402180c00b0046daaa5823cmr3211363edy.34.1670568420900; Thu, 08 Dec 2022 22:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670568420; cv=none; d=google.com; s=arc-20160816; b=oHmRxRQrkWFRxQZQQSlwCOwtJV+lmxuaDOBtt0Q6Ku7VUI3ljz6GprooRxXxCYvC3G drHY7+iLpq3/VXpoi1tzTadBxIrXSLjxyCMWE++td2BR3dKbdol4WRN0ZJulBxjT9woq Y7dcfDFJvRRHb7ky1hkseGuySjNHt+UnaD35nJFyOmXAZL4pkjP3XcvZGrHdeknhHyRP iiO/4+HxtUt+fG/EI9MxZzro9Wu4otyP9GVZP0sG0vFq+JJlMVRXyj5exCVjJh8//XEK NlfT8bYD2u8OFPV7X+85vjXIEP7gHHTeuxKaUf4m9+DCLclhFMgQZ9wpVkPb3F5jvTHR U8mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XfkmgaoPa7gPC1ZTFTs+Ib5gI1ywkha25Ly8O/K7+8c=; b=kRo1Y/A+cCEjIpmUxm6kT52aCdTeXC5yEJYyDpWm5xN5BdkeDW/YsBUidNfvgGAO9Q tfnPM/6E2lxtChPsBk6xpGr76ILPSjfYAaWokVcR5e1dAOSdNSyjQFpd9iDur5dPnLGs wg5aomztZGQKJP/sKJ5ZvpUQ/csHdqX4LuN950zXdpLA+WCfxZH8H7gVbE+C2rJLOq7v 29BT3hPLLqedcTfLIDaIX7e83IZ3PEJMO0XJPXbaSGVywuHTa+8Vy8/UIAzw/6amxg6M AFsuPwY/n4kKUDMBlgRvkcFlp4y1VC8vFfFudcWOdXKxTpwjt1Wcrz0ML7T7dYnzMcTp Gqpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nl5Oo+fH; 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=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020aa7ca4f000000b004627741e339si666541edt.113.2022.12.08.22.46.43; Thu, 08 Dec 2022 22:47:00 -0800 (PST) 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=@mediatek.com header.s=dk header.b=nl5Oo+fH; 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=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbiLIGoL (ORCPT + 74 others); Fri, 9 Dec 2022 01:44:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiLIGoF (ORCPT ); Fri, 9 Dec 2022 01:44:05 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5074A468; Thu, 8 Dec 2022 22:43:57 -0800 (PST) X-UUID: 209537185f1a42768ca3c573c232f059-20221209 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=XfkmgaoPa7gPC1ZTFTs+Ib5gI1ywkha25Ly8O/K7+8c=; b=nl5Oo+fHbinveA9Yklu/jsfW0y30NfwtaoGoqS03pXM6cl9yJ3N/MQiYZoGkaH/eHIe90Yf8W2UFJUDA7iPTVNAH09yFMZFE4UGc71Pj6mSAxn/yG5An95UNL75vyq5Q5nCcIYVnPovKfy2sZdhKZScZBungk5w15GFB+tFIKu4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:5cc93ce5-764d-4399-a0ed-c074687a78df,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.14,REQID:5cc93ce5-764d-4399-a0ed-c074687a78df,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:dcaaed0,CLOUDID:fa181bd2-652d-43fd-a13a-a5dd3c69a43d,B ulkID:2212091443511Y6EMJCM,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 209537185f1a42768ca3c573c232f059-20221209 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1918272497; Fri, 09 Dec 2022 14:43:48 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 9 Dec 2022 14:43:47 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 9 Dec 2022 14:43:46 +0800 From: Xiangsheng Hou To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Mark Brown , Chuanhong Guo CC: Xiangsheng Hou , , , , , , , , Subject: [PATCH v4 0/9] Add MediaTek MT7986 SPI NAND and ECC support Date: Fri, 9 Dec 2022 14:43:08 +0800 Message-ID: <20221209064317.2828-1-xiangsheng.hou@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY autolearn=no 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 This patch series add MediaTek MT7986 SPI NAND and ECC controller support, split ECC engine with rawnand controller in bindings and change to YAML schema. Changes since V3: - Correct mediatek,mtk-nfc.yaml dt-bindings. Changes since V2: - Change ECC err_mask value with GENMASK macro. - Change snfi mediatek,rx-latch-latency to mediatek,rx-latch-latency-ns. - Add a separate patch for DTS change. - Move common description to top-level pattern properties. - Drop redundant parts in dt-bindings. Changes since V1: - Use existing sample delay property. - Add restricting for optional nfi_hclk. - Improve and perfect dt-bindings documentation. - Change existing node name to match NAND controller DT bingings. - Fix issues reported by dt_binding_check. - Fix issues reported by dtbs_check. Xiangsheng Hou (9): spi: mtk-snfi: Change default page format to setup default setting spi: mtk-snfi: Add optional nfi_hclk which is needed for MT7986 mtd: nand: ecc-mtk: Add ECC support fot MT7986 IC dt-bindings: spi: mtk-snfi: Add compatible for MT7986 spi: mtk-snfi: Add snfi sample delay and read latency adjustment dt-bindings: spi: mtk-snfi: Add read latch latency property dt-bindings: mtd: Split ECC engine with rawnand controller arm/arm64: dts: mediatek: Fix existing NAND controller node name dt-bindings: mtd: mediatek,nand-ecc-engine: Add compatible for MT7986 .../bindings/mtd/mediatek,mtk-nfc.yaml | 155 +++++++++++++++ .../mtd/mediatek,nand-ecc-engine.yaml | 63 +++++++ .../devicetree/bindings/mtd/mtk-nand.txt | 176 ------------------ .../bindings/spi/mediatek,spi-mtk-snfi.yaml | 54 +++++- arch/arm/boot/dts/mt2701.dtsi | 2 +- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 2 +- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- drivers/mtd/nand/ecc-mtk.c | 28 ++- drivers/spi/spi-mtk-snfi.c | 41 +++- 9 files changed, 330 insertions(+), 193 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,nand-ecc-engine.yaml delete mode 100644 Documentation/devicetree/bindings/mtd/mtk-nand.txt -- 2.25.1