From patchwork Wed Sep 20 14:40:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 9961565 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 83A6A60208 for ; Wed, 20 Sep 2017 14:43:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7466F29117 for ; Wed, 20 Sep 2017 14:43:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6935129143; Wed, 20 Sep 2017 14:43:52 +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=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 E952729117 for ; Wed, 20 Sep 2017 14:43:51 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FsxZ/wihkt4PkD2DrwcwFmAxUYCXEM/HzuJls7O2a+s=; b=dXkTFrLoCJeSKj v9hckcjiN7vQyD0hSiXIQFRqmE1/e0zu7dwnaANrO7bz7BxsCuxWNGz5RHcFsehHkJqAXRhFdk82g EB+T2HQrc5CKGSPkU6nBCVurlu/Bg8dSDi7crr3atPXdyYJW27EiVW468Kw5M0AY10eP+1R5vJEVl 0gRziH/DmonBvhvF0W/fbhzB6klCRcekfdbUNcyeLGJIet4lfD7inl0JYDapC+vFIBkU5Evl16Y44 75c5QlZDWta1nVjfouyS/o8n2w9lALhis5GquuGaORHxIjOmvHaCEhsFruOBrTTChJTcEI+s122FI cELBiJK1sOh8m8jAaSzQ==; 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 1dugE1-0003T2-H3; Wed, 20 Sep 2017 14:43:41 +0000 Received: from mail-wm0-f65.google.com ([74.125.82.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dugDz-0003PZ-0M for linux-amlogic@lists.infradead.org; Wed, 20 Sep 2017 14:43:40 +0000 Received: by mail-wm0-f65.google.com with SMTP id m127so2666715wmm.0 for ; Wed, 20 Sep 2017 07:43:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=fl4wKbP3/WG4B75rMlVZkYAC0UU7RLbj352jP8qaj1U=; b=lrvgWlm3Dk7v2/yQMn2Z8sAOs8iUujKPEuwxLFu2YUcxHEVjUj4IOEBqOD6ZN+heF/ 9kWol7ODsA8ZmH9LGRPKRVoRB74Py2yRjVQ1OdN9J2lS7sVRrEBJoQ6r5Y9JN5HkMSlL BLF3Tp43QF7Rq3SBXoea8RhNRozIh4NYbsXWDT+RoXCTcOwpw7cjiF1x4iO6VU2ZijR/ RGX4NdfdOG7NHXXJqReBptyE6UYH/7MJIUNLgMGOUWDn7eszmtJvM6aRk2pFcBjjMlF7 PBpYPiMrU/fJOlkinU61npGkDDhhDhExAbu8KYwRqjbZIlp05FLurpeFvpVOepsosJnH Sz3g== X-Gm-Message-State: AHPjjUjO0i7J+gjiGjcHwpyTrmq0lhaALe8NOFfPfja1VYosNntocp0v MikER3CYXEfYGgUuhzOCCio= X-Google-Smtp-Source: AOwi7QCeqRcDufNVWJqS+30CYC8TePl2ivxQ0CRO6LSnyojrM+gU3SieXYPELTk5moa6G5xvurDbxA== X-Received: by 10.28.196.205 with SMTP id u196mr4093301wmf.120.1505918596966; Wed, 20 Sep 2017 07:43:16 -0700 (PDT) Received: from ingrassia.epigenesys.com (host194-85-static.3-79-b.business.telecomitalia.it. [79.3.85.194]) by smtp.gmail.com with ESMTPSA id 133sm1919151wmu.4.2017.09.20.07.43.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 07:43:16 -0700 (PDT) Date: Wed, 20 Sep 2017 16:40:09 +0200 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman , linux-amlogic@lists.infradead.org Subject: [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board Message-ID: <20170920144009.GA27374@ingrassia.epigenesys.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_074339_209264_7C49FBC2 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables the USB Host controller (USB1) and the relative USB2 PHY on Odroid-C1/C1+ board. Signed-off-by: Emiliano Ingrassia Acked-by: Martin Blumenstingl Tested-by: Linus Lüssing --- arch/arm/boot/dts/meson8b-odroidc1.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index e50f1a1fdbc7..9ff6ca4e20d0 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -76,3 +76,26 @@ pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; + +&gpio_ao { + /* + * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal + * to be turned high in order to be detected by the USB Controller. + * This signal should be handled by a USB specific power sequence + * in order to reset the Hub when USB bus is powered down. + */ + usb-hub { + gpio-hog; + gpios = ; + output-high; + line-name = "usb-hub-reset"; + }; +}; + +&usb1_phy { + status = "okay"; +}; + +&usb1 { + status = "okay"; +};