From patchwork Sat Feb 7 04:56:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 44493 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4A90321521 for ; Sat, 7 Feb 2015 04:56:43 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id w7sf289673lbi.0 for ; Fri, 06 Feb 2015 20:56:42 -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=sNjb4Q3rjfbaClR96VxEjzuYGkovaSDZwE0p3HICllA=; b=Pv0tdaDgD8BNhk8aRRlziJyUYybiWeT8YkCR+FHkF2yp/sUWLAiNDbmZIDIoLOjFGM M1CbkJ3s7qFt5dD7uqOIy4bk+zxcEaM6uRH7V6wPzkc5f4UUxf+W9YUyZk7PZvfApg+C Ls5U3ODpDggGQzGyuwvAr55L6mBubQnWU5eJopWXgfm7Fd08M8Xuragb8hxZyjnb1DOh ZIKzbrx6ZO4XRSn52IVHGoP8UbwQgJTtNn65vkjw1Fwt3y4753dXeFSAsFO0ol1yVw9u f2xZFGZNq/Y4OybNnq6XlolgUrD36ahH5ola+k/8AImXTZKYDgpz/Is2dLS2fCcqkOZL bR0g== X-Gm-Message-State: ALoCoQkv3XHYzCpO1YfByGlyKvl8xrU1NELANVeWerKV/f1VOOwb6Y+RBk7vbQIcul9oNH/xum4p X-Received: by 10.112.181.198 with SMTP id dy6mr866670lbc.22.1423285001694; Fri, 06 Feb 2015 20:56:41 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.137 with SMTP id lc9ls307743lab.28.gmail; Fri, 06 Feb 2015 20:56:41 -0800 (PST) X-Received: by 10.112.132.67 with SMTP id os3mr5875798lbb.90.1423285001344; Fri, 06 Feb 2015 20:56:41 -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 o7si2708638laj.175.2015.02.06.20.56.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Feb 2015 20:56:41 -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 labgd6 with SMTP id gd6so4901807lab.4 for ; Fri, 06 Feb 2015 20:56:40 -0800 (PST) X-Received: by 10.152.37.138 with SMTP id y10mr5904581laj.88.1423285000930; Fri, 06 Feb 2015 20:56:40 -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 h5csp2208700lbj; Fri, 6 Feb 2015 20:56:39 -0800 (PST) X-Received: by 10.66.66.166 with SMTP id g6mr11179568pat.88.1423284997882; Fri, 06 Feb 2015 20:56:37 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id up15si12492318pbc.256.2015.02.06.20.56.36; Fri, 06 Feb 2015 20:56:37 -0800 (PST) Received-SPF: none (google.com: devicetree-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 S1752424AbbBGE4f (ORCPT + 5 others); Fri, 6 Feb 2015 23:56:35 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:38161 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbbBGE4f (ORCPT ); Fri, 6 Feb 2015 23:56:35 -0500 Received: by pdbft15 with SMTP id ft15so18918346pdb.5 for ; Fri, 06 Feb 2015 20:56:34 -0800 (PST) X-Received: by 10.66.235.137 with SMTP id um9mr11024210pac.89.1423284994800; Fri, 06 Feb 2015 20:56:34 -0800 (PST) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id iv1sm9583297pbc.87.2015.02.06.20.56.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Feb 2015 20:56:33 -0800 (PST) From: Zhangfei Gao To: balbi@ti.com, john.youn@synopsys.com, Mian Yousaf Kaukab , "dan . zhao" , Sergei Shtylyov , Peter Chen Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Zhangfei Gao Subject: [PATCH v2 2/4] Documentation: dt-bindings: add dt binding info for hi6220 Date: Sat, 7 Feb 2015 12:56:04 +0800 Message-Id: <1423284966-3485-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423284966-3485-1-git-send-email-zhangfei.gao@linaro.org> References: <1423284966-3485-1-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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..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>; + };