From patchwork Fri Apr 12 07:21:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13627027 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97580C4345F for ; Fri, 12 Apr 2024 07:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=y5P7KH9WJshcZ/cW5i8sgy7C655G2NGmNpJLP1Q+eLI=; b=rZgi8Xztyu7Fou hp0HtiTRyltBtoWIBsCiltQsFvFhpGpCxGSwyWK464VouTWYSvo9kJAuLYnHNIP9sWBC4A8FRhafV Dxwh8rtPoscAPS9QgMDFkoz+fDQXA0DqCIa13SzDXcaR3T9xqRzyRyxUSeL8BgDBVmKTZxWdJTDwH lHKOedp+o4RDJEzOaC2DO7O0S3ekLJL5A+XeGpWjBN60BKTT2NuhSowFac4jIHu1wIl6oaQNM+KRD wtNq+6TCC95uh3wKglUAWNkwhJvFU8vIQcttt4inK5Ia7C2Okoawf7vZVbkDpHLndqMjpFkzcDqky yNFZFvRtV4qHMqyo07Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvBE2-0000000FoYd-2O3S; Fri, 12 Apr 2024 07:21:30 +0000 Received: from mail-dm6nam10acsn20805.outbound.protection.outlook.com ([2a01:111:f400:7e88::805] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvBDz-0000000FoWt-2GfJ; Fri, 12 Apr 2024 07:21:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HDgVP5pmoT8NQtYe2FF3IgdLZRN1GcaVFNy8+f+S8io4eOK9CszjZ7hxemGcc7Y08p6ukJec1ZT1jprCLb5lQnhv5kQ8pB5QzSyTn6C1PP45QhPg01Jrf6Vg1vrAyyOQNRWbOgwqMFYVK8FVidCiz5ZqubChp8jTg4LZh2VRMPFcmMS6Ya5VBgLUNmXl/dKz7/F5bXRUYW5e25Inuvw45nxsAuDuof+QHRG7B+bEOCAQH3fn+6p0sfvv7Fu+hdSNNK+dQy6xbkW8gfe8XvaJyIZMSLQpyvWPV4FEBeBmlUfN4tAqWe2IzTl7bfaDTtV0s7pBspLX2seXLE07mxZ+/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g7l7S2uIF1msaoJPPub2FPKn5wjRERU0aIBU5VNadYU=; b=fAQwUpDtMaWLQKHcGDXZNh6h1vQUmSwf/NSLWRVNU98DCje2SZibjqpGv1OOPUUggkVvwUhN+UWJITtkb0BHznLC/a5T2BKvg82EfjOHPbHV9AGmy8bdPRy/VwRgcNAgR8CkGPokh1dJu659JTQFb/7RrsI71n1Dg/QtJ/sxs/F6Kd/kx02aR7Vz2Emiv7Lj0XRsl44mT7/ZvKXzA47rWxcsfW8Wx374ctHjuBKYISpFmfBkTwz1RZiwwewryByc1KcVIWfPcRcYr27eCD2oMaws5B7yeEBpwJ54+iuSHFvT1YcZC0vO8SqrpQU3iDwP4YGVryKUaWC/QOcig35eug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g7l7S2uIF1msaoJPPub2FPKn5wjRERU0aIBU5VNadYU=; b=GMLC/12qCBOA/zkBJYmkEe7DlN7O5BnkgFKxjKJiwnZWgZpJdV0TFWb3GgQZiYy7yD8JDNj5n+CnjhbLB+Qj3i3cTUr1mL/YOnaRO1AZyCtfZPS9f6U1muzru2IwteacFiddEB7A25g9gDmOvOenPh3PPRfCoh3rmwXx7R9bWsE85amveYhEQ5XeVzMqBwmkr5BpSf38GnnZYygJcuSYp7Hoba29IDnCx4ESe3JN64i3B9FQS9A5iJ7+CrLfzrUVQIz10bKZl6+PyvtM6cqPi5K7TkFeCLv+5DPCQfChm2KvKfa1R6C1xIg0n69V8ApElJsTlGZouxtPAnmGmfcKxg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by CH3PR20MB7544.namprd20.prod.outlook.com (2603:10b6:610:1e5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Fri, 12 Apr 2024 07:21:09 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.042; Fri, 12 Apr 2024 07:21:09 +0000 From: Inochi Amaoto To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 0/2] riscv: sophgo: add USB phy support for CV18XX series Date: Fri, 12 Apr 2024 15:21:26 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 X-TMN: [jsWy6NaxOh5rWtr9I8+p+hcws0m+1Kh8gY2ReTSyOVY=] X-ClientProxiedBy: SI2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:4:196::6) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240412072128.119095-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|CH3PR20MB7544:EE_ X-MS-Office365-Filtering-Correlation-Id: 29c225d3-db10-48cd-a947-08dc5ac12041 X-MS-Exchange-SLBlob-MailProps: 7J/vb0KDx3iy6B2zcPcTG6CIJGEFnGZSRu7xgLPUh0eq1nw12S/aC2KlZe+8TrrfjCGuATLEP3P76JdcPwH+qcaB7nCTN1o0l+IggEV/6K440JuNhluUgP9/mW02YojSaTgV/Ytd/MvLRvhOuYZulLvP9HCuW6MS1s0eIncRR7U1TxYcNR3FcMSlYtG44FXqULY7gjPlKYaeoBT1YCQezkI5kg9NOyobzpISqvAF/WUCyPIPPQsW5Kz9zB6qh3EAC1NUmwjwrRcVZQZ7eaEh/SpY53xn1YQAqSRGrmJqle5sWekHMGpBA+AQKDQKgkP7sh8BqTiiCiPmd8Zkk969QZKSsbWpRXy2yI0jMkjOKqOcTFjWRtPqUxf3mYHGylw/U0z+zIKt/1ZDOZbJY5sr/CGE4+hFIJskxh1eaNUx7ejPdPAbKDiECrhLeQSyutdgucNdT9gemZ3qbd7qvMgEYKOS9rklixqt4zdIACvX4eCWXFu244rueJLp/kL+/roVwuTeL6ZjLALsz4WHTscwiIJvcRJ6/+Q6cXng15vAw2gKuChqm3mfUGjmfRi9ncNLuI/sxjk+L9L7xfeOp9I1PH5GX0GX05tqFeVchX12BhxNkGiIUYcExfy8Qi1NKzuVRAyUeFw16lQVbPuOejH6mFvj3zT7aqaYJbP0RA2DI5sMM4FbYzpkz3q9WlTTvDsyWODkHUGD1u/80itkZSIKNtpYQdKEhVyxPRsZf/SMPQu6f5ZWEa1RND2x5KEuZ6NyOR26OOx7t6VzaZKMquJ1l5A8hAEF/TLQ4nZiH57W6NE= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fjn0X94+NyRq+HuMqBngOZBF6HtfXuBbrIzEiFHdEUg5aWC2WGyha2HqSk9JfpLjhsO3G6cfh9h5vvIOwjfAJHi1gXJ12WTLPOyBIJH7455TBAvKKoDLeK/Jw1/IIcYupd6A6+8bIjqcsENUAC3BNcOOl+0uBTDCwKf7WGYIj+amJODbUvB3ZqCoQNXzxCjWLn/M4HEYATvaaZdLHI/9hz1PtCX7D6Vr+DqZYobsd2YZci4TdaVULRvteYizsbQjKFMedbkKxOyvDV6CU68fT8ZoRAlgbSRMuenVtB7NUdzXvM0HNEvp+iktzA2KLXSpUa69KaYxo6Qw/Fe8Q+7Ml3an/XbcnOYII9Z71d8ExYJXbud51nzy8GDp+4PXJRzjoTrw/drfeQdJkQ13T6HC8n8AJ4eVEEHcuPu89d6wZ26yzAwSr3W1qYGIWfpHjUw4qKwQwCZv28RGrJTK4WFZ8qCP0rFdIR1F0cLW0cgBXf+b4K4TXMERx09r62L610f6+lBDZlfIqUzePEmPqvQLMJOBDr3i4Uggti/Uspt7D+9ICQyBj25C49U81Hp/eKCMiqVW/V9fyUdaqqYDObEYvJJ5ppoo72XjVN1+WszBKnjAOSthCUiJ78DuihQldMy0 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fc7TEiUzUGzma5kvwQsSC26pieP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Y6R1JcApNzKiTDFAljerZwZxOvCAbTtHwtbPi616ZCirL9p/zoapxCPz7urhDipOchaXur+Q005N6JbBOegBACzknZ+CTVPeY6CsES2IiwpOjOJWIVDD5OPS2RaM4A794AQzUnY8YREeBWltwa0meFE4fS8zFwH+N5oW4riGpCb0/b X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29c225d3-db10-48cd-a947-08dc5ac12041 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 07:21:09.7549 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR20MB7544 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240412_002127_588455_5680E4D1 X-CRM114-Status: UNSURE ( 6.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add USB PHY support for CV18XX/SG200X series Inochi Amaoto (2): dt-bindings: phy: Add Sophgo CV1800 USB phy phy: sophgo: Add USB 2.0 PHY driver for Sophgo CV18XX/SG200X .../bindings/phy/sophgo,cv1800-usb-phy.yaml | 90 +++++ drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/sophgo/Kconfig | 19 + drivers/phy/sophgo/Makefile | 2 + drivers/phy/sophgo/phy-cv1800-usb.c | 381 ++++++++++++++++++ 6 files changed, 494 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/sophgo,cv1800-usb-phy.yaml create mode 100644 drivers/phy/sophgo/Kconfig create mode 100644 drivers/phy/sophgo/Makefile create mode 100644 drivers/phy/sophgo/phy-cv1800-usb.c --- 2.44.0