From patchwork Mon Apr 3 18:32:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kurbanov X-Patchwork-Id: 7653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2509729vqo; Mon, 3 Apr 2023 11:46:46 -0700 (PDT) X-Google-Smtp-Source: AKy350YIF2txYMCRmiGSmQ0KEu2cQIMrg75j0O0zRE2oQTwqJXQQbp8+NGcNqLkDgpNfYvUgHrm9 X-Received: by 2002:a17:906:ece3:b0:947:71cf:7c97 with SMTP id qt3-20020a170906ece300b0094771cf7c97mr25315ejb.36.1680547606221; Mon, 03 Apr 2023 11:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680547606; cv=none; d=google.com; s=arc-20160816; b=ZYrkPf/mVMjSsl8aClqxnZ0k7LxhBaFWH3fSqv/oZQu92PlbKCTa1cRu2DW8Quk/fK PoE8PpZTWlbRM7T8dmX0m9P3jb658HDde5T4tqsSCZ34o86uKP2mEYTH2r9Tz5rSlW/d wFCC19vCFIcpP0/KNPQ9/+2e0tDAw8UVVAUtOjjL/edSlZJymlTU3LJnCliEL2xqMvvK AzYvu/fBVIVuY4SkHYIKQSJ6F0TjRcqYbfeaVLHF5zRpB/yapmCH5vY2VD+nPEE1BSas gjjm5dJ5kPGcFhnq271JWNQZSjFaXkmyolLaOniBBTeYGJbG9y16xRJuwl+JojaeQQQ9 OQWg== 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=skrvDahl5pDvwUwgatlspWiBA9wa5+vS0uE3UumKX9A=; b=eDzELRb4IioQVf3T+WhmrtCTkaieWv15w75T97MuvPEMrz2c4IF834dWjpXl53EOgm SUIMtt5ALgrx2P1bjkDJTDZt0lmOZXYWaUOUHcvv3ArtD05PZspXRsYMhBIx1z1N9KyY fIfw+8MO3UpfWY+nxXYDbvLE4ImrkOpoHygt4GvCfKWxKjIdCdP1Wafh6x42yXnTcWit dGnbvmU8OV4SUlaNagpc+dAN3Wz4QGeOOKW7oYnD4ETsK7Kh09epaQdmEDsKfR8j/eAk PSbD5E5eaDDBLnALsgPKRtE1a6V8XT5R7AYZIl6NH4U1T+l7Hyo0hr0+XZn2TrwtoJLe cAqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=cqI6aPrN; 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 d21-20020a1709067f1500b0093346a7bf34si1071757ejr.406.2023.04.03.11.46.22; Mon, 03 Apr 2023 11:46:46 -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=cqI6aPrN; 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 S233182AbjDCScq (ORCPT + 99 others); Mon, 3 Apr 2023 14:32:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbjDCScg (ORCPT ); Mon, 3 Apr 2023 14:32:36 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD2F2D4C; Mon, 3 Apr 2023 11:32:33 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 9EFA35FD33; Mon, 3 Apr 2023 21:32:31 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1680546751; bh=skrvDahl5pDvwUwgatlspWiBA9wa5+vS0uE3UumKX9A=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cqI6aPrNn5mtnhaVCbAtirVNzjeBzR1SEKqrbWHxEFvqNdiy5uS2bl+mGyCMo1kpC qbic7dxZuXwZvNtjHjr7xmZAUB1qWUesntKZoLItRDdwnsx8qyGc6JQnEzxrRXX8ye VJsYZWa6yQSM/eg+SuIgdfOESl0RFqLAJhcVVlfS3czuZp/rK51VZOwy9oi8fMOuvW AnjaCxGZECwoCgwAkevP0F+K6F+Cc+ZoEOi5pdxOpMyUwF1ckHsop5lafBMhOPPCkQ kng+5hNd3d/IJ7GR/VDPXokSM4AlD75/wqXsaZJb9QGfDMYOfKiPLBkHsxLXaUpNej OUCtHv7kdPsag== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Mon, 3 Apr 2023 21:32:30 +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 v3 0/2] add support for Amlogic A1 SPI Flash Controller Date: Mon, 3 Apr 2023 21:32:15 +0300 Message-ID: <20230403183217.13280-1-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) 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/04/03 14:17:00 #21028104 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 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?1762181886609437681?= X-GMAIL-MSGID: =?utf-8?q?1762181886609437681?= This patchset introduces DT bindings and driver for the Amlogic A1 SPI flash controller (A113L SoC). 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]. Changelog: v3 since v2 at [2]: - Drop the 'meson' name as Neil suggested - Make cosmetic changes v2 since v1 at [3]: - Make cosmetic changes Links: [1] https://lore.kernel.org/all/20230321193014.26349-1-ddrokosov@sberdevices.ru/ [2] https://lore.kernel.org/all/20230327211351.686831-1-mmkurbanov@sberdevices.ru/ [2] https://lore.kernel.org/all/20230322150458.783901-1-mmkurbanov@sberdevices.ru/ Martin Kurbanov (2): dt-bindings: spi: add Amlogic A1 SPI controller spi: add support for Amlogic A1 SPI Flash Controller .../bindings/spi/amlogic,a1-spifc.yaml | 41 ++ drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-amlogic-spifc-a1.c | 456 ++++++++++++++++++ 4 files changed, 505 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/amlogic,a1-spifc.yaml create mode 100644 drivers/spi/spi-amlogic-spifc-a1.c --- 2.37.2