From patchwork Thu Jan 26 13:14:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 647657 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7FD3C54E94 for ; Thu, 26 Jan 2023 13:14:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234890AbjAZNOr (ORCPT ); Thu, 26 Jan 2023 08:14:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236444AbjAZNOq (ORCPT ); Thu, 26 Jan 2023 08:14:46 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C056950C for ; Thu, 26 Jan 2023 05:14:21 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id q8so1083443wmo.5 for ; Thu, 26 Jan 2023 05:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=u8aVTxzWn1UixQJuXT/p8bVFkzgfvSz7e0kUvSVzVNM=; b=vfa+Wv47xDD5N44ame85qOABQIuhcW5F6QP8QrJVUDCzOXjS7fnancY0ojaFM+x14O ANOMRqi1TIMikABYJ+TzRiJH8wbYr70H3w7so0uKeJqCWH4UKZOo/PYzC3Bfdko07C+Y I9DL1//vT7BKAu0l/1uVrCV7rpolV7Qc8TMig+WFJRqEWekWrfmhDU6Bu4g4NL1LPq66 G7g4gGn5F98htr4u1IP17rTn85Ur4VrAUzIWDm15Dz5X9WxIQVzepoSb5BEaFwZktDBW 9qDx94sRBMvLKSQMcvGi1hBvqLSxJzUChalshlngotbOZwQnQRLq0F5prQaFZfbkptXJ 2NKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=u8aVTxzWn1UixQJuXT/p8bVFkzgfvSz7e0kUvSVzVNM=; b=vmfOomLP0feGTDwf6LcrmswcIV0Pmz1zvuP/Tbbp+ujd9bbSIb0vb3dMkCyn5YNsm0 FmdG3anFN7emTHLP4SaV7KWkEn4a3xwkumpUl0vEgTEESkTe+tRaRGKsufQ3qGAAQWiH eqkHXzxgEcZjMrJrQewXavfXZoR92+YtFLVjvhIPhIqKi6tIqt2NPPSID9KC93RYPsAA uAkMw3FJZY9VuWeQ+9KEGGepak1HAijKJKf+v0Os2oeDZ4+5EKBUPTP1LcJ+xQWY8Nd0 qnrWTBNDozsuVxSOish95L4cXa/s2D9zos9OlEkDhZh9gayGKFfF4xqkS7Ml5HDkObW8 4zrw== X-Gm-Message-State: AFqh2kooYrTY5kgB2/WF76Uf5YVK1QHS1eWHg7xMRjcYYWugVm/DcgmM pMOBEGZ0iRfvT9o0HrBbREBQxw== X-Google-Smtp-Source: AMrXdXtzde+unOWbFn9P6rtGSe12ZvQaPKTxAXxHHcUapQ+Y63I46+FycM+w1q/FD9AFNMEClsL8Vg== X-Received: by 2002:a05:600c:43d3:b0:3da:fbcd:cdd2 with SMTP id f19-20020a05600c43d300b003dafbcdcdd2mr35942889wmn.9.1674738860450; Thu, 26 Jan 2023 05:14:20 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id 18-20020a05600c26d200b003da28dfdedcsm1719804wmv.5.2023.01.26.05.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 05:14:20 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , "vkoul@kernel.org" , Kishon Vijay Abraham I , Philipp Zabel Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-phy@lists.infradead.org Subject: [PATCH v3 1/8] dt-bindings: phy: Add qcom,snps-eusb2-phy schema file Date: Thu, 26 Jan 2023 15:14:08 +0200 Message-Id: <20230126131415.1453741-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230126131415.1453741-1-abel.vesa@linaro.org> References: <20230126131415.1453741-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SM8550 SoC uses Synopsis eUSB2 PHY. Add a dt-binding schema for the new driver. Signed-off-by: Abel Vesa --- The v2 version of this patch was here: https://lore.kernel.org/all/20230126124651.1362533-2-abel.vesa@linaro.org/ Changes since v2: * none Changes since v1: * dropped the "ref src" clock * dropped the usb-repeater property .../bindings/phy/qcom,snps-eusb2-phy.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml new file mode 100644 index 000000000000..49a5dad486c2 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/phy/qcom,snps-eusb2-phy.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm SNPS eUSB2 phy controller + +maintainers: + - Abel Vesa + +description: + eUSB2 controller supports LS/FS/HS usb connectivity on Qualcomm chipsets. + +properties: + compatible: + const: qcom,sm8550-snps-eusb2-phy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + items: + - description: ref + + clock-names: + items: + - const: ref + + resets: + maxItems: 1 + description: + Phandle to reset to phy block. + + vdd-supply: + description: + Phandle to 0.88V regulator supply to PHY digital circuit. + + vdda12-supply: + description: + Phandle to 1.2V regulator supply to PHY refclk pll block. + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + - vdd-supply + - vdda12-supply + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb_1_hsphy: phy@88e3000 { + compatible = "qcom,sm8550-snps-eusb2-phy"; + reg = <0x88e3000 0x154>; + #phy-cells = <0>; + + clocks = <&rpmhcc RPMH_CXO_PAD_CLK>, + <&tcsrcc TCSR_USB2_CLKREF_EN>; + clock-names = "ref_src", "ref"; + + vdd-supply = <&vreg_l1e_0p88>; + vdda12-supply = <&vreg_l3e_1p2>; + + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; + };