Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2819406ybh; Mon, 9 Mar 2020 13:46:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu6KSw4muOgCVuOqVKQp8jutMuJwztQHsMnNGBenZuHkplW3/vNDM/KDLqmkjRSVt63onxf X-Received: by 2002:a9d:4807:: with SMTP id c7mr9627769otf.74.1583786778200; Mon, 09 Mar 2020 13:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583786778; cv=none; d=google.com; s=arc-20160816; b=ZSqBqybbcKRxQzpXDz63d1RiK0Nwvf0iDL2ix55rYo0zhTcc8NUWCFMq9IFrm3c1Hg zs4F9weX7H5U1nyC1KZpcyV3OUgzdPIoIppcuva8uMUnUAC8XD53HBTgoE5NUJWCynLw JMEGhtG9NNj04xoBW3jcWfNCWkgYFmytO59I4SMsleJeHLE0oVeiFzDB+n41V8/fg6ph RR15TF+RDzlxqXy2X26BmgIQDURv3QUB/0onUFb3D2PB9Ifv1C6J8UEA+egLM9VmE9kH vzjdl775TNcmgFAoUDHw15PRfilPEVUV5mOENmemFU5z7O1IJaVxOOPweGwzwS+2dkZM U+6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MBcxGM+xg8655uWg7t9Ib3kXfSw3gEEMPIVTQzo5+Rs=; b=TA8Ivb3o9g6SdTpLuesAfi4W8qlAYlbLWuF/x2L1GUbDBqbxBtbbpPgh4pwdSog2Ws Up0G6UHMhNKXJKslPH07jpZBLOIfCrbxt9zf3z6CpY4PZFbAC66Itnda3wi56Q7ya4EC cWMVlYBiKTPXbyNSYIJR0IwRExRCOtDmuzRSpzzEH7RbXa4pxNwrteCF8pozAuYY/iW9 t9RXTjTINY5qGPkhYpdavX/ND86qLilXBAOFZznXAMivtd3rjpcolJHG8ZeXWtPy6ulx GBlRIq+VaQjpL8S9LW3lNYIsJaPZIMB516K2zws9/MMfCY9EMOICfj9PiL6427/GveIo utzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ONz7v0fq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c15si6593432otr.206.2020.03.09.13.46.05; Mon, 09 Mar 2020 13:46:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ONz7v0fq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726964AbgCIUoE (ORCPT + 99 others); Mon, 9 Mar 2020 16:44:04 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:46574 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbgCIUoD (ORCPT ); Mon, 9 Mar 2020 16:44:03 -0400 Received: by mail-yw1-f68.google.com with SMTP id x5so10671165ywb.13; Mon, 09 Mar 2020 13:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MBcxGM+xg8655uWg7t9Ib3kXfSw3gEEMPIVTQzo5+Rs=; b=ONz7v0fqYeRn0zcALLN/4P4bMyGbz2MgW8lGOr49LjkuZn3h8ux5u7QEdc6oTCrBD3 ElO28rEudO61WDEkso8azH2g5cl6RhOAaP4NWCagn3oFmT64R5liaBhvJVDnwEyvNr9a wkiwxEzinL4H9UyL+5iMKBnocsgMb+kzyvG7bNz8yqr+hnZOGJIZntpf/ojjp0d5UYxu Egp54pcC8qM4vtcS+PXF+6GTZxhDhgNqRf4sGzyrPUj6csTlcCjb/RvewzgzcHphbIJK s/KvWaFqWWlTrTml2e9M6yynxfnUpHC0M0VlvPBBKG0rAN+Y9H+srxi/U0MrTqW+wyiB DxkA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=MBcxGM+xg8655uWg7t9Ib3kXfSw3gEEMPIVTQzo5+Rs=; b=fF+PNW7icdRF04G1kuEuDMvjuzbJqoEdxRwHklWtf1IZXzLyead2Fua1R8eiGDEXqL 38khAT3gXHVY7Yh4OcwnfkOfR5Vbx4O7iY98z//9ieTX/kmm7yu0vtJoMGxNGjwUN56G hbk9divYE5z5Yk9FcMXPZdwcW3HUkOq3aTj4TRJ94zz68Aa8wAmAh7YLtUtDVwBv5s9B IIUCiXRAIz3Yt2yWGZJfuedS/7iLN+EDtUhqWufY8qEG8T7qxEmNPv6mMq+4UY4bqvQX tkQizBfSu5oe7jSelFCsaFwbYvVuMVPXr2c+9Eqa6ui0kruPju1q0IfkbD2cAKssC4Q1 8J7Q== X-Gm-Message-State: ANhLgQ2pAIjMhve0iE4g6mb5ekZXf8vRxmQtCRp543u1E4X4UQrlmhgj uHXUFeYZEnVAnvH0IIaEqOcO54+Yuv2wVQ== X-Received: by 2002:a81:2f45:: with SMTP id v66mr8784924ywv.76.1583786640048; Mon, 09 Mar 2020 13:44:00 -0700 (PDT) Received: from farregard-ubuntu.kopismobile.org (c-73-177-17-21.hsd1.ms.comcast.net. [73.177.17.21]) by smtp.gmail.com with ESMTPSA id s63sm17998768ywd.82.2020.03.09.13.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 13:43:59 -0700 (PDT) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: Icenowy Zheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, George Hilliard Subject: [RESEND PATCH 5/5] ARM: suniv: f1c100s: enable USB on Lichee Pi Nano Date: Mon, 9 Mar 2020 15:43:26 -0500 Message-Id: <20200309204326.27403-6-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200309204326.27403-1-thirtythreeforty@gmail.com> References: <20200309204326.27403-1-thirtythreeforty@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Icenowy Zheng Lichee Pi Nano has a Micro-USB connector, with its D+, D- pins connected to the USB pins of the SoC and ID pin connected to PE2 GPIO. Enable the USB functionality. This patch depends on the previous change to the F1C100s device tree. Signed-off-by: Icenowy Zheng Signed-off-by: George Hilliard --- .../arm/boot/dts/suniv-f1c100s-licheepi-nano.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts b/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts index a1154e6c7cb5..c42186e22d45 100644 --- a/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts +++ b/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts @@ -6,6 +6,8 @@ /dts-v1/; #include "suniv-f1c100s.dtsi" +#include + / { model = "Lichee Pi Nano"; compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s"; @@ -19,8 +21,22 @@ chosen { }; }; +&otg_sram { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pe_pins>; status = "okay"; }; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpio = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */ + status = "okay"; +}; -- 2.25.0