From patchwork Sun Mar 24 16:32:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 161000 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3020281jan; Sun, 24 Mar 2019 09:32:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6zuRy4M4SY75xn3qqRkrzpNGfsceN1WWesca02YQpNaN/s+OPdHkRvum7gBSfVaONLKdD X-Received: by 2002:a17:902:e90b:: with SMTP id cs11mr20218267plb.197.1553445179300; Sun, 24 Mar 2019 09:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553445179; cv=none; d=google.com; s=arc-20160816; b=fH8Fo7sqaEuvBcCJbtqxTXEcW3b27jri5xhNPTwjgcKmsY8H9Np1CrbfI3layWyQJp xzG2RYnFKwzD9DouBCplANlXUCyzE/PiL6Kr4jzO9k8akjzzm4FoGHefgLhPv1hXdpSR F2oFs9Tcf2FkaFf2mEhpjImvSp0ZemXFCaNYi3wvrKxTaNVCn5+4fXgKdVAJif1R1R7H B1MY7lgW0QgwlWmoKB7ECXHI1WWJWZVYbOSino/mnlKsHRY5H1IsyM00Ikflo9Vdzlwv NJ33wDjidpc+nbgIoZK2cBAcvn05uF4Di3A5hXSBX7rEhiUXZwqmQ/C5uhf8GGTDKW+2 aVjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RZEkflsGEF2Kb8pagAOchR9eQkl/5rCVOhf/qKL1dmc=; b=HpQNIyrc+D1reP0XIo/XPev8yEghisWkl1YLMPRSFJ+Xr9sAmje4R4bko53DgIDb3u uA/YFtCbxqyzgpzDIV3pyOZAkCOYOKvYOXlmLBNOb9qAlsOpDLEy7QDwFvuDbejv6iXq NIJ1h8el+aIpw1aiWQrJfIFF37bkoqqe1fJ/tIKMuLRX3k61YPvgXIbMz7JUPTUFKA8N fvTF/yOPk3Jyz50KKPLgFRAOmy64n4Tu/5ewlWof1e3bKY//sbKtNUUlJ4syJ3P/gxBm J1iwqhzhp4GRUnd499DwD9c1aRe6EUSRC+Pc79UXFkbrh4hgE/hUkZnpHDAaxMEewesS Wq8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jgZSZaPr; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e96si12357679plb.123.2019.03.24.09.32.59; Sun, 24 Mar 2019 09:32:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jgZSZaPr; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728768AbfCXQc6 (ORCPT + 7 others); Sun, 24 Mar 2019 12:32:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:52340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727192AbfCXQc6 (ORCPT ); Sun, 24 Mar 2019 12:32:58 -0400 Received: from localhost.localdomain (unknown [117.99.92.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B56120883; Sun, 24 Mar 2019 16:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553445177; bh=VXHCWPhrIrF9BuQ2zQp3kqsvz9tz28PcXwE6vGdYhzQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jgZSZaPrxrbiGlZLUxzW07+FgxsCT2fMJ151IsXOjNANZJr0J4/DNPOwnZnwI8szS FvB7UcfecU1U8Dz7n+EhmJamDeMRCg73eVLSAeuLzRTmV41GH47CE81aj6jaWDqCDS sEDBESakhgWnoOEf3srwrsH9yLaS+6Cp2EFXX4Bs= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , David Brown , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Niklas Cassel Subject: [PATCH 2/6] arm64: dts: qcom: qcs404: Enable ethernet for EVB-4000 Date: Sun, 24 Mar 2019 22:02:05 +0530 Message-Id: <20190324163209.17312-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190324163209.17312-1-vkoul@kernel.org> References: <20190324163209.17312-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org EVB-4000 comes with ethernet so enable it and add pinctrl bindings. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts | 82 ++++++++++++++++++++ 1 file changed, 82 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts index 11269ad3de0d..8234cff414de 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts +++ b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts @@ -3,9 +3,91 @@ /dts-v1/; +#include #include "qcs404-evb.dtsi" / { model = "Qualcomm Technologies, Inc. QCS404 EVB 4000"; compatible = "qcom,qcs404-evb"; }; + +ðernet { + status = "ok"; + + snps,reset-gpio = <&tlmm 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"; + mdio { + #address-cells = <0x1>; + #size-cells = <0x0>; + compatible = "snps,dwmac-mdio"; + phy1: phy@4 { + compatible = "ethernet-phy-ieee802.3-c22"; + device_type = "ethernet-phy"; + reg = <0x4>; + }; + }; +}; + +&tlmm { + ethernet_defaults: ethernet-defaults { + int { + pins = "gpio61"; + function = "rgmii_int"; + bias-disable; + drive-strength = <2>; + }; + mdc { + pins = "gpio76"; + function = "rgmii_mdc"; + bias-pull-up; + }; + mdio { + pins = "gpio75"; + function = "rgmii_mdio"; + bias-pull-up; + }; + tx { + pins = "gpio67", "gpio66", "gpio65", "gpio64"; + function = "rgmii_tx"; + bias-pull-up; + drive-strength = <16>; + }; + rx { + pins = "gpio73", "gpio72", "gpio71", "gpio70"; + function = "rgmii_rx"; + bias-disable; + drive-strength = <2>; + }; + tx-ctl { + pins = "gpio68"; + function = "rgmii_ctl"; + bias-pull-up; + drive-strength = <16>; + }; + rx-ctl { + pins = "gpio74"; + function = "rgmii_ctl"; + bias-disable; + drive-strength = <2>; + }; + tx-ck { + pins = "gpio63"; + function = "rgmii_ck"; + bias-pull-up; + drive-strength = <16>; + }; + rx-ck { + pins = "gpio69"; + function = "rgmii_ck"; + bias-disable; + drive-strength = <2>; + }; + }; +};