Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1261224ybv; Thu, 6 Feb 2020 00:40:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzsmxjmjrKzq9E0Vf/kWtSGmn6+lZRLOaaRmfKT1tjDHvs50R8qAALGNJy4qrVOLwv0mmiF X-Received: by 2002:a05:6830:1689:: with SMTP id k9mr30242285otr.311.1580978413643; Thu, 06 Feb 2020 00:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580978413; cv=none; d=google.com; s=arc-20160816; b=C3/tA6xv3RxF6/1JZ5I2ScPYz19a7thN39JFzrsHFAUxwDRETh0oVsjrtbfRQ6mQ9c WXM3NUL0zV/yfsxfjcRXa+1yeMlG8eDcOA5M8OzTwUV9PZ/52m7M9catSumrvWuQKvva k7lcMc2GQRw5DSA+U1n7XuFTp+tgooPecH7biEQ5w+pG0M1iiPShVHSfDUP/Oo3SVqSi vmyfWNOptAMtRwBAJ5LfUOuwJJQSWy23TcMBoytCF3ydjJq5hXefuKH0aIMEw5K3d+I+ QlzDL9lLKSaX6tiJsa5j13lZFcOJY2+Sfcb5WFhRfJKJUjBIdd7Vh7DQNLutys5rEnI5 x1Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HwGyHmGXfASIaRJuQY6L3gHfMqGpjQ8XwHA8GdO3X0M=; b=zBN2lYoiSG6FFrTeEFPgHcb/IhIERwBcet6QfjFy1xl7REYoNAq4e4xYSnWx+NGfj+ 3qTyxDObZ2g/MIo//zxXrH+b8CEiFE9Rj4ahfga8We2caKxtZAktqN0iF7jumk71T16Y NuQ8+LXElDwuIFG3tnjhHEQmuCg3Xy4tzxnzmnMlHezrsmRYWTcXDesrg3o17VqxWK8O xdwQY0r0bsHkNr/DgzflnNIL+/oqDTgzuDJhZXqvudPJN6kpeci2v+SBnKwkUcKWPZgW 8naMy01ZJwd6CCsA/Dr0TtbFEfgm+Y+/iUBH82/JMSq1g4HfQxv0jubdiESZGiPYOH23 7EHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KtIIxuuR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si1645078oih.141.2020.02.06.00.40.01; Thu, 06 Feb 2020 00:40:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KtIIxuuR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727966AbgBFIjB (ORCPT + 99 others); Thu, 6 Feb 2020 03:39:01 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:35889 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgBFIjB (ORCPT ); Thu, 6 Feb 2020 03:39:01 -0500 Received: by mail-pj1-f66.google.com with SMTP id gv17so2225081pjb.1; Thu, 06 Feb 2020 00:39:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HwGyHmGXfASIaRJuQY6L3gHfMqGpjQ8XwHA8GdO3X0M=; b=KtIIxuuRoKtbZHisofd3Pl2bTYEcpTmy1wF14kxJuSeuZN40PbwtM3axETID8KGIDE 0HUpsXxKTecPjTUEaeJ2Icf6auWOjJGHPGDb0/f+nFXwYFXyxaVhaDkgr1q+C8HIla2g t74BrZCV/B6Mrnki4QYhMWNPGYvXYU7RYu2jN+Ay8Hc3c7emrZIdEeEocZJdJKdKw/yI pV7AKDIqlHXEkmdKlb2kyx3ch2IQYDx70Adw11rv4hGDo41SOjOC766Cc5cRXiH93yJk J+4RHtGgxuT8ADKebKgfDxzKM69VfuUzxCtMUFvnxz69+3AuGHnC/R7iG6Y9i0ARM/BK jeOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HwGyHmGXfASIaRJuQY6L3gHfMqGpjQ8XwHA8GdO3X0M=; b=jNz+tkRLasQF6ajYRkS4w3KI/CFuNGflG0M9Vx2/GhbtQrp5UgBu0ToSK2UwKm6axq d5eR09olG+zbhl3mIBIgDen1Th7Jr/5d+ByrBPaTU70x18YxQxOpUNOPwGtTP8aDlvdT goOxg26JNRWic8v3fF9Ut6S52rs3pN4V+P+NGKBSunaf1FL8z8D6CcyAcg4LhDEBetAw TY8PNXX7LTlIiwiDANv7XLbW9KXGZTY233fHHBuoKRUo6yX4TbGTmfDhOZYjs3GvwHGF fSdUeeGmb1U4uMflXZcfHQPgeDD1uO6Pf+R06a/SGIc7wZNTrviSWs8TC6qZv7UBskLC Rd4Q== X-Gm-Message-State: APjAAAUbYKccZE0t+By4RbemGMuzhWk9yIUWkwltOyG47GrU1N2JJv78 hr8ZWujISe1GmgUGHvw5QclciUhOhiBNpg== X-Received: by 2002:a17:90b:30c9:: with SMTP id hi9mr2833551pjb.81.1580978339267; Thu, 06 Feb 2020 00:38:59 -0800 (PST) Received: from localhost.localdomain ([240e:379:947:2855::fa3]) by smtp.gmail.com with ESMTPSA id y9sm2387631pjj.17.2020.02.06.00.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 00:38:58 -0800 (PST) From: Chuanhong Guo To: linux-spi@vger.kernel.org Cc: Mark Brown , linux-kernel@vger.kernel.org, Chuanhong Guo Subject: [PATCH 0/2] spi: add driver for ar934x spi controller Date: Thu, 6 Feb 2020 16:38:20 +0800 Message-Id: <20200206083822.204534-1-gch981213@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This controller is a superset of the already supported qca,ar7100-spi. Besides the bit-bang mode in spi-ath79.c, this new controller added a new "shift register" mode, allowing faster spi operations. This mode doesn't need all the bit-bang code in spi-ath79.c and needs a different clock setup, so I decided to write a new driver for it instead of extending current spi-ath79 driver. Chuanhong Guo (2): spi: add driver for ar934x spi controller dt-binding: spi: add bindings for spi-ar934x .../bindings/spi/qca,ar934x-spi.yaml | 40 +++ drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-ar934x.c | 230 ++++++++++++++++++ 4 files changed, 278 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/qca,ar934x-spi.yaml create mode 100644 drivers/spi/spi-ar934x.c -- 2.24.1