From patchwork Wed Mar 22 15:04:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kurbanov X-Patchwork-Id: 7043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2408776wrt; Wed, 22 Mar 2023 08:39:20 -0700 (PDT) X-Google-Smtp-Source: AK7set/zVgXUyi5GlW0tABndmJw1sp9m4GGANUwaHA+A9Gat1PHJ/+Yt7EE6pJzrDv3C3l67q45g X-Received: by 2002:a17:90b:3903:b0:23b:4f2a:8016 with SMTP id ob3-20020a17090b390300b0023b4f2a8016mr4543316pjb.3.1679499560037; Wed, 22 Mar 2023 08:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679499560; cv=none; d=google.com; s=arc-20160816; b=oDbbqd4badBdZx3QCZIAMQMstKW+YWeyFukuY5DpJYqgTNev6EbpNRmWlXMqZf+LOj BqORHPj7cy6RtY9ZPwtdbUG4YkMXbrw8yLXKJTss5tV8Xhab+9OeovnbKyyduQXwRLGB h/j/bJbLELBKWR02YjaQD2bFBUcUIzR6GWOovMlpVvhqJ1PiH6xEMoidZXzE2gjFDa4X ME9UW0bR7gHVqIHXo/rC6sw20LRz+UCnq0AXSuTF0DouC0fPlrw/TcGIW+YI7NjL7ADM t/5N3G0EZd7Z3AExvEjEA94xZ7MjEX99rrwfBYB2v6ybeGJHwJi5h9hjgnieLJf3x3SG +4JA== 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=eTQd2Y4ovzRd2JsVVJJ6xL7i63yb2NKMkofOC1iY5UQ=; b=vOi7IjjIwnkDdO3qlxV+op2SVCMXq9qVaxiVdabByWRtu144OLW87ma+QHyL+QxNrc 6GpiBPINZBx2W2YaqghBmRHCGnwm7piX7bcQ0kZZihD0qb7uwgdKbPhCIi7fqKtlcRlW Kj9PSZSgRsG5oOa/KeeY/KkMNmfuXzvCux/plrw3KP96UpR34H7ZZbv1G3q74zlovnOn 4qUAdkIbGmFVsb7hLuJD0YxpwLCOwLeI+CdyvWy+zJp22AvBH5K8J0N3xn7BxFRo+SkS 2yEBllLNaX/m5Jwo8pn0NT758RZA9o+qmaqqnkriGS/LdCTseBLejORwK+dNPLO4kbFQ t5Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=kjuu67TL; 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=sberdevices.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gi22-20020a17090b111600b00237b958814fsi15417195pjb.74.2023.03.22.08.39.07; Wed, 22 Mar 2023 08:39:20 -0700 (PDT) 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=@sberdevices.ru header.s=mail header.b=kjuu67TL; 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=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbjCVPGK (ORCPT + 99 others); Wed, 22 Mar 2023 11:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjCVPGG (ORCPT ); Wed, 22 Mar 2023 11:06:06 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95F3037725; Wed, 22 Mar 2023 08:06:04 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id E565F5FD41; Wed, 22 Mar 2023 18:06:02 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1679497562; bh=eTQd2Y4ovzRd2JsVVJJ6xL7i63yb2NKMkofOC1iY5UQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kjuu67TLLhokyUl0zqlRRkAEQm8sl9wwsLAdlKeQfw2SUtfkK5YalzTxGlkP1Vrqd tbKANfCR4jqjPhDMBSU5WQr2hmB+GpS1eNEbxPiBMERXY8rIyuDeh3K7EGjY9yhDDj X9+YgeH3XRmdMEGIn+KN0I3X3rk5fN+8iq90A8w9/KFoosiXcBATOqv3mjBXCQr3ZO /fj10e1wszNPQunskDzM8efw61e5A+PBuYqHKay78c03MnF4+BMN7o0ePYE4oyujmT Z++NYCFZb7qmZeolobG42evY1MEMS5aMlayUoI4aaPnK8DLBESHmoc7NO8yqFBoxn6 vmlOKhOYz0e6A== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 22 Mar 2023 18:06:02 +0300 (MSK) From: Martin Kurbanov To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl CC: , , , , , , Martin Kurbanov Subject: [PATCH v1 0/2] add support for Meson A1 SPI Flash Controller Date: Wed, 22 Mar 2023 18:04:56 +0300 Message-ID: <20230322150458.783901-1-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH02.sberdevices.ru (172.16.1.5) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/03/22 10:34:00 #20990985 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761082930645217802?= X-GMAIL-MSGID: =?utf-8?q?1761082930645217802?= This patchset introduces DT bindings and driver for the Amlogic Meson A1 SPI flash controller (A113L family). The existing spi-meson-spifc driver is incompatible with the A1 SPIFC at all. The implementation has been tested on the Amlogic A113L SoC based device connected with ESMT F50L1G41LB spinand flash. This patchset has dependencies on the A1 clock series which is still under review [1]. Links: [1] https://lore.kernel.org/all/20230321193014.26349-1-ddrokosov@sberdevices.ru/ Martin Kurbanov (2): dt-bindings: spi: add binding for meson-spifc-a1 spi: add support for Meson A1 SPI Flash Controller .../bindings/spi/amlogic,meson-a1-spifc.yaml | 42 ++ drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-meson-spifc-a1.c | 444 ++++++++++++++++++ 4 files changed, 494 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/amlogic,meson-a1-spifc.yaml create mode 100644 drivers/spi/spi-meson-spifc-a1.c --- 2.40.0