From patchwork Mon Sep 20 13:37:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 1530112 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=FKlNx3Dd; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=JbPtDacF; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4HClxm36bGz9sPf for ; Mon, 20 Sep 2021 23:38:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 69A0A80EC5; Mon, 20 Sep 2021 15:38:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=tq-group.com header.i=@tq-group.com header.b="FKlNx3Dd"; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="JbPtDacF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E369C80735; Mon, 20 Sep 2021 15:38:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 250CA80EC5 for ; Mon, 20 Sep 2021 15:38:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matthias.schiffer@ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1632145081; x=1663681081; h=from:to:cc:subject:date:message-id; bh=x5m8fptVBO97Yv2OAP8hYokiUdexaH12TulZzT3DEP0=; b=FKlNx3DdDBcnoWXMcSBQcuY9dllcouTquXCX0JpQfieVUg2OxWGJJ3cV 25xDraA2S8N/DCZpXGIrZQPpmmh8eN0W7oRVM/eFVT9hkq2nFj3RyIag4 p3jpWgBvvixLmUzaza4PZbrlD7VE1BtYZOCqllcIn53G210VsZ9UB7mxC XHfdtWl75APVMMTage4tB/x7UYedp+c0iKSfEAabZ9SREFoGIxoVwHrih ceRbDBcz+Q7QXaajqifEB2uydnUOxBwyfSfeQVRZ+BJGTRprjBAxbMOka WvsKLN4Xy60lcNYRlN75fQS8HSP08ykuFcsSImSfYnoUEgz5uxASI1/ig w==; X-IronPort-AV: E=Sophos;i="5.85,308,1624312800"; d="scan'208";a="19602989" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 20 Sep 2021 15:38:00 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 20 Sep 2021 15:38:00 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 20 Sep 2021 15:38:00 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1632145080; x=1663681080; h=from:to:cc:subject:date:message-id; bh=x5m8fptVBO97Yv2OAP8hYokiUdexaH12TulZzT3DEP0=; b=JbPtDacFP9TTxxgCpJr8RhFZVnNri38GhQxUmUS5bQQjSlcA5V0aUGDL dwIQkRfALPQ0P1ILURi8Dyw79S5o0J1NXUcBz7kJR4ZIdiJPYdqSKGQor hDqQsrQlpn1DwdB37eFFBxNoS0xyX4dPSwz5z1bsStEDhilLeCUthJkAK UcNiQnVAUYhRQjEI4ucsJk9IISX2T7MExxlkqmGvFi/VmpreutBlUD289 f4J05WygvinAhk/GbvqavbR+QsB8rFkJehJE4qX2FzixQsWawioljn89C Hq2x7EZ9x9KshhT/te+jaSvCxvQG6Gbpc344UjH+aYczi/9MdJlc2rNB1 A==; X-IronPort-AV: E=Sophos;i="5.85,308,1624312800"; d="scan'208";a="19602988" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Sep 2021 15:38:00 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 79868280070; Mon, 20 Sep 2021 15:38:00 +0200 (CEST) From: Matthias Schiffer To: u-boot@lists.denx.de Cc: Marek Vasut , uboot-imx@nxp.com, Matthias Schiffer Subject: [PATCH 1/4] usb: add support for ULPI/SERIAL/HSIC PHY modes Date: Mon, 20 Sep 2021 15:37:22 +0200 Message-Id: <749d8078bfb257195293d582be16edc276526142.1632144459.git.matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 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 Import usb_phy_interface enum values and DT match strings from the Linux kernel. Signed-off-by: Markus Niebel Signed-off-by: Matthias Schiffer --- drivers/usb/common/common.c | 3 +++ include/linux/usb/phy.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 2a47f40bbab..43564c9fbaf 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -80,6 +80,9 @@ static const char *const usbphy_modes[] = { [USBPHY_INTERFACE_MODE_UNKNOWN] = "", [USBPHY_INTERFACE_MODE_UTMI] = "utmi", [USBPHY_INTERFACE_MODE_UTMIW] = "utmi_wide", + [USBPHY_INTERFACE_MODE_ULPI] = "ulpi", + [USBPHY_INTERFACE_MODE_SERIAL] = "serial", + [USBPHY_INTERFACE_MODE_HSIC] = "hsic", }; enum usb_phy_interface usb_get_phy_mode(ofnode node) diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index 1e1217a9583..14b2c7eb2e6 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h @@ -16,6 +16,9 @@ enum usb_phy_interface { USBPHY_INTERFACE_MODE_UNKNOWN, USBPHY_INTERFACE_MODE_UTMI, USBPHY_INTERFACE_MODE_UTMIW, + USBPHY_INTERFACE_MODE_ULPI, + USBPHY_INTERFACE_MODE_SERIAL, + USBPHY_INTERFACE_MODE_HSIC, }; #if CONFIG_IS_ENABLED(DM_USB)