Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp189888iob; Mon, 2 May 2022 16:43:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzgZstHSR+5kW7RU3wIXUhddlPGxVCuBCKOqJMmtI6SVPS66mXtaDbK76WVINKflw9lVdU X-Received: by 2002:a63:554a:0:b0:3c2:1d4:2989 with SMTP id f10-20020a63554a000000b003c201d42989mr6911460pgm.321.1651535012185; Mon, 02 May 2022 16:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651535012; cv=none; d=google.com; s=arc-20160816; b=ucuQPSPdkWWavKhDYsw/dczAJkvAf5oTlDVM42Hi+eXC/+g637Yj+tzm81kn492GIo ztprJC1sUJ+ErJnwgY8/QnD6THvNKDFVUrPD6LxI0muqzxYJi29GI05Qt6XgrTU8ks2o yq1imoc5x/gjiGI5y08SbWK8BUr5JBRUqmQV01NY6Ix3XxqgzoZZ8jG1V2C3GzaJ4GVJ F3zPw/vz4YXuhu4ZSb0a9nwzvdhx6DjD7goaP5ne0DcoKAR+mcNlEvOuL1bpIerZpQ6N GVdDL27q7vkgnXD6KQ86bJ92KkmZsgrv/gDL/gGUOxeTgfN9a5sb2vDSMJy1pdUc9g8w CCFg== 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=sPglW94tnj8XZLFLi8TD5DyZuTLeLJOzEQaitrD47Rk=; b=bW3knzTRkIUtv0IJsBLt5uXZhYBoA2PtZT1r2gzXTF4Nic1j5T/zR501i+9NFCjyUp 3cFp9rAF5ZvEpHhQOMVGaBuIqBZdqtTvB55uOW/DvgdbbMKgEC7Sqyxy293ATVAAQ2bW pJq9lwa9v5nSHYSoutfUK+5wiQy7CHy3KLOj6amx8qjWKWW/hrUUAnlMdyJOkx7wQEb/ r/t2+l9kZyIlJysSECGEL6bz62wYw7st7ICj1h0rhcx8ZMDySrXINN5IJCSjT4SmZFUJ CTwVNwBu8TCc8FFVinHLI/pY8oLdhcr00RGT1XkKDiIYhdS8dmDKLwm0j3MwtIY36dK+ fw0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UWmiesA9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g21-20020a63f415000000b003987eaf156csi15495438pgi.641.2022.05.02.16.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UWmiesA9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F009433883; Mon, 2 May 2022 16:43:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353421AbiD2HFE (ORCPT + 99 others); Fri, 29 Apr 2022 03:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354884AbiD2HE6 (ORCPT ); Fri, 29 Apr 2022 03:04:58 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEFF8B822D; Fri, 29 Apr 2022 00:01:41 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id t13so6218839pfg.2; Fri, 29 Apr 2022 00:01:41 -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=sPglW94tnj8XZLFLi8TD5DyZuTLeLJOzEQaitrD47Rk=; b=UWmiesA9J6CPk3EH2Rwr/isQLTArC8YOhw1jnhhf3WMHhNhx9x9tqBPHV3PRqDJHBG 0+v9RrtZvlYN+Fu+pEv7ZkPlE/iYt4CeCwOgZ0q6GL44YFbXu8jILacoU/8zVoJeduM1 PobrlU4x/QfSDNQnByx3rdIGByv58ynZN6q9G3K45Xc45GJU2+cyQVCDWYM2YdfvZp7N ZMRLd/J3GZja3dyNuiE1wZqcuhI65qcoLSV0Km8OaW1f6tifqcJ7JI3R10cUd39b0cpd jD9vsyGkDsNFaJs29ZjSlFJ+gP0+OITHN2GrGfN6gRZlweVUsBCVh76SPCv61yq78RSL pA4A== 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=sPglW94tnj8XZLFLi8TD5DyZuTLeLJOzEQaitrD47Rk=; b=wbNF/YLJTMpaQ4O4sV0dnCidos9T0td6qYhsu7zlbjCDBGfmADs8UAU8aDsGncCWQF ziSvfJBpKKd8XXPkOycFzxAFwD0HxytA2FoQJO3998ohnGchDMrUcuMDY4amcywhCVfo W1WyPJT6tWB3oLTbfoLzvHoHUlrIIPuPx+ALwcpDMEWYqGI/6Ja5CxE7QfMIwgO3CycB n/TQ/6BuPQ6GLXY3fDae2tfFYGEzOti6F6K7Jn3oprYw+bWfarwEr7/mV+QoF09QhkLo oftrfEnMvvXvPKTiLUeRACt8PX5CDhB6dTVhLQ/y4Lm2BJM7lu85bcnaINNLvLAsBU43 2jNw== X-Gm-Message-State: AOAM530smXFrknoCLeJFsvgbyzqqQ+G6CidYZo1JPB0FktIMns7X2UId 0qSeBOsPmuF2MuHL4U8SQEs= X-Received: by 2002:a63:e80a:0:b0:3c1:6c84:de53 with SMTP id s10-20020a63e80a000000b003c16c84de53mr7076534pgh.224.1651215701291; Fri, 29 Apr 2022 00:01:41 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id iy19-20020a17090b16d300b001cd4989fee6sm13148106pjb.50.2022.04.29.00.01.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Apr 2022 00:01:40 -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 v2 2/2] dt-bindings: phy: Add bindings doc for Sunplus USB2 PHY driver Date: Fri, 29 Apr 2022 15:00:56 +0800 Message-Id: <1651215656-19024-3-git-send-email-vincent.sunplus@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651215656-19024-1-git-send-email-vincent.sunplus@gmail.com> References: <1651215656-19024-1-git-send-email-vincent.sunplus@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Reviewed-by: Rob Herring Signed-off-by: Vincent Shih --- Changes in v2 - 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..52cf20e --- /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 Device Tree bindings + +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: uphy@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 6b88a7b..bddf6c7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18918,6 +18918,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