Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2564441pxb; Sat, 25 Sep 2021 10:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5HSe1HZJ8BI1ITzJnLFX1dkyPxSxe/57MENrOYpXHY2EUGSn39uc7inC5tUmm6Yg1dOSa X-Received: by 2002:a05:6638:4122:: with SMTP id ay34mr14464587jab.28.1632591824062; Sat, 25 Sep 2021 10:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632591824; cv=none; d=google.com; s=arc-20160816; b=g5rBiiwNItFdt6lk8kWB341Pqfqt7ugVeGFD4aGqWpI7NYgyE2z1AdfGvx+R+3oVwR FXj5pGNcrEB/zD1iYb75DY3fKPGjyk7K4yU9wIs0Nphovzw9k4Y3x5FMAhQymKp01xhR uHvR60LdM7yOxqm4AOV/RiSWsRahBfxGQ9iai7eG2Gvi9d64BWfmp8b+xkvycriIuvwW 3osCnxIbgA4jc2o6pm+EUp81I1tPbEeo7wWSumo8M2rxbhBiuGjF1ZsYIFa8LfCaijHJ rhvZ9PaDs9H2LQIilncCt88v3/tioFtl0XCEk2unRUMZ4UZz99VVWFvNS4qdWZQVA+At HVgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IeR6I78v07QTr7GwuPjqPsC9KmUX8D77z/xH6y8yFI8=; b=MMGizEaSX/0WsPg8kqEMTN0801gVXqQ++lSoxo6E5Qlp4/eaqZjv1jnAIPLaS+EBAe ITq8GHF3D3QeL64E06mcOkhwxx4TxSjK2XrlCXYFP5QkOaYlbExJjYCVvK2fwG3y9GYj TvwuM/KepMxfOI8LCD/RSML0746kkKDGeT1AYlU64maz8HiK8VPeFfOgQYYB6TB+dX2K 1fT/qPv+sAxcQje6tN/QwmSXcpxsBg2u77QaMloiw8BdQVRt9rTVyamemsCrRRiFnFly xRAmvpi7fWFsMpV3ZyueHNnxB0EsoVU+6HRB6S2UP79kY9ctaW82nJLY2872VpkvDCUI SQuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IRAqRPzg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b97si14871783jai.49.2021.09.25.10.43.33; Sat, 25 Sep 2021 10:43:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IRAqRPzg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229710AbhIYRns (ORCPT + 99 others); Sat, 25 Sep 2021 13:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhIYRnr (ORCPT ); Sat, 25 Sep 2021 13:43:47 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FFDAC061570; Sat, 25 Sep 2021 10:42:12 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id v18so14260034edc.11; Sat, 25 Sep 2021 10:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IeR6I78v07QTr7GwuPjqPsC9KmUX8D77z/xH6y8yFI8=; b=IRAqRPzgfb+l3oosTcNuCrp/+4E0gI9cN8XAOxGuWL0Q86mesco1wT35ZtwEjsPg7O mVrG1YDvsUYZw33ZU0BzxOPLenOe+00qlat4v4mAl2f2FD7a3CAar45txxjbowsFXy6n cuG9C1NRRPeu+40lWz/N154oiu18PwHQJqe/xXBOmVFfqrCpkA2qjjehQ1IBDLhQYbXm RLRbbiW7YweqJRdWVgGHYujen/b2CvdlCsQ6hemxWRVWz7/CTkEWaSsji86pMxchJ0jk DoY9/T+PJJUEqfXgfoQk9WRCDeYiBg3zDLg2mIA+Ytwpig5Oxw45in0XnQyMSuHMbKvu WkCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IeR6I78v07QTr7GwuPjqPsC9KmUX8D77z/xH6y8yFI8=; b=QuF9f/Pldni6UO8jXzKOVXTaBgfe/LCp2x2QzX8Kue3HF+DssoqU9EjcHM0UuSTmXa mjMimkgrZx4yQ1BqYI8IoCMgRzxGepU6UizhnXjlmVbzTYhoPWfpSQWyustXi9MYzVjn 8lzdGYnghw3BMKrar8mn7acOhv2JHTCM1scfXhYcUqWe3csSKi7u8KojZP15nd6BVykq Y+MsQEOr64l7gL/MOVbDgE4LYtZycLUCuu0PYcmpjy1cTHTtkX8iueeVRfMJ72ScTIvg 8OR5uVCrhEGJNBKlQCT2ktp+Iv5rKJEdChICsP9bu0k3JLS+Vlht9URvhPnOItqJCzgW tm8Q== X-Gm-Message-State: AOAM531t/pXXGaw0BxGdSSj8UAedd8i6Z6oy6hNvudlvY5oAXxGeMtvY AW//PsBXGVszl8iwf0LegNuTGgJDLcNIJKHbQ+8= X-Received: by 2002:a05:6402:319a:: with SMTP id di26mr12638279edb.84.1632591730983; Sat, 25 Sep 2021 10:42:10 -0700 (PDT) MIME-Version: 1.0 References: <20210817041548.1276-1-linux.amoon@gmail.com> <20210817041548.1276-2-linux.amoon@gmail.com> <2b07b3de-cee5-c570-8fde-6a4c684122d6@baylibre.com> In-Reply-To: From: Anand Moon Date: Sat, 25 Sep 2021 23:11:58 +0530 Message-ID: Subject: Re: [PATCHv3 1/6] ARM: dts: meson8b: odroidc1: Add usb phy power node To: Martin Blumenstingl Cc: Neil Armstrong , linux-phy@lists.infradead.org, linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel , devicetree , Matt Corallo , Rob Herring , Kevin Hilman , Jerome Brunet , Kishon Vijay Abraham I , Vinod Koul , Emiliano Ingrassia , Brian Kim Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, On Tue, 21 Sept 2021 at 00:56, Martin Blumenstingl wrote: > > Hi Anand, > > On Tue, Aug 31, 2021 at 10:48 PM Anand Moon wrote: > [...] > > After enabling CONFIG_REGULATOR_DEBUG, with this patch applied > > I still not getting the USB regulator to enable. > > Do you see different output at your end? > I don't have much time for testing and debugging currently but I'll > put it on my TODO-list > Until either of us has found the issue I suggest not merging this patch. > Ok no problem. Basically, I have just roughly gone through the architecture of Amlogic's OTG framework. Below is the global configuration registers for DWC2 OTG framer work [0] https://github.com/hardkernel/linux/blob/odroidc-3.10.y/drivers/amlogic/usb/dwc_otg/310/dwc_otg_regs.h#L66-L151 Within some configurations, it helps tune the power for vbus and interrupt For example [1] https://github.com/hardkernel/linux/blob/odroidc-3.10.y/drivers/amlogic/usb/dwc_otg/310/dwc_otg_attr.c#L666-L717 Amlogic basically used the mode parameter to external tune the DWC2 driver it could help more fine-tuning the driver. [2] https://github.com/hardkernel/linux/blob/odroidc-3.10.y/drivers/amlogic/usb/dwc_otg/310/dwc_otg_driver.c#L1461-L1703 I feel we need to identify many more PHY tuning parameters to make the USB work correctly. Thanks -Anand > > Best regards, > Martin