From patchwork Tue Dec 12 05:56:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10106239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B9EE6032B for ; Tue, 12 Dec 2017 05:56:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F069F29A46 for ; Tue, 12 Dec 2017 05:56:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3E7829A66; Tue, 12 Dec 2017 05:56:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CCB5929A46 for ; Tue, 12 Dec 2017 05:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=mlGns3uGET19ZrkAYMT8MVnd9aIupFHbiMmJ/HJlnZc=; b=KCN BlvynS/lo8x4vwZ78j4FDbA/TbaqVSFvyyZYf4HOwFCCjZA1cb4fPvXxjLMCcKlMhA8TajpyqLcAA VLbnzjrrBCAZsHcPQKbbF6xkL7+fc9+xPR+udpaao5x4OAXevTsn7mBfw1lI0BprXIFWSL4Jxe3MG GZ9oNTSCCqiLDFTnHHTqhQAJDIBkyDU7LroyoaTWLHXWNv1VLNCAyULydR+HvXe+u1FZNRX5a+kuC mBPMh2UU11jvfRln8ENAcPQdIaundw4lbUN/jcPbsf3z1MPb2gCuvOn2aTtbJBAznNNDML7K9ULgC X2Kboy6htLbK8RfcB3t3TvYQjVuNZEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eOdYj-0000yn-EK; Tue, 12 Dec 2017 05:56:53 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eOdYf-0000y6-Es for linux-arm-kernel@lists.infradead.org; Tue, 12 Dec 2017 05:56:51 +0000 Received: by mail-pg0-x244.google.com with SMTP id o2so12726526pgc.8 for ; Mon, 11 Dec 2017 21:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=NKhmQCbHZuprltQ2BUVRJ69anG0l1E8FGbF9EhPjNUU=; b=Vxdn+FBUBUi3C85jF1yD3WfFqnSeIwBSjhRm00aOJ29l6XJ8TD/pBDaMeOAf7TsVm8 3P7kvv2wp6ghYg8Udi/4UZTYGbZguS/N7l40y//oDzRh0Zghz1dwJD8WHBviM5qJOn1l ezF5qW9EUa5euZeVJVqUx6H8+g/MNICYaNltXY3OFPxb3SuNRp/lpILn8tJiSJ7BSVQT 8ULsXELORY05fzQnz2KoM56O+GItNSuqwx9KvyGWYZlJQEiUHB0T/aiIr3CXb82nEaVC zgtPUdABpMduW+sdhhv6FCesO1L7RlVPD7I88J4P46gXOr5H+cF1IK2Xrles66rWi+f5 X//w== 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; bh=NKhmQCbHZuprltQ2BUVRJ69anG0l1E8FGbF9EhPjNUU=; b=uUdn2vVtbkmc2pmGHxAk2SPKfM8ivMN5Ki4L8tmfCiKxU2dzIqXcPhAZ2WLOxJ0bVn obLufVk/Iz+44iEc5LvW53kIXJyieW5RKjO0rEoeS3ptGfHrNI9+X4N0LfygwKYr94Bl cmZGoylF8LkSFLrvMHiTQYP9m4R8fsLI7bJ0q8ynxSQLA1O6OVT3bIQTYybvOQVC2cif TsAZS4NEi8/Yb62L4EpUwH6Ul+HeNXrVJKnQHJaHdPl0gdf25vSApO9367z0l5tUw8rA 4xWasGaa35uskKfTTb7dJ+AiKeUHYXoCKqcuTg0R4bJvyFPmCP29aSYMnRp5/IXE0/Rg WMjQ== X-Gm-Message-State: AKGB3mKKiFBehXae+GU5ELHSeIS6HYGG/g9qdeWEispH8b+cgm2nd37e T5IBg3+NYYCoB3VUk2tkltJkKw== X-Google-Smtp-Source: ACJfBou9Zh//tt/Obgr0XmRiNi4bca1+ZL/NoP0awatIwZ1qdNlD/KzA94ZpMPZNYn8WBp14xdB0Xw== X-Received: by 10.98.86.193 with SMTP id h62mr1129921pfj.109.1513058187804; Mon, 11 Dec 2017 21:56:27 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id w21sm28002968pfl.50.2017.12.11.21.56.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Dec 2017 21:56:27 -0800 (PST) From: Jagan Teki To: Maxime Ripard Subject: [PATCH] arm64: allwinner: a64: a64-olinuxino: add usb otg Date: Tue, 12 Dec 2017 11:26:09 +0530 Message-Id: <1513058169-25516-1-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171211_215649_563837_AFF59E19 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Catalin Marinas , linux-sunxi@googlegroups.com, Will Deacon , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add usb otg support for a64-olinuxino board, - USB0-ID connected with PH9 - USB0-VBUSDET connected with PH6 - USB-DRVVBUS controlled by N_VBUSEN pin from PMIC Signed-off-by: Jagan Teki --- .../boot/dts/allwinner/sun50i-a64-olinuxino.dts | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index 338e7861..f9bc6c3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -59,6 +59,10 @@ }; }; +&ehci0 { + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; @@ -70,6 +74,10 @@ status = "okay"; }; +&ohci0 { + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -78,6 +86,7 @@ reg = <0x3a3>; interrupt-parent = <&r_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ }; }; @@ -192,8 +201,25 @@ regulator-name = "vcc-rtc"; }; +®_drivevbus { + regulator-name = "usb0-vbus"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ + usb0_vbus_det-gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ + usb0_vbus-supply = <®_drivevbus>; + status = "okay"; +};