From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DE45C74A5B for ; Fri, 24 Mar 2023 00:53:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbjCXAxx (ORCPT ); Thu, 23 Mar 2023 20:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbjCXAxv (ORCPT ); Thu, 23 Mar 2023 20:53:51 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2131949EB for ; Thu, 23 Mar 2023 17:53:20 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id y14so233613wrq.4 for ; Thu, 23 Mar 2023 17:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679619191; 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=jnLp0VndimycoXGpOfcSpUE952KxS1sMHfhM4iDhErk=; b=qboJr1PW7Tk89Ok0yBbowSN/Xnx3wSo1YDYbdD9i5YxI4fHdk9mpAIWm905wXzhPuX yjymCmbzHHDhQ2NEs7WV+a6zqhI8RNQgfsJEAlil9MWSDVwIDHz9iMPMi1bkKRJRAZ2i OoBbtHzJl19nglrzYcvEEoAjDEdbJaq992620m5nbO+NgcHbojpprF1S4POg8DRTZduL mL5xUb1oJqSGBv9khxGwocYr4fWm+eKZDofH4h52PBeDR7GV+chcFZ2DXPEcPif2o90L j9KuzRrHkgWXksGZW7rYgisFeDl9Gx2uTgFalkxcD53n5E65Ls38aUmNZi83161lAiXm +jXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679619191; 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=jnLp0VndimycoXGpOfcSpUE952KxS1sMHfhM4iDhErk=; b=32PfJKtOjynMlgph1cDR7GfN+Y6fY9KV8757Ej1tg3yK+aRGQjiDD+Tv77ey3Qcrrz 3hH80OtMhuTyoYHKgCJNEWnibSX3wCI6/WZJil1BdG+ssq4BD3oR0hD9zrYErTl6c3dD BRzMFME3D0ECzVAqXQ+L1wgj3o1qU+UHsSVGgwRGMf/Amrlw1hRReagUCGutFUtobrCF H7INe7t+zNrxohuWfQFSkisTyM2AjOHDTrmtzUoP1NQgnpcNH5nvekwfdN3ypqUQF3WP ug3tMMUOIuo/BwAU6aiODqrH+hjSoc+W6C3nFSucl1xJNRYruWatwb46f5LHimg5Q0dT H0qw== X-Gm-Message-State: AAQBX9dZhhroHxS9pqF02KP7v7dd71P+L+4PHESlPCU0FdAQr9HITp72 xHKrEa0y3rCYQw6UBUGPqZv52g== X-Google-Smtp-Source: AKy350aXlMJSWEqrRzO/Rk0HuqgdAsHOQyZ6edRGK7mhVILoJN/Mo71+44QVracwRGUsB/SqMer2qg== X-Received: by 2002:a5d:58c9:0:b0:2cf:e3a9:c189 with SMTP id o9-20020a5d58c9000000b002cfe3a9c189mr775025wrf.3.1679619191293; Thu, 23 Mar 2023 17:53:11 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id l12-20020adfe9cc000000b002cea8e3bd54sm17202175wrn.53.2023.03.23.17.53.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 17:53:10 -0700 (PDT) Message-ID: <37d14447-0f10-be88-9cd9-8ebd30f1d006@linaro.org> Date: Fri, 24 Mar 2023 00:53:09 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v4 12/18] usb: typec: qcom: Add Qualcomm PMIC TCPM support Content-Language: en-US To: Jianhua Lu Cc: linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, wcheng@codeaurora.org, caleb.connolly@linaro.org, konrad.dybcio@linaro.org, subbaram@quicinc.com, jackp@quicinc.com, robertom@qti.qualcomm.com References: <20230318121828.739424-1-bryan.odonoghue@linaro.org> <20230318121828.739424-13-bryan.odonoghue@linaro.org> <89bca327-a860-672c-b4ae-766698d38639@linaro.org> From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 24/03/2023 00:43, Jianhua Lu wrote: >> Can you show the printout of *(pmic_typec->base + TYPEC_SM_STATUS_REG) ? > [ 53.120005] hub 1-1:1.0: 4 ports detected > [ 58.675134] typec base is 0x1500 > [ 58.675148] TYPEC_SM_STATUS_REG is 0xa > [ 58.675153] typec status reg is 0x150a > It should be correct. >> And can you check your schematics and verify VBUS is supplied by >> pm8150b_vbus and not say by an external IC ? > I haven't schematics, so I can only use hacking code to test it. Could you show the state of TYPEC_MISC_STATUS_REG @ 0x0b ? I wonder if BIT(5) TYPEC_VBUS_DETECT is set ? BTW what sort of device have you connected here and is it self-powered ? --- bod