From patchwork Tue Feb 9 09:33:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 8259221 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 20827BEEE5 for ; Tue, 9 Feb 2016 09:36:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D6DB20251 for ; Tue, 9 Feb 2016 09:36:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 65C3C2024C for ; Tue, 9 Feb 2016 09:36:10 +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 1aT4h2-0006MC-FT; Tue, 09 Feb 2016 09:34:44 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aT4gC-0005IX-Bj for linux-arm-kernel@lists.infradead.org; Tue, 09 Feb 2016 09:33:58 +0000 Received: by mail-wm0-x241.google.com with SMTP id c200so2275805wme.0 for ; Tue, 09 Feb 2016 01:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=xYNnjBd1BGZqb7usdXxkZ8njanBtOrBtrPT74tX23a4=; b=iPgRRB1vxH90+z5LHw/9fgpVfqCSYKFT09GOdA0NO/oaGSRjM/aH/1WpUfbIHGS5gx 9QxqaQOV71W1V183YzdqXl5sKLem628NPQajJOqznWQGLFWXCg/ThwIIzWrLpfV65iS0 y5dKlafDzeTT2oOkWVHIHi5p7p497k+IAhNowGeAzjsLaXROvEvP/Ldgk706ZT7wNJiz OSLl3wKlSyvnUVdNMPfshBLR7vJxk8TLISlQTwi9PKAqT6o5qa2BuHkz9et3Ekx7NbvH Z6LalgzmTUDnv9hfbTQ5/4iGfW9tTsC2/Z5JiX20gx7qx3c8nESvFCVNfaNgGOEG43Kt xLOg== 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; bh=xYNnjBd1BGZqb7usdXxkZ8njanBtOrBtrPT74tX23a4=; b=l+L+/KkS59af7utWX6sZFedbaPoQez+7mO3D8ICSWtTvK0PjvZYn5440ynM6Rx+M5w 94gAUOKUFoTaKs8RWjoeIqRa8eT4CgiNh/TrYAVE7M5SY0w7sOM+2D9tv8WDPfbkF1yO sKSrdJoQbK9skntvI4yoVjpWc3FMGlq1K2umrzm7m/RalKXTwBdtp4Yy9Y/XY4Z4J2oS yTY3qnQsbuEeZhwI2Dp3zzr7IaAbt6IAQaPfk+EkjwFQ+Jzk5ECDCyqo3TKXN/abAS+6 AbkHDCoGlh21AJPnt88hARg2nyLXmOMGs5rBFA2xfa3b4M3DCXG90qKfYL7pL7HGbq6s 7MaQ== X-Gm-Message-State: AG10YOTRUhCcJRoRtvqqthYUDkuBSD/i6O3ItFV25cKZHqCu/LbgwAXDMXVNdDOdWE0Fqw== X-Received: by 10.194.192.170 with SMTP id hh10mr35774501wjc.69.1455010410783; Tue, 09 Feb 2016 01:33:30 -0800 (PST) Received: from coopshtpc.localdomain ([212.85.89.14]) by smtp.gmail.com with ESMTPSA id z65sm18488540wmg.1.2016.02.09.01.33.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Feb 2016 01:33:29 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Subject: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Olimex A20 EVB Date: Tue, 9 Feb 2016 10:33:28 +0100 Message-Id: <1455010408-27896-1-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 2.7.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160209_013353_134190_251B7C58 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Marcus Cooper 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.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Marcus Cooper Enable the otg/drc usb controller on the Olimex A20 EVB. Signed-off-by: Marcus Cooper Reviewed-by: Hans de Goede --- Changes since v1: - Added vbus0 regulator and vbus0 detection to dts --- arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts index c3c626b..23aacce 100644 --- a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts @@ -198,6 +198,10 @@ status = "okay"; }; +&otg_sram { + status = "okay"; +}; + &pio { ahci_pwr_pin_olimex_som_evb: ahci_pwr_pin@1 { allwinner,pins = "PC3"; @@ -219,6 +223,20 @@ allwinner,drive = ; allwinner,pull = ; }; + + usb0_id_detect_pin: usb0_id_detect_pin@0 { + allwinner,pins = "PH4"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { + allwinner,pins = "PH5"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; }; ®_ahci_5v { @@ -254,6 +272,10 @@ regulator-name = "avcc"; }; +®_usb0_vbus { + status = "okay"; +}; + ®_usb1_vbus { status = "okay"; }; @@ -268,7 +290,17 @@ status = "okay"; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + &usbphy { + pinctrl-names = "default"; + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; + usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH04 */ + usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH05 */ + usb0_vbus-supply = <®_usb0_vbus>; usb1_vbus-supply = <®_usb1_vbus>; usb2_vbus-supply = <®_usb2_vbus>; status = "okay";