Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1852486rwd; Fri, 2 Jun 2023 00:42:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+RZRqC4n+GEKVHCSiLfuwNEENW+QZqkwYGkLR7ydjES7fr9/0ip7GsBs+UiILImMlvAJS X-Received: by 2002:a17:90b:1201:b0:253:49d7:ce19 with SMTP id gl1-20020a17090b120100b0025349d7ce19mr1547550pjb.18.1685691748605; Fri, 02 Jun 2023 00:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685691748; cv=none; d=google.com; s=arc-20160816; b=qvB5xXczTHPXIhwPWTeUGyvZhuLkeCF993+KUa3EhQ25/5BX+NDFKN5fqFGYcDczDA b5qzUw9xDsfqIU1uzd+X4jk/AKDdpyY+VlksfpAbZThhrJzm7CsnlGWtVyHxNjQ8++Q6 2FuOXehv2E2ZAVAiqCt/+bXls0bbtf/eXGseL3E3D5KtMmKegQ2t1XVZG+hdaTZAZQ1q G/UtyuGGe44Rd9f0NBAQ7t8CseUzW+KzxgxFXeUmitl1soGQbqzhBnSrUaTZJgs5pIXy wBf3t5nNykffyLmSLLyEp9nUR8Hgcz+iOceyQ8/OjZvM/CIbvalGjK/nRGRiRiHjBp06 gn7g== 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=8f3HJQTnCmjNY3p++5r9NXNAQ1Re77SZgdbIWC5A2p4=; b=GvcuNpNxxMsP9Ppdx+US65HuOjpPOqdFxS1OSx1nudk/iTCMGJpGYCVAX1PIiW+cpO FqpCHClHJ1FQqMa7a3ITA2qPD4T8AUDrlPaZUBxDySiOusjurOg98k9h2hm2gGMOwd0d bm1fyOIy0ljAHqEciMSyMqpTwaZgiEIZBGXKCW/gjT+4cnfRrC54WGzXjg9yQhcKxI4J zjYWS0yTWmVGkDaSwPbmrXFVPUJLyb5NRixElsvfxlPUBt4Ar/n5pIqkv9sDAUzWvj94 ghnK7zl9ElXrtCKubxWLjlMMA2MbGioI6cZdWbHZkaZqy5iGwq/k3OayPpggTCfASl4t c2yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WF8dJlKW; 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 25-20020a17090a019900b0024e12dc1e4csi2329234pjc.86.2023.06.02.00.42.13; Fri, 02 Jun 2023 00:42: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=@linaro.org header.s=google header.b=WF8dJlKW; 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 S234180AbjFBHLB (ORCPT + 99 others); Fri, 2 Jun 2023 03:11:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233705AbjFBHKq (ORCPT ); Fri, 2 Jun 2023 03:10:46 -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 C826B1A1 for ; Fri, 2 Jun 2023 00:10:44 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-51458e3af68so2433525a12.2 for ; Fri, 02 Jun 2023 00:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685689843; x=1688281843; 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=8f3HJQTnCmjNY3p++5r9NXNAQ1Re77SZgdbIWC5A2p4=; b=WF8dJlKWQyxC4tUHPqx00vEqVcYtu5ZRNlFw5VOhFHInD+2VBqgrtSDDegsQg1Vt5E V0dP8EYq+w1W4z3I1sBBYfExvvwm/7msAjIIXAjHgHGIUBGAYralufJXHD0kFP23Bj+F J4ZFiuNNmwFoBsE+UYSQOeS0otI9DQGIFYSL038d5v2nFGij4zIL8mE6VLYqksweqZLf rjXK8ksj+a1it5a6w1PjovnB762pirs40w0SU68jEOTUg1JQln7VmwvxCXO3A/oMLQHh W4me5oi61broBX6VcYJaM4A7h6Vq8Ijh85Nvp7RcZ2d+hrqakslSggSMchFmauhcwZr4 Viig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685689843; x=1688281843; 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=8f3HJQTnCmjNY3p++5r9NXNAQ1Re77SZgdbIWC5A2p4=; b=EG4KCryXrGTS8x/mC2MgY44KI9gnvMjbIXUQjDeG16QwzhUMbCdUiqHJej0XBFEjuc sPEm3lZ20UygX95KiULh/kM7ojWFwEQucTmDc+GGGfkqHG4wKIN+rdr8YzTXgqiJl0Ej TTD1GG68X9ospAvav8s0m9F8nmw8k2NpsRYUMxXx6hQ9uBorR8SYxLG6mYy2OasvRKT1 PN8ebJzhwfDATe7bMY8LMRC8Uu7fsXk+/bh5vmBqB3M9s1wDVPq/rBae1quFTZL9HAz1 0MaGbzKTgVW9r+XT1xrsVcIykdvN6oKekpMt/hValrFa1oXzmSUUvGt4uVU49Rx/m1zO 0yFQ== X-Gm-Message-State: AC+VfDwHZsZF3mrIDxaIx7XsGxve6/Hg3Xr1EdpwZYZisOkVm6/9OX+x ag+pEppEiD8fI4HgG+sbj5g//w== X-Received: by 2002:aa7:c495:0:b0:514:56b4:35a7 with SMTP id m21-20020aa7c495000000b0051456b435a7mr1747204edq.36.1685689843340; Fri, 02 Jun 2023 00:10:43 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id s10-20020a056402014a00b0051422f31b1bsm323226edu.63.2023.06.02.00.10.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 00:10:42 -0700 (PDT) Message-ID: <1231d116-ca4b-fb73-d000-d531297343e7@linaro.org> Date: Fri, 2 Jun 2023 09:10:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v2 3/3] dt-bindings: phy: realtek: Add the doc about the Realtek SoC USB 2.0/3.0 PHY Content-Language: en-US To: =?UTF-8?B?U3RhbmxleSBDaGFuZ1vmmIzogrLlvrdd?= , Greg Kroah-Hartman Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alan Stern , Flavio Suligoi , Mathias Nyman , Douglas Anderson , Matthias Kaehlcke , Ray Chi , Michael Grzeschik , "linux-phy@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" References: <20230525022617.30537-1-stanley_chang@realtek.com> <20230525022617.30537-3-stanley_chang@realtek.com> <0b2143ca-ead7-c8fa-2e80-a94222af51ca@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=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 On 02/06/2023 05:20, Stanley Chang[昌育德] wrote: > Hi Krzysztof, > >>> >>> Most of the properties are about the phy parameters. >>> Is the phy parameter data suitable to be placed in DTS? >>> I referenced other phy drivers. >>> These parameters should not be defined in dts. >>> I would move the parameters to the driver. >> >> If these can be in the driver, why would ever they be in DTS in the first place? >> > Our platforms have 3 xhci controllers which map to 3 different phy ports. You mean on the same SoC? > And the three phy ports use the same driver, but the parameters are different. > So I put the parameter settings in DTS, we have 3 usb-phy nodes representing 3 phy ports. > Also, some parameters have to be adjusted for different boards. > Therefore, it is more applicable in DTS than in driver. Then it looks justified in DT, so please write proper descriptions for proper properties. Underscores are not allowed in node names. No fake nodes. Properties should usually describe physical/hardware effect not the register value. qcom,usb-snps-femto-v2.yaml is nice example. Few Mediatek bindings also would work. ' Best regards, Krzysztof