Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp298550rdb; Mon, 18 Sep 2023 15:55:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG31ozL9WLXet2RxQX6NdCwqkFcW6DFbh9St5moVJ9oXrU4GzEMeIzgYhuvyF+cT0EGGzP9 X-Received: by 2002:a05:6a00:1914:b0:68b:e710:ee9c with SMTP id y20-20020a056a00191400b0068be710ee9cmr9360116pfi.19.1695077715197; Mon, 18 Sep 2023 15:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695077715; cv=none; d=google.com; s=arc-20160816; b=Iu0FMpE/HHhzwKsPNL0ex0qfqPtxFCWB285pXLupbNK4+xxj7aK8PNktGX9n0TunSy XIkI+bSENplCrM7mP0n8XEBxbJUev5xKmvlWPdV1frpkXRZWOxVPcNY17slOf+29NlZ6 2viXE3C9UQGarypQCsY7FrdAI3zG6fTrOKKtl8MDBsv8Oi+4ALYE2kahTrYWzBItz249 H8MiVQ56BwdXwEmWMojbFLM3mUi6Pn+h2d731Q6rGcyXWHI+oXGht+4PYqnevEkVhbzj knebgyL4rvdngFo0w4pbskqUWn2ezpnq6l9E8aeavv41dEh/21GuQaowv2tY/AUFYlFN 3PDQ== 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=yJsq6tfPv13ESlnHY5Y4uRqvzSDX1J2NTFaAZXhhcQc=; fh=GTJIzdjfRddsbECYS2NPf2cTBoGzj7EWzl+KjtEu2+s=; b=AfvDSBFlCPCQkICltxZOAgG/g3or80u4G2VvkQ1Fo48SzB7ywRHMJ4ERi4R/s0goEt ArYuW2zYP1e3HFq6dH/vUPFMlGbKvljInnMUPQBKAiXM8tW862ifqpzttB2/3hFLmygC WrIQjkK7iGm3/ovIr4jFALc1v7Ew9M/2is2uUJVivGAAp/Ki6W+FCyOV6JGE0Bia6hs3 +TNQgixSlfQAEgCUQNZupjdkpFyViayAza+1NqdwguGiPZigcLJtsRIB4+fOsTkqoZaE acQysogPPsAZe3JZkWDb+zz78iWSF9BOHh+HS1m4FGwWxRw7IL1G2tSerMBtpw0/35sd K2OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dWyBybuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id u17-20020a056a00159100b0068fccf2541asi9105389pfk.203.2023.09.18.15.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 15:55:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dWyBybuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9FF83821A460; Mon, 18 Sep 2023 08:39:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbjIRPj6 (ORCPT + 99 others); Mon, 18 Sep 2023 11:39:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjIRPj5 (ORCPT ); Mon, 18 Sep 2023 11:39:57 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B385919A6; Mon, 18 Sep 2023 08:36:38 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-188-252.ewe-ip-backbone.de [91.248.188.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 792236607186; Mon, 18 Sep 2023 15:13:39 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695046419; bh=enW2m29ypYPXpGzyCbTR/AHHgm5vTOl3q1dCsoF4g/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWyBybuSDGpG0fqByImzxXWY0GaaL+nWEkLMDTcImvxUDKB7fqZykur9JM6H5QqeT NT/Ytnv//lo8fSsnU90uS9RowCy6kRD8i1SdYXt0JHH/xNshIlHxDU5v3DfDIU/K2R KraH6UOnc9tbis+ZSeXlQp0CvOOf60dnMfz+BV2mjv6klkP6nVNy8zxbxbXhBsxwKz IFZx/m3u7UsqHibRVszimV6H3B87D9VZowiDDGw3BQ2aKEJqX6dhc0/aSPl7pEjjDN a3hkv6ZxBKh9cJjXglZUFoA2wZMM6k3KllnRRWZsM4T5oKYnMrc4UAK0THS+EYzRjo JLHqXnUki2uww== Received: by jupiter.universe (Postfix, from userid 1000) id 813374800CF; Mon, 18 Sep 2023 16:13:37 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH 1/2] arm64: dts: rockchip: rk3588-evb1: add PCIe2 network controller Date: Mon, 18 Sep 2023 16:13:26 +0200 Message-Id: <20230918141327.131108-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230918141327.131108-1-sebastian.reichel@collabora.com> References: <20230918141327.131108-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:39:59 -0700 (PDT) The RK3588 EVB1 has a second network card, which is connected via PCIe2. This adds support for that. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588-evb1-v10.dts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts index 229a9111f5eb..23bef9faa690 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts @@ -29,6 +29,26 @@ backlight: backlight { pwms = <&pwm2 0 25000 0>; }; + pcie20_avdd0v85: pcie20-avdd0v85-regulator { + compatible = "regulator-fixed"; + regulator-name = "pcie20_avdd0v85"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + vin-supply = <&avdd_0v85_s0>; + }; + + pcie20_avdd1v8: pcie20-avdd1v8-regulator { + compatible = "regulator-fixed"; + regulator-name = "pcie20_avdd1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&avcc_1v8_s0>; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -87,6 +107,10 @@ &combphy0_ps { status = "okay"; }; +&combphy2_psu { + status = "okay"; +}; + &cpu_b0 { cpu-supply = <&vdd_cpu_big0_s0>; }; @@ -163,7 +187,20 @@ rgmii_phy: ethernet-phy@1 { }; }; +&pcie2x1l1 { + reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie2_1_rst>, <&rtl8111_isolate>; + status = "okay"; +}; + &pinctrl { + rtl8111 { + rtl8111_isolate: rtl8111-isolate { + rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + rtl8211f { rtl8211f_rst: rtl8211f-rst { rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; @@ -177,6 +214,12 @@ hym8563_int: hym8563-int { }; }; + pcie2 { + pcie2_1_rst: pcie2-1-rst { + rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.40.1