Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp858918rwb; Fri, 28 Jul 2023 00:25:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGF7AvycSlx2CDOHC6vQvndTVwvT/y38GWhkkXmH8k9fLEohFgnV0I/3yl8LplR6Fm8H7HB X-Received: by 2002:a17:906:3298:b0:994:4e9c:30c6 with SMTP id 24-20020a170906329800b009944e9c30c6mr1092213ejw.57.1690529101389; Fri, 28 Jul 2023 00:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690529101; cv=none; d=google.com; s=arc-20160816; b=Gm8oJImXxYBvEnp4KD6aAPww8mUw14hLt56cXpJ0di4qWzvKKOWvEXXagxdzvN930P cvOMkfbFzHUTc7P+ij0D3Z4W/G0jOkVVnLDSCyWYSBIXa/pzJYVjHkJxdKhOkI5Ozq76 47KPNCUK3+Fh3/iT57HrYyYfWpfsrGbl1tZrx5BDBZk1nxuLY61mHgiGem+cc7FJnBY1 c/geQOrvqDBZmyG0WPfBRIOc6XexiPJVFyH2inPkx1uY8XRZfMt2j9mj9ZPvH/wjEczD 6zIML5JACwS7jIuJxEPisYLTBCoW++JcpNDnmiqMJaKL9E/ec+S56K4SJWuV8VGfTFTu 4FEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3sC0D4X3+6tgLPKYm2qip+QkMvs29ewl4q1rgH6EOrw=; fh=ZGzjInJy2Az+rBL2nTA1VhooeX63ik/WXdo1VefW1uQ=; b=i/U8uCFtC+pqzUKhsg/PQqp0Wz3SMVz0Fg8ySazbZUJX9OUoG4Menj9Xg3uQJDYjRc eySjrftKnXDUTf2PRXYgPip7FrVGRVaFBDL5MKp139w+5rEA13nHgL0/cF9N0jLqR4BM OMONoHNBpBoWhfafXwkTLhJBySURT5CSQWShggiNUacUQXXFvus2DWxVl2jlWGkPVCCD ajLKuy2k3S8uTejvg2WIj9Aye4w3dwl+0o9kFWmlvRXNqQfCDImk1RzV+J1GFyQlwaFI +1ncqfnDR4vbxdutD8dEIvkdh3+E+E911YZf4kr2R5UA9sB7dJ6gNXei39bNL3+vfXgm G/eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uHmDTxMR; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id os11-20020a170906af6b00b0099b92d054e3si2271534ejb.930.2023.07.28.00.24.36; Fri, 28 Jul 2023 00:25:01 -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=@linaro.org header.s=google header.b=uHmDTxMR; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbjG1HE0 (ORCPT + 99 others); Fri, 28 Jul 2023 03:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbjG1HEX (ORCPT ); Fri, 28 Jul 2023 03:04:23 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6772681 for ; Fri, 28 Jul 2023 00:04:16 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-51ff0e3d8c1so2267134a12.0 for ; Fri, 28 Jul 2023 00:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690527855; x=1691132655; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3sC0D4X3+6tgLPKYm2qip+QkMvs29ewl4q1rgH6EOrw=; b=uHmDTxMRMoxIzIjKOOYeYiKLYOJooFeDvbfoSlzHZdXGbxnLHH5PJKZr0gj4sK6ez6 AV3n2ymNvY8spG+sic2cNAEOQ+iC8LJzTgvqrhmcIX7MHWLcV+i2iaGEV56j46m4FZ7/ c4yJ2Q31KELd+6yXLvVxqw71/z/3ewO0pbq4p73kkxth82sFBEpqp8ws/QcE/Z0pTzWq SWuE1wut7ZAxy6KPx9xqQnFnIYhybgVJz5UJn07Mu8AOV8nIqZABt63owT4tGQEv8MTq UMtsIuBh9cZycAGvPu23vQ10DytpTiIdCH9HsHUNJ3Duk4W6oie+z95VQMmAmYnnBNmE 2jUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690527855; x=1691132655; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3sC0D4X3+6tgLPKYm2qip+QkMvs29ewl4q1rgH6EOrw=; b=QuVeaVrPhCocndQoJSWk7XmQmIJuuIYJNltZiJb4w0+xTuveAs7PhCxLM4J9t3Kln4 3u9WlsU/OKA5zBhIYcUxJnXj2cqcP1EPyNOGX3ePhtgsXgDuREvXSsyyQ3qlESzv4wXk rblhxQxfqvs8czPyfvrA+coVKEwRgmDeuS0RIsahXmtK1/smFZKossHChc/yvcmnYWCB tuqQT+C3n1kRo/d7KN5GOf1P3kvpnYBaBHUgD92bcG5DS3qZU0gkHNn010pWgUI/rS4+ /nbiif7cwhlVpulmllYPC9L68V8oePJZZMF3WhyKlFcZ90nswuaRZ5TAO89yZc/Gp66I P9uA== X-Gm-Message-State: ABy/qLb8kCdymeUONVzXo0ftJxA0tKxcw1wYD3pBhPVDz9w8H+YIYYze 2g1gxk3MI4b+qOsFj6S44HRrZA== X-Received: by 2002:a05:6402:1602:b0:522:2711:871 with SMTP id f2-20020a056402160200b0052227110871mr948667edv.1.1690527855057; Fri, 28 Jul 2023 00:04:15 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id ca12-20020aa7cd6c000000b005222005e361sm1502223edb.45.2023.07.28.00.04.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jul 2023 00:04:14 -0700 (PDT) Message-ID: <4bbdd646-ad16-1a7d-a727-878c6cf92410@linaro.org> Date: Fri, 28 Jul 2023 09:04:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v1 2/2] doc: dt: bindings: usb: realtek,dwc3: Add Realtek DHC RTD SoC DWC3 USB Content-Language: en-US To: Stanley Chang , Thinh Nguyen Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230728035318.18741-1-stanley_chang@realtek.com> <20230728035318.18741-2-stanley_chang@realtek.com> From: Krzysztof Kozlowski In-Reply-To: <20230728035318.18741-2-stanley_chang@realtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On 28/07/2023 05:53, Stanley Chang wrote: > Document the DWC3 USB bindings for Realtek SoCs. Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. My filtering of emails depends on it. > > Signed-off-by: Stanley Chang > --- > .../devicetree/bindings/usb/realtek,dwc3.yaml | 107 ++++++++++++++++++ > 1 file changed, 107 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/realtek,dwc3.yaml > > diff --git a/Documentation/devicetree/bindings/usb/realtek,dwc3.yaml b/Documentation/devicetree/bindings/usb/realtek,dwc3.yaml realtek,rtd-dwc3.yaml > new file mode 100644 > index 000000000000..74d388809924 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/realtek,dwc3.yaml > @@ -0,0 +1,107 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2023 Realtek Semiconductor Corporation > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/usb/realtek,dwc3.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" Drop quotes. Wasn't tested, because dtschema reports warnings here... > + > +title: Realtek DWC3 USB SoC Controller Glue > + > +maintainers: > + - Stanley Chang > + > +description: > + The Realtek DHC SoC embeds a DWC3 USB IP Core configured for USB 2.0 > + and USB 3.0 in host or dual-role mode. > + > +properties: > + compatible: > + items: > + - enum: > + - realtek,rtd1295-dwc3 > + - realtek,rtd1315e-dwc3 > + - realtek,rtd1319-dwc3 > + - realtek,rtd1319d-dwc3 > + - realtek,rtd1395-dwc3 > + - realtek,rtd1619-dwc3 > + - realtek,rtd1619b-dwc3 > + - const: realtek,rtd-dwc3 > + > + reg: > + maxItems: 1 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 1 > + > + ranges: true > + > + realtek,unlink-usb3-port: > + description: Disable link between USB 3.0 PHY and USB mac. > + Only for RTD1619 SoC, if the board design support maximum 2.0 speed. > + type: boolean > + > + realtek,disable-usb3-phy: > + description: Close USB 3.0 PHY if the board design not support USB 3.0. > + type: boolean > + > + realtek,enable-l4icg: > + description: Enable the power saving feature l4icg by hardware clock. > + gating. You described the desired Linux feature or behavior, not the actual hardware. The bindings are about the latter, so instead you need to rephrase the property and its description to match actual hardware capabilities/features/configuration etc. > + type: boolean > + > +patternProperties: > + "^usb@[0-9a-f]+$": > + $ref: snps,dwc3.yaml# > + description: Required child node > + > +required: > + - compatible > + - reg > + - "#address-cells" > + - "#size-cells" > + - ranges > + > +allOf: > + - if: > + not: > + properties: > + compatible: > + contains: > + enum: > + - realtek,rtd1619-dwc3 > + then: > + properties: > + realtek,unlink-usb3-port: false > + > +additionalProperties: false > + > +examples: > + - | > + usb@98013e00 { > + compatible = "realtek,rtd1319d-dwc3", "realtek,rtd-dwc3"; > + reg = <0x98013e00 0x200>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + status = "okay"; Drop status. > + realtek,disable-usb3-phy; > + realtek,enable-l4icg; > + > + usb@98050000 { > + compatible = "snps,dwc3"; > + reg = <0x98050000 0x9000>; > + interrupts = <0 94 4>; > + phys = <&usb2phy &usb3phy>; > + phy-names = "usb2-phy", "usb3-phy"; > + dr_mode = "otg"; > + usb-role-switch; > + role-switch-default-mode = "host"; > + snps,dis_u2_susphy_quirk; > + snps,parkmode-disable-ss-quirk; > + snps,parkmode-disable-hs-quirk; > + maximum-speed = "high-speed"; > + }; > + }; Best regards, Krzysztof