Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3224408imw; Mon, 18 Jul 2022 04:31:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEGTlupxeSziVCunCfiGYN39NEvoCLPso4AHVE5zu0gLuZ0vqWCAccrHDBeeI/1EhwdOzb X-Received: by 2002:a05:6402:913:b0:43a:b594:93a8 with SMTP id g19-20020a056402091300b0043ab59493a8mr36677834edz.346.1658143888889; Mon, 18 Jul 2022 04:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658143888; cv=none; d=google.com; s=arc-20160816; b=vAxD8P1KrD9BpYM1Eil2XLJ1Mqzbe0agJJMGKYSd173DQTVYrfm3YfZk1Y1AI5p1Rp n8UFSEF/mfuoinKsBvkni1z26WTTbnQOBt7sztBfvPzoxfUmpAk7dAkyShSPh20DQlRy oDDczqb5RGYSxO6S/A9Pzeus74+4JgW0XSRO2yfwZzQ3PgV5mrNpVbyCksMBXcJPEYQu mzLNQy9cUwwUfTjMYMD0oW+0Ih4vqXeaBX15XEWDwCaM3Z5dYZ8g7HJXNW0cLsApWX9Q eHohSd2zlwavBqbYOfNho5VUDZJO1fISyAJvtvcmrLcnvGodlByo5dGbY9MToBGvbald XDgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Pzx0LTAEG3plavLsKEb5O1+0H3QSoplqHlDrOAmJwM0=; b=DHz3xtqidbw7skdyaWQ8jBY3HeRT/b2lDVunq5qssn87rMsHkP2a0rqqokaZ5BwGBL Mtu3EVIT+4wG9nuEPHa1iMviCC5h5lFnrd+LBT7LxLcW/jiCNwK9nsjLojf+++spT2kb paHqj/DcWmBmU+vfxMw1MFFd5VMIL9fE44JFE9soCsaB45RBbfsrdsi47y5bjV1JBqRJ XV3xSs6/8A3kaNZvPWLcLU4dOySQN7JefxjW1L5Hel4ptn/Et+a3DOSXbMHtcFrdVsMG N1QfWzNprH8DYOQA8mmSPSjyryJgqeo8UreXHvpdIqBasmSX/YV/BdKvx7tZJare6jyB VQiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pjHLQ1tU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a056402144e00b00437d7316b1dsi14377940edx.528.2022.07.18.04.31.02; Mon, 18 Jul 2022 04:31:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pjHLQ1tU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233941AbiGRKvt (ORCPT + 99 others); Mon, 18 Jul 2022 06:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233897AbiGRKvq (ORCPT ); Mon, 18 Jul 2022 06:51:46 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBBCB20182; Mon, 18 Jul 2022 03:51:44 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id f11so10201612pgj.7; Mon, 18 Jul 2022 03:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Pzx0LTAEG3plavLsKEb5O1+0H3QSoplqHlDrOAmJwM0=; b=pjHLQ1tU+9Z/jw03Et5aIahbF/Qm2nLM2GoP+sewQYwZoxFZuKCXaynTjv4K1YzH/e POLpKKxGFLNydnDB1V8Fw3dBYLodL8EZ/FCkN3Qf9d2wJyXf9lFMV7AXjX1UZMZSq7IP 2XuVfIYuyRTi/b/XM4QxkAwd/Vvf3AxCb5pVxgzEuffw2QYAFhGGyeqZgJSwJcyuwRHs 0nJ8s7u3fkmgquf2Jk8tE3RokRx43voshbnitAAuQbOI+ITg2F93o6wAx5+PvYY1a2j3 AlvFGbLNO0Yis6+7MtmghrqFArpZTW2v/dQ5/704EXYekCYNXWnb2GX+LYfq9dSRPzkW iLUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Pzx0LTAEG3plavLsKEb5O1+0H3QSoplqHlDrOAmJwM0=; b=7Y22rIZfeay0FshSF16JgMKX1428HPuFwTl5avQhTYf02ynE9hThbcI9/++EyCg9OW e8H56GQGrXzjakXgTd5Ww/UkMhlVRF1soebEkKDuJuakuFkw8u0m8Mduyq4x2W89Zmiv zKtwp0DotH5pXWjvZWg4pmlyskcpn7G7nhT0IAsM7aHKvze+dqzFIZzjld/JJiN6s9s3 qCQLUvaUO059bcpERcZXLW7gEa8dX8pZW98GRHYEDT//coXHisY4iB5HwYRm0TGe5dWl 20edmPsM8G0JUiyDrFwlNC1TcvqEd130Se7llFMjVJF17Ljr2J0lA/pp557EENyaH8If +Qpw== X-Gm-Message-State: AJIora8ve1Nks/kGYc+069bWblUkKyrN2CVkV58eZZm4406s6E9ziGfo NbpOQDFyQRH1RviqQKamq9o= X-Received: by 2002:a05:6a00:124c:b0:52b:26b6:2ab4 with SMTP id u12-20020a056a00124c00b0052b26b62ab4mr20907079pfi.85.1658141504318; Mon, 18 Jul 2022 03:51:44 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id s2-20020aa78bc2000000b0052ac1af926fsm8914641pfd.20.2022.07.18.03.51.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2022 03:51:44 -0700 (PDT) From: Vincent Shih To: kishon@ti.com, vkoul@kernel.org, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, wells.lu@sunplus.com Cc: Vincent Shih Subject: [PATCH v4 2/2] dt-bindings: phy: Add bindings doc for Sunplus USB2 Date: Mon, 18 Jul 2022 18:51:20 +0800 Message-Id: <1658141480-9291-3-git-send-email-vincent.sunplus@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1658141480-9291-1-git-send-email-vincent.sunplus@gmail.com> References: <1658141480-9291-1-git-send-email-vincent.sunplus@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings doc for Sunplus USB2 PHY driver Signed-off-by: Vincent Shih --- Changes in v4: - No change .../bindings/phy/sunplus,sp7021-usb2-phy.yaml | 73 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/sunplus,sp7021-usb2-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/sunplus,sp7021-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/sunplus,sp7021-usb2-phy.yaml new file mode 100644 index 0000000..069d422 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/sunplus,sp7021-usb2-phy.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) Sunplus Co., Ltd. 2021 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/phy/sunplus,sp7021-usb2-phy.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Sunplus SP7021 USB 2.0 PHY Controller + +maintainers: + - Vincent Shih + +properties: + compatible: + const: sunplus,sp7021-usb2-phy + + reg: + items: + - description: UPHY register region + - description: MOON4 register region + + reg-names: + items: + - const: phy + - const: moon4 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + "#phy-cells": + const: 0 + + nvmem-cell-names: + description: names corresponding to the nvmem cells of disconnect voltage + const: disc_vol + + nvmem-cells: + description: nvmem cell address of disconnect voltage + maxItems: 1 + + sunplus,disc-vol-addr-off: + $ref: /schemas/types.yaml#/definitions/uint32 + description: the otp address offset of disconnect voltage + +required: + - compatible + - reg + - reg-names + - clocks + - resets + - "#phy-cells" + - nvmem-cell-names + - nvmem-cells + - sunplus,disc-vol-addr-off + +additionalProperties: false + +examples: + - | + sp_uphy0: usb-phy@9c004a80 { + compatible = "sunplus,sp7021-usb2-phy"; + reg = <0x9c004a80 0x80>, <0x9c000248 0x10>; + reg-names = "phy", "moon4"; + clocks = <&clkc 0x3d>; + resets = <&rstc 0x2d>; + #phy-cells = <0>; + nvmem-cell-names = "disc_vol"; + nvmem-cells = <&disc_vol>; + sunplus,disc-vol-addr-off = <0>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 31d2ba0..989e5ba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19227,6 +19227,7 @@ SUNPLUS USB2 PHY DRIVER M: Vincent Shih L: linux-usb@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/phy/sunplus,sp7021-usb2-phy.yaml F: drivers/phy/sunplus/Kconfig F: drivers/phy/sunplus/Makefile F: drivers/phy/sunplus/phy-sunplus-usb2.c -- 2.7.4