Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4436654ioa; Wed, 27 Apr 2022 03:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Rye//3IL7sQYFkARX06tT2Nxy5VM/fo9+4j54R8YOX4x4HRiAylesrZww4LTVuBxMilO X-Received: by 2002:a65:6216:0:b0:39d:5e6c:7578 with SMTP id d22-20020a656216000000b0039d5e6c7578mr23089851pgv.114.1651057182611; Wed, 27 Apr 2022 03:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057182; cv=none; d=google.com; s=arc-20160816; b=nVMrVGrPVlLzyN+fkDQuS+59WK8kgWu4oPGN2BPlCc40lWSPN5BcBQPYKprHyTrlAR XGabyk4GbRZJB24NZN+m9dcaPg57cE4NTlsP9NizT+HfZB1v5YzR7IJ+jT7UgbpRBp8H PNIalDUjwV7Lu7gbE7ro4sn+Ob5a2CJhtUBQld8kPiIli09kVzTYd/XVdiNtyEQXBJ3r ZBy/4AV31e+BvgHD16IMqT39CxDTQVplXPr1LbbptxGJRGg4wG8SHNQqhZyuDqACftsR fBUO5x2ZHdvUtEcxIzugYLQj0TJTCQsExa+vpEwYbEQWVemgIJN/aNZylhATehpukyfS bAWA== 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=ukJ87PJJQr6WdcFY9U3LOip92CMRk0OSZz5wfX1gBdA=; b=MsvXT6A60nAyV7DO9vOSDvr/blSTPtmrS8mGgeD9v+xnxvAikiuGejyJCDh7Vczyx+ 3lL5R7T9cTSOHGAHALRMf5mu/l9mYgHUaUyiLcGoVc3Xg0X4+47/LQ0oJkQgSExhJjIn +xi9gUteFlkUx/jDtw+oCCzFWiWfFWKJhn2/noyeGHRUxA0b6TaVotwUALTg9P+7PvV9 r7Z9JdASLVqJZ6WE/CKg7tCzZUG421HJ9vU9f0EbgpjbhcFn4AlBkf7dUaUJPMXrL6w6 Ovnzt2NBhzRrm+d65d4IjZhOuQCKL9GWEstZIWXDf0zTIGcGhszvZl8gctMKibEVjplY P8RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=kDrmXa+2; 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 q1-20020a170902dac100b00158eabc46casi1453858plx.604.2022.04.27.03.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:59:42 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=kDrmXa+2; 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4B0A02FCE32; Wed, 27 Apr 2022 03:07:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245696AbiDZNpI (ORCPT + 99 others); Tue, 26 Apr 2022 09:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351064AbiDZNpB (ORCPT ); Tue, 26 Apr 2022 09:45:01 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 507E9632E for ; Tue, 26 Apr 2022 06:41:53 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id e2so19259455wrh.7 for ; Tue, 26 Apr 2022 06:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ukJ87PJJQr6WdcFY9U3LOip92CMRk0OSZz5wfX1gBdA=; b=kDrmXa+2sq1U9qBMrPJIHx1jotVEcR5D8DKEmsoYwJTXjPNPSRpDulPjvcWztnPFu2 /dLv84homwh9Uhhqm7+xW2eZY0+Cy+GyNKnGRrACDhnMJLE79ZjBv25ni9Qbgb1P+6/A n3WEDDRKRcsStS6hWTAcGEwRUxmvVV9CqJXZa3Nth/Vjmlo5vPmJ9ZtDlaOPBYvBtsSV GVM17O6tMCHLlc89ZREHueAsj9aHBW0YiSoS8sVj5gzPfZdueg/vSIOY4IHKY5ouT4FH IZVzPCpH6zC4F52l+51ldnrcYRBjCkTm6jL1HvnWuj4HI8Tz+GjdLQog46RZ+kQ8Owvi pspw== 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=ukJ87PJJQr6WdcFY9U3LOip92CMRk0OSZz5wfX1gBdA=; b=MmPZPcVAX+O6vONLnB4n3/NJK2Ee5NAfflFbBdGe2L6PnLMaYJc1xEjdGXK6QIgP0q KLXL7LjvR06snAcfY8glpoYQ+HB5k7NxkSSO24Ph4VRYKMUoo1Ah4TFotUQs48nP9oy2 r+4ySpnpFdG0cZYfYBcscEhEKsztEDVPVWnuhAv4wvjY2WCF2U0yd7Fxq/BqQwtbnpNk 7dF8LNHtUMroXeb/oVXxpH4OLVWE9fLtkSEVFf+VJu3et1tFXr+MYmAJfXhuO93GrqIX /3zM/XTCxStsPmamHitDqMTyQ7oNmMxhUqi9J2i7sIatEgxRbBRO3lXVBtKoSk9FpSH9 LTaw== X-Gm-Message-State: AOAM531TqQJwvgoRbSzwNzPR7wDOltT9hfBkhPIKkhJo5pqItfvb6Rm2 Cpc4ellLy28fgUJRaFbXLKMP8g== X-Received: by 2002:a05:6000:114d:b0:20a:d608:5e54 with SMTP id d13-20020a056000114d00b0020ad6085e54mr12139126wrx.539.1650980511758; Tue, 26 Apr 2022 06:41:51 -0700 (PDT) Received: from radium.lan ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id b6-20020adfd1c6000000b0020aac8a9946sm13628475wrd.47.2022.04.26.06.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 06:41:51 -0700 (PDT) From: Fabien Parent To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Biao Huang , Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] arm64: dts: mediatek: mt8195-evb: enable ethernet Date: Tue, 26 Apr 2022 15:41:02 +0200 Message-Id: <20220426134106.242353-5-fparent@baylibre.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220426134106.242353-1-fparent@baylibre.com> References: <20220426134106.242353-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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 From: Biao Huang Add ethernet support for MT8195 EVB. Signed-off-by: Biao Huang Signed-off-by: Fabien Parent --- This patch comes from https://lore.kernel.org/all/20211207015505.16746-7-biao.huang@mediatek.com/ The differences between that patch and this patch is that: * The EVB dts modification has been split into its own commit * The patch was rebased to fix merge conflict with the upstream mt8195-evb.dts file * Re-ordered the node to be correctly sorted based on phandle name * Re-ordered the pins for the pinctrl to be sorted by node name * Fixed dtbs_check: use - instead of _ in node names + prefix pins node with pins- arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 90 +++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-evb.dts b/arch/arm64/boot/dts/mediatek/mt8195-evb.dts index d49ae8605e67..0b04421942ac 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-evb.dts @@ -5,6 +5,7 @@ */ /dts-v1/; #include "mt8195.dtsi" +#include / { model = "MediaTek MT8195 evaluation board"; @@ -28,6 +29,29 @@ &auxadc { status = "okay"; }; +ð { + phy-mode ="rgmii-rxid"; + phy-handle = <ð_phy0>; + snps,reset-gpio = <&pio 93 GPIO_ACTIVE_HIGH>; + snps,reset-delays-us = <0 10000 10000>; + mediatek,tx-delay-ps = <2030>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <ð_default_pins>; + pinctrl-1 = <ð_sleep_pins>; + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + eth_phy0: eth_phy0@1 { + compatible = "ethernet-phy-id001c.c916"; + #phy-cells = <0>; + reg = <0x1>; + }; + }; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pin>; @@ -69,6 +93,72 @@ flash@0 { }; &pio { + eth_default_pins: eth-default-pins { + pins-cc { + pinmux = , + , + , + ; + drive-strength = ; + }; + pins-mdio { + pinmux = , + ; + input-enable; + }; + pins-power { + pinmux = , + ; + output-high; + }; + pins-rxd { + pinmux = , + , + , + ; + }; + pins-txd { + pinmux = , + , + , + ; + drive-strength = ; + }; + }; + + eth_sleep_pins: eth-sleep-pins { + pins-cc { + pinmux = , + , + , + ; + }; + pins-mdio { + pinmux = , + ; + input-disable; + bias-disable; + }; + pins-power { + pinmux = , + ; + input-disable; + bias-disable; + }; + pins-rxd { + pinmux = , + , + , + ; + }; + pins-txd { + pinmux = , + , + , + ; + }; + }; + i2c0_pin: i2c0-pins { pins { pinmux = , -- 2.36.0