Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4255553pxu; Tue, 20 Oct 2020 12:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyH0t6d/zM9kxkTgkrGKTNiYqhHDRrxXJkUOsbDAwG9zvJ8vWEekGCXYrVoVR2Knz+dmy2 X-Received: by 2002:a05:6402:6d0:: with SMTP id n16mr4354310edy.133.1603220620875; Tue, 20 Oct 2020 12:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603220620; cv=none; d=google.com; s=arc-20160816; b=gQalbLfdKKGVbuf05dqymfId9cXESVh0mk6+6reVPnHnmb2jvvHTDT/qRi1kTwMoel j5jIx0UQTmH9d484jzRmzgOwoh9jhnhGWQc5neKFsAC4tJXEKpoAVxytg37MTVIJ3Cde ZdrcV7np/8/cKS+bt0HLIgbXFpzCHvEH3ngUfswaa68CMwspgBQDFPs5GcXy1D/b8TQ0 z6TVemhiCJ1T2WgO6o9Gu/qP/trU9bMxlOSIhP+f9m4IZGJWRAADYnxgfYimYVG0y/U7 OXv9JyBpxadrGD0+E43qlqbnY7tsAxn7+cMp7yciiUsBgUfNkpaS2o8EhPT4xgt4B0PJ mCwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=6JR9G8JPeMgalr7QgGO5bWFc7AdlYhfEG3mLRGxFDUk=; b=zKZRDyUFpDpl/mX3f0Z6oSnSRCU7Hf0RcmBVNB30yLBVTIsBNFc4wM6Okl4sF1LaQs WhOcikEV4z2xmyqdU0NrI5hzxLn/mWYQuq8IuYrt4ZLRLBM0t6ttXH9oo1SP8a4zYKwx 8m2cwuP9aCefwVfZOaJL6IEsJOOpexBmW2+DmBe1iwbXTUGZSRjyy+33XHl378pv8HaR ddQ+7Cil3XGkWUNGFj3hxSfAL2AZJotQ4GVXX/jqTemiKlpTFndqvXNbCLyjxb0tb+5o KfcRS1lMHlXxbrPV0vWZeZ2A3M5I5OIx3pg9fp1SBFJicS5NgZ6BwOWEUHri38FVrRQi hXUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ml22si1851159ejb.172.2020.10.20.12.02.53; Tue, 20 Oct 2020 12:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391045AbgJTDRr (ORCPT + 99 others); Mon, 19 Oct 2020 23:17:47 -0400 Received: from lucky1.263xmail.com ([211.157.147.132]:45056 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391035AbgJTDRq (ORCPT ); Mon, 19 Oct 2020 23:17:46 -0400 Received: from localhost (unknown [192.168.167.32]) by lucky1.263xmail.com (Postfix) with ESMTP id 34A8EEFB37; Tue, 20 Oct 2020 11:17:43 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P19667T139950908143360S1603163856544923_; Tue, 20 Oct 2020 11:17:42 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <52fadde2b4a21773fbe3b645a5e9b979> X-RL-SENDER: yifeng.zhao@rock-chips.com X-SENDER: zyf@rock-chips.com X-LOGIN-NAME: yifeng.zhao@rock-chips.com X-FST-TO: miquel.raynal@bootlin.com X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Yifeng Zhao To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, heiko@sntech.de, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yifeng Zhao Subject: [PATCH v12 0/8] Add Rockchip NFC drivers for RK3308 and others Date: Tue, 20 Oct 2020 11:17:29 +0800 Message-Id: <20201020031733.17883-1-yifeng.zhao@rock-chips.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rockchp's NFC(Nand Flash Controller) has four versions: V600, V622, V800 and V900.This series patch can support all four versions. Changes in v12: - Fix some warnings while make dt_binding_check - Drop a allOf defined Changes in v11: - Fix compile error. Changes in v10: - Fix compile error on master v5.9-rc7. Changes in v9: - The nfc->buffer will realloc while the page size of the second mtd is large than the first one - Fix coding style. - Remove struct rk_nfc_clk. - Prepend some function with rk_nfc_. - Replace function readl_poll_timeout_atomic with readl_relaxed_poll_timeout. - Remove function rk_nfc_read_byte and rk_nfc_write_byte. - Don't select the die if 'check_only == true' in function rk_nfc_exec_op. - Modify function rk_nfc_write_page and rk_nfc_write_page_raw. Changes in v8: - Fix a error while make dt_binding_check Changes in v7: - Fix some wrong define - Rebase to linux-next. - Fix coding style. - Reserved 4 bytes at the beginning of the oob area. - Page raw read and write included ecc data. Changes in v6: - Fix some wrong define - Modified the definition of compatible - The mtd->name set by NAND label property. - Add some comments. - Fix compile error. Changes in v5: - Fix some wrong define. - Add boot-medium define. - Remove some compatible define. - Add boot blocks support with different ECC for bootROM. - Rename rockchip-nand.c to rockchip-nand-controller.c. - Unification of other variable names. - Remove some compatible define. Changes in v4: - The compatible define with rkxx_nfc. - Add assigned-clocks. - Fix some wrong defineChanges in. - Define platform data structure for the register offsets. - The compatible define with rkxx_nfc. - Use SET_SYSTEM_SLEEP_PM_OPS to define PM_OPS. - Use exec_op instead of legacy hooks. Changes in v3: - Change the title for the dt-bindings. Changes in v2: - Fix compile error. - Include header files sorted by file name. Yifeng Zhao (8): dt-bindings: mtd: Describe Rockchip RK3xxx NAND flash controller mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others MAINTAINERS: add maintainers to ROCKCHIP NFC arm64: dts: rockchip: Add NFC node for RK3308 SoC arm64: dts: rockchip: Add NFC node for PX30 SoC arm: dts: rockchip: Add NFC node for RV1108 SoC arm: dts: rockchip: Add NFC node for RK2928 and other SoCs arm: dts: rockchip: Add NFC node for RK3036 SoC .../mtd/rockchip,nand-controller.yaml | 161 ++ MAINTAINERS | 4 +- arch/arm/boot/dts/rk3036.dtsi | 52 + arch/arm/boot/dts/rk3xxx.dtsi | 9 + arch/arm/boot/dts/rv1108.dtsi | 11 + arch/arm64/boot/dts/rockchip/px30.dtsi | 15 + arch/arm64/boot/dts/rockchip/rk3308.dtsi | 15 + drivers/mtd/nand/raw/Kconfig | 12 + drivers/mtd/nand/raw/Makefile | 1 + .../mtd/nand/raw/rockchip-nand-controller.c | 1439 +++++++++++++++++ 10 files changed, 1717 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml create mode 100644 drivers/mtd/nand/raw/rockchip-nand-controller.c -- 2.17.1