Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1403497ybf; Thu, 27 Feb 2020 10:17:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxizGgzx0qhzQ1cbCF/W2YXKle6z1ITmPYfVQHzfSV77iIMHBlFXaKrJN7P5EAA4+dBlj3z X-Received: by 2002:a9d:4c09:: with SMTP id l9mr178241otf.180.1582827432966; Thu, 27 Feb 2020 10:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582827432; cv=none; d=google.com; s=arc-20160816; b=eafQqixspsH6rjkxSYVXYU3L73tqexKq12NHQ/pq4TUbJCgKDzDwm9wNxZsjiN1QD2 8Qe+fNtyIpGz8SkcHRU3aUAs/297ot6YV1P9RqZPEP/pR3cvVgOcNtVBPhCyrO8e1qOM i+Hqdwsg4TAeDPWSLC3L7q5J3vVRJqfPPYH37YTVtMvyhvGMBS7U7KzCQJenVFuQYc7a yr3GEA8+btpAXH+aTkdiGUhGwejZx7I2uPQCFNpWvSfIuTxApZvmbB3RcSmvwxf9CGRL IrMvdsVGG1XLt8a9M/J1GPQnG3NsB2tI1PH2cFvHDVYqUsduUw+FCDpR6HcJUSB1GxIz S2og== 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=p3rRWsvJPA70J3mWQb6LKhWtX3stKsMstXFz87zj2wNU8Le1G2Yp29g+TClaxRcWg5 si2pt5nnjHdRfUsYy1tt37e1UlTuppJWKxqMzg06BK9dSuLOIIDVDP3yBODj20fpJcCF WsBqTsgSl8Ktz5yNbNWl+Nl/bzxTo8Rn5Leu4TEJ2euipz+GEEZ9y8pDdkhPD5Co0coT Of3MtTPvo547UHInfdgN1C9pBD9c396AgiV4l29RiCB4o9sbYfXwYvaKIiElWbz23yEm BNz7nG3rtzNujlqTY8x0X2rTGu3GOkNj5s4qUBZE/soU72jXhr093ipaMzcsR2IKfk7e iQvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z4ihWZHK; 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 d20si1901660oti.311.2020.02.27.10.17.01; Thu, 27 Feb 2020 10:17:12 -0800 (PST) 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=Z4ihWZHK; 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 S1730330AbgB0SO6 (ORCPT + 99 others); Thu, 27 Feb 2020 13:14:58 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:39431 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729951AbgB0SO6 (ORCPT ); Thu, 27 Feb 2020 13:14:58 -0500 Received: by mail-ot1-f68.google.com with SMTP id x97so61091ota.6 for ; Thu, 27 Feb 2020 10:14:57 -0800 (PST) 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=Z4ihWZHKv1Y5pFcZLZ4XJQTAABE5r8wzWtCj6Ft1pliDbn3z0QHM2JgMpcK1iUPoLV UTCzc77AfrfxzUFoAHFzxAZ3ZRKrp76X/PanPsUbX2+NBxCRgcaGSQmhwF2I/WwTkwAB aCZ3nE6sV3lvl5r5g6hmKNoUBA8HX3ja/tXPegXdyb0Pnv3SigB7fbk+DFJxCwc96Otj hLPB1UduFs447OdM5LQKCKyPSvcyjh5r343kUBKTiebcbuyS2e97AGnQr9fHxAbeQoA4 0L3FE7H7+jteuNIgKYuY1+w50BXP7hSDOqbo95RF/RQsvY2fuVGrWxrnz/VYRVcSIugc xYVw== 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=eiolHIB8ukglkAVbFunzQ/bJcZe94aT/GlMcnH1h9araab7f/mnl1LTfj6u+FhLJY6 O/msRbtdxnUSV3VK5bNrA32Uj34gF65GLX429zLNNbEJFJgM3BzyDo2m6MN5+X/50pF6 fr7ymROjDESXqbxZlhSndxHvNrwigEXtc1GFp81VFp0v2UF6Tk+x3Tw3adbGBAFVruyW MDt1nrPa/eNgXrdNQgwq1LukdGS/C3BYJ0nctzs68tCDUM5WIS4jUyA/y2yeJZBGJvHM P+/xWR2TaNoKCpRgR133258rKd9Qbrt9+cbsAag0+DIety+9knIVNwNVWnVl5GfL1tyC JzGA== X-Gm-Message-State: APjAAAV7VM77qmAAqK8PeLPYKJ5mSU7uQHPdHPFO28o/d0NYLdB6zy4H 0mCqkFNOk214moQub5FsCeU= X-Received: by 2002:a9d:7309:: with SMTP id e9mr165540otk.260.1582827297343; Thu, 27 Feb 2020 10:14:57 -0800 (PST) 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 t203sm2205534oig.39.2020.02.27.10.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 10:14:56 -0800 (PST) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: George Hilliard , Icenowy Zheng , linux-kernel@vger.kernel.org Subject: [PATCH 2/5] phy: sun4i-usb: add support for the USB PHY on suniv SoC Date: Thu, 27 Feb 2020 12:14:49 -0600 Message-Id: <20200227181452.31558-3-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200227181452.31558-1-thirtythreeforty@gmail.com> References: <20200227181452.31558-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