From patchwork Mon Apr 3 20:31:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669798 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp2086968wrt; Mon, 3 Apr 2023 13:34:10 -0700 (PDT) X-Google-Smtp-Source: AKy350Zp+ngmktuLgd6OKbjWa7dm6g4TNPH2hinu3fDuG1tqTkQEDSF0S9TZQYisvwtWbo4f1Pto X-Received: by 2002:a05:6a20:c2a7:b0:cc:7967:8a75 with SMTP id bs39-20020a056a20c2a700b000cc79678a75mr202pzb.46.1680554050296; Mon, 03 Apr 2023 13:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680554050; cv=none; d=google.com; s=arc-20160816; b=NWcmYQybn1rK0EqjObzj6In1dooLbx/5/dVMBsbz4jijxCuCmtzvuRQxEEXmA0UsGm bmqInCI2Nd3CaoTCx+eXpLFkNiue0Ia7HZkdY25wxKFfmggDcFXRdQKxj4nPTw1GKGy1 VxJuLP1nF4pUZy5lZlQqm9CQR0whNTwj6LPq8ZC/0P47aMNsg6hs0/XPpfi+h3HeoDIC wB+RFOgEYZQZoGYgm+7XM10ku6Ktw6HAfAIDXxh+NGT0lSOUxFXIQcB+kAorQLEeQzr/ /JgvmMLVqn3IQe1o5xA/ZQKoT/EXTVTV46uNNCyLwyTiW+/Wv2VvusdiQLT9LOXj5HIL 5+nw== 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=mhtTMLEISvYscTaGOcE1F64Mi4S3PWDymFsl8Ypoz7A=; b=tsp2SbmS7howLcMJQV65L/XDx1dPyI73Si23OmPJjnmT2Ln/yNzpYzKJEvmxYZQbK5 eD+u9Jg2B5BMlbzTeIQeTw00aHfz0Iar4t4OeVGZN/wR4gj7cFjxmZMYaNFTCGlV5NEt zFa9cjlhNGZNtvh+5vGPZm0soes9bS3jsn75xa2KT93c9iYE2WnYSHzlJIE/2pJZ+mIR BvJNCL7p1BN1oc8ulU9ZVB0yZVuAMjlYuOUgMW5W/F2LQCSXhHg9QbnHO9qgt9e7dbp+ Be7M+NkDyyC0wjS/5iujue+9EMli1+B2Pq99GoY3czHPej578LPuq0Tb5DxN0y0Nf3Hr XmdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O/mkssvp"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id c10-20020a63ea0a000000b00503011e4f27si8645567pgi.869.2023.04.03.13.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 13:34:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O/mkssvp"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4EBFF85B74; Mon, 3 Apr 2023 22:33:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="O/mkssvp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E0BA185CCE; Mon, 3 Apr 2023 22:33:46 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) (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 03F7285927 for ; Mon, 3 Apr 2023 22:33:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org Received: by mail-pg1-x52f.google.com with SMTP id z18so18294259pgj.13 for ; Mon, 03 Apr 2023 13:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680554021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mhtTMLEISvYscTaGOcE1F64Mi4S3PWDymFsl8Ypoz7A=; b=O/mkssvpdIwupjZAlmvgOEmcXmHJ1lBLyUZyh+LBhiZtPedUPfdrYwMCLtYfmX8Uge TLwkQf1h4mVqJ+ZewjLl+aMOPcm2aM5a/GzloWTcf3MzVw2I2SIfswDz0vbObJpBkC+Y nX4VrnrB8pzFvNejJ/tYg1viQhwsXr+cjQNZBkeMynHHK7xiANIyN4Sugr42m5BdaLgR fS4oZxob0Mm8o8s6czuW38yISF6cYVo0g9t21JiHN7M92HQsB7JijgdzMcoJtByhW4gr Sw7xcGEtJueZEOW9XLbn4xVjhxIrctKWgcCs3XD/BFopnA6q099S5E33Xm8a6v6sNJi0 Suwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680554021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mhtTMLEISvYscTaGOcE1F64Mi4S3PWDymFsl8Ypoz7A=; b=LhJR+GkOZKwmNiCfm2D84L9HR+TJ+WBzk+afb0aeHCvv8mewA+F5SUW1vR+KOkTBbr xZDHjqIInuB11rYLvKZgjvjqCGsYVQcLOlns4s7wo6t1VcZOZfwelzfRTBaAI9CxvUUT SJ6c9l+lUDIxMP/NDYydLLl7jJKYgjaD+DBsBnuEEM5h1Ro8BnOsNsYzk0/GtXVJzabT nzE0j1C3CoOEWW5CTC3gU2Ft+UfzFmjLFsLOUNQuNS6FuwH9Uxku7lPCkt9zes3GAnJW b9rbR4Qbp60sX/Zahz9K4cgeaXGNNPdetjmazvMcWsvp44/vpJpwYSMluSEXo0FyYQed dQpg== X-Gm-Message-State: AAQBX9c1kXY8gluoo8ZD7N4SuS7P/criXZUn+vVMq6jap7kqcnccuAT4 0cnCFaF8tVSUqWq+oYtDeqVdHLx6Fjxn0lo2Xys= X-Received: by 2002:aa7:9d9d:0:b0:62d:cfd3:d697 with SMTP id f29-20020aa79d9d000000b0062dcfd3d697mr14732473pfq.26.1680554020792; Mon, 03 Apr 2023 13:33:40 -0700 (PDT) Received: from localhost.localdomain ([223.233.67.41]) by smtp.gmail.com with ESMTPSA id z18-20020aa785d2000000b0058bcb42dd1asm7359039pfn.111.2023.04.03.13.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 13:33:40 -0700 (PDT) From: Bhupesh Sharma To: u-boot@lists.denx.de Cc: jh80.chung@samsung.com, peng.fan@nxp.com, rfried.dev@gmail.com, sjg@chromium.org, trini@konsulko.com, dsankouski@gmail.com, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org Subject: [PATCH 1/2] dt-bindings: phy: Import phy-qcom-qusb2.h Date: Tue, 4 Apr 2023 02:01:19 +0530 Message-Id: <20230403203120.1405733-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230403203120.1405733-1-bhupesh.sharma@linaro.org> References: <20230403203120.1405733-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Import phy-qcom-qusb2.h from Linux to allow standard macros to be used for Qualcomm QUSB2 PHY ids. Signed-off-by: Bhupesh Sharma --- include/dt-bindings/phy/phy-qcom-qusb2.h | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 include/dt-bindings/phy/phy-qcom-qusb2.h diff --git a/include/dt-bindings/phy/phy-qcom-qusb2.h b/include/dt-bindings/phy/phy-qcom-qusb2.h new file mode 100644 index 0000000000..5c5e4d800c --- /dev/null +++ b/include/dt-bindings/phy/phy-qcom-qusb2.h @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2018, The Linux Foundation. All rights reserved. + */ + +#ifndef _DT_BINDINGS_QCOM_PHY_QUSB2_H_ +#define _DT_BINDINGS_QCOM_PHY_QUSB2_H_ + +/* PHY HSTX TRIM bit values (24mA to 15mA) */ +#define QUSB2_V2_HSTX_TRIM_24_0_MA 0x0 +#define QUSB2_V2_HSTX_TRIM_23_4_MA 0x1 +#define QUSB2_V2_HSTX_TRIM_22_8_MA 0x2 +#define QUSB2_V2_HSTX_TRIM_22_2_MA 0x3 +#define QUSB2_V2_HSTX_TRIM_21_6_MA 0x4 +#define QUSB2_V2_HSTX_TRIM_21_0_MA 0x5 +#define QUSB2_V2_HSTX_TRIM_20_4_MA 0x6 +#define QUSB2_V2_HSTX_TRIM_19_8_MA 0x7 +#define QUSB2_V2_HSTX_TRIM_19_2_MA 0x8 +#define QUSB2_V2_HSTX_TRIM_18_6_MA 0x9 +#define QUSB2_V2_HSTX_TRIM_18_0_MA 0xa +#define QUSB2_V2_HSTX_TRIM_17_4_MA 0xb +#define QUSB2_V2_HSTX_TRIM_16_8_MA 0xc +#define QUSB2_V2_HSTX_TRIM_16_2_MA 0xd +#define QUSB2_V2_HSTX_TRIM_15_6_MA 0xe +#define QUSB2_V2_HSTX_TRIM_15_0_MA 0xf + +/* PHY PREEMPHASIS bit values */ +#define QUSB2_V2_PREEMPHASIS_NONE 0 +#define QUSB2_V2_PREEMPHASIS_5_PERCENT 1 +#define QUSB2_V2_PREEMPHASIS_10_PERCENT 2 +#define QUSB2_V2_PREEMPHASIS_15_PERCENT 3 + +/* PHY PREEMPHASIS-WIDTH bit values */ +#define QUSB2_V2_PREEMPHASIS_WIDTH_FULL_BIT 0 +#define QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT 1 + +#endif