Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp508900pxb; Thu, 24 Mar 2022 01:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5LFG+Ak55KFQY/v35WU3AYdNN/o4ij6HqP386AXFbGPyZmAW8QRsgc+GTK2I4o1NHUK7F X-Received: by 2002:a17:907:8a1a:b0:6df:db53:3489 with SMTP id sc26-20020a1709078a1a00b006dfdb533489mr4340648ejc.674.1648109560260; Thu, 24 Mar 2022 01:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648109560; cv=none; d=google.com; s=arc-20160816; b=tubsUQD6LJUhBnNdNWVEBJpzCys9OBRDcCaLy9Ly7zMqD4c0kzMdGRnAt2EOXjmC2o GGk2X+PsBMocfySoHxoERtEbGpZEd68/SPv7t92HDurPxjdGrVgc5tluDDtqJOmnCdj5 y2AfHKi+lMxmC/VbkSoy/u4JvSKWL0ZSlbc2xpTv1EEiPxgx3Z16dpfRA0zRu+QUPPAT c6dAAC6N4ZtRL06MvSvgCiLy74UyRQZ9f5ZeaNLYRERGPtMy8ty0XTEIjW/nAoUUS3ys oZoExF19nlxCmuigtR9bEsIe6/bJ333I9eklHmVlAEXNxNgpWTHu3qhMj9rXMscrz48h V0mA== 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=FKhDA68ig5aZhPe8FOCO/Wk9TMGU3OIlpjEJGCM5byI=; b=0qDaOYVoUgaig4Neu6w/MkTx33QA6ujXb5xvmIkdKabeD42ygMs4P61Xk3JUwaPQH5 1aJqpZvKIerSa1Fru0gqhzTNELo7ydSu//tIkDJhpRGTMolCF2C2xARJF9hgaFeJLltf xV+gwvECMZsXq622CY43Pg4DfRCw+BASVOq6afNt8hbmh2cSGEmIX7W5sbAoYz0axX1g TKkjreSs7u0rPt73LwbEbBHHJlxoBPuLO7vdV51q/G89fSDhGsRZiO64PwtDdCxvLNru /AD9yVUEipYkoX0GS8ECB10oHwml99d2W+4qG0RriVovuIaQ6mkEAxeooNl779fqPT92 2UUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hxmrXDpP; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a50c111000000b00418c2b5bf83si17685201edf.613.2022.03.24.01.12.10; Thu, 24 Mar 2022 01:12:40 -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=@ti.com header.s=ti-com-17Q1 header.b=hxmrXDpP; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243088AbiCWJTm (ORCPT + 99 others); Wed, 23 Mar 2022 05:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242834AbiCWJTj (ORCPT ); Wed, 23 Mar 2022 05:19:39 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDCA12D1E4; Wed, 23 Mar 2022 02:18:08 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 22N9I0oD068206; Wed, 23 Mar 2022 04:18:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1648027080; bh=FKhDA68ig5aZhPe8FOCO/Wk9TMGU3OIlpjEJGCM5byI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=hxmrXDpPCnvxFfDGU1HEZ/6O3GYIo3XiydKVlp65bW02ykvP0dWnsU0erTUlqKwdZ z6F/nqnG9gYe5bswrE5cOXXeETY98CrGf8tJc0pFhwJrRnNq4ha2ezxlqEcPovTFQQ vkX3fdQ8MBcF8cHpsLZTc5gOG/UdWfVPUJleRcV0= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 22N9I0ST040583 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Mar 2022 04:18:00 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 23 Mar 2022 04:18:00 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 23 Mar 2022 04:17:59 -0500 Received: from [10.24.69.236] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 22N9HtXY076005; Wed, 23 Mar 2022 04:17:56 -0500 Message-ID: <8b8dcc55-dda8-0715-ccff-22fbe84ff18a@ti.com> Date: Wed, 23 Mar 2022 14:47:55 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/2] dt-bindings: usb: Add documentation for AM62 USB Wrapper module Content-Language: en-US To: Krzysztof Kozlowski CC: , , , Felipe Balbi , Krzysztof Kozlowski , Rob Herring , Greg Kroah-Hartman , Roger Quadros , Vignesh Raghavendra , Kishon Vijay Abraham I References: <20220323053524.7009-1-a-govindraju@ti.com> <20220323053524.7009-2-a-govindraju@ti.com> From: Aswath Govindraju In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Krzysztof, On 23/03/22 14:35, Krzysztof Kozlowski wrote: > On 23/03/2022 06:35, Aswath Govindraju wrote: >> Add bindings for the TI's AM62 wrapper module for the Synopsys USBSS-DRD >> controller. >> >> Signed-off-by: Aswath Govindraju >> --- >> .../devicetree/bindings/usb/ti,am62-usb.yaml | 98 +++++++++++++++++++ >> 1 file changed, 98 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/usb/ti,am62-usb.yaml >> >> diff --git a/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml b/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml >> new file mode 100644 >> index 000000000000..4bb139d1926d >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml >> @@ -0,0 +1,98 @@ >> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/usb/ti,am62-usb.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Bindings for the TI's AM62 wrapper module for the Synopsys USBSS-DRD controller > > Skip the "Bindings for the", just leave the HW description. > Will drop it in the respin. >> + >> +maintainers: >> + - Aswath Govindraju >> + >> +properties: >> + compatible: >> + const: ti,am62-usb >> + >> + reg: >> + maxItems: 1 >> + >> + ranges: true >> + >> + power-domains: >> + description: >> + PM domain provider node and an args specifier containing >> + the USB ISO device id value. See, >> + Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml >> + maxItems: 1 >> + >> + clocks: >> + description: Clock phandles to usb2_refclk >> + maxItems: 1 >> + >> + clock-names: >> + items: >> + - const: ref >> + >> + id-gpio: >> + description: >> + GPIO to be used as ID pin >> + maxItems: 1 >> + >> + interrupts: >> + description: >> + interrupt line to be used for detecting changes in VBUS >> + >> + ti,vbus-divider: >> + description: >> + Should be present if USB VBUS line is connected to the >> + VBUS pin of the SoC via a 1/3 voltage divider. >> + type: boolean >> + >> + ti,syscon-phy-pll-refclk: >> + $ref: /schemas/types.yaml#/definitions/phandle-array >> + items: >> + - items: >> + - description: Phandle to the SYSCON entry >> + - description: USB phy control register offset within SYSCON >> + description: Specifier for configuring frequency of ref clock input. > > This is a bit strange. The ref clock is the "ref" input clock, right? In > such case use clk_set_rate()... Using syscon for managing clocks is not > the proper way. > The syscon property is not being used to set the ref clock frequency but is rather being used to indicate the input clock frequency for USB PHY operation. I think the description seems be misleading. I will update it in the respin, to reflect the above description. > Plus all the issues pointed out by Roger. > >> + >> + '#address-cells': >> + const: 2 >> + >> + '#size-cells': >> + const: 2 > > No children allowed? > > I understand this is a wrapper, which explains why you do not include > usb-hcd.yaml schema. But since it is a wrapper, what is it wrapping? > Yes, there is a child node, which would be the dwc3-contoller node. Would adding the child node too in the example help capture this better? >> + >> +required: >> + - compatible >> + - reg >> + - power-domains >> + - clocks >> + - clock-names >> + - interrupts >> + - ti,syscon-phy-pll-refclk >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + #include >> + #include >> + >> + bus { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + dwc3-usb@f910000 { > > Generic node name, so usb. > Will correct this in the respin. Thank you for the review. >> + compatible = "ti,am62-usb"; > > > Best regards, > Krzysztof -- Thanks, Aswath