From patchwork Tue Oct 6 07:54:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ikjoon Jang X-Patchwork-Id: 11818309 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB3C8112E for ; Tue, 6 Oct 2020 07:56:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79B6620789 for ; Tue, 6 Oct 2020 07:56:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AHZ4NQBd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jnrqiy+P" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79B6620789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=6179a4AeZDQmP/frUA6xIuT25rVwgBuaNbfXBY67MlM=; b=AHZ4NQBdLdJUPL9i2COIIyoqKC oxvmKIkeoKdhk3GLOGhwyRWRA2y+hYyG21xltgFswkG4/C4N0zqiuLSwRSa7zxo6h7cdtf4YNEd/M VXw1nH+MSdoANrzehXzQedPyzxNOQnBtC65aJx/Jftl2Vqc2PC2X1mopGSRRg1nMXskcRvpSSG25m 0aZivSV3YlsrcvVNOQ6dI1xpMYNdr+eZIW7DwTIpv9FEzvtuuocK3RpzZxJFnJRqi2Oh3LGYPciKF pztgZVehAtczCp2XCdnMvPLGa6tZCtUa92Kzr0WSJLDEqpKYYZyfboZ1CJIIovuhQAbOGe6GAucp4 suMhBPaA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPhnj-0002NP-8N; Tue, 06 Oct 2020 07:54:23 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPhnc-0002JO-Vp for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2020 07:54:18 +0000 Received: by mail-pj1-x1043.google.com with SMTP id u3so1223796pjr.3 for ; Tue, 06 Oct 2020 00:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pn/wc+bv9MvSQdOJW1Jb3BA5CiEn9SyA0DgRDMi+3Ec=; b=jnrqiy+PEyHmqOdKQpRiNZc2B9pj0yNj+q0J+7yu6pjJe84nEEIajU6P/iv+lcG2ps taqxtHaEfZK3j9uFREtuzmFl9eapXiQoVBg+/2BKtvE+Jv32UnZbwSdg+tQhYilVE1pB N9LaZlZ+o0439ZNk6c5/WIr4MphQ9cz5+AFXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pn/wc+bv9MvSQdOJW1Jb3BA5CiEn9SyA0DgRDMi+3Ec=; b=LzWqus8NzRfXqMoLP6K8aL+60SSWNHCRr1UrBrEZY7sybpcESz5UCJKGhMynPMQO6+ MF5Id/l0iEbsrwYbAJ0Z0h2pmQ6wI1nwq0vr5CbGNJ7whwNCWRRggqpouXAlc0i/SlP3 ydYAM41veX3ZnKHPRF1U1LZqH0CDUxAOCfvgepyFFHipbPC71rk1dZ9b41K5kT1ikj3X DW0KehDoBRSiY/9nEyFmelnkbT9dNeTZQNd67dEGr43mC0kPZN/NJLf3kUK71C5UKoQm /waADCRmvZxuy86xGQM0yBhvRlX4CGEbfv90MOYpXALbcTlLsfRJ68pO8rsU8K/y2Q7r xq3g== X-Gm-Message-State: AOAM530+gfQ3pmX0+xP0FxEVez4BxvzWiA5dwdMnMTEWgvb6y2Wxcryb 1m43zspUqdQrxanoTJmyjijXfw== X-Google-Smtp-Source: ABdhPJx5OPq6K6XkaaIZsYsK+H0mb4/hLwZpnh5ySm23bU5vcYbJ2YvYJEYeLvpJ7zXkxVXimWHMpw== X-Received: by 2002:a17:90a:a101:: with SMTP id s1mr3014013pjp.220.1601970853389; Tue, 06 Oct 2020 00:54:13 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:10:f693:9fff:fef4:a8fc]) by smtp.gmail.com with ESMTPSA id r6sm2545147pfq.11.2020.10.06.00.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 00:54:12 -0700 (PDT) From: Ikjoon Jang To: Rob Herring , Mark Brown , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH v5 0/4] spi: spi-mtk-nor: Add mt8192 support. Date: Tue, 6 Oct 2020 15:54:01 +0800 Message-Id: <20201006075405.11658-1-ikjn@chromium.org> X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201006_035417_047105_D9C9CF22 X-CRM114-Status: GOOD ( 11.94 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1043 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.7 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Bayi Cheng , linux-mediatek@lists.infradead.org, Matthias Brugger , Chuanhong Guo , Ikjoon Jang , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patchset adds 36bit dma address and power management supports for mt8192-nor. Changes in v5: - Rebase from merge conflict Changes in v4: - Drop two patches from a list, addressed by an another series - Fix 0-day ci 'shift-count-overflow' warning Changes in v3: - Fix a bugfix of v2 in checking spi memory operation. - split read_dma function into two (normal/bounce) - Support 7bytes generic spi xfer Changes in v2: - Add power management support - Fix bugs in checking spi memory operation. - use dma_alloc_coherent for allocating bounce buffer - code cleanups Ikjoon Jang (4): dt-bindings: spi: add mt8192-nor compatible string spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer spi: spi-mtk-nor: support 36bit dma addressing spi: spi-mtk-nor: Add power management support .../bindings/spi/mediatek,spi-mtk-nor.yaml | 1 + drivers/spi/spi-mtk-nor.c | 211 ++++++++++++------ 2 files changed, 148 insertions(+), 64 deletions(-)