From patchwork Tue Feb 27 12:56:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 129777 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1359875lja; Tue, 27 Feb 2018 04:56:35 -0800 (PST) X-Google-Smtp-Source: AH8x224RW52UF758b2VHxSUw4wpuKQRm1wIG6Y25KifZTOPaiUaWOA7ll8mnn4GacbbYLwj/Z1jh X-Received: by 10.101.92.72 with SMTP id v8mr11156296pgr.153.1519736195083; Tue, 27 Feb 2018 04:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519736195; cv=none; d=google.com; s=arc-20160816; b=T7DkqWRjLiHxczDU14MoMNN63WXXazLC/6T0L+6u6JprhHgK96Vghn3oNzY4+T5DGZ W4iGVf0BlN7BDBc1648JT8H7qSWUvj/VvTDBCvjUd+ZV5mXUhbrMZP2eHLdtFC10YgKA 3tKM9a2Qvl/xxY9ka67jqDljkm1TO8iynZQs1bpuOXs+wqbmjJgPJhrYObg9S/voqX8l YC05IRs6i3NnROwH8Up9KpAzRL5XGAykfssrP4D970arQ8dnkE3NZ9lh6VI0XhvXo41g CmaY6aCV+K2+qNkS/uiVF65oZ6rujdx2xiJZIywjFMDkW+dzEQQrjkLigkUHxpETNjs6 jicw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4TQ5woDKw2TUOAKBOlBwYByGDD2Nx2rNbf8Y/6jqkvI=; b=v2xa4m/esO5KX54bY8tGoCtAHFewxhrMzmLDxpjKC48HxlRJK4hHT+As0HJbL1C8OI brRn3ZP7uRl867QlB4Dhsn5S/vYueKbVqH6AkCHTVlfs9t95/KBExIpbwl+AxCiC0PFw 6qmsBPipPX06Abg1pVEWa50oDP993OU9RR2HT2jQy2mCDD8hrR+rTVQ+Kj3BzboVnek6 tfqcIdzUbu6OAE/iasewkhKcTti1cQ6SgKl0ofvrR//KwY51EjQMy2oIeGeHRzZTc+eO hsTqRMgOSpLrRncrsnw8u7ZQvVbMNzPURO+e69HzpB8ZqzQRCuAc+0UfNrVqsmzuyB1o nd6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=NsWu5z9Q; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (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 33-v6si8562534plo.650.2018.02.27.04.56.34; Tue, 27 Feb 2018 04:56:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=NsWu5z9Q; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbeB0M4e (ORCPT + 1 other); Tue, 27 Feb 2018 07:56:34 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37169 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbeB0M4d (ORCPT ); Tue, 27 Feb 2018 07:56:33 -0500 Received: by mail-pg0-f67.google.com with SMTP id y26so7470380pgv.4; Tue, 27 Feb 2018 04:56:33 -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; bh=E27V7pk6JYEBAc5uufRwGkMsGsC3POqLU0rBa7w+lAU=; b=NsWu5z9Qejpd9INzgbbT+6qbZdgAtGA9tCsK2tOoHRLqsk5sREe1LXyNX0lJS9b6EY fdMQPboI/2bJJdW19htirRrkwNL0O+dBOrylUd8p/1SlzV6Ijt3B0s/DXBahiEpQqigy 6qHtAZ8JtN+IS4ie0C5cafL0bo9cMhAcLeqQltlbWiQdun6UudIhOCMGK2AFJtuJCaWb /nUTAYvN7GItNSgG/VMZRQ29obzGBdwboe3lsIMdLNKY7nPMJnU5vHt6RyiYd7RQlv06 12Wn5CzmuN+teHdrbT+I0vevcxWmbaMzDeqA7CgKdCXh/iIXUyI9to2KyGCfO8oIC5xg sJlg== 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; bh=E27V7pk6JYEBAc5uufRwGkMsGsC3POqLU0rBa7w+lAU=; b=KvH7sv6VsITUwmpaXTV8Von3LZlA3GJmOBuV3rPgoPMcz46oaYbpeRwhxZrB2o1DSf eDIrjfNkjy+xggKfaQfLNU4nlfX3kcczmmOY8HODO4qkLnv+jGQydrH6OEcWSGo1wuEe 2s0Sxvh0M83d5XbikHBLNAWtF7pqKCwepWpoweu03sU4kAEvi6S0BBwOhhUX5Mm03Pu0 24PgeWhLg/6gKvmBXVTN+1DdLOXfk8l7p8pDqc468MIVZx+qppX1GM10E10ewSxtTeX8 zcZR544RxTP/SBkbGSMRwS9vR8QSi66DH1d0+CWpZsH03dxqEk2BF0G+DbCcvc7y8IiG pWOA== X-Gm-Message-State: APf1xPCZwpVPItDCsDVEX04bLFipDbGc7oIdIJzFUCq3XEdpUhUpHjtL 0nAIcyw+75c23PbG6FJLAWTLv+QM X-Received: by 10.98.32.200 with SMTP id m69mr14018770pfj.82.1519736192345; Tue, 27 Feb 2018 04:56:32 -0800 (PST) Received: from localhost.localdomain ([27.255.219.124]) by smtp.gmail.com with ESMTPSA id g186sm23234585pfb.168.2018.02.27.04.56.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 04:56:31 -0800 (PST) From: jassisinghbrar@gmail.com To: linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: tpiepho@impinj.com, broonie@kernel.org, ard.biesheuvel@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, masami.hiramatsu@linaro.org, Jassi Brar Subject: [PATCHv4 0/3] spi: support for Socionext Synquacer platform Date: Tue, 27 Feb 2018 18:26:22 +0530 Message-Id: <1519736182-3650-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org From: Jassi Brar Hello, Support for Socionext's FIP controller intended for flash device interfacing. The controller can operate in 'direct' or 'command' mode. One mode directly talks and provide a read/write i/f to the flash device. Other works as plain SPI mode. This driver runs the controller as a SPI controller. Changes since v3: # Convert IS_ERR returned from devm_clk_get(iPCLK) to NULL, that way we can call clk_xxx(IPCLK) without first checking for it being valid. Changes since v2: # Made iHCLK clock property required in DT, and iPCLK an optional extra. # Hardcode max number of slaves to 4, as specified in the manual. Changes since v1: # Changed licence header to C++ style comment. # Removed redundant lock and transfer_mode backup member. # Fixed divisor to allow upto 254. Jassi Brar (3): dt-bindings: spi: Add DT bindings for Synquacer spi: Add spi driver for Socionext Synquacer platform MAINTAINERS: Add entry for Synquacer SPI driver .../devicetree/bindings/spi/spi-synquacer.txt | 23 + MAINTAINERS | 7 + drivers/spi/Kconfig | 11 + drivers/spi/Makefile | 1 + drivers/spi/spi-synquacer.c | 663 +++++++++++++++++++++ 5 files changed, 705 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-synquacer.txt create mode 100644 drivers/spi/spi-synquacer.c -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html