From patchwork Mon Mar 27 18:07:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piyush Malgujar X-Patchwork-Id: 7282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1709772vqo; Mon, 27 Mar 2023 11:30:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aAHISd5dZ0H84MoWUiAbSd/sYdR2ap/eM983VrBwxPumOXzUcky25cknQNz+eGWpkqoUCW X-Received: by 2002:a17:906:cf89:b0:87b:d3f3:dcf3 with SMTP id um9-20020a170906cf8900b0087bd3f3dcf3mr13689486ejb.35.1679941816494; Mon, 27 Mar 2023 11:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679941816; cv=none; d=google.com; s=arc-20160816; b=PxbKJt2SKLXs4w+GvJ/KjZHso4fD0Lp3NELFaUD1ugVJMcazKtCdImGJ1sjtdJQvSF W46zJC+MSbGWNnbUvRhmigJgCsZzyHBgl3mDn/xB72gQW33icMDuI94/2eSqXC2UKx8f VZvOiKGsBdct/Mh0KPowtLEn9LmcGU9OjtdxP7Sg+F5oz0apJ/1GPxh8NG2fJUS+bEnB /PJwyrJQiZSXXcJ8XiI/FRb2OLvkbNvvfWb3faq/8YX0OOWD71h1YMJW779c+T3BDeP1 gNkJWG+gfPVaCnj9/Gx4V8YsOi1soGvvWtJwYWc1Uuup7HQbkUEIVHETmvulXz3vXuLB AtKQ== 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=5/J+ExtaDQpQ8NP1wIMINsOViHcgzoeTRd//pn5Ikkg=; b=m9aAlzpSUTLh3muAJx/4YtZWcYK/KY+QUap24F0bBef4nzN4GRnRAnBJcL8OxNB8K/ gNZVGU8ygFLtG+Gmq46EVeRgMzqBOZUfewcLGyiKVnsm5qbkFfYq5l+g4XHpMOfRYk5C 7VGbLRPL+FQn9Aw7pD4VqvzyJmbdwLniT08tOd2E8Jy+c/E25W/moUgUOVF6GLafYG7Z iWMv0aHEKk9K1Jnm9nJPEFKakjj6zk53QRQMmzH+fXp63rfhoIq8AOGM33Od/vZdDnvS UW3yT0VxMP93nXbcN+0H/hqSr3IQz+IheJzcnme0nbuGeMuQAekFKt7HubemtWaXt914 w/jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=KRixRFaB; 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=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x25-20020aa7d399000000b004bde63cd3adsi13742518edq.115.2023.03.27.11.29.52; Mon, 27 Mar 2023 11:30:16 -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=@marvell.com header.s=pfpt0220 header.b=KRixRFaB; 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=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbjC0SIT (ORCPT + 99 others); Mon, 27 Mar 2023 14:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231737AbjC0SIO (ORCPT ); Mon, 27 Mar 2023 14:08:14 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B058D2D69; Mon, 27 Mar 2023 11:08:02 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32RB12WI019001; Mon, 27 Mar 2023 11:08:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=5/J+ExtaDQpQ8NP1wIMINsOViHcgzoeTRd//pn5Ikkg=; b=KRixRFaBvdqmjDQzFpJ+38AyqCOUJGwYEgqWzhzCumpNJfIjAv5F+XHW9ut0fC7b2kBi SMn7dzjex8rnJY+3T6mI9rIIbDDltMoogqVcnxOjXNFFB5XOaMM5I2vonG32OtlVWlr0 c++RFdnKj60ULbNT+gAREHPXQLdVdVrM5bksyd9NGSicJror/JTBiWQPIhir4w47MREH 7cLKnX9JaMGJYa11BE3nHEbT5UDCk+s7B+QwsJgrB7xJlQ3GOa93kH3QOffnac3r/hho zObxNtU125d+LYiqb1G5FpvRrslvGh82DCUAsk7T/r11liqVvGLiDfv7yqylmZFAuZlr dA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3phxas85t8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 11:08:00 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 27 Mar 2023 11:07:58 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 27 Mar 2023 11:07:58 -0700 Received: from localhost.localdomain (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id C14793F7088; Mon, 27 Mar 2023 11:07:58 -0700 (PDT) From: Piyush Malgujar To: , , CC: , , Piyush Malgujar Subject: [PATCH 0/2] spi: octeontx2: Add spi driver for OcteonTX2 SOC Date: Mon, 27 Mar 2023 11:07:51 -0700 Message-ID: <20230327180753.2279-1-pmalgujar@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-GUID: 7UMLWC3my9ApyPfHIM3LvA0wrjrEOxPM X-Proofpoint-ORIG-GUID: 7UMLWC3my9ApyPfHIM3LvA0wrjrEOxPM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-27_02,2023-02-09_01 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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?1761546670271261657?= X-GMAIL-MSGID: =?utf-8?q?1761546670271261657?= Add driver for spi controller on Marvell OcteonTX2 SOC. This driver supports 1KB data buffer and 4-bit bus width. It also supports ACPI and reads tx(rx)-bus-width which is used to set the SPI mode - DUAL, QUAD, OCTAL. Piyush Malgujar (1): spi: octeontx2: Add ACPI support Suneel Garapati (1): spi: octeontx2: Add support for octeontx2 spi controller drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/spi-octeontx2.c | 467 ++++++++++++++++++++++++++++++++++++ drivers/spi/spi-octeontx2.h | 152 ++++++++++++ 4 files changed, 628 insertions(+) create mode 100644 drivers/spi/spi-octeontx2.c create mode 100644 drivers/spi/spi-octeontx2.h