From patchwork Mon Feb 8 15:59:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 8251611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A46439F319 for ; Mon, 8 Feb 2016 16:01:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6A3B2024D for ; Mon, 8 Feb 2016 16:01:43 +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 D275B201EC for ; Mon, 8 Feb 2016 16:01:42 +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 1aSoEW-0000cG-DB; Mon, 08 Feb 2016 16:00:12 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aSoEE-0008ND-F4 for linux-arm-kernel@bombadil.infradead.org; Mon, 08 Feb 2016 15:59:54 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by casper.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1aSoEC-0000IL-0A for linux-arm-kernel@lists.infradead.org; Mon, 08 Feb 2016 15:59:52 +0000 Received: by mail-wm0-x22e.google.com with SMTP id g62so122755485wme.0 for ; Mon, 08 Feb 2016 07:59:31 -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=FB9m31Kkfy9yt1HjMlzsFL5t1wBkdSlBSY5kbwJDih8=; b=zNacv53pz7iyWw5/61Ji7/Z/25G1kpYg+NgJVdPRaaDUpGkp/8YWFSSZDwKdgH16rs 16Gt+aVxLxl6yjV+/CkcSH9Uaa+N6ME3Ibw7RgVkrAvkZxw+44L5uhNlZYMGyNd6CSGr LzyqoB1SOqqBMGYBuNhODrB+gipp3rD+y43Op/umJqiHYKTGZLyC4UBLiZKClFyKpnT/ Xf+AePzf3S5GrnQOqyLxPLOPUeIJYihT3GQ3disL5CZXiE+tg32TtTKhVRYFjip5QdqF 30iYlYwtAIYuy8bxYggSReYH5ZByfdBr5Jvcn3maMUabJqBhrt7eg7WdZNE7/B4/EHi2 TbWw== 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=FB9m31Kkfy9yt1HjMlzsFL5t1wBkdSlBSY5kbwJDih8=; b=AdBR05TIUrL7CFl6kGOEK3Dce5GrqGCLOp1RoqfGGdHX6L+apGO2YMADO88Zn57Zmw NO0u3hwyW/5pEggDDabEniiarPun1slGuAMaNd/wxe5meDxsZPCiYVjfMOXmQP65dozk j6k9pZJWyCaWmuEvHcEtsOZmhakZTHPlhk2K2AE5Eyu96JMWBxi6RdVa8YoUcwPEnEW8 K8/Khc0XJo2wDU0gdd+V8rG++Nt2f1HqQp6ykmFPFPy8hDY7czdT2mZzJ5KMBgozevEo Vr+sJQzTFaZjQeSW6KFj0RndqqceUeg1wVfI5u6rOBh7ci/hF90WUPrcOVLf8sUk3gMG Ttlw== X-Gm-Message-State: AG10YOQT05EfbkpzsZT7mG6leVRgE3s6MU1RF4u2g+k2/0U1eYB9FlRH3S2QBUXyTZXMOA== X-Received: by 10.194.172.97 with SMTP id bb1mr31816499wjc.173.1454947170293; Mon, 08 Feb 2016 07:59:30 -0800 (PST) Received: from coopshtpc.localdomain ([212.85.89.14]) by smtp.gmail.com with ESMTPSA id t205sm13243046wmt.23.2016.02.08.07.59.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Feb 2016 07:59:28 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Subject: [linux-sunxi][PATCH] ARM: dts: sun7i: Enable USB DRC on Itead Ibox Date: Mon, 8 Feb 2016 16:59:27 +0100 Message-Id: <1454947167-12236-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-20160208_155952_193031_91F75268 X-CRM114-Status: UNSURE ( 9.66 ) 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 Itead Ibox device. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun7i-a20-itead-ibox.dts | 14 ++++++++++++++ arch/arm/boot/dts/sunxi-itead-core-common.dtsi | 9 +++++++++ 2 files changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-itead-ibox.dts b/arch/arm/boot/dts/sun7i-a20-itead-ibox.dts index 661c21d..a512581 100644 --- a/arch/arm/boot/dts/sun7i-a20-itead-ibox.dts +++ b/arch/arm/boot/dts/sun7i-a20-itead-ibox.dts @@ -118,8 +118,22 @@ allwinner,drive = ; allwinner,pull = ; }; + + usb0_id_detect_pin: usb0_id_detect_pin@0 { + allwinner,pins = "PH4"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; }; ®_ahci_5v { status = "okay"; }; + +&usbphy { + pinctrl-names = "default"; + pinctrl-0 = <&usb0_id_detect_pin>; + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ + status = "okay"; +}; diff --git a/arch/arm/boot/dts/sunxi-itead-core-common.dtsi b/arch/arm/boot/dts/sunxi-itead-core-common.dtsi index 2565d51..d22eea3 100644 --- a/arch/arm/boot/dts/sunxi-itead-core-common.dtsi +++ b/arch/arm/boot/dts/sunxi-itead-core-common.dtsi @@ -88,6 +88,10 @@ status = "okay"; }; +&otg_sram { + status = "okay"; +}; + #include "axp209.dtsi" ®_dcdc2 { @@ -129,6 +133,11 @@ status = "okay"; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + &usbphy { usb1_vbus-supply = <®_usb1_vbus>; usb2_vbus-supply = <®_usb2_vbus>;