Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1235291pxb; Thu, 24 Mar 2022 15:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUFyP8K4TSNxzl1RNpd0BKVAN2ytldoThuxFB1zrGvOqhSMztoitDPTOklKfWGrnYfLmG2 X-Received: by 2002:a63:fc0e:0:b0:365:39dd:2cd0 with SMTP id j14-20020a63fc0e000000b0036539dd2cd0mr5862147pgi.173.1648161907749; Thu, 24 Mar 2022 15:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648161907; cv=none; d=google.com; s=arc-20160816; b=T+05fy49WCyL1GnPeda7ch2jsiy84hP3ngu5E2qLW0xCMFAe6oDctzxmbDHpJ2xTMy bxIL779l5gzprJfh6Wu9f0CLlRLe7Sz4L3qAKMpJX4oGrGkl7Oc1+LgM8h4bzt8nTYSw SDlzGXltQ+xwFhzn38/oSd1+8AKrT+uy55DYfY8Krqd5yUjX6AM5TFT60gXs0QLIp8Mp 0Gn6OXeHtnuBSqTOIcmEkVdhWn37HRaK4U3HEz41n1FutbMC5et4u6GEJBqw8J6ZeJ1A SRVRAYYnmWX7l/5z8gwgIaMXt3kwnt/zNp26sqPDNrcMhz+W9/BZrskIHOmk4tRE6Cod j6VA== 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:references :cc:to:content-language:subject:from:user-agent:mime-version:date :message-id; bh=V7cFXLe0Ac3dhEHnygD54hmubbEibQ543cmeBXtuvAg=; b=dJHDUJytAHH5izcEIUmuOUYTEgzFvERmfRxqb/5XBfcTJtSf3gHu9JCwo04GmhCssn WO0i2hWXMmvrAQaXT1ov8q7x6nP7ujTOYgWV2/jcFwcnb+PX/x3L+Sgi3jq1LzS5aDdU ESnn5ywFZsvLhteyV/T7zqRBFe1xmhd4nMZZSzjuptioa8oeuXMrXPYVd3wzN4L5Cfm5 04IO8RYGhwvNsT7yFsbtZW7rXII8nj1hmFgBLEeGSOvxqc/FxoS7zCkQwQcpYwWxICdk AFpYl2c3Vz0WIww3dS9P/THWFyvnGGpeuLhr4WL2MQw9jDzM9dSNddPQxXw4+i4FbKGt pLbQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg1-20020a17090b1e0100b001c6560c94b4si4314619pjb.29.2022.03.24.15.44.54; Thu, 24 Mar 2022 15:45:07 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243191AbiCWJXW (ORCPT + 99 others); Wed, 23 Mar 2022 05:23:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243380AbiCWJXN (ORCPT ); Wed, 23 Mar 2022 05:23:13 -0400 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2937375C0F; Wed, 23 Mar 2022 02:21:44 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id p15so1544610ejc.7; Wed, 23 Mar 2022 02:21:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:content-language:to:cc:references:in-reply-to :content-transfer-encoding; bh=V7cFXLe0Ac3dhEHnygD54hmubbEibQ543cmeBXtuvAg=; b=PK1qor4p6wuQJuAjI/qfuGWEp+WgcGKI5bHLEiS7iIQmu5MAcwQZ7WSxZgWG6rQSJD cDC77lsb0RUeqJUmB1NtFPjF91b3SqkUpM0fJJigf5oxwsd7+eehKq9O7kAsrjn0l3E8 qY4wABXuFaPWiu4UFgKGrOlKa2tSNbdrmXLi/UTDvu7DZhQehvKY+TapsW0vH1o08BKU 23tC+VCF6UJZWMOT7vQA3JC1lPMhPVssnCyHhrIOPlWg2lE439vRdzr1MaiXfVHeQvYD zsGrlk92+/rn+wJ8nnYUgL+fcByiODdcaK3gwtN/uIICdMxLtDwGqZYugb87hkpLpovu si4g== X-Gm-Message-State: AOAM533Wafeoo4Wm19Bxf1pf6a8w2T+VhvCF7wdsLGCQjgs5yN6zDEQR lvKU3f4baLVORnJK/OR9cOnapASx4Dc= X-Received: by 2002:a17:906:68c2:b0:6b4:9f26:c099 with SMTP id y2-20020a17090668c200b006b49f26c099mr31260479ejr.41.1648027302702; Wed, 23 Mar 2022 02:21:42 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.googlemail.com with ESMTPSA id w6-20020a170906d20600b006ca00cb99e0sm9658170ejz.34.2022.03.23.02.21.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 02:21:42 -0700 (PDT) Message-ID: <65609100-3664-11e3-f229-c203e52888f0@kernel.org> Date: Wed, 23 Mar 2022 10:21:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: Krzysztof Kozlowski Subject: Re: [PATCH 1/2] dt-bindings: usb: Add documentation for AM62 USB Wrapper module Content-Language: en-US To: Aswath Govindraju Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, 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> <8b8dcc55-dda8-0715-ccff-22fbe84ff18a@ti.com> In-Reply-To: <8b8dcc55-dda8-0715-ccff-22fbe84ff18a@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,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 On 23/03/2022 10:17, Aswath Govindraju wrote: > Hi Krzysztof, (...) >>> + >>> + 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. Yes, please, it will help. > >> 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? Yes, please, because then you will also spot errors when running dt_binding_check. You need patternProperties for "^usb@[0-9a-f]+$" referencing Synopsys schema. Something like: Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml Best regards, Krzysztof