From patchwork Wed Jan 23 17:48:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 156392 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp994748jaa; Wed, 23 Jan 2019 09:50:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN7nJuGHlUpkLY1C8F1REVbJ5jjybkiQdrnK2TqrY4RNUEcdoeD2XEAn1wJt2sA9imO8+SKC X-Received: by 2002:a17:902:1105:: with SMTP id d5mr3055390pla.47.1548265859154; Wed, 23 Jan 2019 09:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548265859; cv=none; d=google.com; s=arc-20160816; b=N51pERZRdFnpZV+KjD00DjN8Gth9G9VZQBAmlU8W5X5hQcYQ50Z0xYbLU2X0pKWJcK Lqay1KihYXr1WhKyC4K4otOU3liVPgnV4wAK1Skbpjrf0JvaFvXbjG3ewyod1b57Hq6p XcfBXYcM2a4nUehQFY3kjQW/s6zL4lmysj/pyMWPhpxvMWTtbpB4uYaOCVC6SRRHO8yw AL10TJx/JW+BTkz8ZbnMGAGYBzIM0og5OXsfqXk/xxyAf7563Vw4S+ilnYm3dqlsyQLn dfwlXR1m3GiDtG/rWEpJjjqW+5fTT3gsP2YhOxBDYy5Fvkud8tCAs97o4Dq3/ybe8dNC V4Sw== 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=lDsq0tY2p8Ofy8NHzRuH63GNYjcCigFeJIf/0vpc4yo=; b=PblQCHJ/P/RHkgJb7SjgrRbhhQUc/TU+l5kurH78DaWq+8ZsBS0oqSBHBIkeu+2gwg cqWF5Jx6h96NEtY5ouqj98QEe321CznGLSwpKyLIRNU54Yk5BhXESPZpFODthiaTXhuK DzRNgnne6fUI20U7xfC6p1/ydyN8wA0MuRclYCLt6A7V7QEBZbo/kyvWPo0Vp/NjV2QW Eii2cWSz0byOTj80jq93x/u5l1FuE3ovpYjfEQMDhBgJNPU3jt8Fo3s9Bldrdd3d9uK3 dz+Q398YSp0LUuu8+5CZaHukTf9GCn/Gu0gISsrkhYlaG01KRN/Hr6lvE2qu2T1Cc4MG jCbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dcISuv4Z; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 e4si12020163pgk.127.2019.01.23.09.50.58; Wed, 23 Jan 2019 09:50:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=dcISuv4Z; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726102AbfAWRu6 (ORCPT + 15 others); Wed, 23 Jan 2019 12:50:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:51582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbfAWRuv (ORCPT ); Wed, 23 Jan 2019 12:50:51 -0500 Received: from localhost.localdomain (unknown [106.200.229.238]) (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 4DC7F218A1; Wed, 23 Jan 2019 17:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548265851; bh=7RJ0hx5Bd+F3WHmJF/PTligIx21kyARUu/Bah/kDfSo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dcISuv4Zh1ywBz7n+9c4qExoNiMopdIxtH6MxZaLWjj9iTNI1Hzv4i8ASpYnalT1/ tgw8/klIz5UZW9oM9GLzUlIcOPsgVthviOyW/XTvE0ijiUE4XL59uhfl336ylLVHj9 +nERAKe83uZ8JYG1i4gm59LOtpDwVYHl8MaO7vo8= From: Vinod Koul To: Andy Gross , David Brown Cc: Vinod Koul , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson , Niklas Cassel Subject: [PATCH 2/3] arm64: dts: qcom: qcs404: Enable ethernet for EVB-4000 Date: Wed, 23 Jan 2019 23:18:38 +0530 Message-Id: <20190123174839.5321-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123174839.5321-1-vkoul@kernel.org> References: <20190123174839.5321-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 | 70 ++++++++++++++++++++ 1 file changed, 70 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..5c02e874be12 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts +++ b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts @@ -3,9 +3,79 @@ /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>; + +}; + +&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>; + }; + }; +};