{"id":804772,"url":"http://patchwork.ozlabs.org/api/1.2/patches/804772/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/b3756346473feadfeba70ecb71960cad48e66621.1503468660.git.baruch@tkos.co.il/","project":{"id":37,"url":"http://patchwork.ozlabs.org/api/1.2/projects/37/?format=json","name":"Devicetree Bindings","link_name":"devicetree-bindings","list_id":"devicetree.vger.kernel.org","list_email":"devicetree@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<b3756346473feadfeba70ecb71960cad48e66621.1503468660.git.baruch@tkos.co.il>","list_archive_url":null,"date":"2017-08-23T06:11:00","name":"dt-binding: net/phy: fix interrupts description","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"5973265fa0c88cf0da9291f3de3e3deaf415b075","submitter":{"id":1458,"url":"http://patchwork.ozlabs.org/api/1.2/people/1458/?format=json","name":"Baruch Siach","email":"baruch@tkos.co.il"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/b3756346473feadfeba70ecb71960cad48e66621.1503468660.git.baruch@tkos.co.il/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/804772/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/804772/checks/","tags":{},"related":[],"headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@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=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xccW90MTPz9t0j\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 16:11:16 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753291AbdHWGLP (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tWed, 23 Aug 2017 02:11:15 -0400","from guitar.tcltek.co.il ([192.115.133.116]:46613 \"EHLO\n\tmx.tkos.co.il\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752291AbdHWGLP (ORCPT <rfc822;devicetree@vger.kernel.org>);\n\tWed, 23 Aug 2017 02:11:15 -0400","from sapphire.tkos.co.il (unknown [10.0.4.3])\n\tby mx.tkos.co.il (Postfix) with ESMTPA id 31DF3440532;\n\tWed, 23 Aug 2017 09:11:11 +0300 (IDT)"],"From":"Baruch Siach <baruch@tkos.co.il>","To":"Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>,\n\t\"David S . Miller\" <davem@davemloft.net>","Cc":"devicetree@vger.kernel.org, netdev@vger.kernel.org,\n\tBaruch Siach <baruch@tkos.co.il>","Subject":"[PATCH] dt-binding: net/phy: fix interrupts description","Date":"Wed, 23 Aug 2017 09:11:00 +0300","Message-Id":"<b3756346473feadfeba70ecb71960cad48e66621.1503468660.git.baruch@tkos.co.il>","X-Mailer":"git-send-email 2.14.1","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"},"content":"Commit b053dc5a722ea (powerpc: Refactor device tree binding) split the\nEthernet PHY binding documentation out of the big booting-without-of.txt\nfile, leaving a dangling reference to \"section 2\" in the 'interrupts'\nproperty description. Drop that reference, and make the description look\nmore like the rest.\n\nWhile at it, make the example interrupt-parent phandle look more like a\nreal world phandle, and use an IRQ_TYPE_ macro for the 'interrupts'\ntype.\n\nSigned-off-by: Baruch Siach <baruch@tkos.co.il>\n---\n Documentation/devicetree/bindings/net/phy.txt | 10 +++-------\n 1 file changed, 3 insertions(+), 7 deletions(-)","diff":"diff --git a/Documentation/devicetree/bindings/net/phy.txt b/Documentation/devicetree/bindings/net/phy.txt\nindex b55857696fc3..86ba72af6163 100644\n--- a/Documentation/devicetree/bindings/net/phy.txt\n+++ b/Documentation/devicetree/bindings/net/phy.txt\n@@ -2,11 +2,7 @@ PHY nodes\n \n Required properties:\n \n- - interrupts : <a b> where a is the interrupt number and b is a\n-   field that represents an encoding of the sense and level\n-   information for the interrupt.  This should be encoded based on\n-   the information in section 2) depending on the type of interrupt\n-   controller you have.\n+ - interrupts : interrupt specifier for the sole interrupt.\n  - interrupt-parent : the phandle for the interrupt controller that\n    services interrupts for this device.\n  - reg : The ID number for the phy, usually a small integer\n@@ -56,7 +52,7 @@ Example:\n \n ethernet-phy@0 {\n \tcompatible = \"ethernet-phy-id0141.0e90\", \"ethernet-phy-ieee802.3-c22\";\n-\tinterrupt-parent = <40000>;\n-\tinterrupts = <35 1>;\n+\tinterrupt-parent = <&PIC>;\n+\tinterrupts = <35 IRQ_TYPE_EDGE_RISING>;\n \treg = <0>;\n };\n","prefixes":[]}