Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817918/?format=api
{ "id": 817918, "url": "http://patchwork.ozlabs.org/api/patches/817918/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20170924145622.4031-2-linus.walleij@linaro.org/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api", "name": "Linux GPIO development", "link_name": "linux-gpio", "list_id": "linux-gpio.vger.kernel.org", "list_email": "linux-gpio@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170924145622.4031-2-linus.walleij@linaro.org>", "list_archive_url": null, "date": "2017-09-24T14:56:15", "name": "[1/8] extcon: gpio: Add DT bindings", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5bc31879d572fe2d42fb0d7502a5f2d85f693029", "submitter": { "id": 7055, "url": "http://patchwork.ozlabs.org/api/people/7055/?format=api", "name": "Linus Walleij", "email": "linus.walleij@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20170924145622.4031-2-linus.walleij@linaro.org/mbox/", "series": [ { "id": 4818, "url": "http://patchwork.ozlabs.org/api/series/4818/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=4818", "date": "2017-09-24T14:56:14", "name": "GPIO extcon modernization", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4818/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/817918/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817918/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-gpio-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-gpio-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"QF7PBOW1\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y0Vhn1p0Sz9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Sep 2017 00:58:33 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752594AbdIXO6T (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tSun, 24 Sep 2017 10:58:19 -0400", "from mail-pg0-f43.google.com ([74.125.83.43]:49322 \"EHLO\n\tmail-pg0-f43.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752529AbdIXO6R (ORCPT\n\t<rfc822; linux-gpio@vger.kernel.org>); Sun, 24 Sep 2017 10:58:17 -0400", "by mail-pg0-f43.google.com with SMTP id m30so2726813pgn.6\n\tfor <linux-gpio@vger.kernel.org>;\n\tSun, 24 Sep 2017 07:58:17 -0700 (PDT)", "from genomnajs.saswifi.com ([104.153.224.168])\n\tby smtp.gmail.com with ESMTPSA id\n\tn83sm7386805pfi.163.2017.09.24.07.57.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSun, 24 Sep 2017 07:58:16 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=rUMJFZ9W2Zj6aH9dq/gwe8dNyjN5LXjryFbJTyasmt0=;\n\tb=QF7PBOW1/v4LKp0ht2FASIXDKMXSh7tmcrO9PkFIzS0vK3N4wZGAnSg4OkfE5T7Btm\n\t3kTRzo1s36mZOygApWUDU1zLKutY9P5ZIFunnUBUFm3lfIyA5pp5z3Oem5iwIOA/Ag8p\n\tWI5WLBrd79Pe6FlGwxZNo/mY093hJ8rHRiIo0=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=rUMJFZ9W2Zj6aH9dq/gwe8dNyjN5LXjryFbJTyasmt0=;\n\tb=L6AVyZpCnEvl7kt8Ff1n+7KIlRtt7kTKdKAqesNORfbwnw0agbj1F+pur/eGRG+Dgv\n\tFsCnM8FpEMLb4Dk2ZRx8rFTh01nU+/vSViMGRWi5yE6z63hM4otw4mn+pq1+6hVYEc1a\n\t0ZN9RWrFAu38PLurbqU6+l/4uX7zsRGmRge6Dd7rrHZAIyoHDEMFSQQshVJsofTB6osV\n\tUQSFSqFw7tYJRWXXkfjQHMPFlClqUpQVU0IyeTsKouKU90HgqjVOIQVxP8/vBY4I/wb8\n\tzZGXAiZjZeWZscltHQVaQxzSDNIKWJcaRNxEyaqdI7hqqTlk1r0ZfpFLzfC0wkt5+yTf\n\tpONA==", "X-Gm-Message-State": "AHPjjUhbEJrdn4CpJHiTC86a5nzMYldURG6RPsEo+S+YaB90UyConTfE\n\tlBynpHt1q7U4lV4CwISlY1NV5w==", "X-Google-Smtp-Source": "AOwi7QBcbeQX2SYXsymbP5MJVO8dQv3z+RGK2yn+UX9/DazgjYgwHuLoSogsgtbWCyKD4y3tgyro8A==", "X-Received": "by 10.98.79.157 with SMTP id f29mr4849724pfj.9.1506265097206;\n\tSun, 24 Sep 2017 07:58:17 -0700 (PDT)", "From": "Linus Walleij <linus.walleij@linaro.org>", "To": "MyungJoo Ham <myungjoo.ham@samsung.com>,\n\tChanwoo Choi <cw00.choi@samsung.com>", "Cc": "linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,\n\tJohn Stultz <john.stultz@linaro.org>,\n\tMike Lockwood <lockwood@google.com>, Guenter Roeck <linux@roeck-us.net>,\n\tLinus Walleij <linus.walleij@linaro.org>, devicetree@vger.kernel.org", "Subject": "[PATCH 1/8] extcon: gpio: Add DT bindings", "Date": "Sun, 24 Sep 2017 16:56:15 +0200", "Message-Id": "<20170924145622.4031-2-linus.walleij@linaro.org>", "X-Mailer": "git-send-email 2.13.5", "In-Reply-To": "<20170924145622.4031-1-linus.walleij@linaro.org>", "References": "<20170924145622.4031-1-linus.walleij@linaro.org>", "Sender": "linux-gpio-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-gpio.vger.kernel.org>", "X-Mailing-List": "linux-gpio@vger.kernel.org" }, "content": "Add some reasonable device tree bindings and also add the cable defines\nto the extcon include in <dt-bindings/extcon/connectors.h> since\nthe GPIO extcon definately need to specify which cable/connector it is\ndetecting.\n\nAdding the include file makes the (as it happens) Linux numbers into an\nABI, but I do not see any better method. It is possible to define strings\nfor all cable types but it seems like overkill, just reusing Linux'\nenumerators seems like a good idea.\n\nThe binding supports any number of GPIOs and connectors, but the driver\ncurrently only supports one connector on one GPIO line.\n\nCc: devicetree@vger.kernel.org\nSigned-off-by: Linus Walleij <linus.walleij@linaro.org>\n---\n .../devicetree/bindings/extcon/extcon-gpio.txt | 24 ++++++++++++++\n include/dt-bindings/extcon/connectors.h | 38 ++++++++++++++++++++++\n 2 files changed, 62 insertions(+)\n create mode 100644 Documentation/devicetree/bindings/extcon/extcon-gpio.txt\n create mode 100644 include/dt-bindings/extcon/connectors.h", "diff": "diff --git a/Documentation/devicetree/bindings/extcon/extcon-gpio.txt b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt\nnew file mode 100644\nindex 000000000000..2f5e21b94a64\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt\n@@ -0,0 +1,24 @@\n+External Connector Using GPIO\n+\n+Required properties:\n+- compatible: should be \"extcon-gpio\"\n+- extcon-gpios: the GPIO lines used for the external connectors\n+ See gpio/gpio.txt\n+- extcon-connector-types: set to an unsigned integer value arrat representing the types\n+ of this connector, matched to the corresponding GPIO lines in the previous array.\n+ Those are defined with unique IDs in <dt-bindings/extcon/connectors.h>\n+- input-debounce: The number of microseconds to wait for the\n+ connector state to stabilize. This property is reused from pin control\n+ See pinctrl/pinctrl-bindings.txt\n+\n+Example:\n+\n+#include <dt-bindings/gpio/gpio.h>\n+#include <dt-bindings/extcon/connectors.h>\n+\n+extcon {\n+\tcompatible = \"extcon-gpio\";\n+\textcon-gpios = <&gpio0 42 GPIO_ACTIVE_LOW>;\n+\textcon-connector-types = <EXTCON_USB>;\n+\tinput-debounce = <20000>; /* 20 ms */\n+};\ndiff --git a/include/dt-bindings/extcon/connectors.h b/include/dt-bindings/extcon/connectors.h\nnew file mode 100644\nindex 000000000000..61bed24eaadc\n--- /dev/null\n+++ b/include/dt-bindings/extcon/connectors.h\n@@ -0,0 +1,38 @@\n+#ifndef _DT_BINDINGS_EXTCON_CONNECTORS_H\n+#define _DT_BINDINGS_EXTCON_CONNECTORS_H\n+\n+/* USB external connector */\n+#define EXTCON_USB\t\t1\n+#define EXTCON_USB_HOST\t\t2\n+#define EXTCON_CHG_USB_SDP\t5\t/* Standard Downstream Port */\n+#define EXTCON_CHG_USB_DCP\t6\t/* Dedicated Charging Port */\n+#define EXTCON_CHG_USB_CDP\t7\t/* Charging Downstream Port */\n+#define EXTCON_CHG_USB_ACA\t8\t/* Accessory Charger Adapter */\n+#define EXTCON_CHG_USB_FAST\t9\n+#define EXTCON_CHG_USB_SLOW\t10\n+#define EXTCON_CHG_WPT\t\t11\t/* Wireless Power Transfer */\n+#define EXTCON_CHG_USB_PD\t12\t/* USB Power Delivery */\n+/* Jack external connector */\n+#define EXTCON_JACK_MICROPHONE\t20\n+#define EXTCON_JACK_HEADPHONE\t21\n+#define EXTCON_JACK_LINE_IN\t22\n+#define EXTCON_JACK_LINE_OUT\t23\n+#define EXTCON_JACK_VIDEO_IN\t24\n+#define EXTCON_JACK_VIDEO_OUT\t25\n+#define EXTCON_JACK_SPDIF_IN\t26\t/* Sony Philips Digital InterFace */\n+#define EXTCON_JACK_SPDIF_OUT\t27\n+/* Display external connector */\n+#define EXTCON_DISP_HDMI\t40\t/* High-Definition Multimedia Interface */\n+#define EXTCON_DISP_MHL\t\t41\t/* Mobile High-Definition Link */\n+#define EXTCON_DISP_DVI\t\t42\t/* Digital Visual Interface */\n+#define EXTCON_DISP_VGA\t\t43\t/* Video Graphics Array */\n+#define EXTCON_DISP_DP\t\t44\t/* Display Port */\n+#define EXTCON_DISP_HMD\t\t45\t/* Head-Mounted Display */\n+/* Miscellaneous external connector */\n+#define EXTCON_DOCK\t\t60\n+#define EXTCON_JIG\t\t61\n+#define EXTCON_MECHANICAL\t62\n+\n+#define EXTCON_NUM\t\t63\n+\n+#endif /* _DT_BINDINGS_EXTCON_CONNECTORS_H */\n", "prefixes": [ "1/8" ] }