From patchwork Sun Sep 24 14:56:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 114125 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1641700qgf; Sun, 24 Sep 2017 07:57:40 -0700 (PDT) X-Received: by 10.98.15.13 with SMTP id x13mr4851679pfi.249.1506265060765; Sun, 24 Sep 2017 07:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506265060; cv=none; d=google.com; s=arc-20160816; b=N1X6DuoxMPznOHKfIoiPrLKQJ2ECvIB0PTIPAOKQYSRcv44hELzXbzL52yqSGCYXFd sHtn9Jpgibfyd0KQkcyYwgW7D/6+O/dkiR3Mm7mGqtYon0qMKsM1EHpM2O4tXeI0Uj1y 1aELJ2L5XnI5vYyng1/Jy6e3ui+mr2QCy/tXuNjfxiZMjg2eNGrsuiu4dO9lZ64QRzFz fzMbi/4/BNKctezpygOcJNashrr02hG/3bOnke5TE8W2kBxhIXSPM2jI1NPLTpS8MoR4 B55t9aldNEy0nTJgbFVyE+KbY1pKbFTlYa+72QgOzNBZS5nvnDg+Tohwr/9xyVagB+At qiog== 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=RC0BxYBebtUIrbcu4N3jW8NTAovwNM2JQwzH+e/Fhnw=; b=obpS/2Bml6uZvHzsOuyRvF6wHUIr6s/OUxOr3BGkCw2Pa56Kt+blYXrjYAC7l39Zh1 eOqM2DmHHQpqD2s6swfQx/avkVWCU0F5SuNCvbWOKblXBszGUyznSUi2Kj36yVzjIOP1 5WyddfNknz+0wei4ICWG4CihOXACGTI/FZbpljlSfmMBjc5vAC/YKTJhHTx2aHxVYytH /nVSnWKKbHb9QK+N8Y7ykT+86yfQzn+GcE3fte212i+lJ5LSrhNdS+4Yi3PYFrS5hcNW RUKLJnfD7m23yKr3YHYYJEF6WjN+FVx296q6YWKW41MXtKTO/Eo2rW8c9K7UY6UuwjKF SY1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kb/08E0a; 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=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 x15si279058pff.156.2017.09.24.07.57.40; Sun, 24 Sep 2017 07:57:40 -0700 (PDT) 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=@linaro.org header.s=google header.b=kb/08E0a; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752585AbdIXO5h (ORCPT + 26 others); Sun, 24 Sep 2017 10:57:37 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:43158 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbdIXO5g (ORCPT ); Sun, 24 Sep 2017 10:57:36 -0400 Received: by mail-pg0-f49.google.com with SMTP id u18so2733395pgo.0 for ; Sun, 24 Sep 2017 07:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RC0BxYBebtUIrbcu4N3jW8NTAovwNM2JQwzH+e/Fhnw=; b=kb/08E0aXMRQ8xb0aiuQRTchk0Qb4qNvVsXgQNBqVjYAhblBeob5CIUe43COlBo/7T 3ZLqWAEhzbna8rEuH+SOudR8n0Z6CTbVyNS7jDOesxSJn53bDLGHFCPT9HeLcWYx6Rxb KJCF6SeqZMMd+2xKoEWbtxGhxljtEkkYqTDkA= 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=RC0BxYBebtUIrbcu4N3jW8NTAovwNM2JQwzH+e/Fhnw=; b=lo+X7SyNTWWgMKNAwQ6AbsZS5936ol9RcWkSIQ6p5VGeaOaeB4wQPlvtNPC5KPz1Eo Nxodx8He9q3ra2gjN4LZUvPjVFttvXraUmOkMiSTZVA/Mnw2Z2eCVhT9R33XjGBXbfx8 JxHXNpJlYl9v6DwSI50Ow8Om8lJKdTXRTTqbIZTDYa3O6fuHYeH8EJE7QNdIlxBHtPZM yTpeYaebPtwccNLD9ff2pkLyk1Hd9nXVnEoDhqAq5xHqBZXQNkDSoAOs34XMeVMr5rnP HFzV/b4dKzhjlYkGA9F/dflOWRAKnMY8I3Z/2CCeUoV8ynDSsZrw6YKhjlEG+zfxwmEo mY7w== X-Gm-Message-State: AHPjjUgEHqUSdDYZr8mbidyH2X4BX2eufXAnAK2SCFqLSmnsppdtqyyx RP3BDuKY4vVTqOMGlzHx0S5LTZVEIHU= X-Google-Smtp-Source: AOwi7QAYmI6wqwuaKa5MIx1OrDDgQXpfGKP7aFmCcMj+JxwmAW/tTeJWqqQAprOohZjsQS9w+rpcoQ== X-Received: by 10.99.3.208 with SMTP id 199mr4993958pgd.111.1506265055590; Sun, 24 Sep 2017 07:57:35 -0700 (PDT) Received: from genomnajs.saswifi.com ([104.153.224.168]) by smtp.gmail.com with ESMTPSA id n83sm7386805pfi.163.2017.09.24.07.57.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 07:57:34 -0700 (PDT) From: Linus Walleij To: MyungJoo Ham , Chanwoo Choi Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, John Stultz , Mike Lockwood , Guenter Roeck , Linus Walleij Subject: [PATCH 0/8] GPIO extcon modernization Date: Sun, 24 Sep 2017 16:56:14 +0200 Message-Id: <20170924145622.4031-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Like with the GPIO mouse input, I found that this driver has no in-tree users at all. I *could* just propose to delete it. But the driver seems generally useful, so I made a patch series shaping it up to get configuration from device tree or ACPI DSDT using device properties instead. We start off the series by defining a set of device tree bindings for it. It would be great to have some input from the initial authors on this rewrite. I think we would not merge any board file using the platform data anymore, so making it an all-in device property (device tree || ACPI) driver seems reasonable. Linus Walleij (8): extcon: gpio: Add DT bindings extcon: gpio: Localize platform data extcon: gpio: Move platform data into state container extcon: gpio: Convert to fully use GPIO descriptor extcon: gpio: Request reasonable interrupts extcon: gpio: Get debounce setting from device property extcon: gpio: Get connector type from device property extcon: gpio: Always check state on resume .../devicetree/bindings/extcon/extcon-gpio.txt | 24 ++++ drivers/extcon/extcon-gpio.c | 132 ++++++++++++--------- include/dt-bindings/extcon/connectors.h | 38 ++++++ include/linux/extcon/extcon-gpio.h | 47 -------- 4 files changed, 135 insertions(+), 106 deletions(-) create mode 100644 Documentation/devicetree/bindings/extcon/extcon-gpio.txt create mode 100644 include/dt-bindings/extcon/connectors.h delete mode 100644 include/linux/extcon/extcon-gpio.h -- 2.13.5 Acked-by: Chanwoo Choi