Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1429754ybh; Sun, 15 Mar 2020 02:47:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu6Hr0yJHRm3lHi2PsgbTM7lAQ0X/Mis2tMLM1zV1srWatF0z2eEB5jf44z5wfZHLWTCc4r X-Received: by 2002:a9d:7696:: with SMTP id j22mr18975061otl.188.1584265634762; Sun, 15 Mar 2020 02:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584265634; cv=none; d=google.com; s=arc-20160816; b=srizN5uplGwLYup3oxHDRaH+DB4djk+UOvXmW8Qm4cZvByYmOZxPrSsYSZs7QYwzw0 5PcCQ/g9G+skU8JCPCrW7hThvFNFlC+ZIk1MiDaKT1Ai+4sFFlpnXhPFvW61iN1ybq9+ ym23DIayWyWN49UgWntqiFIORpS2vT7Qnqi9yq9yNjgYmVQO5sNrk4Kwaxiw2uA0DrPk 1cGYt/CZtnISdIvzTlcx0s5SY8Nw5gH7MyOtaEmFEKwIX1oAInC+RihlRYM5zIjQpowU 7ZhFOmdgE0chGgaf3BxxioLQkbJ/xwR5YhfBB4qrkDOMQBytIiKrYVgEoFtcphtNj/Wb hRXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GNFfXHO2uILPgu0B1T3kwaBgaXjP+dlED6DVNl3sNIg=; b=r9kArWH5Qp8MCahJq9woOwpYVC7dXVrb59TRlxLXVVmnUY4fFrD/yFAYLSyxsc/4gO B78Ytuy3CS6EOlaBJgDyiX9nxt3ArOnt+HHS24ksl35fPDcKYf3DLCuFojqjVsOrxzgk 28pEAfXbalLEG9vekE0ZJ9Gz795SLstMbf/HhXFofaZugAzLXULTcHKDS3avesIvHhVL 2xKM2iSUzca1qm3ki0pRpWofivk7/m4wugoSi+sPaZhfNJlrPbU6ounJKtr9BNKUpJM7 TU8nmrGCQbtYJhHQ4b+mhcp9datjM3F111UOQsPThNJrJZPvKIGDekcEBdN4FgIftgUe PeCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I+ZgyUWz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si807854otl.122.2020.03.15.02.47.03; Sun, 15 Mar 2020 02:47:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I+ZgyUWz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728198AbgCOJqo (ORCPT + 99 others); Sun, 15 Mar 2020 05:46:44 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35112 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbgCOJqo (ORCPT ); Sun, 15 Mar 2020 05:46:44 -0400 Received: by mail-io1-f68.google.com with SMTP id h8so14117216iob.2; Sun, 15 Mar 2020 02:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GNFfXHO2uILPgu0B1T3kwaBgaXjP+dlED6DVNl3sNIg=; b=I+ZgyUWzIa8Yxi+0xMqH9yaVxAhiEOypJ/WXcO5ujz84CdXXQxL2d1ab/itSy71+MY v1zS6OgxvE0Bn+Qa0JXfcz8RKJwprkoMCBipzhzZlHWCugVSwinT5j3lnrH2WDYlwZ01 eYOr9xN2OR+z2u3VNz+TrTa75FmvLhds4/9O2wY6HbEzs0xPbUZ28UtXN7LT2TXhup6Y pkBRtDX0RpzM5wTDCNpUYBgBjIeYHAnSJprQYhPVixRf+4+i5CWwFDcVCSryxTo7o+n+ QvVX5JRwWD/Ek/EyR8q7MTRXZ3swX8IoaPhhLPo/I0oYQ9PA+4e/gT6RGNbVnejmq4aN w9FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GNFfXHO2uILPgu0B1T3kwaBgaXjP+dlED6DVNl3sNIg=; b=icy7SZW6XbPVFapP/3jpqqK8cP45v9BhR5hqZv6+2LAKRg88qcGHntKcEP3RniUpm2 8LEX+pWrbaIZUospvcpto38IreGhQ6xer/WAe1etFMNVybjtQysb8/oteh868wW8gVD6 djQisSMwIE7RgIMkRyUQdUFRQxAPzMO/TGyabuDy/pH8g0mzuow9RekefDDOvIKmhFtT Ql63wtn/xoKo30da9oWb1tdPIAE0IkoPw/kN0nduV4o4Uras2GMXvGGLqsh6ETjdk0or wMpz1snJ3Hfx1fwq5s8YmpJtLFiLt+k82n8rmtN/grRziuuZN+E1ZkiXsZbyJxbQIgQv 4WmQ== X-Gm-Message-State: ANhLgQ2BBjXijrw6M21cpRQEQNHUxd5BN44RVqMBAnYjTMCbNGJ0a3a1 iYFOfYGgS3QSr5DJsQTsFZFdMMj7VjMSNlgyPPg= X-Received: by 2002:a6b:f311:: with SMTP id m17mr19317386ioh.128.1584265603378; Sun, 15 Mar 2020 02:46:43 -0700 (PDT) MIME-Version: 1.0 References: <20200310194854.831-1-linux.amoon@gmail.com> <20200310194854.831-3-linux.amoon@gmail.com> <20200314182010.GB17580@kozik-lap> In-Reply-To: <20200314182010.GB17580@kozik-lap> From: Anand Moon Date: Sun, 15 Mar 2020 15:16:33 +0530 Message-ID: Subject: Re: [PATCHv3 2/5] ARM: dts: exynos: Add missing usbdrd3 suspend clk To: Krzysztof Kozlowski Cc: Linux USB Mailing List , devicetree , linux-arm-kernel , linux-samsung-soc@vger.kernel.org, Linux Kernel , "open list:COMMON CLK FRAMEWORK" , Rob Herring , Kukjin Kim , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Felipe Balbi , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On Sat, 14 Mar 2020 at 23:50, Krzysztof Kozlowski wrote: > > On Sat, Mar 14, 2020 at 07:02:33PM +0530, Anand Moon wrote: > > Hi Krzysztof, > > > > On Wed, 11 Mar 2020 at 01:19, Anand Moon wrote: > > > > > > Add new compatible strings for USBDRD3 for adding missing > > > suspend clk, exynos5422 usbdrd3 support two clk USBD300 and > > > SCLK_USBD300, so add missing suspemd_clk for Exynos542x DWC3 nodes. > > > > > > Signed-off-by: Anand Moon > > > > My assumption based on the FSYS clock source diagram below was bit wrong. > > [0] https://imgur.com/gallery/zAiBoyh > > > > And again re-looking into the driver source code, it turn out their > > are *6 clock* > > Here is the correct mapping as per the Exynos5420 clock driver. > > > > USB-(phy@12100000) > > |___________________CLK_SCLK_USBD300 > > |___________________CLK_SCLK_USBPHY300 > > > > USB-(phy@12500000) > > |___________________CLK_SCLK_USBD301 > > |___________________CLK_SCLK_USBPHY301 > > > > USB-(dwc3@12000000) > > |___________________CLK_USBD300 > > USB-(dwc3@12400000) > > |___________________CLK_USBD301 > > > > Note: As per Exynos 5422 user manual, There are some more USB CLK > > configuration missing in GATE_IP_FSYS. So we could enable another dwc3 clk, > > If needed I would like too add this missing clk code and enable this > > clk for dwc3 driver. > > > > For some reason we already use CLK_USBD300 and CLK_USBD301 > > for PHY nodes, which lead to this confusion. So we need to update PHY clock > > CLK_USBD300 with CLK_SCLK_USBD300 and clock CLK_USBD301 with CLK_SCLK_USBD301. > > > > Please share your thought on linking PHY nodes above and add new DWC3 clock > > and enable this clock. > > The real clock topology of Exynos5422 is not properly reflected in the > kernel. However cleaning this up is quite big task. > > > Best regards, > Krzysztof > I would like to fix all my patches with new finding and submit them once again for review. -Anand