From patchwork Mon Mar 21 01:39:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leilk Liu X-Patchwork-Id: 12786753 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 3AA9CC433F5 for ; Mon, 21 Mar 2022 01:44:21 +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-Transfer-Encoding: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-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ODaJeMmzkG01mZdohLijsRyzheuRfJe43vUR/V9KpEE=; b=hg0egCLYmdRDFM 3lYk70XcPh7SDIxlgSIj6kLBzibELkJ66+MLFxv0tcVCLHd5RUcxi+6YX5ZtgIgBgPt4eLxlqzDNb sNRidfyINgkSDhYXLgcvqEsBA3r1/LsIV57RP0AfhhI0kT9oC4RnzoYrAJxTR2cXnU8AXMYs24flC wk8zUlQu7dwwKNhOJq4AKcmOVjPfJ2IJMi26RurtgdTq3avEe8Vcd7ZguGCnoW1d7/FezwtAm8bXl RPrrSIds1q7TCzAzATObKC8FXN4G4UfjzT1T/yBdjY2ffiG7OMbfDmjPgo6krAVX8JhOZlMzpVRf8 6JA3yfEXSVKIAkAAoCBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nW74k-006GeP-MG; Mon, 21 Mar 2022 01:43:14 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nW74h-006GdX-5v; Mon, 21 Mar 2022 01:43:12 +0000 X-UUID: c54a82f8de014d89a18c856886e286b2-20220320 X-UUID: c54a82f8de014d89a18c856886e286b2-20220320 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 261561751; Sun, 20 Mar 2022 18:43:05 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 20 Mar 2022 18:39:25 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Mon, 21 Mar 2022 09:39:24 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 21 Mar 2022 09:39:24 +0800 From: Leilk Liu To: Mark Brown CC: Rob Herring , Matthias Brugger , , , , , Subject: [PATCH V6 0/3] spi: mediatek: add single/quad mode support Date: Mon, 21 Mar 2022 09:39:19 +0800 Message-ID: <20220321013922.24067-1-leilk.liu@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220320_184311_254749_3BABDA4F X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. 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 series of patches are based on spi for-next, and provide 3 patches to support MT7986. V6: 1. remove SPI_CFG3_IPM_PIN_MODE_OFFSET. 2. add Reviewed-by: AngeloGioacchino Del Regno V5: 1. remove 3 patches that already applied. 2. use devm_clk_get_optional. 3. remove of_mtk_spi_parse_dt() v4: 1. fix Rob comment in v3; 2. use "mediatek,mt7986-spi-ipm","mediatek,spi-ipm" v3: 1. add Rob Acked-by in "dt-bindings: spi: Add compatible for MT7986 with single mode"; 2. add a fix patch "spi: mediatek: support tick_delay without enhance_timing"; 3. fix Angelogioacchino comments; 4. use mt7986 instead of ipm in dt-binding. v2: 1. rebase this series on spi for-next. 2. fix Rob and Krzysztof comments in v1. Leilk Liu (3): spi: mediatek: add spi memory support for ipm design dt-bindings: spi: support hclk spi: mediatek: support hclk .../bindings/spi/mediatek,spi-mt65xx.yaml | 4 + drivers/spi/spi-mt65xx.c | 386 +++++++++++++++++- 2 files changed, 373 insertions(+), 17 deletions(-) --- 2.25.1