From patchwork Tue Nov 27 10:11:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 1003755 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ossystems.com.br Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4340Bk4rVxz9s29 for ; Tue, 27 Nov 2018 21:19:26 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 2BB70C221ED; Tue, 27 Nov 2018 10:17:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E8F2DC22112; Tue, 27 Nov 2018 10:12:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 04B83C22112; Tue, 27 Nov 2018 10:12:25 +0000 (UTC) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by lists.denx.de (Postfix) with ESMTPS id E6E24C22164 for ; Tue, 27 Nov 2018 10:11:57 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id e5so21046133qtr.12 for ; Tue, 27 Nov 2018 02:11:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=Dji2ilN+s6D7Ds2YqkPjNJXWi8hZS3EjFIbK5DswZ+0=; b=Awz6gzo4vD4HkvLPI7pGuNDlCb3fjBG62IaTA2LYuBDe5BT/cSeWyy9QpU2To0ZOwG 1az62duPuJwyHyw/kwcCO98x0cfE5XDFDGbhFAxfTrLa1nmfbMOjpsxnUIOJ+eiRwaSQ TYdFnD1SW7vcHRAN45MRcW5Uosae8rjeA9ZQN/s+skbuEtaks5IpweFhbHxo7iI01bC2 //GD5i2P1FcJrFfjRnInD5Hn6nZKF/baZZsv+L9sfzQw5eQbVAGCLz1GofJzmBx7nNoR lqkhJ1/ovhlbQL+tCmvvg1XCgNKf9i7sKT1l+ywqrvzfXiqDLWcqpAAKeLc00lPXhIyi 6fUQ== X-Gm-Message-State: AA+aEWb8z7wrNpEPnwKm5Bi0g4ZRtfFmWFSZ+ycpDUPoMg2xKIinRFLl sNZcujGW8041a3ozrEbvw6vaV9U+ X-Google-Smtp-Source: AFSGD/VdxQmZMdY2p/Ba0CxhpWZ24CKglJMi9nakIYG6xj/knuG4gqEh1WhdMrGWRn5Uhgrw4PRAEw== X-Received: by 2002:a0c:c2ce:: with SMTP id c14mr31019933qvi.7.1543313516649; Tue, 27 Nov 2018 02:11:56 -0800 (PST) Received: from localhost.localdomain ([181.220.65.91]) by smtp.gmail.com with ESMTPSA id s34sm2216065qth.72.2018.11.27.02.11.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 02:11:55 -0800 (PST) Received: by localhost.localdomain (sSMTP sendmail emulation); Tue, 27 Nov 2018 08:11:50 -0200 From: Otavio Salvador To: U-Boot Mailing List Date: Tue, 27 Nov 2018 08:11:08 -0200 Message-Id: <20181127101109.10552-6-otavio@ossystems.com.br> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181127101109.10552-1-otavio@ossystems.com.br> References: <20181127101109.10552-1-otavio@ossystems.com.br> MIME-Version: 1.0 Organization: O.S. Systems Software LTDA. Cc: Jason Zhu , Tom Rini , Otavio Salvador , Vicent Chi , Andy Yan Subject: [U-Boot] [PATCH v4 5/6] ARM: dts: rockchip: Add rv1108 USB OTG pinctrl X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This adds the definitions need to use the USB OTG in rv1108 board. This has been tested using USB Mass Storage to export and program a eMMC device. Signed-off-by: Otavio Salvador --- Changes in v4: - new patch Changes in v3: None Changes in v2: None arch/arm/dts/rv1108.dtsi | 45 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/rv1108.dtsi b/arch/arm/dts/rv1108.dtsi index 23a44bfaca..215d885225 100644 --- a/arch/arm/dts/rv1108.dtsi +++ b/arch/arm/dts/rv1108.dtsi @@ -121,8 +121,35 @@ }; grf: syscon@10300000 { - compatible = "rockchip,rv1108-grf", "syscon"; + compatible = "rockchip,rv1108-grf", "syscon", "simple-mfd"; reg = <0x10300000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + u2phy: usb2-phy@100 { + compatible = "rockchip,rv1108-usb2phy"; + reg = <0x100 0x0c>; + clocks = <&cru SCLK_USBPHY>; + clock-names = "phyclk"; + #clock-cells = <0>; + clock-output-names = "usbphy"; + rockchip,usbgrf = <&usbgrf>; + status = "disabled"; + + u2phy_otg: otg-port { + interrupts = ; + interrupt-names = "otg-mux"; + #phy-cells = <0>; + status = "disabled"; + }; + + u2phy_host: host-port { + interrupts = ; + interrupt-names = "linestate"; + #phy-cells = <0>; + status = "disabled"; + }; + }; }; saradc: saradc@1038c000 { @@ -141,6 +168,11 @@ reg = <0x20060000 0x1000>; }; + usbgrf: syscon@202a0000 { + compatible = "rockchip,rv1108-usbgrf", "syscon"; + reg = <0x202a0000 0x1000>; + }; + cru: clock-controller@20200000 { compatible = "rockchip,rv1108-cru"; reg = <0x20200000 0x1000>; @@ -200,12 +232,19 @@ }; usb20_otg: usb@30180000 { - compatible = "rockchip,rv1108-usb", "rockchip,rk3288-usb", + compatible = "rockchip,rv1108-usb", "rockchip,rk3066-usb", "snps,dwc2"; reg = <0x30180000 0x40000>; interrupts = ; - hnp-srp-disable; + clocks = <&cru HCLK_OTG>; + clock-names = "otg"; dr_mode = "otg"; + g-np-tx-fifo-size = <16>; + g-rx-fifo-size = <280>; + g-tx-fifo-size = <256 128 128 64 32 16>; + g-use-dma; + phys = <&u2phy_otg>; + phy-names = "usb2-phy"; status = "disabled"; };