From patchwork Fri Jan 12 09:09:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10160111 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 529DF602B3 for ; Fri, 12 Jan 2018 09:16:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34A7F286A4 for ; Fri, 12 Jan 2018 09:16:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 288862876D; Fri, 12 Jan 2018 09:16:00 +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 AA303286A4 for ; Fri, 12 Jan 2018 09:15:59 +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=C5CEtHYba4IqM+zOu5BuO77rF0oNdbqzz8zFdqtX630=; b=TAx IOiEEOAHBByzU7iDq7cD81iZBYWj6HwYIcqLBxBnu7MdgQZ6SWySXIIkiqH9XNym2ZAr5IacS31H1 7y9RfNkQULGfS5rUjeBMubuiPHaY1DyIpyzLSscL30EryV3zSDooixbx2jXRvxzz29PbMCXDaD47U HRjv8wTOoL5CS3MVPtkhi+DCIl5TRkiaL07lCQQjG5gBnTPd/qPIuq+7pvdOMnBQ7OTGHTAEmFLIm aH8TqyDcKCKenSFfvSI2yKR53Oudc083N0YBh4zrDc2qXO54jmQrPGDYcI4zblueGj2Ddpj2YbdgN v3fHwOhKT41IBsvQO8iBhQ9SFwjroHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eZvRO-0003Al-0E; Fri, 12 Jan 2018 09:15:58 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eZvRK-00035v-WF for linux-arm-kernel@lists.infradead.org; Fri, 12 Jan 2018 09:15:56 +0000 Received: by mail-pf0-x242.google.com with SMTP id e76so3983716pfk.1 for ; Fri, 12 Jan 2018 01:15:44 -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=5Ktvgffz+9E3MKHqB96iuqLXMk1aIgjiBDGj4ALReW4=; b=uvVJECXj9ymGW+dd4pg9T1eZpgWjRsZOz7YO9T+fh/ITzvTAgJfeslg9A8X8FgTy+H XTbUs06KG5zB5sDSsq6cJTed6U8Wjorh2StCU+eIsfLxn3n0cx809AJ3NRcJM2P3ayK1 DDsgqJBeG8+66yvaFQp4TM0q/kQZIplql4BsBNvaEDkgmYsv7YoWFb4lWGej3QSgQCIR 5fiFm9cQHOXhjnoylvwvUVXpOpbzqwvm9eLGT3AkpYIqwZ25FTQ+cDGbbaPv7pJWi2os zJnw8evEtu2JFuy595K7TFk/UCP0OaFNGoylWTcG3C4p0fz79swGRPee7A9P7I0P2QOP 4E2A== 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=5Ktvgffz+9E3MKHqB96iuqLXMk1aIgjiBDGj4ALReW4=; b=Mk2eL825SxYhQhe+B1ov8309kB8qFsLOI1PT/zKjROPkl64EDR3a/m+wn5XQNuJZvC xjhWKRgL3F2y6QGYVa1KH9HlctIupSw7bBOj/1/WeYq6vbPhNUfyeJZ5VmfONeGk+X2y ghVPpX/eNZ25eQgW5MazMhhzOP/rKEjItOrRGPRuxL4USnGibXF/38frIf+s7uhz0O0z XmVOrqGsVF/hde2kPEUc8+GWWfcjFV96VtNk/q4pg7WbQI88mCbIuBN+BUEdbC2wfeLy WxuNKGaysiLTPLbqsjx6GWplr1JFZJU1eGawEfyf0OU1gmVzkqHMPO9Nfv5if5PF1psd YdQw== X-Gm-Message-State: AKwxyteYqptI5lOjogIj7WpgGSHHv9Sa4q12ZipWM/lww9K0SpGukMQO jVw0jWN1Y9+Z4hVdEJBncp6ufg== X-Google-Smtp-Source: ACJfBouVxt+WZeLisJOVhF7TNbmP9wPaWohATriFoQRRn/yezY7yfriNzrAR2bg7B423f6E77aQIhw== X-Received: by 10.101.66.193 with SMTP id l1mr3068270pgp.17.1515748543630; Fri, 12 Jan 2018 01:15:43 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id x4sm43380304pfb.13.2018.01.12.01.15.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jan 2018 01:15:43 -0800 (PST) From: Jagan Teki To: Maxime Ripard Subject: [PATCH v2] arm64: allwinner: a64: orangepi-zero-plus2: add usb otg Date: Fri, 12 Jan 2018 14:39:04 +0530 Message-Id: <1515748144-25204-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-20180112_011555_036525_07BFBC2C X-CRM114-Status: UNSURE ( 9.65 ) 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 orangepi-zero-plus2 board: - Add usb_otg node with dr_mode as 'otg' - USB0-IDDET connected to PA21 - VBUS connected through DCIN which always on Tested mass storage function. Signed-off-by: Jagan Teki --- Changes for v2: - Change dr_mode to peripheral .../dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts index af43533..6511190 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@ -73,6 +73,10 @@ }; }; +&ehci0 { + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>; @@ -111,6 +115,10 @@ status = "okay"; }; +&ohci0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; @@ -122,3 +130,13 @@ pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; status = "okay"; }; + +&usb_otg { + dr_mode = "peripheral"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */ + status = "okay"; +};