From patchwork Thu Feb 12 07:37:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 44596 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 30C6C21527 for ; Thu, 12 Feb 2015 07:38:11 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf5755514eek.3 for ; Wed, 11 Feb 2015 23:38:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=XDZX18HFtQf3J3UU6B77LfVMWYeYQEP6S3xZdHVYwVs=; b=ayPsLUgZaDuEPjCMD+XfZfePFksex/ZyabQKa3DfFsk7SjEplO00iH8z/q9BYfamKp 40sdY6N6fVXNWqzvL0Ck4DSIaLHpSsFYeMCqGWWryZtSzuw1bcu48EfQFre/me1inH2o 3mKF3re69qgmlhJfjfOt3Erj2zRIr4G1qAm+ZEPJGf71KKd8JkJoctvkkJUaqpEhGg/Z vs/1Ug/aVYbij4aj1P8EG6TxeexSzl6f1QF0ePxklekQ5ZDrc9DG+jPjIFWVIypPYIH0 sUdQ0olx5zAg8O8p8NFeWyBGD/R8osXW4H4J2/4DSqTa1BeYuwaW5Epo9rPDyAcdHH+s qV0Q== X-Gm-Message-State: ALoCoQl2Y4c5wdxfGr6Wjbeiza8WlGVIKnRDFy8zAsOuxroO9NKude0Mv7z5DWzMBQRu3OZ33JZW X-Received: by 10.180.39.164 with SMTP id q4mr234712wik.5.1423726690342; Wed, 11 Feb 2015 23:38:10 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls157222lao.83.gmail; Wed, 11 Feb 2015 23:38:10 -0800 (PST) X-Received: by 10.152.5.101 with SMTP id r5mr2026335lar.33.1423726690043; Wed, 11 Feb 2015 23:38:10 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id ld6si2362963lab.40.2015.02.11.23.38.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 23:38:09 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labms9 with SMTP id ms9so2416667lab.10 for ; Wed, 11 Feb 2015 23:38:09 -0800 (PST) X-Received: by 10.112.85.68 with SMTP id f4mr2068743lbz.106.1423726689927; Wed, 11 Feb 2015 23:38:09 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp278732lbj; Wed, 11 Feb 2015 23:38:09 -0800 (PST) X-Received: by 10.68.212.6 with SMTP id ng6mr4033440pbc.135.1423726688065; Wed, 11 Feb 2015 23:38:08 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be6si3908288pbd.160.2015.02.11.23.38.06; Wed, 11 Feb 2015 23:38:08 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932340AbbBLHhw (ORCPT + 28 others); Thu, 12 Feb 2015 02:37:52 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:43983 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932310AbbBLHht (ORCPT ); Thu, 12 Feb 2015 02:37:49 -0500 Received: by pdev10 with SMTP id v10so10152545pde.10 for ; Wed, 11 Feb 2015 23:37:48 -0800 (PST) X-Received: by 10.68.226.198 with SMTP id ru6mr4445001pbc.56.1423726668648; Wed, 11 Feb 2015 23:37:48 -0800 (PST) Received: from linaro.solutionip.com ([210.177.145.245]) by mx.google.com with ESMTPSA id om9sm2844635pbb.34.2015.02.11.23.37.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Feb 2015 23:37:47 -0800 (PST) From: Zhangfei Gao To: Kishon Vijay Abraham I , balbi@ti.com, mark.rutland@arm.com, Peter Chen , Sergei Shtylyov , "dan . zhao" , Wangbinghui Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Zhangfei Gao Subject: [PATCH v4 2/4] Documentation: dt-bindings: add dt binding info for hi6220 Date: Thu, 12 Feb 2015 15:37:24 +0800 Message-Id: <1423726646-30336-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423726646-30336-1-git-send-email-zhangfei.gao@linaro.org> References: <1423726646-30336-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/usb/hi6220-usb.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hi6220-usb.txt diff --git a/Documentation/devicetree/bindings/usb/hi6220-usb.txt b/Documentation/devicetree/bindings/usb/hi6220-usb.txt new file mode 100644 index 0000000..b3a7b5a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hi6220-usb.txt @@ -0,0 +1,49 @@ +Hisilicon hi6220 SoC USB controller +----------------------------- + +usb controller is inherited from dwc2, refer dwc2.txt +----- + +Required properties: +- compatible: "hisilicon,hi6220-usb" +Refer to dwc2.txt for dwc2 usb properties + + +PHY: +----- + +Required properties: +- compatible: "hisilicon,hi6220-usb-phy" +- vcc-supply: phandle to the regulator that provides power to the PHY. +- clocks: phandle and clock specifier of the PHY clock. +- hisilicon,peripheral-syscon: phandle of syscon used to control peripheral. +- hisilicon,vbus-gpios: gpio of detecting vbus. +- hisilicon,id-gpios: gpio of detecting id. + +Example: + + sys_ctrl: syscon@f7030000 { + compatible = "hisilicon,sysctrl", "syscon"; + reg = <0x0 0xf7030000 0x0 0x1000>; + }; + + usb_phy: usb-phy { + compatible = "hisilicon,hi6220-usb-phy"; + vcc-supply = <&fixed_5v_hub>; + hisilicon,vbus-gpios = <&gpio2 6 0>; + hisilicon,id-gpios = <&gpio2 5 0>; + hisilicon,peripheral-syscon = <&sys_ctrl>; + clocks = <&clock_sys HI6220_USBOTG_HCLK>; + }; + + usb: usb@f72c0000 { + compatible = "hisilicon,hi6220-usb"; + reg = <0x0 0xf72c0000 0x0 0x40000>; + phys = <&usb_phy>; + dr_mode = "otg"; + g-use-dma; + g-rx-fifo-size = <512>; + g-np-tx-fifo-size = <128>; + g-tx-fifo-size = <128>; + interrupts = <0 77 0x4>; + };