Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3342402lqo; Tue, 21 May 2024 14:13:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXP+cvu+Q5RDkI7iYBYtasRUPUTKbzbAry7mhGmhZw5f1AyDmdAd3hckOmu0tfyCdvC4jLKu3WhPI4JBMw3lxwQfdi7S1RuXxD5UuGz9A== X-Google-Smtp-Source: AGHT+IFrfJIGx9A9BK2Qlo670ERzM6HSnVw/1dUZe46rVcDKxdlQyLjfhmsonV7wgoa0PH5QyRFO X-Received: by 2002:a2e:944a:0:b0:2e1:fa3f:67bd with SMTP id 38308e7fff4ca-2e52028a6dcmr293754061fa.36.1716325989270; Tue, 21 May 2024 14:13:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716325989; cv=pass; d=google.com; s=arc-20160816; b=rinEdQEiDhs1OyrTa21xjKEShCLZCdROcf4rAv11+yujkxe0aSWVkbzNwja8iSMVEJ d9b2OhjtdaHWpzYFrscPGqEz0CsztHiZ7ipPO+ajXJGFHnURsTx7WWvIZIB1hgEN6azm FREGCFZO7dJlHz0K4gmwe0jhN8QqTplo4cKWcBUemgy2tsRv2KpIg0UKDSjMhfBVK+Yv g7N3ZIQfHsD255mAusb4/2ET/AzxFTRdGts/0pjg4ZRC3gHy7+h0If+w1r5edlsYI2s+ WbL6h+8JqOkXjnUMBaPFg/BxQYX4SMbpSaHRxiewf6QfyRSnaYuNzd1jM6vp8lU98b8L 1Wdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kTNtUvCVx2BdIKvV4sQmdXataht/4xiayUf/K28AyTQ=; fh=15GyjovOVtCsEtFrZ5uxvmfTz2/mYA6jTzYd2JCXeis=; b=G8EswLR6j35qCpBGSo0H4oeZW19iHF9BhRjnAJCIaTk/ikI60J2sNiF6w2Hc2MDsAz UWk/PJCSEhercMf2eavdNApdh5V1Yk+JqG8S/mnjFvl7QYj4oUrm5LKW5hRGYGPdL5/i hHOkcVzoRk1V13rcnUsYXqc0ToKh6KirTkHz782LAB/RsXdbdvBbjVJwseStW6nhs7jL A6NmIA00yjW+dw2TnJ3TqbN7mQT3ujEoofID2lB0lPBVNlXBplcn8dRu/G3nmkJwW3Sy bMwbBw2sRSfYcp2sH7mPrMh/4eK1d97fln8lyRQIs0L0iiRcg7qdNWnrgSHogXIh2ACs ix4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=dB5k1PWb; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-185461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ecc83986si8540661a12.373.2024.05.21.14.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 14:13:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=dB5k1PWb; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-185461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F20D31F22871 for ; Tue, 21 May 2024 21:13:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2557B14D71A; Tue, 21 May 2024 21:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="dB5k1PWb" Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9DEB14BFA8 for ; Tue, 21 May 2024 21:11:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716325872; cv=none; b=gN2sV8VePt7di4UP/lA3sCNoeGCtYH+kEX4Om5z4RtqDrF/w20I6OvqJneHk7qx/Ca79la4sOj1oT87LA0FEAbWwW8USOcP1UhjsnkXtSBdjw9mGXw7D8lreCtnx3aA5LV+U3Id4VrfMmTA0ePKdaDbKiCPzw0+VRx954gMPLHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716325872; c=relaxed/simple; bh=qQC3dm+HXs77tDlEOJ/esyMFwl8Q4vJ0HBIo9d2UWDc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TjHBpw0xATljByvTrote7dk771SR1XiU6TTdLfukLRI5wvi+1vxJrqPWyzPpmZqv47mi/HxfYE6tzJdSyDADBJM5NrdZCWjr2XyGPYMsYb8EwbwFxN6WQXwQ1pd24FEne9SmIA1mi/5kBbGl9MuciIliu249FBWDv2ZJHuBLHRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=dB5k1PWb; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1716325866; bh=kTNtUvCVx2BdIKvV4sQmdXataht/4xiayUf/K28AyTQ=; b=dB5k1PWbfjrz9a7FZloO8mkx5076Tm+CvGIeClQ1x6RPupHHNPSSoIkLvjGllzY7lc+M2D+53 KnNcjQeQJbIldjEJ2cQ4N4/tueYNTJgAUxK851H475cb0xwIgwzzT8+Pog69OVM5rKZjOWb1Day kn1KS8jAKYp35vTypM1cSbtfyhs8uXETpYPO49EmC7MzVng+LburP+NgQfOCBGVSm6+hIy/iN/L bjJBgvedvnavJuF1uEcJA4L+FYlyEdsGQkodPOvGRqL1TRyr1+TXGipS7MTMJ4Hx0gTRhEnZqb7 h8Ji8wACzo2fE2yBdfhK7jrz7H0ss2SMLLhUfxtp9BYw== From: Jonas Karlman To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sjoerd Simons Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH 07/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add mdio and ethernet-phy nodes Date: Tue, 21 May 2024 21:10:10 +0000 Message-ID: <20240521211029.1236094-8-jonas@kwiboo.se> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240521211029.1236094-1-jonas@kwiboo.se> References: <20240521211029.1236094-1-jonas@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 664d0de88b6b0c828344af14 Be explicit about the Ethernet port and define mdio and ethernet-phy nodes in the device tree for ROCK Pi S. Fixes: bc3753aed81f ("arm64: dts: rockchip: rock-pi-s add more peripherals") Signed-off-by: Jonas Karlman --- .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts index d4cf6026241c..f6fb90e13ad0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts @@ -144,11 +144,25 @@ &emmc { &gmac { clock_in_out = "output"; + phy-handle = <&rtl8201f>; phy-supply = <&vcc_io>; - snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; - snps,reset-active-low; - snps,reset-delays-us = <0 50000 50000>; status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + rtl8201f: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&mac_rst>; + reset-assert-us = <20000>; + reset-deassert-us = <50000>; + reset-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + }; + }; }; &gpio0 { @@ -221,6 +235,12 @@ &pinctrl { pinctrl-names = "default"; pinctrl-0 = <&rtc_32k>; + gmac { + mac_rst: mac-rst { + rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + leds { green_led: green-led { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.43.2