Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2818290ybh; Mon, 9 Mar 2020 13:44:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGhGHdUizjlDzO4Z/A7QH4wcgR3TZ+Nx4NX6UQIPBnOAqLN3M6mZUm6+W//u8CExn3vvCq X-Received: by 2002:a9d:6197:: with SMTP id g23mr14662303otk.239.1583786682160; Mon, 09 Mar 2020 13:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583786682; cv=none; d=google.com; s=arc-20160816; b=IaWqN8nRsbCMs8lEmt6U8Ry8REbFDj8oboa6WzmWkBFGhbk5q2jz+O2c0TzKWgtOrP VIi5T2uHdqOaHXISlQ6YjCz8wjK1fZu5I5rvPw5DpuEAUQm60oDr5JOLx5rPlZEGb3bA DPl0dAkxX8ui0gqklU9t54L5fwjn9iumFZ4Xr0oxlY0GZleAqIqIFFStJzDyzSQQwsyW juBJDs0N6pCFW+hHvkP5NPnN8NKUioHWGVcMMIdYv9yP9dfScvuHCwW3S5wDn4HisOgB nMNi/42IfHNboYt3Dxqpwhh4lOsif9yj3jTrlKi8Mukj4ROdfIYq1pE2dVrrKGaItjI+ segw== 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=TAE4tbLOHr7PfWPVPg1IGfxuALloJp02P/TPV4CS1Go=; b=vfTG90kmazY4hLPKeIJm/Tmi3e7ld+GEhY8bbz20xxFF78WgFtRqhKTBCHh7nZCONL 6Wy0uz++l1LZqIDcWyj27+BpHYDPf9k8iQUxietv3vTB1ZiT2n7y0Jsey5Jj0MxouZkK ClgXuVRZQgTxJP/uf2LeQC33Y5Uqj+tXsRYbiO2PNRVdIJ4yKGdXaFHVJ8KMyvdAZbBo BHj1eDooc3FK5rZhCWfIqH/BLk1W+oPo3zjxIHjZKoOZ+SxuA25xBvGJFsGcLZf0GA7D gWRQMcDzzmkPE8Js1b/F4KmACTBt0ql+MdyRlFLxJg7FkDgoFXP83isP9ssYX6z0MA+w efMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kd/gDq8h"; 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 64si672565otn.4.2020.03.09.13.44.29; Mon, 09 Mar 2020 13:44:42 -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="kd/gDq8h"; 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 S1726861AbgCIUoC (ORCPT + 99 others); Mon, 9 Mar 2020 16:44:02 -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-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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 }, -- 2.25.0