From patchwork Tue Feb 10 09:10:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 44526 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 298872151F for ; Tue, 10 Feb 2015 09:10:34 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id r20sf3856834wiv.3 for ; Tue, 10 Feb 2015 01:10:33 -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=/kz7uSi0C+gEa4i0dYqCbcOhNGkeEbfqBNv6qBZAA2M=; b=H1F36GP0QoRLPhqYKzzs+S+BsR8NDzNmXY06sgJoDaUyrPVz3H1RXzSIvqEsx6wi6k xkJwueXt6hpajCLISz+k2Ca2uua8i8Mp68OVOtLDyJEjTcNTplcYOQeC8NhpXHSyJwlI s+T0oRq/GJ2VcZXxFZ/wOHJ/ZuRV4m/ejQlfETtMSdr0D5DCLjAUH7QqCwyVCD4/wcYu SCxc/UeCeVJzR5m2i4L+n6vfrp7YhK1o/XK/SnkFy+5aple32splCxKPrW4tQJ3hdwrj gxuwoZwb5cuJqgSB+6R7EOIof3+dzxZDD+FE3ahRFbOT4PjK+6tLtm2k2yQ3khQ0VUPv 6U+Q== X-Gm-Message-State: ALoCoQlCJigOxPMnQqolsOXM4gEliQF9T1tK8yKuH0jjZ/OLC5VI/WmkzFrpDkpg6rITrVCVoabJ X-Received: by 10.180.109.132 with SMTP id hs4mr2386399wib.1.1423559433464; Tue, 10 Feb 2015 01:10:33 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls651633lao.83.gmail; Tue, 10 Feb 2015 01:10:33 -0800 (PST) X-Received: by 10.112.159.195 with SMTP id xe3mr22026740lbb.64.1423559433309; Tue, 10 Feb 2015 01:10:33 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id yi9si11542587lbb.13.2015.02.10.01.10.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 01:10:33 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by labhz20 with SMTP id hz20so18805570lab.0 for ; Tue, 10 Feb 2015 01:10:33 -0800 (PST) X-Received: by 10.112.135.196 with SMTP id pu4mr21506805lbb.41.1423559433231; Tue, 10 Feb 2015 01:10:33 -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 h5csp480779lbj; Tue, 10 Feb 2015 01:10:32 -0800 (PST) X-Received: by 10.68.194.71 with SMTP id hu7mr35286094pbc.52.1423559431334; Tue, 10 Feb 2015 01:10:31 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hm2si23289735pdb.228.2015.02.10.01.10.30; Tue, 10 Feb 2015 01:10:31 -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 S1753494AbbBJJK2 (ORCPT + 4 others); Tue, 10 Feb 2015 04:10:28 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:32958 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753420AbbBJJK0 (ORCPT ); Tue, 10 Feb 2015 04:10:26 -0500 Received: by pdbnh10 with SMTP id nh10so35222842pdb.0 for ; Tue, 10 Feb 2015 01:10:25 -0800 (PST) X-Received: by 10.70.25.4 with SMTP id y4mr19680702pdf.5.1423559425473; Tue, 10 Feb 2015 01:10:25 -0800 (PST) Received: from localhost.localdomain ([210.177.145.249]) by mx.google.com with ESMTPSA id kl11sm18621053pbd.89.2015.02.10.01.10.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Feb 2015 01:10:24 -0800 (PST) From: Zhangfei Gao To: balbi@ti.com, john.youn@synopsys.com, Mian Yousaf Kaukab , "dan . zhao" , Wangbinghui , Peter Chen , Sergei Shtylyov Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Zhangfei Gao Subject: [resend PATCH v3 2/4] Documentation: dt-bindings: add dt binding info for hi6220 Date: Tue, 10 Feb 2015 17:10:02 +0800 Message-Id: <1423559404-13058-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423559404-13058-1-git-send-email-zhangfei.gao@linaro.org> References: <1423559404-13058-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.215.54 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..b8278de --- /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,gpio-vbus: gpio of detecting vbus. +- hisilicon,gpio-id: 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 = <&gpio2 6 0>; + hisilicon,gpio-id = <&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>; + };