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: 5817941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 92D43BF440 for ; Thu, 12 Feb 2015 07:40:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4CE02017E for ; Thu, 12 Feb 2015 07:40:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DE852201F2 for ; Thu, 12 Feb 2015 07:40:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLoM5-0006Rt-S2; Thu, 12 Feb 2015 07:38:33 +0000 Received: from mail-pd0-f176.google.com ([209.85.192.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLoLh-0006Dl-V5 for linux-arm-kernel@lists.infradead.org; Thu, 12 Feb 2015 07:38:10 +0000 Received: by pdbfl12 with SMTP id fl12so10199532pdb.4 for ; Wed, 11 Feb 2015 23:37:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7iHY9AzGLreUuSvMYKt+2yX8ZJL/9Ddaf/KX3p2VkB4=; b=AlhV+s65eIZQsWgeca6DInp+lJqdtPe6YwKrkWBbwzUDe21S6T8ocCtD22XfyTwIUK xWd1Nnks1FG5toe2t1n5h/g9aLupf0rQDAG0WM6ZweSm8A+v8o68Lz5yj3obY2DRJGLU iH7HJ8K+Y2ihdezAHXq3mbEmvTi1svQuViqC2v7x991jbDa8e8dFl+6Pgzv3ah3BUri2 jE68oqr2WKEMb80sQJAI6kprrOd465Dd7QgU5SshUSiaASILt6Ld/oq9Q+pZgktbxDXl hGtbc5btL/6FLu0jop7wrkV6yac1eiNtRLFZ7W62mTmrIs3SahVmSKJLDUpdE4Dz4hbV RS1A== X-Gm-Message-State: ALoCoQmkNdNnBEDWToQCtqJtnPpAcoLciqtoWaRED1/91TGI///sNcIwGXjv5a2cVQNfvoCJS/Ie 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150211_233810_093065_9CEA19FB X-CRM114-Status: UNSURE ( 7.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangfei Gao X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; + };