From patchwork Tue Sep 28 17:09:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12523281 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22147C433F5 for ; Tue, 28 Sep 2021 17:11:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E969A60FC2 for ; Tue, 28 Sep 2021 17:11:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E969A60FC2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ecfsWxj+gblCKoVW9UfAs04cHZ56RmZjWJ2b9KqELNY=; b=W3LO+DoICzdG0x aQz1JJbqhrQyA/QbbbHrz5CFD0G27EPywSTGfCots4Nn9bpY8WntHOBZHK18+UJgINrp/sIoU03zV KcoaJlCC1GwxuX97tOjsLdqtIxANHX1HnIKTbcQGm30SAMfDEDusrbLXHYEkoxK/f62RA/zb867U3 z6+BLCY0HbbzguJlsoMML3nF84IGFhj/Ggof8TIK9o/OeeJ5IwfZtVmiNa/GIrlHWJ8ty0ftkLCJP ji/q/t4nk6InlHGyL5WbgtiOlyT1tlm+3FCfxR8ZhFN45DzQHOgzSIcpOsmneNl6bsM3HE93DBOkz 9NgPicp/yAyQBhn55L1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVGbs-008A15-30; Tue, 28 Sep 2021 17:09:40 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVGbf-0089yP-Kd for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 17:09:28 +0000 Received: by mail-ed1-x52a.google.com with SMTP id ba1so28004674edb.4 for ; Tue, 28 Sep 2021 10:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MOkJiFFV+D+y/7iBdkppsbCFqP93nQiAS8IIYiy8lX0=; b=ysvN9ddniGUrClxsHS1LmwTVKXK56UiClKP4e5jte2z5dCv8tP/UkjV/c5OKQ1MauZ pPHhaIy8s2Ibs48CgwbBd6rZ547y3UdXlN3nM4+NMJoV6x+RCL7idHdno0ZmJBEvRveV nX43+4/VG0ryjwCxCIAolz1nTByixXYUcyleuu+2+PLZ1Ac9f16c3bAVGrsRqpr2NVoB c+QluS9RmGAhORtml9T+tiZgmTbQ9en4me1UHsQvEUwuwhK51yM28LM9pT0zF5aSXf60 KKRDljNVePGmWvfDDzC4BJlK/1LszqLQsLIcOex+i9UqM/p+4g80u/mas6C5S+G6D6Qo yDrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MOkJiFFV+D+y/7iBdkppsbCFqP93nQiAS8IIYiy8lX0=; b=BP7wyZqgSO8jd+6POSS4Id98n8Bfk3zg/Q60eOgmZ2dkU06nHKEZU91O9Kb+yzedjU rXzvH02Fn0VPmHr3azxonyWgKGS4VPJT0+Heez4z7KPmeaZKc3IDqrkiIuc3OQoG+rH2 eOZQmlC9HnLNlFSnmcIQCc0hnOulFJlEwc3HPXbYQrGBPbwg5d2eieZaR91avCV3qRbT EihCOWiZNX2T1+97dmvV9F5blSkr0+Mpx20eE4RmAjxCnrNb/IkGjyflB4KHSRZKI4Zz qvke5CNX9kW73blK9/VRyYoTK2KnshLXuYdSCe1wGh5s/JEFC37TN09UEAhF7AIFwsSS Bkrw== X-Gm-Message-State: AOAM533gGgMMuITAh3I3p3oibtCL4+mgPOSp7Pq/tgVADhwoVrlUQpc/ MyZmeqCyWRwSp4NZPocqDA4x1A== X-Google-Smtp-Source: ABdhPJz4Y72BDlbKQ4LAeyOESF53Jg+2BscvxE5OZUe993IRCBuexeXHB/U7OXkgMxMULZYLv6F8qg== X-Received: by 2002:a17:906:c7d0:: with SMTP id dc16mr8158507ejb.555.1632848965759; Tue, 28 Sep 2021 10:09:25 -0700 (PDT) Received: from fedora.. (cpezg-94-253-144-231-cbl.xnet.hr. [94.253.144.231]) by smtp.googlemail.com with ESMTPSA id bj21sm10806129ejb.42.2021.09.28.10.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 10:09:25 -0700 (PDT) From: Robert Marko To: andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pali@kernel.org Cc: Robert Marko Subject: [PATCH v3 2/3] arm64: dts: marvell: espressobin-ultra: add PHY and switch reset pins Date: Tue, 28 Sep 2021 19:09:18 +0200 Message-Id: <20210928170919.691845-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210928170919.691845-1-robert.marko@sartura.hr> References: <20210928170919.691845-1-robert.marko@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_100927_690821_A086CF35 X-CRM114-Status: GOOD ( 12.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Both the Topaz switch and 88E1512 PHY have their reset and interrupts connected to the SoC. So, define the Topaz and 88E1512 reset pins in the DTS. Defining the interrupt pins wont work as both the 88E1512 and the Topaz switch uses active LOW IRQ signals but the A37xx GPIO controller only supports edge triggers. 88E1512 would require special setup anyway as its INT pin is shared with the LED2 and you first need to configure it as INT. Signed-off-by: Robert Marko Reviewed-by: Andrew Lunn --- arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts index 610ff6f385c7..7c786d218f1b 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts @@ -114,12 +114,16 @@ &usb3 { &mdio { extphy: ethernet-phy@1 { reg = <1>; + + reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>; }; }; &switch0 { reg = <3>; + reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>; + ports { switch0port1: port@1 { reg = <1>;