From patchwork Mon Jan 21 09:13:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 156179 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6156282jaa; Mon, 21 Jan 2019 01:15:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN62VxbclqARcQP6MIRdzE0aozFHxCY/gjlTTVMmAphVYabaPhKVOp0o4+6iWfmZXxiZD1uJ X-Received: by 2002:a17:902:29ab:: with SMTP id h40mr29263447plb.238.1548062125495; Mon, 21 Jan 2019 01:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548062125; cv=none; d=google.com; s=arc-20160816; b=VevpmEtSUv7zmBkOK7sOyAt1/kBui+WYusiDEBGZN5boAVQgpEz8RHm1DT6QO7b7gO HHuB+GsdL9+72vf7PldJ8mwjy/LPO8f/jJRpZNDoQ7zH6BqD76gFT+Kn0a57JQVASx/j F3d+B0gphiv0CdHgJcryjfDobPjQwUFU2L8gmuJw797d1uo5RQx4jmDjvOTS+XWpqHed dRN5Pzadp/euX5tJAWeNEpnkqVg0RYv22osG+KkQqNikzJUoAydV1ZACczCNKPLvtX/s nhq5dBGb7HW9t+ujGdpZp9qofkO2XqcdQM79H7Kam2pxdW7amN9ST/A3eJhFqY+WM8qt zzSQ== 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=AdzydZe6gjZlu4fp7561poTSubU/2Nw96AwZhQmedlQ=; b=1Dg7tBo8m62uYVUUqbACUwVjkxJfcRQwkZnmYyYKl6RzcqgO/JL7K2LOn4qNnVoVAY I3phMfdACBM7KGdi+PxxggCB58+gBrHX1hvjweeQnpJkfa32JR0utVzmAD0WubZfxFje KlGJo/jfFFihSI61PaFLU7WtMjgLZy1EovThLWiBJn8k1U/E6LMPXj99zf3129NdirEQ x8ECXCBqD3792Ld2u5CsjGVXl4AFALnHPMt9BvFQPahzkPzKBLyC0QlzJgHDWer8jicF t5Zaybt8YlTOwJRJ43HRVFs6v/TO2Kkq/zzy2om4OXM4KwsVmyYfvgFuNd/Dww10kYEe 4pJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2XFdGlJt; 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 h6si13075679plk.231.2019.01.21.01.15.25; Mon, 21 Jan 2019 01:15:25 -0800 (PST) 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=2XFdGlJt; 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 S1727140AbfAUJPY (ORCPT + 7 others); Mon, 21 Jan 2019 04:15:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:49806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbfAUJPY (ORCPT ); Mon, 21 Jan 2019 04:15:24 -0500 Received: from localhost.localdomain (unknown [122.178.235.99]) (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 E96F02085A; Mon, 21 Jan 2019 09:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548062123; bh=vN5DQsJ+7iSmIPmKbMyjww11VZc0pO4kjiNipLAuLnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2XFdGlJt8vSWYopRcDMi8+AgC5YYMPCJrkYk9OO72nDOL5Owc9FlhVfn26GfjXZT+ lpC2GZehYNZOYFZzmkK/hJhypDSqrLRY3ebLchpvMRziE1BEnlUVXEEvmbIobPdPtF g8rdPDyJ3mcl+741h9MmvHigsktf2ZD9ZJXUc6uI= From: Vinod Koul To: David S Miller Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel , Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding Date: Mon, 21 Jan 2019 14:43:14 +0530 Message-Id: <20190121091318.20079-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121091318.20079-1-vkoul@kernel.org> References: <20190121091318.20079-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 Add support for Qualcomm ethqos found in some SoCs like QCS404. Signed-off-by: Vinod Koul --- .../devicetree/bindings/net/qcom,ethqos.txt | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.txt -- 2.20.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.txt b/Documentation/devicetree/bindings/net/qcom,ethqos.txt new file mode 100644 index 000000000000..fcf5035810b5 --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.txt @@ -0,0 +1,64 @@ +Qualcomm Ethernet ETHQOS device + +This documents dwmmac based ethernet device which supports Gigabit +ethernet for version v2.3.0 onwards. + +This device has following properties: + +Required properties: + +- compatible: Should be qcom,qcs404-ethqos" + +- reg: Address and length of the register set for the device + +- reg-names: Should contain register names "stmmaceth", "rgmii" + +- clocks: Should contain phandle to clocks + +- clock-names: Should contain clock names "stmmaceth", "pclk", + "ptp_ref", "rgmii" + +- interrupts: Should contain phandle to interrupts + +- interrupt-names: Should contain interrupt names "macirq", "eth_lpi" + +Rest of the properties are defined in stmmac.txt file in same directory + + +Example: + +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>; + interrupts = , + ; + interrupt-names = "macirq", "eth_lpi"; + snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + + snps,txpbl = <8>; + snps,rxpbl = <2>; + snps,aal; + snps,tso; + + phy-handle = <&phy1>; + phy-mode = "rgmii"; + + mdio { + #address-cells = <0x1>; + #size-cells = <0x0>; + compatible = "snps,dwmac-mdio"; + phy1: phy@4 { + device_type = "ethernet-phy"; + reg = <0x4>; + }; + }; + +};