From patchwork Tue May 5 13:06:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wan Ahmad Zainie X-Patchwork-Id: 11528999 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 359B1912 for ; Tue, 5 May 2020 13:07:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EC7E2078C for ; Tue, 5 May 2020 13:07:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbgEENH1 (ORCPT ); Tue, 5 May 2020 09:07:27 -0400 Received: from mga02.intel.com ([134.134.136.20]:12710 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbgEENH1 (ORCPT ); Tue, 5 May 2020 09:07:27 -0400 IronPort-SDR: T7pEg2wD4zRVMn6cfBNSvjhmml6tTNiEmd7T1hYZKyw2a891+ih8hgRIz/RwMZktX6XBQs+Z+q IC+wcvIbF40Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 06:07:26 -0700 IronPort-SDR: +rPDXpGUI38tUzBpWnYAvMP6ljMhEHus6kHMEcBIKAONu7I9akXF2/OAZfiDIfqcP+SHF8B4zW 8XCLipjgfNzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,355,1583222400"; d="scan'208";a="277868825" Received: from wwanmoha-ilbpg2.png.intel.com ([10.88.227.42]) by orsmga002.jf.intel.com with ESMTP; 05 May 2020 06:07:25 -0700 From: Wan Ahmad Zainie To: broonie@kernel.org, robh+dt@kernel.org Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@linux.intel.com, wan.ahmad.zainie.wan.mohamad@intel.com Subject: [PATCH v5 0/7] spi: dw: Add support for Intel Keem Bay SPI Date: Tue, 5 May 2020 21:06:11 +0800 Message-Id: <20200505130618.554-1-wan.ahmad.zainie.wan.mohamad@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This patchset adds support for DesignWare DWC_ssi. This soft IP is an AMBA version 2.0-compliant AHB slave device. Existing driver already supports the older APB version. Intel Keem Bay SPI controller is using this IP. This patchset is tested on Keem Bay evaluation module board. Changes since v4: - Rebased to latest linux-next, since v4 does not apply cleanly. Changes since v3: - DT changes for feature addition is done on snps,dw-apb-ssi.txt. - And then convert the updated snps,dw-apb-ssi.txt to DT schema format. Changes since v2: - Rebased to v5.7-rc4. - Change the order of the patches i.e. dt-bindings patches go last. Changes since v1: - Rework the third patch based on Rob's feedback. Wan Ahmad Zainie (7): spi: dw: Fix typo in few registers name spi: dw: Add update_cr0() callback to update CTRLR0 spi: dw: Add support for DesignWare DWC_ssi dt-bindings: spi: dw-apb-ssi: Add compatible string for DesignWare DWC_ssi spi: dw: Add support for Intel Keem Bay SPI dt-bindings: spi: dw-apb-ssi: Add Intel Keem Bay support dt-bindings: spi: dw-apb-ssi: Convert bindings to json-schema .../bindings/spi/snps,dw-apb-ssi.txt | 41 ---------- .../bindings/spi/snps,dw-apb-ssi.yaml | 72 +++++++++++++++++ drivers/spi/spi-dw-mid.c | 4 + drivers/spi/spi-dw-mmio.c | 57 ++++++++++++- drivers/spi/spi-dw.c | 80 +++++++++++++++---- drivers/spi/spi-dw.h | 25 +++++- 6 files changed, 214 insertions(+), 65 deletions(-) delete mode 100644 Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt create mode 100644 Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml