Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp246325iob; Mon, 2 May 2022 18:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbXW7futigyLN3UhVqmGWf1LUGvP4vu7DBjLtdhPaLsZFYiNIlkJ3WhE3FjB/3tB/VB5l9 X-Received: by 2002:a63:28f:0:b0:3aa:8453:c362 with SMTP id 137-20020a63028f000000b003aa8453c362mr11843571pgc.506.1651541078866; Mon, 02 May 2022 18:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651541078; cv=none; d=google.com; s=arc-20160816; b=NFu6ZmpXwZEoQKsjtfulLLRKWUrYkgM4kyKjXZIrsG2YpJ6lq+Z25DmrpADVrYkkfO 06yMO+Qbw7n0nzUznRVQtkFhobT+eNcFyww04BRbE+wBA8gjbb0ShxWsAnvvvCNwm+i0 VPCA0eB+WJLI11nv8LmDAvqYYeVGrss43u+kRPtdCDK1/fMGznWaKj9G30IchgpebVpu 8PGbVhtHHQYwN1EGfcyLU84373i+xBNNPKZ3sg2AlVIeo1WelJBZ3DLerQGjWYEBeMtT 7TzTbasCK06VSIJMWTlRXYmdnJKMTHszPw4qPPvuCj6TihFC6flGtwrDt2zqsl4kgKJD 2wiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WDeyz0LlR3w2vrF+SQ8eLPVhnHyoFLscpmzHcNbmj34=; b=waP2+aoNQgR341PDrrEKalt03xJXTGJ2pe1RqNgbNqiLeh5HJTXGprcHoj9xS2R98z f3pxS0t+mYcnZjWyGKIDnVPsVnK/OEwgnOM/o4FOSSsI2fpo7jt3ky/O7S2UDQlt2r/y kbsHT06NgW0mntXFD17A69cienuYtZoQ9q/6hkdFwOONzq08gI63ZkouQtuEEoYszt+f XZT00H6srAVbJYpu9uMQhQgkc8RmSKBR+YWbE7esvJRLQzA+gUs/3SFXXT6ecZEiPDQP VPNiC6GRb6HZCI5Tg4p96CgEXoi3UaKvLlLXs4bDP59R68BlGvHaTUpKpSPqzNi5kt4c PNAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=XDW0x8j2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s21-20020a17090aba1500b001d9a2c30f5bsi740602pjr.58.2022.05.02.18.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:24:38 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=XDW0x8j2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52CAF69701; Mon, 2 May 2022 18:03:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384207AbiEBWpt (ORCPT + 99 others); Mon, 2 May 2022 18:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350815AbiEBWpJ (ORCPT ); Mon, 2 May 2022 18:45:09 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B25CE09C; Mon, 2 May 2022 15:41:39 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 9056222258; Tue, 3 May 2022 00:41:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1651531297; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WDeyz0LlR3w2vrF+SQ8eLPVhnHyoFLscpmzHcNbmj34=; b=XDW0x8j2GVHkofLH8ZiayccVc56nO0E1ZOf7HBcrYGOZuzmQkK3S5Is96QBdGaWRLbH08A C01YLwZOyt+me+wakYq9FvGuKxct7u9JBcBa6KZW80GEW9NMW2dRs2ZaQ9YHky5FGpL3Nj MbTHhI0vyr1f9xB3luZrEfV7s18MVbs= From: Michael Walle To: Kavyasree Kotagiri , Nicolas Ferre Cc: Arnd Bergmann , Olof Johansson , soc@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Alexandre Belloni , Claudiu Beznea , Tudor.Ambarus@microchip.com, Horatiu Vultur , Michael Walle Subject: [PATCH v4 09/13] ARM: dts: lan966x: add MIIM nodes Date: Tue, 3 May 2022 00:41:23 +0200 Message-Id: <20220502224127.2604333-10-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220502224127.2604333-1-michael@walle.cc> References: <20220502224127.2604333-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the MDIO controller nodes. The integrated PHYs are connected to the second controller. This controller also takes care of the resets of the integrated PHYs, thus it has two memory regions. The first controller is routed to the external MDIO/MDC pins. By default, they are disabled. Signed-off-by: Michael Walle --- arch/arm/boot/dts/lan966x.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi index 64290fb43926..0442735910da 100644 --- a/arch/arm/boot/dts/lan966x.dtsi +++ b/arch/arm/boot/dts/lan966x.dtsi @@ -418,6 +418,37 @@ gpio: pinctrl@e2004064 { #interrupt-cells = <2>; }; + mdio0: mdio@e2004118 { + compatible = "microchip,lan966x-miim"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xe2004118 0x24>; + clocks = <&sys_clk>; + status = "disabled"; + }; + + mdio1: mdio@e200413c { + compatible = "microchip,lan966x-miim"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xe200413c 0x24>, + <0xe2010020 0x4>; + clocks = <&sys_clk>; + status = "disabled"; + + phy0: ethernet-phy@1 { + reg = <1>; + interrupts = ; + status = "disabled"; + }; + + phy1: ethernet-phy@2 { + reg = <2>; + interrupts = ; + status = "disabled"; + }; + }; + sgpio: gpio@e2004190 { compatible = "microchip,sparx5-sgpio"; reg = <0xe2004190 0x118>; -- 2.30.2