From patchwork Tue Jun 6 23:12:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 13269855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72720C77B7A for ; Tue, 6 Jun 2023 23:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=gN52S96hh5vdhs3O7kGWIYE6eRw04WMMcDUlmCoczfo=; b=USU r4wlr3Yxc5aT4Xg2BLCWhMGsklH668iiifSjVEU8ZB5OgQKrMUhfqnwJAr0/9QGt685ntODrsrNv7 BHoYhFPi0bi9IU3CqgD9Z2hMSF7kmr6uCLlX4jqM7ptFOJLds8MxhxlJCRrik814FOS1KU4IfLSuN 0yOsXWoLCZR7h7YjLvaFVcz8MQfC/2d6rxifBSHaCuZteY0oTXDvVv2r+9pB4W3YPxZA6VhXam7H7 loQf3BWqSCLDBoUhcYRMImNEoscWUO8ghyo6QI4+3z9kK50kJO2Tc5blkzaBx/Ym+Yc+j1HtwYhXO U3NCe+oRRNLZLpAET5kG/tW/+3slP+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6fs7-003anK-1L; Tue, 06 Jun 2023 23:13:51 +0000 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6fs3-003alg-0j for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2023 23:13:48 +0000 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-75b14216386so624995285a.0 for ; Tue, 06 Jun 2023 16:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686093225; x=1688685225; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=q0FCUwRDfXqH76OLXOBy9DvrDzfqjMsB6c6SJ2EDeDQ=; b=WViDv6dUIK/MPrScmzhBzhjSubfZuw2boVTxOib1vV2GlO6pHMaR57pIpiGQvBU5qF TvSgORbn76VWDwOGcIMh2FhodIeNzCuaK2rPCaD7DEQTc2B/QeuIa/tIU2Xg0/9w1mJL wBQ6fNHKT4Uxko+iN3wgXPzvMstki9Gjlf6Lw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686093225; x=1688685225; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=q0FCUwRDfXqH76OLXOBy9DvrDzfqjMsB6c6SJ2EDeDQ=; b=lQPLG1tigiS7Kp40q9brEm34s671vlz1cOzJb6lh++nhPNMUX/efvq6NHh16FJk7C8 R3u5U4/OfY8aRo7tiLgm8YslzthGSrEotcGCe1Xh2F8FlNRCmbPyoLJ0Wue61ZWlY5ta A7MNfv02ptIho9IXRXBKrdtnn/sChc6wygci2mVSG7y6EiNBUW51R/3UAUoQ2X8FEX77 aJimuqnBHgc8chZFSM9AgxvS4NezytYKK5jveQrWxVqGt4uGTLj5+tl/r6dHYj2WmUnD tM/JuB/+reYuix5iL13wDMLDGjElg1E2UN2ZNUOOxmX2CInpRZIT8f3mGRBWGQuEn++H brug== X-Gm-Message-State: AC+VfDzA0ZEz+OJvIcbuNP8PeUZwfAY49lLfR4SNq1J8huBeY0Ipd9EQ EQDHlyPHNil3KVTsWrGLSeK9WQ== X-Google-Smtp-Source: ACHHUZ43OmZrqC0li3r2pNNxSLgWrqzTFhqAfxpZDaYMPvylBGUNiBd8Rj9qtGgH3W2DZvL0ACrNsQ== X-Received: by 2002:a05:620a:27c9:b0:75d:4682:125b with SMTP id i9-20020a05620a27c900b0075d4682125bmr190369qkp.33.1686093224900; Tue, 06 Jun 2023 16:13:44 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id x9-20020ae9e909000000b0075b23e55640sm5221519qkf.123.2023.06.06.16.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 16:13:42 -0700 (PDT) From: William Zhang To: Broadcom Kernel List , Linux MTD List Cc: f.fainelli@gmail.com, rafal@milecki.pl, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, computersforpeace@gmail.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, William Zhang , devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , linux-arm-kernel@lists.infradead.org, Boris Brezillon , Kamal Dasu , Rob Herring Subject: [PATCH 00/12] mtd: rawnand: brcmnand: driver and doc updates Date: Tue, 6 Jun 2023 16:12:40 -0700 Message-Id: <20230606231252.94838-1-william.zhang@broadcom.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230606_161347_265211_7437231E X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series include the accumulative updates and fixes for the brcmnand driver. The device tree document is also updated accordingly with the new properties needed by the driver. William Zhang (12): mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller mtd: rawnand: brcmnand: Fix potential false time out warning mtd: rawnand: brcmnand: Fix crash during the panic_write mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write dt-bindings: mtd: brcmnand: Updates for bcmbca SoCs ARM: dts: broadcom: bcmbca: Add NAND controller node arm64: dts: broadcom: bcmbca: Add NAND controller node mtd: rawnand: brcmnand: Rename bcm63138 nand driver mtd: rawnand: brcmnand: Add new compatible string mtd: rawnand: brcmnand: Add BCMBCA read data bus interface mtd: rawnand: brcmnand: Add support for getting ecc setting from strap mtd: rawnand: brcmnand: Support write protection setting from dts .../bindings/mtd/brcm,brcmnand.yaml | 64 ++++--- arch/arm/boot/dts/bcm47622.dtsi | 17 ++ arch/arm/boot/dts/bcm63138.dtsi | 12 +- arch/arm/boot/dts/bcm63148.dtsi | 17 ++ arch/arm/boot/dts/bcm63178.dtsi | 17 ++ arch/arm/boot/dts/bcm6756.dtsi | 17 ++ arch/arm/boot/dts/bcm6846.dtsi | 17 ++ arch/arm/boot/dts/bcm6855.dtsi | 17 ++ arch/arm/boot/dts/bcm6878.dtsi | 17 ++ arch/arm/boot/dts/bcm947622.dts | 4 + arch/arm/boot/dts/bcm963138.dts | 4 + arch/arm/boot/dts/bcm963138dvt.dts | 12 +- arch/arm/boot/dts/bcm963148.dts | 4 + arch/arm/boot/dts/bcm963178.dts | 4 + arch/arm/boot/dts/bcm96756.dts | 4 + arch/arm/boot/dts/bcm96846.dts | 4 + arch/arm/boot/dts/bcm96855.dts | 4 + arch/arm/boot/dts/bcm96878.dts | 4 + .../boot/dts/broadcom/bcmbca/bcm4908.dtsi | 5 +- .../boot/dts/broadcom/bcmbca/bcm4912.dtsi | 17 ++ .../boot/dts/broadcom/bcmbca/bcm63146.dtsi | 17 ++ .../boot/dts/broadcom/bcmbca/bcm63158.dtsi | 17 ++ .../boot/dts/broadcom/bcmbca/bcm6813.dtsi | 17 ++ .../boot/dts/broadcom/bcmbca/bcm6856.dtsi | 17 ++ .../boot/dts/broadcom/bcmbca/bcm6858.dtsi | 17 ++ .../boot/dts/broadcom/bcmbca/bcm94912.dts | 4 + .../boot/dts/broadcom/bcmbca/bcm963146.dts | 4 + .../boot/dts/broadcom/bcmbca/bcm963158.dts | 4 + .../boot/dts/broadcom/bcmbca/bcm96813.dts | 4 + .../boot/dts/broadcom/bcmbca/bcm96856.dts | 4 + .../boot/dts/broadcom/bcmbca/bcm96858.dts | 4 + drivers/mtd/nand/raw/brcmnand/Makefile | 2 +- drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c | 101 ----------- drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c | 138 +++++++++++++++ drivers/mtd/nand/raw/brcmnand/brcmnand.c | 166 ++++++++++++++---- drivers/mtd/nand/raw/brcmnand/brcmnand.h | 2 + 36 files changed, 615 insertions(+), 164 deletions(-) delete mode 100644 drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c create mode 100644 drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c