Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9A49ECAAA1 for ; Sun, 30 Oct 2022 21:43:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 253F5853F7; Sun, 30 Oct 2022 22:43:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1667166202; bh=26ZKJWJTgQIBJqAOXeFh2LGKh2NoRlhHN6r2DcVwfuc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bJSC8W9WUPQkZs7D6dq7ULQ24w4qf6P4l1+Uf+/Xgkk6gD64SvwfibvdU/t0RoZlB Hi6xA1XlHti766aN9HJAS7ilFvTth8F7XvljJt8zQuFh3MeSEqKEH19jOKqQTJDe4y d4R+uddO2Lw1BJRLRFgCAAMnnI2EHpyWpDeOfswJMEm4yTHtVr3JXKvlVXiq/nNvbr c8UPUWtFPcrthMLIa+1jNG82jSPn7LKn+x1Paj0bJfBAtWWaVdxdWcWGKLyInG2Yhr ntruvU0GGj5dxW/am/PAu+4VqkbJmjnktql088TLVSGlrTyx0wZ8VSZF9JKRO+AQZZ pb91U5b9Jpf9A== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 95310853FC; Sun, 30 Oct 2022 22:43:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1667166200; bh=26ZKJWJTgQIBJqAOXeFh2LGKh2NoRlhHN6r2DcVwfuc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=xSnpZjqGEInsvDsg6uTlKuRgg8+t8eDxbOI0pkNt7spiQhCfow921kw7sUYa5cUou NzcYI8u/Fsnuyyk2hdnAkJGFN4TjqUQneCMqkVJtdesjxPOquOtSjUNgTUlPoR4RLy UPf1CIeK7jOp8iDaxOi/XMPp16Gw74AbRPGfSDq3VTBpTxAwEOl+EgdjZRo+t34+Cq nCVgIUhliagCf1Teo2bCey0qkVABqQWjnSmZKKI5rmG6MPMsfOcA+dm3xTFQsfMnCk nzks52ROsMf9srEtNm7nWMVgpp5j+M0A53SzdU135+IXVAuGybsn68QYBs4lyirDNX WiWrQ+2H2tVKw== Message-ID: Date: Sun, 30 Oct 2022 22:40:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH 2/4] usb: dwc3: reference clock period configuration To: Sean Anderson , u-boot@lists.denx.de Cc: Balaji Prakash J , Baruch Siach , Angus Ainslie , Bin Meng , Fabio Estevam , Kunihiko Hayashi , Michal Simek , Peng Fan , Sean Anderson , Stefano Babic References: <20221030210948.344661-1-marex@denx.de> <20221030210948.344661-2-marex@denx.de> <17a3f3b0-b9d7-b8a5-65a9-86876126095c@gmail.com> Content-Language: en-US From: Marek Vasut In-Reply-To: <17a3f3b0-b9d7-b8a5-65a9-86876126095c@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 10/30/22 22:26, Sean Anderson wrote: [...] >> @@ -640,6 +663,9 @@ static int dwc3_core_init(struct dwc3 *dwc) >>       /* Adjust Frame Length */ >>       dwc3_frame_length_adjustment(dwc, dwc->fladj); >> +    /* Adjust Reference Clock Period */ >> +    dwc3_ref_clk_period(dwc); >> + >>       dwc3_set_incr_burst_type(dwc); >>       return 0; >> @@ -1043,6 +1069,7 @@ void dwc3_of_parse(struct dwc3 *dwc) >>           | (dwc->is_utmi_l1_suspend << 4); >>       dev_read_u32(dev, "snps,quirk-frame-length-adjustment", >> &dwc->fladj); >> +    dev_read_u32(dev, "snps,ref-clock-period-ns", &dwc->ref_clk_per); > > IMO we should skip support for this property since it is already > deprecated. It is also still documented in the binding document and we get this support basically for free here. Deprecated properties should likely get filtered via dtbs_check for new DTs, for legacy DTs we can at least gracefully support them.