Message ID | 20230317082950.12738-1-zhuyinbo@loongson.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp218618wrt; Fri, 17 Mar 2023 01:39:55 -0700 (PDT) X-Google-Smtp-Source: AK7set/3wirqIR1+gFoPPlLxJBz+aasQqKpi6Q1EHk9LpsDL7wtio21nB1C62z3jiYWPN3QW2O3g X-Received: by 2002:a17:903:41c5:b0:19a:a815:2877 with SMTP id u5-20020a17090341c500b0019aa8152877mr6047003ple.6.1679042395416; Fri, 17 Mar 2023 01:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679042395; cv=none; d=google.com; s=arc-20160816; b=XR1adPSYle0Y4+FPW7iHI442xNb3Mi8Zu2xp8LUTuhoenlnycOsgedeFOKh6enHniT r3/RLjkeaMEgZl83cw0xrJImYmI4GWXHIKackqENhiydcFV8V+RVD2cARPkQ4uc3EsF8 gak22Et1ia0rgXHGnpxnUFypOaISPITm15wD4s/4JuSn5qwRaEVfbXDMTQX5/BDP4Pp2 QBev+/wL2mfw5qxSgMWA5ZnYP72y3SY5Dv2Q8DJMO410teO62fma82UjAqDoz7WIheus jUhfOeD3U5YaBTXNFb6oPkOFpLbCDtn66QZ/+nzO3Z/96A7kja8SMEgUJVFYXKS31Anf heGw== 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; bh=65dXpYK0a0FyxcYc9epVjZKFxgZTGOIuNLGrxdUX0Yg=; b=YyiqMYsuHpfGrEe5QVGE5r+LkGLt634PgGpaMNcVOpLsranRxK10u2+8kb/b85eZ5M ZioVuChtAuxMci8RHbgoBli9j9PLcXkq4iNHkL8yoX6rRWoIiRH3YjKm7FcBMOg8B6L7 BuuOe//8yrP3mRa7HKSegRHchy316hnEpRx3EZBWF8M1Np4llQ5VdXbHx67rYotcW5n4 ehxSc8HfhBT2JzFlz0C8RZZMbKIjQsRf3FzU6gLoUbb8OrquwllsYpf3LmIlFUQs5Kgn aSdv45lHcGeh8st6aFtPNd7YT7sl+GEoPbWDTa5N8YTHG2bBldTCEYPqkyUrcxDdoEff HEtQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170902e54400b0019b0c650267si1936007plf.510.2023.03.17.01.39.43; Fri, 17 Mar 2023 01:39:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230283AbjCQIfT (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 17 Mar 2023 04:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjCQIei (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Mar 2023 04:34:38 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38B1A1A954; Fri, 17 Mar 2023 01:33:28 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8DxJYwFJRRkx0sNAA--.19123S3; Fri, 17 Mar 2023 16:29:57 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxT+T_JBRkaXIDAA--.15924S2; Fri, 17 Mar 2023 16:29:55 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv <lvjianmin@loongson.cn>, wanghongliang@loongson.cn, Liu Peibao <liupeibao@loongson.cn>, loongson-kernel@lists.loongnix.cn, Yinbo Zhu <zhuyinbo@loongson.cn> Subject: [PATCH v2 0/2] spi: loongson: add bus driver for the loongson spi Date: Fri, 17 Mar 2023 16:29:48 +0800 Message-Id: <20230317082950.12738-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxT+T_JBRkaXIDAA--.15924S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWrZFy5KF43GrW8Kw1xGw1ftFb_yoW8JF13pF ZxCa9xCF4UJF4xArs3JrW8Wryfu3yrXr9rJF43t39xZFyDZ34UXF1vqF10yr47AF4avFnF vFyv9Fs3G3WUZrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b78Fc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUGVWUXwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487 Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2 IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0 Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV WUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_Gr UvcSsGvfC2KfnxnUUI43ZEXa7IU1VWlDUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760603558579508516?= X-GMAIL-MSGID: =?utf-8?q?1760603558579508516?= |
Series |
spi: loongson: add bus driver for the loongson spi
|
|
Message
Yinbo Zhu
March 17, 2023, 8:29 a.m. UTC
Loongson platform support spi hardware controller and this series patch was to add spi driver and binding support. Change in v2: 1. This [PATCH v2 1/2] dt-bindings patch need depend on clk patch: https:// lore.kernel.org/all/20230307115022.12846-1-zhuyinbo@loongson.cn/ 2. Remove the clock-names in spi yaml file. 3. Add "loongson,ls7a-spi" compatible in spi yaml file. 4. Add an || COMPILE_TEST and drop && PCI then add some CONFIG_PCI macro to limit some pci code. 5. Make the spi driver top code comment block that use C++ style. 6. Drop spi->max_speed_hz. 7. Add a spin_lock for loongson_spi_setup. 8. Add a timeout and cpu_relax() in loongson_spi_write_read_8bit. 9. Add spi_transfer_one and drop transfer and rework entire spi driver that include some necessary changes. 10. Use module_init replace subsys_initcall. 11. About PM interface that I don't find any issue so I don't add any changes. Yinbo Zhu (2): dt-bindings: spi: add loongson spi spi: loongson: add bus driver for the loongson spi controller .../bindings/spi/loongson,ls-spi.yaml | 44 ++ MAINTAINERS | 7 + drivers/spi/Kconfig | 10 + drivers/spi/Makefile | 1 + drivers/spi/spi-loongson.c | 459 ++++++++++++++++++ 5 files changed, 521 insertions(+)