get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2196555/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2196555,
    "url": "http://patchwork.ozlabs.org/api/patches/2196555/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260214213239.2546012-1-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": "<20260214213239.2546012-1-james.hilliard1@gmail.com>",
    "list_archive_url": null,
    "date": "2026-02-14T21:32:37",
    "name": "[v2,1/1] gpiolib: of: add gpio-line node support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0c2c5c0b8d0ac3decfb910b51df27b15bd83492e",
    "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/20260214213239.2546012-1-james.hilliard1@gmail.com/mbox/",
    "series": [
        {
            "id": 492196,
            "url": "http://patchwork.ozlabs.org/api/series/492196/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=492196",
            "date": "2026-02-14T21:32:37",
            "name": "[v2,1/1] gpiolib: of: add gpio-line node support",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492196/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196555/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196555/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-31690-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=Dt7Sqne3;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-31690-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=\"Dt7Sqne3\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.167.172",
            "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 sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fD2Q81LSkz1xwj\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 15 Feb 2026 08:35:28 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id BAD793009F8F\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 21:32:49 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5C6F9311C37;\n\tSat, 14 Feb 2026 21:32:48 +0000 (UTC)",
            "from mail-oi1-f172.google.com (mail-oi1-f172.google.com\n [209.85.167.172])\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 C1AED311956\n\tfor <linux-gpio@vger.kernel.org>; Sat, 14 Feb 2026 21:32:46 +0000 (UTC)",
            "by mail-oi1-f172.google.com with SMTP id\n 5614622812f47-463960df4a8so1250098b6e.2\n        for <linux-gpio@vger.kernel.org>;\n Sat, 14 Feb 2026 13:32:46 -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-4636ae901d4sm7319937b6e.2.2026.02.14.13.32.44\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sat, 14 Feb 2026 13:32:44 -0800 (PST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771104768; cv=none;\n b=UkRRGc7mfE7tWz51nFTqSiYpyn6vowM6Xf23mTH05G8+dM2GtUDO7UJFk+Bx/sHK3sMZ8lbp4VXKMSji2q+ay7C3O9uSOXbIe+sM8KIdX6LZhYk2iwW4//cVO+S6bNSmMLNHUSJSlXE+4D8c68KIgFgcVtjBfi7h/ILAanJJKMU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771104768; c=relaxed/simple;\n\tbh=mHYCYIynKnTU9C6JHA+3biClChxi9HQvWugV7yDWqRg=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=u3tj6ghDZdyNtdEgakaWTM6DalsA+pU6nyQQ/ed7CC4EGQ7XwVxaUXVpw3nte+TTrjUxRA05T98kERHghwrH5L+3K+tz/zGIarD4FQFnfBFbBdl0t88CWwn9gbnX1vCOQ9zraBXvKK0Pir8y/aJtSyoiDkEZC1L1UYYv3ANsQB8=",
        "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=Dt7Sqne3; arc=none smtp.client-ip=209.85.167.172",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20230601; t=1771104765; x=1771709565;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=L4c/Ah4XWvxrSV/SoFkvHi4YIXjIbfcCsisFz1apAmI=;\n        b=Dt7Sqne3mt7LHEjiLpAizzud9qGkhu8FZRVJea5bQZE6KU65aDVOVu5pIy0T/MmelM\n         cUDS35QVqsArihgdI+gxfpWrbyNBoifSVbOwXIBGN+25V/YYL2yxnL8Ys/Jqp6MmVxQw\n         0J3MaAgLBz3D75kNd3N74H6Lk3JlnJ593rTlzyVtpTezc4M9654BOi6H/NQyYc+W81cH\n         MonKO3bPrrAox2WYx6nAswS4/Fh3Rm2OG3PjfKbMihRtGj+2cYeQDApfIIJtD0XiIpVd\n         8GKhJTEKUp2jN1rNA73zewdA/VxpthSPr/GsGauI4JdJAQd40i5/+msLhxwooSjxSz+n\n         f4JA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1771104765; x=1771709565;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=L4c/Ah4XWvxrSV/SoFkvHi4YIXjIbfcCsisFz1apAmI=;\n        b=UNfTZseVntgYgOjBTR+1bCtF++a0nmu8WVHyrzAUc6jFGsqs+4D9u5OP+M4vefv65I\n         VGmn8sOUhD/oqYv24M/15n/cTMgEXAIDZj2NPaOYTMmIR3rCtUqRWJ8SytuF0Ryt3phW\n         H9c2Is5A40yTlpAhCRm7Qa2SPguR9CbXYk+fr1Y5BgJlCCZxEckbpDDDr3YOa0z+Thbs\n         aVftX4+pyTnDBFQhPmbTuTfnKl2qViPh7/jnHwNIByfmyltqrSEv3DI+DRD8pTW7Fu/j\n         q8vqEOSlpwvhZ+iRZBFhUPn9zNORHVAlnoEXOWjAhi+qZk4+eFo1Mi5/JR6INiJML+8P\n         kOOQ==",
        "X-Gm-Message-State": "AOJu0Yyt2RrftOCnQl/ttRnABtcLfAhn4k2JVI222syDt/qgGVHHUHhe\n\ta3ZcgyA+Cl0vLdO2mnhwJg4o/eOSHSJOhG/wvev8/jvfLrSIOKWLN+fJHgn20Q==",
        "X-Gm-Gg": "AZuq6aLN5R/LGbHUVkwEqQ2u51Ngk0O6FJclett3eSW9Gme/OeaMVMWd7IOsT8k8NB0\n\tBYDbemOY69v62foPDbypCZLN2zjfK5hFxIGHb8w3d8BPvdzli8+Qpnn9dAl/70vxueXbfxO5osi\n\tS6bvERmAyb5zo7Wkw9kIStq/4iqtTXlHo/7fZEXDAl0eOjtzMScf2O4SHtDIZFNDblf5XoMSSPb\n\tLCaCH08eYF7OMUidmpA4+EWo450lyRBjV9LDdl4yj10AaSxyTc5Z0ImzOZQD6JyZU1I54B7mRBv\n\tR8tdOy2hahx6t/+LN7eQ8qqiJgD0wWBrfrpp7N9T3IWFBo5aFidQwhTD0US7pl/P9cvxXFcrz2e\n\tYKwpDekUtK2EsgNlktThsVRYkjwud8Supql5i9EJJsLXFaTeyvN4kjXDCac3Okd1jVxJF97w8lp\n\thDQWomiMeFZ12SEo1cjl3A7kNgK+vxTo5TD/BL3nhXNohwxyX8L9CwnzNZrDu4kK0VJ8BXHzz40\n\tHkTeAN2jGCNawGHYIBhGsJndeXec3gbb+kUe60lroBr8+Ar2D4hFixTQVRsXec=",
        "X-Received": "by 2002:a05:6808:1208:b0:450:4628:e3ce with SMTP id\n 5614622812f47-4639ef1a5f3mr3413419b6e.15.1771104765501;\n        Sat, 14 Feb 2026 13:32:45 -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\tSaravana Kannan <saravanak@kernel.org>,\n\tlinux-kernel@vger.kernel.org,\n\tdevicetree@vger.kernel.org",
        "Subject": "[PATCH v2 1/1] gpiolib: of: add gpio-line node support",
        "Date": "Sat, 14 Feb 2026 14:32:37 -0700",
        "Message-ID": "<20260214213239.2546012-1-james.hilliard1@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "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": "Allow GPIO controller child nodes marked with \"gpio-line\" to\nconfigure direction/flags at probe time without hogging the line.\n\nTeach OF gpiochip scanning and OF dynamic reconfiguration handlers to\nprocess gpio-line nodes in addition to gpio-hog nodes.\n\nAlso parse \"gpio-line-name\" and apply it to desc->name. For gpio-hog\nnodes, keep \"line-name\" semantics as the hog consumer label.\n\nSigned-off-by: James Hilliard <james.hilliard1@gmail.com>\n---\nDepends on:\n  - https://github.com/devicetree-org/dt-schema/pull/185\n\nChanges v1 -> v2:\n  - drop documentation changes\n  - add depends on to changelog\n---\n drivers/gpio/gpiolib-of.c     | 89 ++++++++++++++++++++++++++++-------\n drivers/gpio/gpiolib-shared.c |  7 +--\n drivers/of/property.c         |  7 +--\n scripts/dtc/checks.c          |  4 +-\n 4 files changed, 82 insertions(+), 25 deletions(-)",
    "diff": "diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c\nindex ef1ac68b94b7..b10a21a63d46 100644\n--- a/drivers/gpio/gpiolib-of.c\n+++ b/drivers/gpio/gpiolib-of.c\n@@ -744,6 +744,7 @@ struct gpio_desc *of_find_gpio(struct device_node *np, const char *con_id,\n  * @lflags:\tbitmask of gpio_lookup_flags GPIO_* values - returned from\n  *\t\tof_find_gpio() or of_parse_own_gpio()\n  * @dflags:\tgpiod_flags - optional GPIO initialization flags\n+ * @hog:\tindicates if this is a gpio-hog node\n  *\n  * Returns:\n  * GPIO descriptor to use with Linux GPIO API, or one of the errno\n@@ -753,11 +754,13 @@ static struct gpio_desc *of_parse_own_gpio(struct device_node *np,\n \t\t\t\t\t   struct gpio_chip *chip,\n \t\t\t\t\t   unsigned int idx, const char **name,\n \t\t\t\t\t   unsigned long *lflags,\n-\t\t\t\t\t   enum gpiod_flags *dflags)\n+\t\t\t\t\t   enum gpiod_flags *dflags,\n+\t\t\t\t\t   bool hog)\n {\n \tstruct device_node *chip_np;\n \tenum of_gpio_flags xlate_flags;\n \tstruct of_phandle_args gpiospec;\n+\tconst char *desc_name;\n \tstruct gpio_desc *desc;\n \tunsigned int i;\n \tu32 tmp;\n@@ -797,15 +800,19 @@ static struct gpio_desc *of_parse_own_gpio(struct device_node *np,\n \t\t*dflags |= GPIOD_OUT_LOW;\n \telse if (of_property_read_bool(np, \"output-high\"))\n \t\t*dflags |= GPIOD_OUT_HIGH;\n-\telse {\n+\telse if (hog) {\n \t\tpr_warn(\"GPIO line %d (%pOFn): no hogging state specified, bailing out\\n\",\n \t\t\tdesc_to_gpio(desc), np);\n \t\treturn ERR_PTR(-EINVAL);\n \t}\n \n-\tif (name && of_property_read_string(np, \"line-name\", name))\n+\tif (hog && name && of_property_read_string(np, \"line-name\", name))\n \t\t*name = np->name;\n \n+\tif (!of_property_read_string(np, \"gpio-line-name\", &desc_name) &&\n+\t    desc_name[0])\n+\t\tdesc->name = desc_name;\n+\n \treturn desc;\n }\n \n@@ -827,7 +834,8 @@ static int of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog)\n \tint ret;\n \n \tfor (i = 0;; i++) {\n-\t\tdesc = of_parse_own_gpio(hog, chip, i, &name, &lflags, &dflags);\n+\t\tdesc = of_parse_own_gpio(hog, chip, i, &name, &lflags, &dflags,\n+\t\t\t\t\t true);\n \t\tif (IS_ERR(desc))\n \t\t\tbreak;\n \n@@ -843,6 +851,36 @@ static int of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog)\n \treturn 0;\n }\n \n+/**\n+ * of_gpiochip_add_line - Configure all lines in a gpio-line device node\n+ * @chip:\tgpio chip to act on\n+ * @line:\tdevice node describing GPIO lines to configure\n+ *\n+ * Returns:\n+ * 0 on success, or negative errno on failure.\n+ */\n+static int of_gpiochip_add_line(struct gpio_chip *chip, struct device_node *line)\n+{\n+\tenum gpiod_flags dflags;\n+\tstruct gpio_desc *desc;\n+\tunsigned long lflags;\n+\tunsigned int i;\n+\tint ret;\n+\n+\tfor (i = 0;; i++) {\n+\t\tdesc = of_parse_own_gpio(line, chip, i, NULL, &lflags, &dflags,\n+\t\t\t\t\t false);\n+\t\tif (IS_ERR(desc))\n+\t\t\tbreak;\n+\n+\t\tret = gpiod_configure_flags(desc, NULL, lflags, dflags);\n+\t\tif (ret < 0)\n+\t\t\treturn ret;\n+\t}\n+\n+\treturn 0;\n+}\n+\n /**\n  * of_gpiochip_scan_gpios - Scan gpio-controller for gpio definitions\n  * @chip:\tgpio chip to act on\n@@ -858,14 +896,22 @@ static int of_gpiochip_scan_gpios(struct gpio_chip *chip)\n \tint ret;\n \n \tfor_each_available_child_of_node_scoped(dev_of_node(&chip->gpiodev->dev), np) {\n-\t\tif (!of_property_read_bool(np, \"gpio-hog\"))\n+\t\tif (of_property_read_bool(np, \"gpio-hog\")) {\n+\t\t\tret = of_gpiochip_add_hog(chip, np);\n+\t\t\tif (ret < 0)\n+\t\t\t\treturn ret;\n+\n+\t\t\tof_node_set_flag(np, OF_POPULATED);\n \t\t\tcontinue;\n+\t\t}\n \n-\t\tret = of_gpiochip_add_hog(chip, np);\n-\t\tif (ret < 0)\n-\t\t\treturn ret;\n+\t\tif (of_property_read_bool(np, \"gpio-line\")) {\n+\t\t\tret = of_gpiochip_add_line(chip, np);\n+\t\t\tif (ret < 0)\n+\t\t\t\treturn ret;\n \n-\t\tof_node_set_flag(np, OF_POPULATED);\n+\t\t\tof_node_set_flag(np, OF_POPULATED);\n+\t\t}\n \t}\n \n \treturn 0;\n@@ -905,14 +951,15 @@ static int of_gpio_notify(struct notifier_block *nb, unsigned long action,\n \tint ret;\n \n \t/*\n-\t * This only supports adding and removing complete gpio-hog nodes.\n-\t * Modifying an existing gpio-hog node is not supported (except for\n-\t * changing its \"status\" property, which is treated the same as\n-\t * addition/removal).\n+\t * This only supports adding and removing complete gpio-hog and\n+\t * gpio-line nodes. Modifying an existing node is not supported\n+\t * (except for changing its \"status\" property, which is treated\n+\t * the same as addition/removal).\n \t */\n \tswitch (of_reconfig_get_state_change(action, arg)) {\n \tcase OF_RECONFIG_CHANGE_ADD:\n-\t\tif (!of_property_read_bool(rd->dn, \"gpio-hog\"))\n+\t\tif (!of_property_read_bool(rd->dn, \"gpio-hog\") &&\n+\t\t    !of_property_read_bool(rd->dn, \"gpio-line\"))\n \t\t\treturn NOTIFY_DONE;\t/* not for us */\n \n \t\tif (of_node_test_and_set_flag(rd->dn, OF_POPULATED))\n@@ -922,9 +969,12 @@ static int of_gpio_notify(struct notifier_block *nb, unsigned long action,\n \t\tif (!gdev)\n \t\t\treturn NOTIFY_DONE;\t/* not for us */\n \n-\t\tret = of_gpiochip_add_hog(gpio_device_get_chip(gdev), rd->dn);\n+\t\tif (of_property_read_bool(rd->dn, \"gpio-hog\"))\n+\t\t\tret = of_gpiochip_add_hog(gpio_device_get_chip(gdev), rd->dn);\n+\t\telse\n+\t\t\tret = of_gpiochip_add_line(gpio_device_get_chip(gdev), rd->dn);\n \t\tif (ret < 0) {\n-\t\t\tpr_err(\"%s: failed to add hogs for %pOF\\n\", __func__,\n+\t\t\tpr_err(\"%s: failed to configure lines for %pOF\\n\", __func__,\n \t\t\t       rd->dn);\n \t\t\tof_node_clear_flag(rd->dn, OF_POPULATED);\n \t\t\treturn notifier_from_errno(ret);\n@@ -932,6 +982,10 @@ static int of_gpio_notify(struct notifier_block *nb, unsigned long action,\n \t\treturn NOTIFY_OK;\n \n \tcase OF_RECONFIG_CHANGE_REMOVE:\n+\t\tif (!of_property_read_bool(rd->dn, \"gpio-hog\") &&\n+\t\t    !of_property_read_bool(rd->dn, \"gpio-line\"))\n+\t\t\treturn NOTIFY_DONE;\t/* not for us */\n+\n \t\tif (!of_node_check_flag(rd->dn, OF_POPULATED))\n \t\t\treturn NOTIFY_DONE;\t/* already depopulated */\n \n@@ -939,7 +993,8 @@ static int of_gpio_notify(struct notifier_block *nb, unsigned long action,\n \t\tif (!gdev)\n \t\t\treturn NOTIFY_DONE;\t/* not for us */\n \n-\t\tof_gpiochip_remove_hog(gpio_device_get_chip(gdev), rd->dn);\n+\t\tif (of_property_read_bool(rd->dn, \"gpio-hog\"))\n+\t\t\tof_gpiochip_remove_hog(gpio_device_get_chip(gdev), rd->dn);\n \t\tof_node_clear_flag(rd->dn, OF_POPULATED);\n \t\treturn NOTIFY_OK;\n \t}\ndiff --git a/drivers/gpio/gpiolib-shared.c b/drivers/gpio/gpiolib-shared.c\nindex b3525d1f06a4..b934e58a07f0 100644\n--- a/drivers/gpio/gpiolib-shared.c\n+++ b/drivers/gpio/gpiolib-shared.c\n@@ -147,10 +147,11 @@ static bool gpio_shared_of_node_ignore(struct device_node *node)\n \t\treturn true;\n \n \t/*\n-\t * GPIO hogs have a \"gpios\" property which is not a phandle and can't\n-\t * possibly refer to a shared GPIO.\n+\t * GPIO hog and gpio-line nodes have a \"gpios\" property which is not a\n+\t * phandle and can't possibly refer to a shared GPIO.\n \t */\n-\tif (of_property_present(node, \"gpio-hog\"))\n+\tif (of_property_present(node, \"gpio-hog\") ||\n+\t    of_property_present(node, \"gpio-line\"))\n \t\treturn true;\n \n \treturn false;\ndiff --git a/drivers/of/property.c b/drivers/of/property.c\nindex 50d95d512bf5..7689c4315115 100644\n--- a/drivers/of/property.c\n+++ b/drivers/of/property.c\n@@ -1435,10 +1435,11 @@ static struct device_node *parse_gpio_compat(struct device_node *np,\n \t\treturn NULL;\n \n \t/*\n-\t * Ignore node with gpio-hog property since its gpios are all provided\n-\t * by its parent.\n+\t * Ignore nodes with gpio-hog and gpio-line properties since their gpios\n+\t * are all provided by their parent.\n \t */\n-\tif (of_property_read_bool(np, \"gpio-hog\"))\n+\tif (of_property_read_bool(np, \"gpio-hog\") ||\n+\t    of_property_read_bool(np, \"gpio-line\"))\n \t\treturn NULL;\n \n \tif (of_parse_phandle_with_args(np, prop_name, \"#gpio-cells\", index,\ndiff --git a/scripts/dtc/checks.c b/scripts/dtc/checks.c\nindex 45d0213f3bf3..ee64cb4ada4f 100644\n--- a/scripts/dtc/checks.c\n+++ b/scripts/dtc/checks.c\n@@ -1533,8 +1533,8 @@ static void check_gpios_property(struct check *c,\n {\n \tstruct property *prop;\n \n-\t/* Skip GPIO hog nodes which have 'gpios' property */\n-\tif (get_property(node, \"gpio-hog\"))\n+\t/* Skip gpio-hog and gpio-line nodes which have 'gpios' property */\n+\tif (get_property(node, \"gpio-hog\") || get_property(node, \"gpio-line\"))\n \t\treturn;\n \n \tfor_each_property(node, prop) {\n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}