Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196437/?format=api
{ "id": 2196437, "url": "http://patchwork.ozlabs.org/api/patches/2196437/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260213223204.2415507-2-james.hilliard1@gmail.com/", "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": "<20260213223204.2415507-2-james.hilliard1@gmail.com>", "list_archive_url": null, "date": "2026-02-13T22:32:02", "name": "[2/2] dt-bindings: gpio: document gpio-line usage", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3e4ffd5e0e7ebcb740ee6a249c4860fe457c4247", "submitter": { "id": 66301, "url": "http://patchwork.ozlabs.org/api/people/66301/?format=api", "name": "James Hilliard", "email": "james.hilliard1@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260213223204.2415507-2-james.hilliard1@gmail.com/mbox/", "series": [ { "id": 492144, "url": "http://patchwork.ozlabs.org/api/series/492144/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=492144", "date": "2026-02-13T22:32:01", "name": "[1/2] gpiolib: of: add gpio-line node support", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492144/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196437/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196437/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-31676-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-gpio@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=XdTaxu1V;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-gpio+bounces-31676-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"XdTaxu1V\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.167.195", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fCRkT1bcvz1xwj\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 09:32:33 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id A0EC43006460\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 22:32:29 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 988B1316185;\n\tFri, 13 Feb 2026 22:32:27 +0000 (UTC)", "from mail-oi1-f195.google.com (mail-oi1-f195.google.com\n [209.85.167.195])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C566315D23\n\tfor <linux-gpio@vger.kernel.org>; Fri, 13 Feb 2026 22:32:26 +0000 (UTC)", "by mail-oi1-f195.google.com with SMTP id\n 5614622812f47-46392972257so965035b6e.2\n for <linux-gpio@vger.kernel.org>;\n Fri, 13 Feb 2026 14:32:25 -0800 (PST)", "from james-x399.localdomain (71-218-105-26.hlrn.qwest.net.\n [71.218.105.26])\n by smtp.gmail.com with ESMTPSA id\n 5614622812f47-4636b0c8606sm5446923b6e.18.2026.02.13.14.32.24\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 13 Feb 2026 14:32:24 -0800 (PST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771021947; cv=none;\n b=ld4wjiBttLhFzSRgbH26GJAQgV8+a7C+jIgFZoAnTxK3KKdqfijJSgpsgLdc4DMj1cS9lJc/TODFsGXxDkc3ctII7D/q06mxYNjNItiv4PKmCZYmmBQ1c0kHmlpiSDF8Rz5/GUG2VsvDcBoafrPXqHMDI1Pbma64TH3xDqV8Z5w=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771021947; c=relaxed/simple;\n\tbh=q7Fqxy6e28lycA/LVu+rFivt886Ak4SzXlJ0a8MnRFU=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=lUjuLPv0cqKR8xVb47n6CGzhOJzXu11hK2ziOZpcE7tt007J2xrb4aoRKQ2IuLzAXf7NmMQWbgcKYm4hqrFBcDZ89Sinwj8Ia8rR+lDfAqMQC/r9hc83cmPq1lxWe4sAGSINabrfcsV97YYuCV6UNxoBdnvrPYGgzk7kbBi1DkE=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=XdTaxu1V; arc=none smtp.client-ip=209.85.167.195", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1771021945; x=1771626745;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=pOA3Fq3qeW/ssDTBL2Z818pHx95UW3MtdV2Mwb98UGY=;\n b=XdTaxu1VmPYH1rxhp8+a1pS3xM8rJAQZfndOCRgCPKigyXexENG7mdFqY2kvO6Tx8N\n T2cxeuvh5xDXV0HpxKKyKLSPVs+OeOEj9fQxqtygY7KfBltz9Hz8rRpp6p4xSISKLfK2\n b+ET300jcGoX5jf50tvMOpavQ+M3FOTLrxfeI8PSb/ndkRtA7X6M49HbDAi119eeUY7T\n iQBDWx5yh9QLgozhk5vcLqgSE/Xu3YXinIO/Ife0PNi9CWOg2OpwXslG/K5l/uokdLFr\n NmdNTCmGdNBD+moZZcST3iXJaqmhpDNqWGVDCdJ6wGahdENGRPMc2GYsRUIVx0dsdINm\n fIoQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771021945; x=1771626745;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=pOA3Fq3qeW/ssDTBL2Z818pHx95UW3MtdV2Mwb98UGY=;\n b=HRMu+j/Dfq4jq4mSUajh4/HpAnRamoFWAoolsVNac0oCRY1wQqQ3UDEcun/3uGNzEN\n BZogeFOLpSC7G/q3TN/MyKiGTjnU0SSMnxuEclETgFuFQyzG4aRoeACxgKi0tFx9VKo8\n Nk6MWmLP2ivfTxm9jtGedjrmBtwS7yWjxj4ZdAZ/cToiYKhhLcpvjnOf/zCFV1vD1lZG\n Jd8r0trBt8OzWgcRxzdCyp+1aMjLoFuRstPZtejQIoZLNh67AN0gL1ZKhzE5cCTFzYzz\n 3auQ5b465XiWWeR4ESn//cDz7JTTvHcvi+oO0qRPBw3ldHggk7B3fDagkeFp1Bhw9f+5\n 4JAw==", "X-Gm-Message-State": "AOJu0Yw/rYift/hS887jdcz6MHHd0JJ9hlTZHIbYOuSU2yIjjx1PhIu0\n\tRWpfhn2vldLnykmNkwTuW7TchUnlOnksq12BuZZqUzPfTDV13tvYQR0g4d3ZAlWq", "X-Gm-Gg": "AZuq6aJT1mgLO5ZJ1BnjHQd56PxuPvAPPSZLDAWKanI3XFUBhbBjZevoRVO4QB+ChgL\n\t+jxON0TNSt3v2E1f/W+b9WWaGpjhUp1Ys0QWukJJDWVLFEcljBXOQQSSrczpsGS4cJiNI7FjoIn\n\tWLOXHFuhe5FJ7RxnNXcQd8+l7uDlGrfiqAjcOhPFLJlpm44+cs4oNx01XClg+O6BHaX7b+5pch/\n\tUUEh/BHE2abwusBAehvsBpONj6tecGDiGmRjw0fvC/65fbsppqOGpff7AAfpq2X8boNt3kSi5GP\n\tWic+Pw/A1Sx8qui1JZIEo5oSY+85OU03BOgVLz+KWoya4dPxat+fbDAW6n+WMqQrXuHa8rCkBx7\n\t28lbyr0TRgfbNOJYXL/JRc4lHXcGe5nYkAl3RxwSbbyQmLko/cti4331Pfajo8I77sTMsh/2BtA\n\toGbjrIWf3ZuQmHPfCtJRBvv+ZvWak+CFSPwPJUjunT/gSN3HVaJarbzQtu0CvQv3pWKVUTp25a8\n\tEQUvODOG0HTnyM6Rlt8AKlrtZDCnKeO82Qd+Ppy3ID6I/8S1eOxeR/ksk6W7iI=", "X-Received": "by 2002:a05:6808:c18e:b0:450:d143:b79f with SMTP id\n 5614622812f47-4639f281395mr1478351b6e.66.1771021944958;\n Fri, 13 Feb 2026 14:32:24 -0800 (PST)", "From": "James Hilliard <james.hilliard1@gmail.com>", "To": "linux-gpio@vger.kernel.org", "Cc": "James Hilliard <james.hilliard1@gmail.com>,\n\tLinus Walleij <linusw@kernel.org>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tSaravana Kannan <saravanak@kernel.org>,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Subject": "[PATCH 2/2] dt-bindings: gpio: document gpio-line usage", "Date": "Fri, 13 Feb 2026 15:32:02 -0700", "Message-ID": "<20260213223204.2415507-2-james.hilliard1@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260213223204.2415507-1-james.hilliard1@gmail.com>", "References": "<20260213223204.2415507-1-james.hilliard1@gmail.com>", "Precedence": "bulk", "X-Mailing-List": "linux-gpio@vger.kernel.org", "List-Id": "<linux-gpio.vger.kernel.org>", "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "Document gpio-line child nodes for GPIO controller initialization\nwithout line hogging.\n\nDescribe gpio-line-name semantics for both gpio-line nodes and gpio-hog\nnodes, and update examples accordingly.\n\nSigned-off-by: James Hilliard <james.hilliard1@gmail.com>\n---\n .../devicetree/bindings/gpio/gpio.txt | 47 ++++++++++++++-----\n 1 file changed, 34 insertions(+), 13 deletions(-)", "diff": "diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt\nindex b37dbb1edc62..cf591954eafd 100644\n--- a/Documentation/devicetree/bindings/gpio/gpio.txt\n+++ b/Documentation/devicetree/bindings/gpio/gpio.txt\n@@ -199,28 +199,41 @@ gpio-controller@00000000 {\n \t\t\"poweroff\", \"reset\";\n }\n \n-The GPIO chip may contain GPIO hog definitions. GPIO hogging is a mechanism\n-providing automatic GPIO request and configuration as part of the\n-gpio-controller's driver probe function.\n+The GPIO chip may contain child nodes used for line setup at probe time:\n+- gpio-hog: reserves the GPIO line as a hog and configures it.\n+- gpio-line: configures the GPIO line without reserving it as a hog.\n \n-Each GPIO hog definition is represented as a child node of the GPIO controller.\n-Required properties:\n-- gpio-hog: A property specifying that this child node represents a GPIO hog.\n+Common properties for gpio-hog and gpio-line child nodes:\n - gpios: Store the GPIO information (id, flags, ...) for each GPIO to\n \t affect. Shall contain an integer multiple of the number of cells\n \t specified in its parent node (GPIO controller node).\n-Only one of the following properties scanned in the order shown below.\n-This means that when multiple properties are present they will be searched\n-in the order presented below and the first match is taken as the intended\n-configuration.\n - input: A property specifying to set the GPIO direction as input.\n - output-low A property specifying to set the GPIO direction as output with\n \t the value low.\n - output-high A property specifying to set the GPIO direction as output with\n \t the value high.\n-\n-Optional properties:\n-- line-name: The GPIO label name. If not present the node name is used.\n+\t When multiple line-state properties are present they are scanned\n+\t in the order shown above and the first match is used.\n+- gpio-line-name:\n+\t Optional GPIO line name for the configured line.\n+\t When present, it sets the line name for that line and overrides\n+\t any existing name, including names assigned by the controller's\n+\t \"gpio-line-names\". If not present, any existing name is left\n+\t unchanged.\n+\n+gpio-hog specific properties:\n+- gpio-hog: A property specifying that this child node represents a GPIO hog.\n+- line-name: Consumer label used when requesting the hogged GPIO.\n+\t If not present the node name is used.\n+\t This is independent from \"gpio-line-name\".\n+At least one line-state property (\"input\", \"output-low\", or \"output-high\")\n+must be present for gpio-hog.\n+\n+gpio-line specific properties:\n+- gpio-line: A property specifying that this child node represents GPIO lines\n+\t to configure without hogging.\n+Line-state properties are optional for gpio-line.\n+When no line-state property is present, the line direction/value is left as-is.\n \n Example of two SOC GPIO banks defined as gpio-controller nodes:\n \n@@ -235,6 +248,14 @@ Example of two SOC GPIO banks defined as gpio-controller nodes:\n \t\t\tgpios = <6 0>;\n \t\t\toutput-low;\n \t\t\tline-name = \"foo-bar-gpio\";\n+\t\t\tgpio-line-name = \"foo-bar-line\";\n+\t\t};\n+\n+\t\tline_c-init {\n+\t\t\tgpio-line;\n+\t\t\tgpios = <7 0>;\n+\t\t\toutput-high;\n+\t\t\tgpio-line-name = \"foo-baz-gpio\";\n \t\t};\n \t};\n \n", "prefixes": [ "2/2" ] }