From patchwork Wed Feb 1 13:58:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 649170 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp303988pva; Wed, 1 Feb 2023 06:06:09 -0800 (PST) X-Google-Smtp-Source: AK7set/sbPUrSXJpuNyw9BvGEH0AOHjXK6BGVBF1YjlVqZsTe204xuLgjgMY4tojZzynhnC5Idmk X-Received: by 2002:a05:6830:6582:b0:68c:5082:b5c8 with SMTP id cn2-20020a056830658200b0068c5082b5c8mr1347342otb.5.1675260369639; Wed, 01 Feb 2023 06:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675260369; cv=none; d=google.com; s=arc-20160816; b=ubPYzn/HX8zDhgDH5mEaj33I0UfP3A4zDsx8MTyvvzj1FyrdtI9A7MJ9EA/rWeqQOp fV4EPzWNbRhAsjn2grs+cNXInIYCeAEkhXCcABx6ZUa9/TXe2Hbejq8b9utdCCfICbCt kc3VkLnY0HFHjgllWYwxxfkLvuQhxA+IOQ67HxDH7+S3EhOorJYyBOrjHYWyRuNBsM6V xasOwmPqRdjBdcPrAOcan6CsgWxa+hcR8590k+faXn4CZFCn2P1FQq5foeMesKxmdvxi f+i7w+BXEt03REgEmwajJNI20UDB6pLZ/1AVMP72N8OlkkoLDXqZl4Gn5I+kopWSMbdr 7DBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yfvp1gUUP//SmMVEed5zgIAdTdTyK6Ynwsoz/X58s40=; b=MEitl9m5NnEBNNlcbp4Q5L1wAESPaz6kDJ/8i3AK95i3uiuuaF07G6cf40yyrM/v3f lIPdbFICr9RL+Xw27sYjtfsnCLtEjrlBrPia3QPN8Accs/jLorY4pFS7KCFeIgtM49EE gp0IZi2IQm1antv7xet7eLZawo//WYw+tXQvfJLaUNmW/KhUi7QDc/RjBUe8wygi/AvA /QgyrwjZ7aLMp6n8sKuHNriwHrOLoWzDcsgLV/vjznY8IJL2MG7fRxvsi5wjxcNzmFu+ rsSq6OH+/N3XVoMd0adPAsdq6mG/734WEqPFAPU40Q6cgm+kyeLGIZvKT6jSOH5AWhJA XLLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=enQuUvxa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id l25-20020a05683004b900b0068bddbf976csi5173510otd.191.2023.02.01.06.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 06:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=enQuUvxa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 399C3856DE; Wed, 1 Feb 2023 15:05:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="enQuUvxa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5CD4685AA5; Wed, 1 Feb 2023 15:02:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BL_SPAMCOP_NET, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5B98985C83 for ; Wed, 1 Feb 2023 14:59:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sumit.garg@linaro.org Received: by mail-pj1-x1029.google.com with SMTP id mi9so8234501pjb.4 for ; Wed, 01 Feb 2023 05:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=yfvp1gUUP//SmMVEed5zgIAdTdTyK6Ynwsoz/X58s40=; b=enQuUvxaXmr0ddUMUteFjrlb2yt1UnSMoIaBwQJcL48bFxjvPLmSNu4HyGP7Pi2RCT UgsOwlBAtFrZwnO6pyYrz/y4i74DdxQCESGYQRCtYmZ/GImC0x7dthVwAyYTmala75FC GkWZ72UOIEmGI49BVlVkwfjqL+a/b+0Ep+97otvO2/fQ7ft2KVk4TyL1oEL9zEBRuFLf /g3KPqvxXcDKbZ6g9hmleG9pfDrrxb+9uymZm9jJQPjww/UmDX8Il+CI+S/s4nN82hYw OIrI7kpZtqI1YOtcfh1F+bV3KkBYoR+pt1pPYuFKh7C0axxpWYN384wlnTZVkr8OzMrX Lqlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=yfvp1gUUP//SmMVEed5zgIAdTdTyK6Ynwsoz/X58s40=; b=K4TDzVXztSgFebEkKAeSqa4NH9G5u7BoxWH8CjJgwzpRvFTAwcYP4Ihn1tjUwyJhWb Eab+jxsRy/KeaMLn0Btt5tsglrmtEQBeBHdrfAsL1KkaIb43JG9ErTIHwRJqaS70bpWv BfULkpl9QXUlJXEwQAvWb705LMUO31BNyOQeAv0qfDuFnt4VdmnXBUpCLsvGNvZj8wKV dV7CZQj3BZ212AqPNmE/ZH2m8kfDkxXCPmdfha3kIKcMrmPgUlyKBmZX18Nt9CVtkdwr kEMGPQUsgrb1Rc08OTJo139OpsYvQ0TIT8EgdbGndrb0h9sjrPEb4HIKf2W41U2pKzhP OpOQ== X-Gm-Message-State: AO0yUKVHGGdRwlfhUZk9p6Dn5Q/trFTwa8risyHuby1LaWDuSMWUtxf1 VvXwQsZURgj2mdo+fzu2sfNsy2eMHVcf2Esk X-Received: by 2002:a17:902:d4c3:b0:196:3ae3:4ffe with SMTP id o3-20020a170902d4c300b001963ae34ffemr3323703plg.41.1675259992551; Wed, 01 Feb 2023 05:59:52 -0800 (PST) Received: from sumit-X1.. ([223.178.209.222]) by smtp.gmail.com with ESMTPSA id i8-20020a17090332c800b001899c2a0ae0sm3636759plr.40.2023.02.01.05.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 05:59:52 -0800 (PST) From: Sumit Garg To: u-boot@lists.denx.de Cc: rfried.dev@gmail.com, hs@denx.de, joe.hershberger@ni.com, stephan@gerhold.net, mworsfold@impinj.com, lgillham@impinj.com, jbrennan@impinj.com, nicolas.dechesne@linaro.org, vinod.koul@linaro.org, daniel.thompson@linaro.org, Sumit Garg Subject: [PATCH v2 09/14] dts: qcs404-evb: Add ethernet controller node Date: Wed, 1 Feb 2023 19:28:56 +0530 Message-Id: <20230201135901.482671-10-sumit.garg@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230201135901.482671-1-sumit.garg@linaro.org> References: <20230201135901.482671-1-sumit.garg@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Sumit Garg --- arch/arm/dts/qcs404-evb.dts | 98 ++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/qcs404-evb.dts b/arch/arm/dts/qcs404-evb.dts index cc70afa4c8..2de0e7537b 100644 --- a/arch/arm/dts/qcs404-evb.dts +++ b/arch/arm/dts/qcs404-evb.dts @@ -36,7 +36,7 @@ ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; - pinctrl_north@1300000 { + soc_gpios: pinctrl_north@1300000 { compatible = "qcom,qcs404-pinctrl"; reg = <0x1300000 0x200000>; gpio-controller; @@ -48,6 +48,61 @@ pins = "GPIO_17", "GPIO_18"; function = "blsp_uart2"; }; + + ethernet_defaults: ethernet-defaults { + int { + pins = "GPIO_61"; + function = "rgmii_int"; + bias-disable; + drive-strength = <2>; + }; + mdc { + pins = "GPIO_76"; + function = "rgmii_mdc"; + bias-pull-up; + }; + mdio { + pins = "GPIO_75"; + function = "rgmii_mdio"; + bias-pull-up; + }; + tx { + pins = "GPIO_67", "GPIO_66", "GPIO_65", "GPIO_64"; + function = "rgmii_tx"; + bias-pull-up; + drive-strength = <16>; + }; + rx { + pins = "GPIO_73", "GPIO_72", "GPIO_71", "GPIO_70"; + function = "rgmii_rx"; + bias-disable; + drive-strength = <2>; + }; + tx-ctl { + pins = "GPIO_68"; + function = "rgmii_ctl"; + bias-pull-up; + drive-strength = <16>; + }; + rx-ctl { + pins = "GPIO_74"; + function = "rgmii_ctl"; + bias-disable; + drive-strength = <2>; + }; + tx-ck { + pins = "GPIO_63"; + function = "rgmii_ck"; + bias-pull-up; + drive-strength = <16>; + }; + rx-ck { + pins = "GPIO_69"; + function = "rgmii_ck"; + bias-disable; + drive-strength = <2>; + }; + }; }; gcc: clock-controller@1800000 { @@ -172,6 +227,47 @@ }; }; + ethernet: ethernet@7a80000 { + compatible = "qcom,qcs404-ethqos"; + reg = <0x07a80000 0x10000>, + <0x07a96000 0x100>; + reg-names = "stmmaceth", "rgmii"; + clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii"; + clocks = <&gcc GCC_ETH_AXI_CLK>, + <&gcc GCC_ETH_SLAVE_AHB_CLK>, + <&gcc GCC_ETH_PTP_CLK>, + <&gcc GCC_ETH_RGMII_CLK>; + + resets = <&reset GCC_EMAC_BCR>; + reset-names = "emac"; + + snps,tso; + rx-fifo-depth = <4096>; + tx-fifo-depth = <4096>; + + snps,reset-gpio = <&soc_gpios 60 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 10000>; + + pinctrl-names = "default"; + pinctrl-0 = <ðernet_defaults>; + + phy-handle = <&phy1>; + phy-mode = "rgmii"; + max-speed = <1000>; + + mdio { + #address-cells = <0x1>; + #size-cells = <0x0>; + compatible = "snps,dwmac-mdio"; + phy1: phy@3 { + compatible = "ethernet-phy-ieee802.3-c22"; + device_type = "ethernet-phy"; + reg = <0x3>; + }; + }; + }; + spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x200f000 0x1000