From patchwork Sat Nov 25 14:40:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13468575 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1C916C4167B for ; Sat, 25 Nov 2023 14:41:41 +0000 (UTC) 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=kY1AUqv3r4TodZPI736QoLscMaWBzsxNnYd8CRqJsdo=; b=w498sIzchZ3Myx Hwq5E3lRgxxSpnkJTTpD2MJw61aBglJqcgNN50HBb26uZQn9F4TmlpdwIhFfkhcMRbRkNCdv2PqJf y9vsyCv5TC2n5V8GjIcQzXKwFPg870RrJ3PzdiZCa4PmQw+fJmbkCXa54RoOl7PZh5GDiYSj8vFqt 7QV5BvH3H4cssM39xXgStjYB2GctXtwxuYwKyH4W0tud4ex4ngH3xwziw5wBBiqq7HdWHauz6f9JF 6KHxEkHMijVj40FKMLCYPvtrLT54WjLghXC189Uoinwp9yncRs+/vQ9KcLY5SvRDUW3080ct8Eqas i6nWfHFi0bOsFAT/w6uA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6tqO-009Mre-1y; Sat, 25 Nov 2023 14:41:16 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6tpt-009MWx-0S for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 14:40:48 +0000 Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2854757f0f8so2296669a91.1 for ; Sat, 25 Nov 2023 06:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1700923244; x=1701528044; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IUgKD0qz4V3/XXhXUCXdndZjhXDkH98hRGDGFOanDcc=; b=hf8ZJnqTQatRQZfbIevz7ypVUWyQNmpSBBoflwKRakhrXzNfny546TG27DREA8KPOT 4c2vxMmcqru+7k/dxWHSRCTfkt7LXYLqaGsGIvNMtVC4D8OBaKLFyF8/QiWvKYIuOFIu lg8jOc73jXgsJ5Ot1/b/gVR/AhFl+NY6+MkggnNCxmxZQXALN1XEijtsk5q9YWeT6tbj 8bTHodhD8C7rxwO4F2IczcuAbf9HQ+8qfBNy97Gv6Lt/wSw8iISgbbZeX3yfjKa68G6l 2RYwhiy4yAtgWVRwzWmJNw1Lh/t4Um/SSBUR32ZymQEkdytDX/gDmqx66V+oVPr8155R pvlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700923244; x=1701528044; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IUgKD0qz4V3/XXhXUCXdndZjhXDkH98hRGDGFOanDcc=; b=ljys2yTxXY1wuy/mpOnz6StXE6nImjtvs5IVSjQPr9EY4HS9vdTDGlX8Tk27Pstnmf S3jP2tMBlHqG7sC1WvfJ6Q1h2Cl6hr2ah4y2nHhGRY8jLb1nMUh9SIg9giaoO/LopKNu LGfCLTnC3lG6jSMMRD0eiKvLMs+/Ho3v8DNOQxAWan78eTLjvGAkcc2/2VQRoJ2k+g3G SK4K1oqSRNPkElynVgxfj9T1JfT1wJYB2X55rPG8SnD7Y94lyTGujybBo2Kvl2WQDmmb 4X3zy1PY9LACs8LMcbuHIFGmkt4ySI+q5WvBZXQ2T8pI9ATCLBxudC5jbIG02ovR4wlm q2dw== X-Gm-Message-State: AOJu0Yw9QFH4c2TjEGxLdzKA/wE6HAwl5JOAvsU/rC+inOmV8hTDOaH3 ZAHOVMcdqgFcCyohUP0OUHW+7Q== X-Google-Smtp-Source: AGHT+IGAgxm743znNlj8wApEJKbIGlJxeIn8bL/GrrcKdJGwx2Ocie85VdA72i+sp0r75E8L2/GQbw== X-Received: by 2002:a17:90b:4a09:b0:280:8356:10b2 with SMTP id kk9-20020a17090b4a0900b00280835610b2mr5927050pjb.5.1700923244578; Sat, 25 Nov 2023 06:40:44 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a208:d471:6d33:4b36:d85]) by smtp.gmail.com with ESMTPSA id h15-20020a17090aea8f00b002802d264240sm4817998pjz.29.2023.11.25.06.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:40:44 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Jagan Teki Subject: [PATCH 06/10] arm64: dts: rockchip: Add Edgeble NCM6A-IO 2.5G ETH Date: Sat, 25 Nov 2023 20:10:08 +0530 Message-Id: <20231125144012.58668-7-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231125144012.58668-1-jagan@edgeble.ai> References: <20231125144012.58668-1-jagan@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231125_064045_201883_1C59E391 X-CRM114-Status: GOOD ( 11.99 ) 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 Edgeble NCM6A-IO board has 2.5Gbps Ethernet via PCI2_0. Add support for it. Signed-off-by: Jagan Teki --- .../dts/rockchip/rk3588-edgeble-neu6a-io.dtsi | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi index 845f90c302ca..7e838d76fa73 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi @@ -3,6 +3,8 @@ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd. */ +#include + / { aliases { serial2 = &uart2; @@ -11,12 +13,25 @@ aliases { chosen { stdout-path = "serial2:1500000n8"; }; + + vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie2x1l0"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <5000>; + vin-supply = <&vcc_3v3_s3>; + }; }; &combphy0_ps { status = "okay"; }; +&combphy1_ps { + status = "okay"; +}; + &i2c6 { status = "okay"; @@ -33,7 +48,22 @@ hym8563: rtc@51 { }; }; +/* ETH */ +&pcie2x1l0 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie2_0_rst>; + reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; /* PCIE20_1_PERST_L */ + vpcie3v3-supply = <&vcc3v3_pcie2x1l0>; + status = "okay"; +}; + &pinctrl { + pcie2 { + pcie2_0_rst: pcie2-0-rst { + rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + hym8563 { hym8563_int: hym8563-int { rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;