From patchwork Sat Jun 15 10:43:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10997091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F75E1395 for ; Sat, 15 Jun 2019 10:44:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E3F5287A6 for ; Sat, 15 Jun 2019 10:44:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0105F287A9; Sat, 15 Jun 2019 10:44:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7BE04287A6 for ; Sat, 15 Jun 2019 10:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=06FuSpVe7ANP8gD4dMBGUtPkfCB1dSpeMnJlcetUU8g=; b=IntSaPvFKTbPaN jRl9UQKfgXAaXKB74g2VSaWlG13WfFzGdmEmAYsQ8GNdsTbM0tXFsq2e8QHToEKraK4REccsPOg1P 3cKjX9vuNdcZ0/scuWBkBPI4hPtMk91QgkRfLPkvSA7PFSG461AVjSpRfwBm95mTfUKkk0qkvcEbp FawV7MT0RJ+F+vmtJZxn9ser8eKdh+zFZCsbZC6A5+BGL8IXSw0L1n/nmUPQQbHue5gj/gp1BD4h2 kOMfxalxWpBEEHGh67BqyQ2oTgisabNdO1DzGKyYxuP15b9lQHvjaByIDgn53kRug4YX1sL8OkDOU 3r1RCzAVD6P40oIxhDJQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hc6AU-00036H-WD; Sat, 15 Jun 2019 10:44:19 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hc6AH-0002rl-Dp; Sat, 15 Jun 2019 10:44:06 +0000 Received: by mail-wr1-x444.google.com with SMTP id x17so5007128wrl.9; Sat, 15 Jun 2019 03:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6zdNw3j26hIKq9Pkw7umZ9fm4rrocSNYRpSOLSmy3DE=; b=R0yBQos50xrtqq39b46j5ApodBRZ1gOp0Na7tJgbgmkwJUPpA/J2uXAOXt0TRyVxPd Xa9ZjBRz5vYE5JbPzrAY4P+zr1US9qbBCKPsC+8hWiHsTz+RIKKhW8JsI22KF8Lgm1xK A+Z8fcPsVWRq9/rp6nh64m+N9KmAWLVDLrSfTh84k2MqAe1vllIKrQMVF9cXaYsxDEXc jtd//zYqRKREXCa3jzGFK2LZzufmOE9xq8NSU9SXiBO8fpEkjMbtTfw9l4GwHQKdsq0t q8D4WZNMtc/kgZmcXMBkWCLcfv4cngx7UVh8MoNsh2uqNBH8QTsejWy2qeT+K1D+yP+v P0wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6zdNw3j26hIKq9Pkw7umZ9fm4rrocSNYRpSOLSmy3DE=; b=lxAGC15qHYjJrakwjftXzWpf1n0xaqA2RxRCVzIDLYpQ2kEueoGLvxGEFnMCumh3MN 3WKd/o0O1dt4MbBi2UWq/gk01W18c5cIen1NPbXOwwzt9Fc29F5MhOtiMlcNp7KDeYqc eV1z2i/C0m26+HdP+VS7Wm/6GNEMXEY1PWUtCX2bUkdd9p8+Kq71e3tnT9bbYwYNrjwf 0sciHBeWhLanGmRqzLyaLf+YfEIBJpSe7NxJn59GwoGY8+SpEki/lJUQ+KTuwYJuOmi9 fz3HRETSp9R5eP8fO+y1iJhdEt6RoHmBV8E/0tCX+pjuCUrgn+1PecwxGQrM+hJVSAr7 ztuQ== X-Gm-Message-State: APjAAAVZG/8fR8sOaT0miWjtG+zX1IHDOlx4UcNDnqTieNA6zQydnmMj PrTqQFcZCM/BsrjjLcMVdio7XvaapC4= X-Google-Smtp-Source: APXvYqx5Cjb4em34zJEgLyQgg3ezxWmywZodf6qeyk0GQ79btKvMPPOP3Lybn8sH7D3sDJWK2rdbfQ== X-Received: by 2002:adf:e2cb:: with SMTP id d11mr59054829wrj.66.1560595443825; Sat, 15 Jun 2019 03:44:03 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C20E00A9A405DFDBBC0790.dip0.t-ipconnect.de. [2003:f1:33c2:e00:a9a4:5df:dbbc:790]) by smtp.googlemail.com with ESMTPSA id l12sm16761120wrb.81.2019.06.15.03.44.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 15 Jun 2019 03:44:03 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH v2 1/2] arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY interrupt line Date: Sat, 15 Jun 2019 12:43:50 +0200 Message-Id: <20190615104351.6844-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190615104351.6844-1-martin.blumenstingl@googlemail.com> References: <20190615104351.6844-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190615_034405_459186_85C9E9CD X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, narmstrong@baylibre.com Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The interrupt line of the RTL8211F PHY is routed to the GPIOZ_14 pad. Describe this in the device tree so the PHY framework doesn't have to poll the PHY status. Acked-by: Neil Armstrong Tested-by: Neil Armstrong Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts index 82b42c073c5e..81780ffcc7f0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -254,6 +254,10 @@ reset-assert-us = <10000>; reset-deassert-us = <30000>; reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + + interrupt-parent = <&gpio_intc>; + /* MAC_INTR on GPIOZ_14 */ + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; }; }; From patchwork Sat Jun 15 10:43:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10997095 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B98C14DB for ; Sat, 15 Jun 2019 10:44:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47E0E287A6 for ; Sat, 15 Jun 2019 10:44:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3929B287A9; Sat, 15 Jun 2019 10:44:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DFB2287A6 for ; Sat, 15 Jun 2019 10:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZGISZmlIOiRTfW3ikftHIa2NTRpMnDm+PMBYk3PATzc=; b=T1LGcFoUy7Aqj7 kt5k5PZqCM2HnnMVmlQyfmsg41d8GCLtpEl83SEOie4/bYGsDAGf3v4g6E+4LyvPDBrnePTzF7mY4 yjhlc8W07AfOrO5kpkrgh6RgkG5727sohmeuGPsutWc1B+mUTCc+NAXWJ+o75jFXFTotu7ANHTomZ 2yDJe950jTCy7grWoio11ITVVpTP9SI6lArKdsgETefnrC7SRFWzE70inXld04PKkAc19AVNg7V7V U5VXccGRl/yd/dTB1LAkIJNajZ713UEk19yERP+jB7Gf2GFC/NrRst4gcy1x5OV4i26eUDV3L1abJ 5J4HTZCANefiYq1LnA3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hc6Ai-0003MH-Iy; Sat, 15 Jun 2019 10:44:32 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hc6AI-0002sA-Hh; Sat, 15 Jun 2019 10:44:07 +0000 Received: by mail-wm1-x344.google.com with SMTP id a15so4743704wmj.5; Sat, 15 Jun 2019 03:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MlMxB1kkxmHmQmoUfndP7WEc3kmIml+FN9RGpOVU2A0=; b=PQ/BYi21UH6+Ssb5iH96mB8o+aNRXd2tJIOFhAfqxaQaYYiU2uI4IH2xGHAzu744l4 C6tiY3gWFvycZKcoP0Jj8TM1Vponm6Oi+0j7JuG/7glC8uispNWXMWrz6gY30sw330g1 iJ79DFPCtg7GmMhDoXdu5DGQFFMI9QismZbp0YrrTBhdrg3bKYjU5JLZryx85OWIjeUy h52lhJDAUqv5Xoy3yTBalyYnUVXJHq8s5TYQlhjJjlUrPXiSJb9gaWH9lE47TAdZu2/O TrqsQYUmolj/RCdi1/7zC1brF+7luIJyPkGaP9kgLVhSjl8Fq7ObHTk5jaw2jW81FMov aV/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MlMxB1kkxmHmQmoUfndP7WEc3kmIml+FN9RGpOVU2A0=; b=iT0ZG705D0N+JMekQX5L2dsONDR8A7KlSHYv9Ix9Q++5HoXubmm6fEM7AG8fLjVpVb xoTomz9JPbL6Pypz/+YPiU0VKVKItGZPhcc1LnmWOTbykiD0DeKBVjVg52n945OElNe0 qjFMoPDWDOzhfGlKXbkWeXBiy5qm9xBP9ujoU4tJiN7Hctdf6BY87fOYvQhrwmwXfQID +2b18BLQjGKDCH9XSme21/RY1zWUHodn6jb5ZBC8mxD1IBJXbcKU3pKyyuRPwtf40YLU V6YwwRnTjRtRRFjdKqPu5eATzGE33QNNseYtE18M+H1vWh61x/LrSEAyAuInyRGFFOIf wDBg== X-Gm-Message-State: APjAAAX6siWZ9QrITIL/Hg4eMIMxyKT5x1F4gfkEzOJPY72OzBxrAla4 Ikbv5/KrJuGjRlwiONSmoSHGne9fwNQ= X-Google-Smtp-Source: APXvYqx6+Vnz65TOT8l4fd6YCoiZukdBu/ZU2e8kjlDhqiLJ6xa/48ufal7xACP07XTDnGHc15LVYQ== X-Received: by 2002:a1c:7217:: with SMTP id n23mr11435578wmc.47.1560595444894; Sat, 15 Jun 2019 03:44:04 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C20E00A9A405DFDBBC0790.dip0.t-ipconnect.de. [2003:f1:33c2:e00:a9a4:5df:dbbc:790]) by smtp.googlemail.com with ESMTPSA id l12sm16761120wrb.81.2019.06.15.03.44.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 15 Jun 2019 03:44:04 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH v2 2/2] arm64: dts: meson: g12a: x96-max: add the Ethernet PHY interrupt line Date: Sat, 15 Jun 2019 12:43:51 +0200 Message-Id: <20190615104351.6844-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190615104351.6844-1-martin.blumenstingl@googlemail.com> References: <20190615104351.6844-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190615_034406_581395_C6F3ADBB X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, narmstrong@baylibre.com Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP X96 Max has the PHY reset and interrupt lines are identical to the Odroid-N2: - GPIOZ_14 is the interrupt on X96 Max - GPIOZ_15 is the reset line on X96 Max Add GPIOZ_14 as PHY interrupt line on the X96 Max so we don't have to poll for the PHY status. Suggested-by: Neil Armstrong Acked-by: Neil Armstrong Tested-by: Neil Armstrong Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts index 3f9385553132..fe4013cca876 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts @@ -289,6 +289,10 @@ reset-assert-us = <10000>; reset-deassert-us = <30000>; reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + + interrupt-parent = <&gpio_intc>; + /* MAC_INTR on GPIOZ_14 */ + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; }; };