Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1223850rwb; Fri, 13 Jan 2023 09:22:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7XlQgVyqxr3ATvm9Zw0OQzjREQXST7plEgivjSOWjUHKgzmD4FaSRehZkvH5as69c67Kl X-Received: by 2002:a17:906:f2c9:b0:7ad:b14f:dea4 with SMTP id gz9-20020a170906f2c900b007adb14fdea4mr4285086ejb.14.1673630546711; Fri, 13 Jan 2023 09:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673630546; cv=none; d=google.com; s=arc-20160816; b=XZ0qvGCX8RWrxYitomfilzSXofY95u4fiUXs+7KcKLd1Za9CXKLEtwt64gGtBsduuD NGEHYZMYSOj6QycxYJMwHrkrhAa9Y+/jsa4vnUtiAboV7q+hWjVPf4ZBe3+2MG96w/KA HEsYQJKxL1co+U8pg4ymFxpzA1PG700LviI5NXXmqJEpbA0Q2fdM2O214tVDWDmf9K0J 7ce+xs94dbug6m2BzDySEubJBdzcK/eYOzyQzESNASgj2J7y62+XAqO9CWvorKbBl9un v7gHTqeJ2SYjYauiOVQr0OVIeBp84nAZTwG+oFLfcerJ6uoUCoAAtMuVSyfgg4J+KoqN QMvA== 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=vazWzgcQHorHqt/43WrkMc2t081lWzcdhOcSKYE7GTo=; b=pSDmzmIvNgAcxzHfLCQynV1L8iBoGbiisaqruvTmgodbk2BDw8TpWg0y1yBJ+zW9Sa /ergA4uUujytJ3utNK8CfB36GhY/Y6M7/yDkZVXPcJi8I/kgZWpKDPV8XWHFQygsvXTW 61imTekh/gNHxy3EZGJjwSqh0ZYCh0m0OYxoi/Tmln5EUDOch4N/jtfDgfC8/iyybZ6d RWa8UKLEE/TZL03EywIQ36h6EseO+sx/Uuz870aX2fI/tG0TlmDeIwd5roHS0E3Rtx8Z 9H4Xb+lMOmEJMAKvcXklyA04Hng+YPUBblu2rKQhbAWPZ1luC1NJ3a+ewyFF2cXwKpYq v1vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vq8McZG8; 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 g25-20020a170906595900b0080e1b35ebbcsi18861961ejr.453.2023.01.13.09.22.13; Fri, 13 Jan 2023 09:22:26 -0800 (PST) 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=vq8McZG8; 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 S229490AbjAMRK2 (ORCPT + 53 others); Fri, 13 Jan 2023 12:10:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjAMRKW (ORCPT ); Fri, 13 Jan 2023 12:10:22 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F0D865363 for ; Fri, 13 Jan 2023 09:10:21 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id d2so1546847wrp.8 for ; Fri, 13 Jan 2023 09:10:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=vazWzgcQHorHqt/43WrkMc2t081lWzcdhOcSKYE7GTo=; b=vq8McZG8ps+E0ie7TKEPaWfVpJDwfMTXkAOY0kC/ExAkUUO3xBWLhLskEt34KCyUWa 4eXFcW6FBtWpfOyptjWTatUjYUkZHLM+bLDXtd3/kx5hnNgAfk6gjPxigErO2LNdREUR EkmalnVjz49NXBuH7ozmr3u1d18E8VKUpUyhDisNVznE5rDV3VbfVgwecC4qen3Ybn9G cqKeGpjNGrqXZ6JiONFeIVXcEZKDlH89uljOEHsF23BVUaINh9ONw52FgZrv//Pme6gI nHE7ZysTBeL8RRaKxqjtYE3u5R4vFEVP+qx1N8t1CfD/fGK+c++D5wVDMX4akHy0Sf9W 90JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=vazWzgcQHorHqt/43WrkMc2t081lWzcdhOcSKYE7GTo=; b=NdiyieElxVBVPJwbfoefDiibXIOiqjmaUHjH72YrgKNxnrmBoCVZWlmUPc87cXOJG7 NUpDgoofvmhy3sPuR8SEcoX6TjwUMAH4WqhLg+cwUORof7KC/DJ22WTNpWHGZ3FxQtHM 59RMt6qDomy7RYrPoAfrv+cb4mqBucalVYHjNfXC3/oon0LyDY5QTvGPcbOhAtGnPZOr xs1+e/7YBLodjIEMyacORbw5qzXTtIuB7YnRy3uonA036CSWIbkIWDYVXLSMftzTwurO ZDfMmFEG7GVdWWC2BXGMKhnxtFSgy3zw7t2aehNwqzaHNdK/7qP64Xs31f31YRuCcL6G geWA== X-Gm-Message-State: AFqh2krmSpJIEbCi07w7j6ppJbo+5G0D7JzFyMOl8Rk4C9lP4yyj2hWg awVpDhlcDaCffAbO0NM1r24/8w== X-Received: by 2002:a5d:514b:0:b0:2a2:e87a:b4e1 with SMTP id u11-20020a5d514b000000b002a2e87ab4e1mr280248wrt.36.1673629819690; Fri, 13 Jan 2023 09:10:19 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id l6-20020a5d4bc6000000b0027323b19ecesm19254261wrt.16.2023.01.13.09.10.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Jan 2023 09:10:19 -0800 (PST) Message-ID: <9e831252-7198-7983-8a52-0e745688452d@linaro.org> Date: Fri, 13 Jan 2023 17:10:17 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v2 0/4] soc: qcom: Introduce PMIC GLINK Content-Language: en-US To: Bjorn Andersson , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Sebastian Reichel Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Subbaraman Narayanamurthy , Johan Hovold , Neil Armstrong References: <20230113041132.4189268-1-quic_bjorande@quicinc.com> From: Bryan O'Donoghue In-Reply-To: <20230113041132.4189268-1-quic_bjorande@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 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 13/01/2023 04:11, Bjorn Andersson wrote: > This implements the base PMIC GLINK driver, a power_supply driver and a > driver for the USB Type-C altmode protocol. This has been tested and > shown to provide battery information, USB Type-C switch and mux requests > and DisplayPort notifications on SC8180X, SC8280XP and SM8350. > > Bjorn Andersson (4): > dt-bindings: soc: qcom: Introduce PMIC GLINK binding > soc: qcom: pmic_glink: Introduce base PMIC GLINK driver > soc: qcom: pmic_glink: Introduce altmode support > power: supply: Introduce Qualcomm PMIC GLINK power supply > > .../bindings/soc/qcom/qcom,pmic-glink.yaml | 102 ++ > drivers/power/supply/Kconfig | 9 + > drivers/power/supply/Makefile | 1 + > drivers/power/supply/qcom_battmgr.c | 1421 +++++++++++++++++ > drivers/soc/qcom/Kconfig | 15 + > drivers/soc/qcom/Makefile | 2 + > drivers/soc/qcom/pmic_glink.c | 336 ++++ > drivers/soc/qcom/pmic_glink_altmode.c | 477 ++++++ > include/linux/soc/qcom/pmic_glink.h | 32 + > 9 files changed, 2395 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml > create mode 100644 drivers/power/supply/qcom_battmgr.c > create mode 100644 drivers/soc/qcom/pmic_glink.c > create mode 100644 drivers/soc/qcom/pmic_glink_altmode.c > create mode 100644 include/linux/soc/qcom/pmic_glink.h > How does the USB PHY and a USB redriver fit into this ? Is the host supposed to manage both/neither ? Is the DSP responsible for configuring the PHY lanes and the turnaround on orientation switch ? --- bod