From patchwork Fri Jan 20 07:17:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 644613 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp638226pvb; Thu, 19 Jan 2023 23:19:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsXwsoRvjarNtID5qYFBqkFTmAgEattPjgNuM8vo6FD5LbGu8oiVz6jdJltfqhgDnr06RLP X-Received: by 2002:a05:6870:c20b:b0:15f:2172:19b1 with SMTP id z11-20020a056870c20b00b0015f217219b1mr8104917oae.31.1674199188921; Thu, 19 Jan 2023 23:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674199188; cv=none; d=google.com; s=arc-20160816; b=fWEwzQZymCHHeX2/ffXMre2ovEDZZGpvmy5Y+fJuJhYCTdTdyGpUiFczz9Aqh8vZVC iu5ZWtqeOKwK/earo8XdmCc1qS9Y3Q9mZ+opfaZ2C+lo44oLWPlyixBokFwQsZnUaqnZ zAxgin6Ba/76fx/9kgYo1M2ZROXSvuXYUAKm16oPkewTfUkXBT+dWeV02kEpa35fYMfX HVZ3cUwx9FfYDhNsS7y1JIi3LZ+gkbYCfPno0Jcnn/pf1DOcHP7wjOhmC09io7tyeBwM cq4Z4zfB9MtKdIncdZKMYuVZ+sfFFER5EXtwBaZ9VdUWceUdVG7HHfG7NMaZ2LfUZZCF ml0Q== 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=hbLsmUs5eRBP4XdiHZ+Z1ddRDMkbdpsD9IxGP+nTJ+L6+kisMZJy5UHwiMrC5epTW7 1a7n4zCQu6/uhYOwItEdiQ3ThxDRgXvyiFGRJN23Yg4oiPZzMYb5l08ToxvzTSeOI4rm DsVJOHlPGWDhuck7z7T/SlAPDbs0PViHkUgGqcsK+t6IhSUtMeiMZVsNY3Tb8NwZ7ORb S6+StxwSF6fmBiG4h4KtBUDvYcppBWSfQlHrnlXYu92jGBYdaSwRi6l6lii+W4Kx9Mfa jGx26I38WP6mfDnCC2oGppG2bd2AeVLmNoA2Mx+1B+7lB2M9Go05GhNJS7HfxBUCF6vI zc4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DIXfo/4r"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s5-20020a056808008500b0036eaf82ae8asi2862782oic.246.2023.01.19.23.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 23:19:48 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DIXfo/4r"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 29EDA856CA; Fri, 20 Jan 2023 08:18:31 +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="DIXfo/4r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F780856B4; Fri, 20 Jan 2023 08:18:21 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 9DF5C856BD for ; Fri, 20 Jan 2023 08:18:15 +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-pf1-x42f.google.com with SMTP id c26so3312649pfp.10 for ; Thu, 19 Jan 2023 23:18:15 -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=DIXfo/4rB11kWGsyvpXJtAhsiN/W3nHwUbXW86tLLG2Cx/pCnDELFxPCt2JwpKRW6u P9oHsLMAA/w41xfVZnMUuf/lPDRqOEM7SHrxmL4PqsRCaD02dI7q+k2FUkd4qg0mtXic xDpZBVcBqrkemhq3KXPRjIMyyGmjcHjgNle3JxeG07ZKbRsc1E9T2Ma92eQrGJbNwD0s 74J4gPjmaStkcQQvVT0Od8RPCu5wTpz4wneqVGRZY/5kP8XnT85Vr8bBC+WAWBarxigj DeYeq6d0QkBHuhMsC+PK/vkR1FNG5tKzhKqbLSnA/zMjFzngI77GOEe5CBVCItcLCTUU FnEg== 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=pw+jfFPQcX2qGCR87OVTbL8EVLaXmyiPIYABzrjxDH11JIfNyB/R18I6QPsQ8dKNja waO1AXfG8frh3VltbkP/iFQZ4hRofu4wHBTPGAWniEpyl8Kqw6dIa94lNZO7SacE3a40 +oDgY/Uaa10YuizC3HU0snDM819hfyhhujAeFI8Jt5iszsT3KtXf//6tyayQvjufCh0q 7YHbF+H8gTKQQ6lUsDyUkNaq2Jka4ghwjaFbzbbfkRWNKWX3vILWeCMwZYMU/DuDRVmk BdeAPGSvdu3zZUmjVUKNrLiRteo8tpozpCYQStICU5DFzriqvGyI4nQw2oNuZs03GYDs 90tg== X-Gm-Message-State: AFqh2kq+NG9848/VFUwIDtraOqUzahpyhtNENdIXJKwI/aME0Vc1lhzs 2SeujtQs1rpP3D1N/6JbHc5ojIct0OEnEUio X-Received: by 2002:a05:6a00:278d:b0:56b:f51d:820a with SMTP id bd13-20020a056a00278d00b0056bf51d820amr14054973pfb.7.1674199093798; Thu, 19 Jan 2023 23:18:13 -0800 (PST) Received: from sumit-X1.. ([223.178.212.120]) by smtp.gmail.com with ESMTPSA id x15-20020aa7956f000000b0058bacd6c4e8sm9797586pfq.207.2023.01.19.23.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 23:18:13 -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 09/14] dts: qcs404-evb: Add ethernet controller node Date: Fri, 20 Jan 2023 12:47:14 +0530 Message-Id: <20230120071719.623661-10-sumit.garg@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230120071719.623661-1-sumit.garg@linaro.org> References: <20230120071719.623661-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