From patchwork Thu Feb 5 14:46:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 44462 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5AD8D21173 for ; Thu, 5 Feb 2015 14:47:33 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id f15sf5773301lbj.2 for ; Thu, 05 Feb 2015 06:47:32 -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=lpnLQQqOpp2/vJvAN/XDysRMpCJNnVwaFan9gp/IVxY=; b=LyIlI8cnPA5RTbb7D+jablLdN2qivxRy9gaqEAKJqQQuKPQxc+Gf7fPlrmycGkvwOp aW1EASkpDKWmTRetXsUUe9OhkayI5mAv9yaX7aeBOFWATui8IL/atEJxkFvf0Q10dyCx 1wfKIKgcIZ8zviu42p3Fgtnl3x22E0D20MUZVOaGt+0faZb2sXYM1UtJ0GfX4meH4pEK XSdMtyojQHdxPZ6rzxl7qZEeacicnXJyOyMM+hDpZVGYHl0UuAIeu9d/dCo1EXlyRD3o Ux/2TIGJ8XquC5aId87ehdDqeY3F5wxteysigOmRxbUuildNV0swlT5Zn5L0zSczCbHK Q/UA== X-Gm-Message-State: ALoCoQntT3SKZ/b9KnxOjWnIGAm2gt3IKSf8/oUYX4HO3zsjhwShnchkkJKbLFGtIdlZhNbzmfwh X-Received: by 10.112.133.98 with SMTP id pb2mr555491lbb.2.1423147652108; Thu, 05 Feb 2015 06:47:32 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.197 with SMTP id g5ls167449lam.99.gmail; Thu, 05 Feb 2015 06:47:31 -0800 (PST) X-Received: by 10.152.185.72 with SMTP id fa8mr3811018lac.73.1423147651967; Thu, 05 Feb 2015 06:47:31 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id ww5si4144661lbb.22.2015.02.05.06.47.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 06:47:31 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id l4so7879263lbv.13 for ; Thu, 05 Feb 2015 06:47:31 -0800 (PST) X-Received: by 10.112.135.196 with SMTP id pu4mr3902883lbb.41.1423147651848; Thu, 05 Feb 2015 06:47:31 -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 h5csp1186275lbj; Thu, 5 Feb 2015 06:47:30 -0800 (PST) X-Received: by 10.68.208.101 with SMTP id md5mr6436598pbc.28.1423147650059; Thu, 05 Feb 2015 06:47:30 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha8si6248846pbc.232.2015.02.05.06.47.29; Thu, 05 Feb 2015 06:47:30 -0800 (PST) Received-SPF: none (google.com: linux-usb-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 S1757858AbbBEOr1 (ORCPT + 4 others); Thu, 5 Feb 2015 09:47:27 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:44121 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757847AbbBEOr1 (ORCPT ); Thu, 5 Feb 2015 09:47:27 -0500 Received: by pdbft15 with SMTP id ft15so8154952pdb.11 for ; Thu, 05 Feb 2015 06:47:26 -0800 (PST) X-Received: by 10.68.200.36 with SMTP id jp4mr5914277pbc.153.1423147646439; Thu, 05 Feb 2015 06:47:26 -0800 (PST) Received: from localhost.localdomain (119.81.172.112-static.reverse.softlayer.com. [119.81.172.112]) by mx.google.com with ESMTPSA id rb3sm5353511pab.29.2015.02.05.06.47.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Feb 2015 06:47:25 -0800 (PST) From: Zhangfei Gao To: balbi@ti.com, john.youn@synopsys.com, Mian Yousaf Kaukab , "dan . zhao" Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Zhangfei Gao Subject: [PATCH 2/4] Documentation: dt-bindings: add dt binding info for hi6220 Date: Thu, 5 Feb 2015 22:46:58 +0800 Message-Id: <1423147620-5760-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423147620-5760-1-git-send-email-zhangfei.gao@linaro.org> References: <1423147620-5760-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@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.217.182 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 | 50 ++++++++++++++++++++++ 1 file changed, 50 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..e926364 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hi6220-usb.txt @@ -0,0 +1,50 @@ +Hisilicon hi6220 SoC USB controlle +----------------------------- + +usb controller is inherited from dwc2, refer dwc2.txt +----- + +Required properties: +- compatible: "hisilicon,hi6220-usb-phy" +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 to the PHY clock. Use as per Documentation/devicetree + /bindings/clock/clock-bindings.txt +- hisilicon,peripheral-syscon: phandle of syscon used to control peripheral. +- hisilicon,gpio_vbus_det: gpio of detecting vbus. +- hisilicon,gpio_id_det: gpio of detecting id. + +Example: + + peripheral_ctrl: syscon@f7030000 { + compatible = "syscon"; + reg = <0x0 0xf7030000 0x0 0x1000>; + }; + + usb2_phy: usbphy { + compatible = "hisilicon,hi6220-usb-phy"; + vcc-supply = <&fixed_5v_hub>; + hisilicon,gpio_vbus_det = <&gpio2 6 0>; + hisilicon,gpio_id_det = <&gpio2 5 0>; + hisilicon,peripheral-syscon = <&peripheral_ctrl>; + clocks = <&clock_sys HI6220_USBOTG_HCLK>; + }; + + usb: usb@f72c0000 { + compatible = "hisilicon,hi6220-usb"; + reg = <0x0 0xf72c0000 0x0 0x40000>; + phys = <&usb2_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>; + };