From patchwork Mon Mar 9 20:43:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Hilliard X-Patchwork-Id: 11427993 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2109A14B7 for ; Mon, 9 Mar 2020 20:43:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 019822253D for ; Mon, 9 Mar 2020 20:43:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oLqluHNh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgCIUn5 (ORCPT ); Mon, 9 Mar 2020 16:43:57 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:39855 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbgCIUn4 (ORCPT ); Mon, 9 Mar 2020 16:43:56 -0400 Received: by mail-yw1-f65.google.com with SMTP id x184so11546567ywd.6; Mon, 09 Mar 2020 13:43:55 -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=iGljD+kg3lGUw+qrriqk7js900WesZXIV0yY3y9iUng=; b=oLqluHNh4+6n9kKsC2hAemjPAfYf8GecnPNKqtg2cHPvO1ag6rCQ/rLYFqGfowP3xs a90ST9g+ke71LyAxndarZf4y3KAtCSA/HRQj+9XqD/yd6U0hZcm/fhnvk7z/Q4U4lG7p V/wCYngYuZpfReh3Aesrvx5ilXZ0w/15/RCPhvfEx8AU8WrxVPSo1pmeKJWdfpi2Zkle vY5lo1oe+Qj1fBrq9EgtLRuMLG52d52FuL9VL+5dyz4PHw+Cp9VtwDnLYA4VfDM4l8K8 rPa9CCVxnO/YrWsr+3tRS7iaJUJkAQ4vmG+g7sbbwBkmBhgz9K56fevxcu/BCRdLuoVZ fjSg== 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=iGljD+kg3lGUw+qrriqk7js900WesZXIV0yY3y9iUng=; b=DV6KNZI10DT5AsAEyNSsbhzaUAJGWmp6F62KfbOMQJCbK/3H8PJLg5M7zT/+xFdbhN 7I7jA1FGhjkbFQ4kcv9Pfii73HxFFjHRWLSKm7L4BWS2Vogme4XbyDmtv7E4osNlTffm Vn8oaXTLHWkjvuhIFguAxtLY+4X1v0wKmn3JNtEP2cqg9J2NRyxBQH3zYoq/iUmJNxpJ gaFjq+j96YJbdJxknbmQ4Pc1K6ySRIrRZu/SuGMLZfvhj/7l6FhW6OewtsZai0vWp3dP S1BeNA1o5FCG6G6J2WB0V1rvYb7MM5wbpLQd+NxfLxTawK1PTZTk2dqAVeLT2jwKDPvW OQAw== X-Gm-Message-State: ANhLgQ3L2WoSCRd90UyZczjWmm5Wbql+otlCPecetg3UC3T/znVqhyRX bLUCKR/uSse2RbFosoZjclU= X-Google-Smtp-Source: ADFU+vv2TDpq/h3wCCDcv+Fxr03qtR+cFf0cB8hfeitM6IhCuRwdjMGDeysfv6bHfb80p/bSuDF1ww== X-Received: by 2002:a0d:c406:: with SMTP id g6mr18270497ywd.267.1583786635406; Mon, 09 Mar 2020 13:43:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 13:43:54 -0700 (PDT) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: George Hilliard , Icenowy Zheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 1/5] dt-bindings: Add new F1C100s compatible strings for USB Date: Mon, 9 Mar 2020 15:43:22 -0500 Message-Id: <20200309204326.27403-2-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 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This chip contains variants of the already-supported peripherals present on other Allwinner parts. Add a new compatible line for them. Signed-off-by: George Hilliard Acked-by: Chen-Yu Tsai --- .../devicetree/bindings/phy/allwinner,sun4i-a10-usb-phy.yaml | 1 + .../devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun4i-a10-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun4i-a10-usb-phy.yaml index 020ef9e4c411..1762a302c594 100644 --- a/Documentation/devicetree/bindings/phy/allwinner,sun4i-a10-usb-phy.yaml +++ b/Documentation/devicetree/bindings/phy/allwinner,sun4i-a10-usb-phy.yaml @@ -18,6 +18,7 @@ properties: enum: - allwinner,sun4i-a10-usb-phy - allwinner,sun7i-a20-usb-phy + - allwinner,suniv-f1c100s-usb-phy reg: items: diff --git a/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml b/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml index d9207bf9d894..d2eea0003b99 100644 --- a/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml +++ b/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml @@ -17,6 +17,7 @@ properties: - const: allwinner,sun6i-a31-musb - const: allwinner,sun8i-a33-musb - const: allwinner,sun8i-h3-musb + - const: allwinner,suniv-f1c100s-musb - items: - enum: - allwinner,sun8i-a83t-musb From patchwork Mon Mar 9 20:43:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Hilliard X-Patchwork-Id: 11428001 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A405614B7 for ; Mon, 9 Mar 2020 20:44:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 853BD24649 for ; Mon, 9 Mar 2020 20:44:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kd/gDq8h" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726820AbgCIUoB (ORCPT ); Mon, 9 Mar 2020 16:44:01 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:37264 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbgCIUn7 (ORCPT ); Mon, 9 Mar 2020 16:43:59 -0400 Received: by mail-yw1-f68.google.com with SMTP id i1so7299125ywf.4; Mon, 09 Mar 2020 13:43:57 -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=TAE4tbLOHr7PfWPVPg1IGfxuALloJp02P/TPV4CS1Go=; b=kd/gDq8h1WLVhBkNE2x6fD0JgOBeJ73GPigwJ8XpNCyUEG4euZUB5ikjWU/t48UolK nIGwQdv81wEhNcfwipAxEsTqCwXCm7wz42BGwJIGoKNTKSMIpZjjqe55m+n+Fi8zKzMW ntN7xAE6yqv3c8eJDlelgjxhwbh49hbh4/AGxGLQQzw0NPIQTc52XQabGWCTjxRht/vc WJ/lfJglJdqMz9mmMLKmuu8s2vvclAVlWC6Pz5vWInWZ/2TIAmn1uFerMEYVeQjhngJq U8m5qOVSzxA8R9IM9VxRztjLk1t2Y7Kn24y9LKpgPRy+gQHZuXKK0XCTWZqQpvcQlYqM AHQg== 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=TAE4tbLOHr7PfWPVPg1IGfxuALloJp02P/TPV4CS1Go=; b=Xd2gSeOGFHeENXustO6sJB/Tbfgiyb28JojPNP0JJkNDhFL+Cb3zDjX/YoERvBEybY jdfdggH60rJgGGXvwYbQYXtMfwf8+5rwYxGNk/GPWjZrY/GzlfGEMZbqhgFdmnaZf0py Z1+xwfciSCKyxIHz4Faj1Zuar3f07XUtXizwRnDvIeBYBN0WE9+kfyfN0pQA3CAzr1BT m6g5SFjzcAeM+Sbhbex5JR2qDFxVr2tsJ0CHkSLg7iFLwW4mJn/Sx0vM8G9y4zlpjD35 a0dkBZmAqgcZOiCCvAdk/Hf9weTEJ6IpmlxS1OOF5NQIS8Z9kbMHk2hcMREO636tg/6i +xGw== X-Gm-Message-State: ANhLgQ2Rep17a29R69zU/Xj+qcDzAS2vz609oZWWENOoxVF9MGN5bcu3 I/NPulPidDvuSCtfOYRuqZs= X-Google-Smtp-Source: ADFU+vthSS3+5gJZjuZCDC+BlTqS2VOFpODEBY6DczD5goOob+YmwLQ7QvOnIrSSHpkFnHATI/IfXA== X-Received: by 2002:a25:bd88:: with SMTP id f8mr19371732ybh.384.1583786636676; Mon, 09 Mar 2020 13:43:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 13:43:56 -0700 (PDT) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: George Hilliard , Icenowy Zheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 2/5] phy: sun4i-usb: add support for the USB PHY on suniv SoC Date: Mon, 9 Mar 2020 15:43:23 -0500 Message-Id: <20200309204326.27403-3-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 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The suniv SoC has one USB OTG port connected to a MUSB controller. Add support for its USB PHY. Signed-off-by: Icenowy Zheng Signed-off-by: George Hilliard --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 856927382248..5fb0c42fe8fd 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -98,6 +98,7 @@ #define POLL_TIME msecs_to_jiffies(250) enum sun4i_usb_phy_type { + suniv_f1c100s_phy, sun4i_a10_phy, sun6i_a31_phy, sun8i_a33_phy, @@ -859,6 +860,14 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev) return 0; } +static const struct sun4i_usb_phy_cfg suniv_f1c100s_cfg = { + .num_phys = 1, + .type = suniv_f1c100s_phy, + .disc_thresh = 3, + .phyctl_offset = REG_PHYCTL_A10, + .dedicated_clocks = true, +}; + static const struct sun4i_usb_phy_cfg sun4i_a10_cfg = { .num_phys = 3, .type = sun4i_a10_phy, @@ -973,6 +982,8 @@ static const struct sun4i_usb_phy_cfg sun50i_h6_cfg = { }; static const struct of_device_id sun4i_usb_phy_of_match[] = { + { .compatible = "allwinner,suniv-f1c100s-usb-phy", + .data = &suniv_f1c100s_cfg }, { .compatible = "allwinner,sun4i-a10-usb-phy", .data = &sun4i_a10_cfg }, { .compatible = "allwinner,sun5i-a13-usb-phy", .data = &sun5i_a13_cfg }, { .compatible = "allwinner,sun6i-a31-usb-phy", .data = &sun6i_a31_cfg }, From patchwork Mon Mar 9 20:43:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Hilliard X-Patchwork-Id: 11427997 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D2C5C92A for ; Mon, 9 Mar 2020 20:44:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2A732253D for ; Mon, 9 Mar 2020 20:44:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eW2RpvuY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbgCIUoC (ORCPT ); Mon, 9 Mar 2020 16:44:02 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:36418 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbgCIUoB (ORCPT ); Mon, 9 Mar 2020 16:44:01 -0400 Received: by mail-yw1-f68.google.com with SMTP id j71so11580076ywb.3; Mon, 09 Mar 2020 13:43:59 -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=KKHUWz0Uha+CDG15YVmtHwxSiy2XT+hJxNbxwEkR868=; b=eW2RpvuYPPkcwhjG9Vmv6IcKW5Qnqmjl08/IRhSljpMizzQhJcIV+BAL6xf5VOMNtd mfFawM7Uec3t7mNYUnwllnhTM8yxo2o0twGxeBwPwIat4xz2QHwdCxEXPVqkLLM3xwOs CVvtuLZ3mL/zUmhmHXxbVtd/1+aYOST/iP7uCvw704CKaa2HSms7ZxZbAZXOrdVVnmZa AB3MxMx7PhJeewGgaZYNA00v9qF0xEOcuVNKoTznjxlpSVE/pkL4zDbGSgccawpC4fZl nVBU5InX77ry1rNKET7p1jzcnpaz71BoiURh1SFYpDwjKHqjdDRdgxFElX+DNrms/gla E20Q== 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=KKHUWz0Uha+CDG15YVmtHwxSiy2XT+hJxNbxwEkR868=; b=RoSSfpEpR78EoTMHe32UfAWU0QFLLlq8o5bLy6PSTYEGCxJ4lbx7qwvUeuPcmFTyqo zW91U+Ww8eEgZocxw4UjFXZfpMm6z1UZX+LrjRNANsnQ2zRI//aFFnPXwe/HaUGAe93d dbg6kJ1QhA6Q+7GAYYc6r2eCmbYpVGzALA1zAPg1MdRTqVWDpBt8i9XMRC6mxQUQBKwi H9c56eZBpnWxF8qBw7y+FBwoDr4ZgeW/ZfJ7ysn2Xj5BGF4ewoJHZYkVh6iMJuqgEyLK 2Y9mjrePIqH/JeQYwNvPDBJxreyMOomq2Z97mrNFe9Mc6Fx2t5QZD9QG6Uqsu4S73/dP DoYA== X-Gm-Message-State: ANhLgQ0VXi3rIoD7GFNTRzLi0t+pjHV++B73noDnoPLarQA3E83Vwhjc lVuod9DaDxLK+AxPviadsJ4= X-Google-Smtp-Source: ADFU+vtjLJBY/bBFHMcKlXA3hyCoEMNmsFisitAuSnzMN8OydLYNYzqhTqxDAdSU3MWvWGaIViC/1A== X-Received: by 2002:a0d:ffc4:: with SMTP id p187mr18238754ywf.4.1583786637913; Mon, 09 Mar 2020 13:43:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 13:43:57 -0700 (PDT) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: George Hilliard , Icenowy Zheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 3/5] musb: sunxi: add support for the suniv MUSB controller Date: Mon, 9 Mar 2020 15:43:24 -0500 Message-Id: <20200309204326.27403-4-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 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The suniv SoC has a MUSB controller like the one in A33, but with a SRAM region to be claimed. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: George Hilliard Acked-by: Chen-Yu Tsai --- drivers/usb/musb/sunxi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c index f3f76f2ac63f..76806b781844 100644 --- a/drivers/usb/musb/sunxi.c +++ b/drivers/usb/musb/sunxi.c @@ -714,14 +714,17 @@ static int sunxi_musb_probe(struct platform_device *pdev) INIT_WORK(&glue->work, sunxi_musb_work); glue->host_nb.notifier_call = sunxi_musb_host_notifier; - if (of_device_is_compatible(np, "allwinner,sun4i-a10-musb")) + if (of_device_is_compatible(np, "allwinner,sun4i-a10-musb") || + of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) { set_bit(SUNXI_MUSB_FL_HAS_SRAM, &glue->flags); + } if (of_device_is_compatible(np, "allwinner,sun6i-a31-musb")) set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags); if (of_device_is_compatible(np, "allwinner,sun8i-a33-musb") || - of_device_is_compatible(np, "allwinner,sun8i-h3-musb")) { + of_device_is_compatible(np, "allwinner,sun8i-h3-musb") || + of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) { set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags); set_bit(SUNXI_MUSB_FL_NO_CONFIGDATA, &glue->flags); } @@ -814,6 +817,7 @@ static int sunxi_musb_remove(struct platform_device *pdev) } static const struct of_device_id sunxi_musb_match[] = { + { .compatible = "allwinner,suniv-f1c100s-musb", }, { .compatible = "allwinner,sun4i-a10-musb", }, { .compatible = "allwinner,sun6i-a31-musb", }, { .compatible = "allwinner,sun8i-a33-musb", }, From patchwork Mon Mar 9 20:43:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Hilliard X-Patchwork-Id: 11427999 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B0941800 for ; Mon, 9 Mar 2020 20:44:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B55A24649 for ; Mon, 9 Mar 2020 20:44:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hz2vFwc0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbgCIUoL (ORCPT ); Mon, 9 Mar 2020 16:44:11 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:38111 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbgCIUoB (ORCPT ); Mon, 9 Mar 2020 16:44:01 -0400 Received: by mail-yw1-f66.google.com with SMTP id 10so11552740ywv.5; Mon, 09 Mar 2020 13:43:59 -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=W/fceep5tK7g/cQy1ebhtOFWEM+NoOwKfSWVqLp3Aas=; b=Hz2vFwc0nYdeV5cd546SsYwQDnc6xvKjsYhz9+iARd6xTUmC+dKt2Uz46n/7Bb7bgk hIoX0r6POdCmsZVB4KFJsOr2JUJuofE/M1mICkLwSyLMs/MXlvn1VU8GNiJfkMCsrE6Z aT+vHyDRafh8vLTeqARgh1iCaJ8vVH85VLoqi2fRHRJllMDe/vH3Jg69Cg+LwUeI6+J2 3ByoOCYoAJx0riAfyjbERcckrVqxnUSzkF5iGn8/ZA0hEHL0gc8VRrgLLBhg+NKpo748 zxIOYQVf/aA06RaE73lOcqtb94dPKCAEg4GvKuM3nF2AnAU9HbF7hvQ4rFoNGP1pjE0f mfQA== 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=W/fceep5tK7g/cQy1ebhtOFWEM+NoOwKfSWVqLp3Aas=; b=HKmF67j1UzxHBiMco8rLlFuzvbCkoZXnKdVwtwFefMKWblJz+D2N+r4MqVTyv9omoK CDdhw3HdmmiLWRGeVWkm/L4x9AQEwiQd7gJn+d808fexcotFc5o0OWULKPvCiwCwIlvo 7yZTlbUonmimo4g9EQCLN5DUMVZ7EY7kFdDPaU2bDhptxFHMaaAcv06S01QBjRy0ks2U jrePzBmYgjPuGnvG38qiEYfZPq6KP4LLQGSydoPH9cRkVCjuI0FcKdsgz5Ig0rK90Aok W0hyvUIjIFBlAyG5lFPpO5lEgTHpayM9i6QKuljXIww/Vvd4vUfyGH0IpAWrmoVDwZM5 hzuQ== X-Gm-Message-State: ANhLgQ0M8uHZJJdsANbBcXIh4g2XyBhwdd5E3YDsR1vZvs9PGrV6AkaZ eeefrIxGzHDgidgPHuOLfms= X-Google-Smtp-Source: ADFU+vuVvvHYjwOnjefwzxrZhA+8mJhrosC/3BG4D4ARSmu8fOt3CsQ1Tzv8g+xFANVj3y7QuViFWA== X-Received: by 2002:a81:a3c9:: with SMTP id a192mr2854047ywh.244.1583786638964; Mon, 09 Mar 2020 13:43:58 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 13:43:58 -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 4/5] ARM: suniv: add USB-related device nodes Date: Mon, 9 Mar 2020 15:43:25 -0500 Message-Id: <20200309204326.27403-5-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 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Icenowy Zheng The suniv SoC has a USB OTG controller and a USB PHY like other Allwinner SoCs. Add their device tree node. Signed-off-by: Icenowy Zheng Signed-off-by: George Hilliard --- arch/arm/boot/dts/suniv-f1c100s.dtsi | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/suniv-f1c100s.dtsi index 6100d3b75f61..ec9f248ba889 100644 --- a/arch/arm/boot/dts/suniv-f1c100s.dtsi +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi @@ -4,6 +4,9 @@ * Copyright 2018 Mesih Kilinc */ +#include +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -140,5 +143,31 @@ uart2: serial@1c25800 { resets = <&ccu 26>; status = "disabled"; }; + + usb_otg: usb@1c13000 { + compatible = "allwinner,suniv-f1c100s-musb"; + reg = <0x01c13000 0x0400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = <26>; + interrupt-names = "mc"; + phys = <&usbphy 0>; + phy-names = "usb"; + extcon = <&usbphy 0>; + allwinner,sram = <&otg_sram 1>; + status = "disabled"; + }; + + usbphy: phy@1c13400 { + compatible = "allwinner,suniv-f1c100s-usb-phy"; + reg = <0x01c13400 0x10>; + reg-names = "phy_ctrl"; + clocks = <&ccu CLK_USB_PHY0>; + clock-names = "usb0_phy"; + resets = <&ccu RST_USB_PHY0>; + reset-names = "usb0_reset"; + #phy-cells = <1>; + status = "disabled"; + }; }; }; From patchwork Mon Mar 9 20:43:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Hilliard X-Patchwork-Id: 11427995 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 742E692A for ; Mon, 9 Mar 2020 20:44:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55A3F24649 for ; Mon, 9 Mar 2020 20:44:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ONz7v0fq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726946AbgCIUoE (ORCPT ); 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-Google-Smtp-Source: ADFU+vsaIO/P07C7w1s7BaKD1YxR9Se0rUoQ5L/YtqXvN0v/OzPcI7nJd47/9gc9F+t/jMYjRbEApw== 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 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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"; +};