get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196436,
    "url": "http://patchwork.ozlabs.org/api/patches/2196436/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260213223204.2415507-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": "<20260213223204.2415507-1-james.hilliard1@gmail.com>",
    "list_archive_url": null,
    "date": "2026-02-13T22:32:01",
    "name": "[1/2] 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/20260213223204.2415507-1-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/2196436/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196436/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-31675-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=AiuyVlEu;\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-31675-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=\"AiuyVlEu\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.167.181",
            "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fCRkS4LYtz1xr1\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 09:32:32 +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 E95EB303A25E\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 22:32:27 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 2EF58315D37;\n\tFri, 13 Feb 2026 22:32:26 +0000 (UTC)",
            "from mail-oi1-f181.google.com (mail-oi1-f181.google.com\n [209.85.167.181])\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 83FFE23BD1B\n\tfor <linux-gpio@vger.kernel.org>; Fri, 13 Feb 2026 22:32:24 +0000 (UTC)",
            "by mail-oi1-f181.google.com with SMTP id\n 5614622812f47-463a0e14b4dso313550b6e.0\n        for <linux-gpio@vger.kernel.org>;\n Fri, 13 Feb 2026 14:32:24 -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.22\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Fri, 13 Feb 2026 14:32:22 -0800 (PST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771021946; cv=none;\n b=bbJLFLU/NXi6m0Z5FQNGx4lQ8oLdcrHGoloFakfg/LEmllEQ6470PU5MpSAvkqiSP24lLvwzg1JaoSEp1so4FAQVOcpnMfcD/VCDKkimuqbxl7iyOzWsea3Goym6f2FbSMB6rMd1mbrPnej/WkJlGwe0d9XMXAl4QvYlFiXeb9s=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771021946; c=relaxed/simple;\n\tbh=QigO5K717byThetaj38bgtz6YLQk9cOFBuv9dpMoPGY=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=rq4Q4H0LBbEItRojQ7YHyQGyQ47sPIKMIxkTuOcdCF7GMqZmDm2//cH23E60d6KygE8GhBBQJfjNTmhb48JC9PwTxdL+Py34l3DT6+jBAHnLJHLMjknQkvVt9cCPxHvn0dznybEPa94sTV4QCKHHlh1BbjROdOKf/hPZ//T+nB8=",
        "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=AiuyVlEu; arc=none smtp.client-ip=209.85.167.181",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20230601; t=1771021943; x=1771626743;\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=gwOZ+fMN1u7ZAD04Sc+WiPH2zobZhFlc/QjDODp9/tM=;\n        b=AiuyVlEuNZb3GiAPIk9VqQG+7eReq3GRfpgpb0R71hs+3W/keIgxp6ulrtM8ccvoHq\n         FRMf/kG6b2UhV4ER4tCrTfLdwNT3RH6rQGtyFRoGepztXwKksybNcPvOui6lx0eCACaQ\n         2+SUm7wG27a/1Q+E63RX/5YPENPYZ4fETM09nd/dc3KbpfDGLgJoQ2qTx57UpvuMVOGW\n         u3vmb5ud/gr/G9/vm5KSIC0f6qZI39cFz8bLpZEIH6wrYU5N95xsJ8TLcgVKgxLXaSop\n         L0dNJJBnA1Ivbc2Cub3a1CQWO1q9Eg3DXT1CcmAGnbItzWQvmKsOHDyKWWoXEhuTO6Hb\n         Aj8w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1771021943; x=1771626743;\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=gwOZ+fMN1u7ZAD04Sc+WiPH2zobZhFlc/QjDODp9/tM=;\n        b=TA1MXQVxb2+vMfD8+gf+uarkE+fNHeyJ0zYOQl0+b6eMeuZ8Io30+9Ban7i0PUQfC5\n         7fGaqiiuzgaqW2z0EHFTs5hmjFlFC55AahD0xnLOHrLXQodmbcDpvh7UybV+W34PfLIX\n         2UmRFw3aD1wpp48gTgza8VcvreNihH056MOldPdSd20ZbwVj7nLz7Mos/MAzq7Db2OLh\n         EulJ2f5jqNbnDnd2zM3Jwfm1FBKFQVRYekdmFOB8Vs3u/apCQmKbL2HPc1akBCyHU4Cl\n         gslPOCLh4fNqeuFn9ixrVOLGE4LHKh6hIHGpoME8yyKAYL1fBdY/t5XC6qFULe0VV6OO\n         Fpvg==",
        "X-Gm-Message-State": "AOJu0YysXgIGsT+LAdhBt+8D1b0afdxwq+IXQGoctd+QyHSq+kvgBfxq\n\tYStNNBK3UAI3itL6Tk+ziqYLCvKUW6cuCy0aB2q9EHEA0tAgbt7Iaoo/CBLkIg==",
        "X-Gm-Gg": "AZuq6aIh1c+XgZa/88vV4YEs5bZXUBj+HjwEayyLMkc6Li6UFVfxUvb20cNxIqabSNQ\n\tUrLjohR3BKtmGbmk5o+IQB5WmAZQ7yNgmRPFlMclTpKSFdG6s3QeRGGYU504Iw4OR2nPJN1mEgD\n\tcY2zd2lyyg6wmlpbxqWqTkeQIeyUaJhoo3hlU7xMnIYE0f6PafrxbeRVZaCot9SHp7QQQFJEcES\n\toSWVl4Dv++iV1+JJNYTKTCrUuy70LlWsSzbWQLJ2dz1dUKwOGcvJjSUsbAC1i596r6MrTNdn2w7\n\tyywyoRfMIc6McIKeAnF47lmrHpLQtq4P3ECJJrOVIynhEBY3XF+p1ajevKE27Q/NylOc34Cg1YV\n\tVIEfbUMe9NMHNrsKKt0GG5FKYynbC2p1KsI+sTVABbRvcaXEdiMYp/VtDzimvHvMEwjTomkOkSL\n\tlrtyESOdJZlEofTIM17TyYRsc+Fi0XYm/hWMkwfJO3VMJssmyMoDV/L8xgTkT1S4wzmxORtxs/O\n\t/hSHR//zVUf6bqs7VgbN3VdzeNMyPu8WPQlcNDtSpZsWqoJ1kMndZUtjrhU3v0=",
        "X-Received": "by 2002:a05:6808:4fcd:b0:463:8a49:ca7a with SMTP id\n 5614622812f47-4639f245eedmr1381171b6e.52.1771021943296;\n        Fri, 13 Feb 2026 14:32:23 -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 1/2] gpiolib: of: add gpio-line node support",
        "Date": "Fri, 13 Feb 2026 15:32:01 -0700",
        "Message-ID": "<20260213223204.2415507-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---\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": [
        "1/2"
    ]
}