From patchwork Mon Jan 1 13:37:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 123061 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7868881qgn; Mon, 1 Jan 2018 05:38:09 -0800 (PST) X-Google-Smtp-Source: ACJfBouHhsF+pgKqkMt0pVlNOsCIsEzRW+nCudG6mSTQ3xrzpSa/T9Fb0unsC459SaYtUkF9ZgJZ X-Received: by 10.98.194.150 with SMTP id w22mr43184802pfk.67.1514813889161; Mon, 01 Jan 2018 05:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514813889; cv=none; d=google.com; s=arc-20160816; b=NgcXdKvVQpgFaQ0chLyoDiPMFEY0zzhYzQsEfBfamZVcQd3l7JMvO4HI1vV6PNM0DV CidDIn6gevZJglMZXzCOyidKsQ8liJzukTyg6FsxXBJJmBvw8MECl0jBp9dCJUfHLItm muHy0QSzsmjPmZ3KyEZPkuOm945Daasy+Yl3RPSAr9BURKdoH8bZKU0mDz3JRl01NZrl Yd3SrpLV1BL6m0tg28Xq4ZKPpuK9az9UR2vD0HHfZolngMn1bmWvjHOurLPdKbyIw9H5 e6ADqGbCJ3LmDFdHicmInxub0rNMoiFBJxAfAKjhKNNRcRmHrMqpgZGHcaiHy7BVfn+3 fCBQ== 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=FjOsWBzF7E/L3lcKc1O18a23kMLIYhyvrbiIaaLIAk0=; b=ia9AA/Ae018aM736M/+fazG2jhKEnbOIRnlV6XLGCXyUxethdmAh4YQdHd/ttES6/D E7U6+jNkOBVz0x4RkfiyVLdLJ2XQCB73UpdZKwzMz0v2pKiqoG5NArOq84kS1k4q3jV5 lw0r5atJjAuIVG+tvRKM7B7aL3J5bBk6dgIpHe5GVnhcs/Bx93wYDxIvnI2LN87eskI1 6JPtl8xs3NGJ4MTr1DtPddHLo+EokgWjHlFEgu1NJZYSWKqOJkEgTbS+DrHVi2opbAGq hE3JnmhNMxZFA4URDcrqkm7ORIs+uuk6boHNkFMfC7Os8k6TTP1rhi2hkeZOvblhOBdX IxNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hzHteyL0; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r87si32489942pfa.254.2018.01.01.05.38.09; Mon, 01 Jan 2018 05:38:09 -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=@linaro.org header.s=google header.b=hzHteyL0; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751255AbeAANiI (ORCPT + 1 other); Mon, 1 Jan 2018 08:38:08 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:39531 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbeAANiH (ORCPT ); Mon, 1 Jan 2018 08:38:07 -0500 Received: by mail-wm0-f67.google.com with SMTP id i11so57040376wmf.4 for ; Mon, 01 Jan 2018 05:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=h46+SMrYIyUim4lHDJb25heHEIrpxEaXsfuaS9HuFHk=; b=hzHteyL0mwRapi3h6sjyggGpDc80JJK3lU/C0zsTpm4dqbwHK2dVO5pMz+ghllctKj rKUpxuW4nBh0roCcfdSIi/FAFRTQ7uZvGmv17/lPysuQBGB+S6QBVcDuhWM9+NHOJA/E ivbFfMDNmAF/IO8uu09wbTiIcTADOBAQCFmx4= 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=h46+SMrYIyUim4lHDJb25heHEIrpxEaXsfuaS9HuFHk=; b=mTMbaRrGD4qNXBXg7POKFm/KsJzohga/xeiTU1YLqyL5eXsve3+gixm7wyeV/bvUpz covVPtru0ghJJd/B+rAJQXJpTzKA8QryXRvMskGSA/gZTKJkfoPGdphqoSlM+Wr93wGa 3YgKEhE5t0gIAZkNBsaLA4vnSHuVs6KxURM8Ia415OCaOWtlge7rMN1XXsYjpuUWK4sx Jp8bReEfSrBJJ+E6prl8cfCVPX9ZQbHNqIgO2DQBW/VPAwwkfK5RKk1ta94V/1vT4Kx9 yxV3SqdakgpNus/c0tdBb8NtWhIvnmtNAxvCa+qfB+2hPlHKN1WR7n4NaDZ/E2sGCSoI HPyA== X-Gm-Message-State: AKGB3mIiAl9Ex5fvqcDI6xeC/aW9+0XwR1fIL5VeA4zfP5lY42Imk5V7 JLhz09K2KGiJjoEH2Au2JhEgUQ== X-Received: by 10.28.141.209 with SMTP id p200mr31939808wmd.161.1514813886713; Mon, 01 Jan 2018 05:38:06 -0800 (PST) Received: from localhost.localdomain (catv-80-98-14-92.catv.broadband.hu. [80.98.14.92]) by smtp.gmail.com with ESMTPSA id d7sm53491267wrd.54.2018.01.01.05.38.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jan 2018 05:38:05 -0800 (PST) From: Linus Walleij To: Mark Brown , linux-spi@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 0/5] Rewrite GPIO SPI to use descriptors Date: Mon, 1 Jan 2018 14:37:44 +0100 Message-Id: <20180101133749.29567-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Just as it says, this rewrites the GPIO bit-banged SPI driver to just use GPIO descriptors and pushes the configuration of the GPIO lines down into devices trees and board files. As there is a patch to the GPIO core, I can provide a tag to be pulled from the GPIO tree so I can pull the first patch into the GPIO devel branch for next as well. There is a testing branch based on v4.15-rc1 already if people just want to pull it in and test it from there: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/log/?h=gpio-descriptors-spi Please test it if you can. Linus Walleij (5): gpio: of: Support SPI nonstandard GPIO properties spi: spi-gpio: Rewrite to use GPIO descriptors spi: spi-gpio: Augment device tree bindings spi: spi-gpio: Make optional chipselect handling more explicit spi: spi-gpio: Delete references to non-GENERIC_BITBANG Documentation/devicetree/bindings/spi/spi-gpio.txt | 24 +- arch/arm/mach-pxa/cm-x300.c | 21 +- arch/arm/mach-pxa/raumfeld.c | 26 +- arch/arm/mach-s3c24xx/mach-jive.c | 55 ++-- arch/arm/mach-s3c24xx/mach-qt2410.c | 26 +- arch/arm/mach-s3c64xx/mach-smartq.c | 22 +- arch/mips/alchemy/devboards/db1000.c | 24 +- arch/mips/jz4740/board-qi_lb60.c | 26 +- drivers/gpio/gpiolib-of.c | 36 +++ drivers/misc/eeprom/digsy_mtc_eeprom.c | 29 +- drivers/spi/spi-gpio.c | 293 ++++++--------------- include/linux/spi/spi_gpio.h | 49 +--- 12 files changed, 311 insertions(+), 320 deletions(-) -- 2.14.3 -- 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