From patchwork Mon Jun 10 16:45:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10985179 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 85F7214E5 for ; Mon, 10 Jun 2019 16:45:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 737F52857D for ; Mon, 10 Jun 2019 16:45:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66F6728630; Mon, 10 Jun 2019 16:45:58 +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 1E3FF2857D for ; Mon, 10 Jun 2019 16:45:58 +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=rW7AEhkeNxQuxDk/vY4N3wmLwGorzh4gZ3xp19Q6r+M=; b=Uw/+CHVT22gsHX rTpJ+M6Iyipiyk8/RmJYiFq2S7saGhgPlk+eL6878+Iq0PqLhfvjFAFbvb/3v2ut8FLucDJ17jctA 1GAxw8qd/seDFKpY2Mb7HLNjmZYSKFJOqKwt84ZJQ2CdT4Y3UIVHD28XItiQqNOCP0BOnUDmCpO8a Fpx69S0gUmMKJ8cxOoyvBs6riUbvutD9vh4nKXJBsTfzmT0b2ZcKpZo8DZHlXWyaQQXL83hcBdIeP LUqMVajFXPgzivafl25vHsOur9TRDP7BOLe78mY+yC0rzbDW5YqvpbGvjCvt9G9K1oVQzjW69Fxz/ 5glDwdvy2nUSm/Lvtqqg==; 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 1haNQj-0003om-Sy; Mon, 10 Jun 2019 16:45:57 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haNQU-0003Xk-5W; Mon, 10 Jun 2019 16:45:43 +0000 Received: by mail-wr1-x441.google.com with SMTP id c2so9884181wrm.8; Mon, 10 Jun 2019 09:45:42 -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=nahDfB+sETBKegXKfy/SodtmY1BLud+5qo+bYwVBnVw=; b=lT00zEWQBKTcIrdf1DSG77zx3wzE+5oMxUfbuyi2w9rk7Bh7REl+ToPUKJaxy4vL7z AqIWtzDYPCsA+cXDkybh0W8egNZ+BfklMhL4EMKjhXt/xATwOhBE2BHH8UQK71dGRYKR bafdZRPL3D/QHr+jqKY6gxaqmNNKdp631kykqe1agrXyqRi0epe/4jUNfLdAaz7ijFvq 8fhpgFhME9k7nOnYNU1k6bXaGECR9WsgvbdtCR3jAEaOuN17y2AfyJbTPhmd7j+4jkAf lMttQxi++m8IWT2/3EOc4N8rNDjrsh5XfUBtpQHl/G8fKQ30R+lakY5550yVloGUL+zu 5soA== 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=nahDfB+sETBKegXKfy/SodtmY1BLud+5qo+bYwVBnVw=; b=YVs9vSX7T643L50gn3VhkY7TbcNIfrFZtQ9gv+6ofWc3hOUZIoM6plXNHdL7t+wFW/ dGS3KRcf7KoDL/oM6re9xpSYHJ5/CK230S29a1b8D4+u/G3uQ/G07Rl56/fvcdZhRyzu dRpO2baClaQMfWlcweUNCa/rsOzRAspmGL5oSD4U28GFSzLMBa3On1aM8AzaQd2lSFYR LZkt9FMg8DuSv601POwL95MQ1Y+xcny2ZcVLx9iziJLtUFlJQHvmpEeYalo6l2ONcb+W obYT8ShLkg/3bmzDIVD6HAUrgj9Ggv5peCuY2L1R3GOH26UVMbxBD+j+YoRgZj3dGGw9 ggOg== X-Gm-Message-State: APjAAAWnylYrK4JN2BLjaoBbxpUeldSXMvqG076GHUOHi/kyYSSuA84z POTbCf3ClVvvWmKTDtVw7NI3vB6k X-Google-Smtp-Source: APXvYqx0x0tmbODDCfYeLJWzIheIC7aPsNOI9HSuYlsJi+GMqfDcrpthcsLlQSlsn/njQXUotdTv4w== X-Received: by 2002:adf:f041:: with SMTP id t1mr1446704wro.74.1560185140616; Mon, 10 Jun 2019 09:45:40 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133DDA40000C4C39937FBD289.dip0.t-ipconnect.de. [2003:f1:33dd:a400:c4:c399:37fb:d289]) by smtp.googlemail.com with ESMTPSA id g17sm11441158wrm.7.2019.06.10.09.45.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 09:45:40 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 1/2] arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY interrupt line Date: Mon, 10 Jun 2019 18:45:30 +0200 Message-Id: <20190610164531.8303-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190610164531.8303-1-martin.blumenstingl@googlemail.com> References: <20190610164531.8303-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-20190610_094542_204785_22160F90 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. 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 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. Signed-off-by: Martin Blumenstingl Acked-by: Neil Armstrong Tested-by: Neil Armstrong --- 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 0d9ec45b8059..8c9535880007 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -190,6 +190,10 @@ reset-assert-us = <10000>; reset-deassert-us = <10000>; 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 Mon Jun 10 16:45:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10985183 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 4680614E5 for ; Mon, 10 Jun 2019 16:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32B422857D for ; Mon, 10 Jun 2019 16:46:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 243D72864B; Mon, 10 Jun 2019 16:46:18 +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 C72582857D for ; Mon, 10 Jun 2019 16:46:17 +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=qjBuKt0CuOZT4PdX2J1Re+KEMSGvD57oWSrXz6McDeg=; b=J228EDP4CU1Tx2 QBpulO4kFkfef6Ur5HHkFD4W6G1By85e5sXXb1B85sckv5hRrgOo7Dpy7G8/wWIFRZBL73m9/70sl RmI9yEU+tZ5Vm2zhgyl82bXjVrOwk99Ii8m2/Pg2O7nur3/pQkt2xLKwDRy7BMZ2ddjvZdLp2Lupq uY4GicC5et8ob7ioeFwy3QvdDEZFHS0lcA/XAw7B53kx6gm/LBGIV6+LoURkS4V4QK8DESJDy96JL jrFG+sc7hJsW5upArMxS/YlCJLN4XAfhkRxk8sHBpnc/X/T7DWRIUHvBF24fXYmh8cfOrPLfi39Fp hVgiJqAQQZWO0y00TRYA==; 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 1haNR3-0004Cl-An; Mon, 10 Jun 2019 16:46:17 +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 1haNQV-0003Yq-5o; Mon, 10 Jun 2019 16:45:44 +0000 Received: by mail-wm1-x344.google.com with SMTP id w9so6401wmd.1; Mon, 10 Jun 2019 09:45:42 -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=4TRyxaZQqHMNp0VVnMd4WRE8MXewDkxrqm+3YLYJjv8=; b=U0Lfv6xXQYdjJ9AgDOt86SKfYMLsJQiyA5CZzXpWlUfZsOebroGH3J2iwGCoBlZogl JsITdGn/8hrBGCJ3m/gl2mtfQp6Q48lSxvMQHvMLw/bT7lfWKwtuOfK31psyKoFErMA+ s7SWvkgEh8SjNUaOAzjjQPN2LtMweF5XGdbjkD/2oFbbVTBHVSGJySbObwimxsSDu4Uq lNHR3t1+RJLtvpJLvb2pUeDyOrLD4M5CSwRqmNEk8TzGUNHMNizbb48Qxb0zt7hUwar5 aq1M3q8xmXjK+SzHcSlTm57EOdtjj0+qM/seZQr6JAd55HCdoWd2rSpjHlC9FhrsJGFS 0xVA== 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=4TRyxaZQqHMNp0VVnMd4WRE8MXewDkxrqm+3YLYJjv8=; b=fmnjNxcCYGTybOshslMjjuNlumHLSaSE58DmAkUFYBPZ5rE6zuS5FsR25789FTmpdm lIe/RLx3RAtbLB3x1Qsu7sRdbpzYsLxTvYl1MjO+C9E046hSTogqYMa0BNSaVCNs2Zq3 9z92ES9lSqUQnapNHRXPEugutX4bJ+fwLhWiaVsEEb9FvzviMM+XiQd9cXR5pczVaHxe ZRLUcSbNnAGjiSle0MANpMOs5ByNF5RPIP+VGarGbcI4b+9vjQNoj3pfVcVJRmsU5/fp dNs2AypyStXm7nxiK2G+pwe3mCWCybfIUfO6mSA9doilOp9tsedUf15XRDWwguvAsy9K g4TQ== X-Gm-Message-State: APjAAAV3nGU9frRBkcaXrjJuurVRM+DOpFThaXGsZmqNLoQUGp35HpPk YoO6pNKnvB8d8YIVPZcYeqnpl7Zm X-Google-Smtp-Source: APXvYqxwFt6ucPkTrpCTORtB7RuLEUEPbP7g2R5tiuGO9jw9qHOMEFz8FvX1gbPD3Iij4Xz4lXedRw== X-Received: by 2002:a1c:f21a:: with SMTP id s26mr13887680wmc.163.1560185141527; Mon, 10 Jun 2019 09:45:41 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133DDA40000C4C39937FBD289.dip0.t-ipconnect.de. [2003:f1:33dd:a400:c4:c399:37fb:d289]) by smtp.googlemail.com with ESMTPSA id g17sm11441158wrm.7.2019.06.10.09.45.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 09:45:41 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 2/2] arm64: dts: meson: g12a: x96-max: add the Ethernet PHY interrupt line Date: Mon, 10 Jun 2019 18:45:31 +0200 Message-Id: <20190610164531.8303-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190610164531.8303-1-martin.blumenstingl@googlemail.com> References: <20190610164531.8303-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-20190610_094543_211611_FC397C9D X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. 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, Neil Armstrong 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 Signed-off-by: Martin Blumenstingl Acked-by: Neil Armstrong Tested-by: Neil Armstrong --- 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 24956edaf8e2..e3f3f37d3081 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts @@ -180,6 +180,10 @@ reset-assert-us = <10000>; reset-deassert-us = <10000>; 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>; }; };