From patchwork Sun Mar 7 18:58:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying-Chun Liu X-Patchwork-Id: 395153 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1145830jai; Sun, 7 Mar 2021 10:59:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVxLX+Ca+WdnLiVcGmPi47UffZ/tNCVIVEbzQw22E8jjGcsx5/WwBEo21/vH1eQFzTqsTN X-Received: by 2002:a50:ec0e:: with SMTP id g14mr19094355edr.264.1615143548792; Sun, 07 Mar 2021 10:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615143548; cv=none; d=google.com; s=arc-20160816; b=nMTWqbSUax7L01kpCF4+jxAlzNKStcA7XrU+bgAjRY0ghvQFEuE79/lxzk9hhf6Puo ZT8UNwxt+hsDfsn59VwyLvXrDOgwL8QZGMp8oC+sG8+Butl3t+zjAkNCtwZAjyqCPhnL xwa1qATan+af0Y9ceH963UGJ6kPDQYKOF8YJVNrq4Nwx4u/zZimwXWzi8QprQaFbPyVo VSbJukhvEayW6w0H2CwCn5K6dOOUqE7HfjqexjULsICsZLiNKP5oITFY8Udre/JLWPmu /ACCbPo/p0FoHm7EKu6oWmZYelP0zntN3qaG6NOEBumIwd7XDkeXySRSowfWi6DbPW6l 6crQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jSdcLVORPkoAQZ5Jkr0rUk7rOTKHzZAc9THCoQ8hgKg=; b=gKXzE81n8H+HlxxFYvhZvrHhXgKEL3cpaT7v75HLrwghoxCP/n5jyN4m84ngs3m55M jWolTUwtkNG1aB86kNrbxdCtKwVQeP6NqYR02vhTMVkJMvMFcQuzPFlxxJwwPinwVVjk VMH4Qxv96iFxSco6r2fA8i6AoO29FRZUSrgrUbijgrNwh5o3GQgKFAlbz/Fn/bCvfZRx SqJXAsF97OOdHdcrMNurIad6paAoUJWlPX+sPf4uDZuPv8uJ1ilc1ZVK/vywZg/3JXed dV6HeoQY0lcr9PzvGt9zrlnzAy3eBd6G8OqEl0s91ED3V9ZBmoNm89jjH0Rf8Ikx3NeO bhAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wt0ctNye; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id t25si5446605ejf.502.2021.03.07.10.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Mar 2021 10:59:08 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wt0ctNye; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 50445827BC; Sun, 7 Mar 2021 19:58:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="Wt0ctNye"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 323848279C; Sun, 7 Mar 2021 19:58:47 +0100 (CET) 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_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0C66182652 for ; Sun, 7 Mar 2021 19:58:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pg1-x52c.google.com with SMTP id o38so4973529pgm.9 for ; Sun, 07 Mar 2021 10:58:43 -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=jSdcLVORPkoAQZ5Jkr0rUk7rOTKHzZAc9THCoQ8hgKg=; b=Wt0ctNye9E7R4tNbRmZkXMMUFprEpwithiodh7K7GxxXQmSj6ZGibNkBIrvM1rkhVR ZlFrNUn4zPSe50zfDsHtQkyQpkmk3TyaLjBime0lWOd8qOHf6bcRspWoVaXLQ1FS3CFx BC8K544jLS08+DxFJMgPJ0NisGnwu2jmKFnHUEOYas/7BOk/e/xODgSG2FgUXAO9tU0E Zr4ljn0xfM1w0lgS8OdTtpGvXpXpYu+FKSmM8v+5IFEOhqqimC4dHnr3AmZcn0qESEcy 2LdL2ftQI62lElPfie+SeDp+g8mMm7hnjpzHYVRoaHjIP8Ax1qtkEM0Vy08LGPIXtHrT T5AQ== 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=jSdcLVORPkoAQZ5Jkr0rUk7rOTKHzZAc9THCoQ8hgKg=; b=HjAkSMk4+8dc8alWI6bfWZ630/QHkTGf7sjAzqmQjOpgcNAiAiGc9kOSzMr8Az/nMy FSgiADPBlzGIwNwnuYSJq8obirvYjPu8056EDZhUHy2KEMSFsHNbo1QuYyHg41RdhVGf wSiCwA+NVhhAz7RjYhaNHSnyWCBuP7fkYMer/etWhNPERNbh4MQR6gQyucIoSSnQ3YM7 e5PRNezfYdjcAdewSEu6+L1Q3nayBsIO2xvBbSYYwbSpKcy6/LcRLrZnyKIGi8dl+607 UO788bVW1xAIbAdAexMzrNZNkI4Ry/RxeTB+HcMA9butnfFuZuD4ZUu7bf/gpxmiV+89 yYjQ== X-Gm-Message-State: AOAM533ojxVZTceHBnbRfW7+Md71hs/i1uT9mGrbX9q6MSnkZtxueiNN NkoFqhBgpP6fRtHXwGLlIMLB+RfLWog= X-Received: by 2002:a63:cf06:: with SMTP id j6mr17239788pgg.195.1615143522387; Sun, 07 Mar 2021 10:58:42 -0800 (PST) Received: from localhost (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id t16sm7246807pfc.204.2021.03.07.10.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Mar 2021 10:58:42 -0800 (PST) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH 2/2] doc: device-tree-bindings: phy: usb-nop-xceiv Date: Mon, 8 Mar 2021 02:58:29 +0800 Message-Id: <20210307185829.97583-3-grandpaul@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210307185829.97583-1-grandpaul@gmail.com> References: <20210307185829.97583-1-grandpaul@gmail.com> MIME-Version: 1.0 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.102.4 at phobos.denx.de X-Virus-Status: Clean From: "Ying-Chun Liu (PaulLiu)" Document the bindings for usb-nop-xceiv Signed-off-by: Ying-Chun Liu (PaulLiu) --- .../phy/usb-nop-xceiv.txt | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc/device-tree-bindings/phy/usb-nop-xceiv.txt -- 2.30.1 diff --git a/doc/device-tree-bindings/phy/usb-nop-xceiv.txt b/doc/device-tree-bindings/phy/usb-nop-xceiv.txt new file mode 100644 index 0000000000..4dc6a8ee30 --- /dev/null +++ b/doc/device-tree-bindings/phy/usb-nop-xceiv.txt @@ -0,0 +1,43 @@ +USB NOP PHY + +Required properties: +- compatible: should be usb-nop-xceiv +- #phy-cells: Must be 0 + +Optional properties: +- clocks: phandle to the PHY clock. Use as per Documentation/devicetree + /bindings/clock/clock-bindings.txt + This property is required if clock-frequency is specified. + +- clock-names: Should be "main_clk" + +- clock-frequency: the clock frequency (in Hz) that the PHY clock must + be configured to. + +- vcc-supply: phandle to the regulator that provides power to the PHY. + +- reset-gpios: Should specify the GPIO for reset. + +- vbus-detect-gpio: should specify the GPIO detecting a VBus insertion + (see Documentation/devicetree/bindings/gpio/gpio.txt) +- vbus-regulator : should specifiy the regulator supplying current drawn from + the VBus line (see Documentation/devicetree/bindings/regulator/regulator.txt). + +Example: + + hsusb1_phy { + compatible = "usb-nop-xceiv"; + clock-frequency = <19200000>; + clocks = <&osc 0>; + clock-names = "main_clk"; + vcc-supply = <&hsusb1_vcc_regulator>; + reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; + vbus-regulator = <&vbus_regulator>; + #phy-cells = <0>; + }; + +hsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator +and expects that clock to be configured to 19.2MHz by the NOP PHY driver. +hsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET. +GPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator.