Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E8D9C07E96 for ; Thu, 8 Jul 2021 18:34:30 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5156061417 for ; Thu, 8 Jul 2021 18:34:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5156061417 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F7C983203; Thu, 8 Jul 2021 20:34:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gerhold.net header.i=@gerhold.net header.b="BotP9Min"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0E74C831DA; Thu, 8 Jul 2021 20:34:08 +0200 (CEST) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3EFC2831F5 for ; Thu, 8 Jul 2021 20:34:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=stephan@gerhold.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1625769236; s=strato-dkim-0002; d=gerhold.net; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=OpjR4XwAivGrw7bYnwWRAzObIrjjr07Rtvaoz+PHAwU=; b=BotP9MinLmQPyU391ATyqDo0YIHWdoSKcqbgSgldv/61LWx8Gl6dJ1aBbmCU0JXeZO ekMjZvfNie0Z/jGmMTPmEJpZZcmF/Av6NuNbjRJmpMTo0ffeuXnYkwJN1db2yQHA8TBa 187ZRf2c1lanM+fTze/yOoXS9nBf3xL92xq7UfxFiqm+aU1q4WIh/dWRl3fGmFvg5+Wz 2KsjbijKavOYmCbunliPsYpdF0t72xo21iLlgYdU+zlN0j3AH/ymjp5bGsSAhUxE97HM tQ33Nmo2qmpxGjGLtKXDoAOefNScCT7aU8NwdEhpiA/pELMRi/NHVhQ/JAp/XXlTOKAR hc1A== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB4m6O5nfv" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.28.1 DYNA|AUTH) with ESMTPSA id Y070ccx68IXusqZ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 8 Jul 2021 20:33:56 +0200 (CEST) From: Stephan Gerhold To: u-boot@lists.denx.de Cc: Jaehoon Chung , Joe Hershberger , Marek Vasut , Linus Walleij , Stephan Gerhold Subject: [PATCH v2 0/3] Add support for USB on ST-Ericsson Ux500 Date: Thu, 8 Jul 2021 20:33:47 +0200 Message-Id: <20210708183350.26592-1-stephan@gerhold.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This patch series adds support for USB on ST-Ericsson Ux500 by: - Adding a driver to talk to the AB8500 PMIC - Adding a driver to enable the USB PHY - Adding a simple Ux500 glue driver for the musb-new driver This was tested on the u8500 "stemmy" board that is already present in U-Boot. Changes in v2: - Add more error checking in prcmu_wait_i2c_mbx_ready() - Clarify why error is not checked at end of ab8500_transfer() - Assign AB8500_BIT_PHY_CTRL_DEVICE_EN by default and only replace it with AB8500_BIT_PHY_CTRL_HOST_EN if needed (Jaehoon Chung) Stephan Gerhold (3): power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU phy: Add driver for ST-Ericsson AB8500 USB PHY usb: musb-new: Add glue driver for ST-Ericsson Ux500 drivers/phy/Kconfig | 6 + drivers/phy/Makefile | 1 + drivers/phy/phy-ab8500-usb.c | 52 ++++++ drivers/power/pmic/Kconfig | 10 ++ drivers/power/pmic/Makefile | 1 + drivers/power/pmic/ab8500.c | 268 +++++++++++++++++++++++++++++++ drivers/usb/musb-new/Kconfig | 11 +- drivers/usb/musb-new/Makefile | 1 + drivers/usb/musb-new/musb_core.c | 2 +- drivers/usb/musb-new/ux500.c | 179 +++++++++++++++++++++ include/power/ab8500.h | 125 ++++++++++++++ 11 files changed, 654 insertions(+), 2 deletions(-) create mode 100644 drivers/phy/phy-ab8500-usb.c create mode 100644 drivers/power/pmic/ab8500.c create mode 100644 drivers/usb/musb-new/ux500.c create mode 100644 include/power/ab8500.h -- 2.32.0