Message ID | 20230130042003.577063-1-quic_bjorande@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2001366wrn; Sun, 29 Jan 2023 20:22:29 -0800 (PST) X-Google-Smtp-Source: AK7set+kkaqHsf6DbJ2FO/K7Q7dDzMBM5AsrgV1XC/7fDVHlweW1eX6PuolGLYDwxFFSouRpC9by X-Received: by 2002:a17:906:344d:b0:878:a893:48db with SMTP id d13-20020a170906344d00b00878a89348dbmr11450483ejb.65.1675052549403; Sun, 29 Jan 2023 20:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675052549; cv=none; d=google.com; s=arc-20160816; b=xOHAnOUlSgMp5pOQqxyA5TFbYLLK7CRG4mDX+4vr7//aBJPkqN6rAKy+2L7Z3bW6YQ zM55gQMEJnSN8KvqHL8/4kG4QqVAP3unWsOnaeSDFENNNlW1DrSu37mky4OnlkcQs5HV xAE4u8RV9BPscR1cBnODNz6yaE/Xyiey+Sf4iaa+mMVoOTLXdW9aRfi+ABti1BL9xn40 6RIlCmhQfaBZkRKYynHkq5Pg+uij+Nm9UXOVV/7I3F6bfG3xGIzVJEYXOrwUxAcYZYw3 8XrWIOjiHAamLS7FmeHmUsZsm8LLjC7BqBfUL7BzkzcKg1AD4fglS1WqP1IySGwIfihy A8sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uvCdY5WfHdYLfMg4AdvYMpcg0rtYRAIkcx2+qGh2+tE=; b=tGI+WbiCpmeTSr5n2ejZtAR08WEizG0H/7dSpyVNkaV21qc7TLdTaEWqHh2ZLVUdDj CVfZg9ResR5zB9NagMhOwKga2+3DeUuHb1Zu6N3Fi/qSF7kpZx+T+rz3ROQu+czq/1Px rTyJwAmKyJNkruhS0EfgjaFqpAU7Ciuk33Vm+Ge11r7GSUq2aGMsQGvkT0vLOvalVm95 trkiLr5nORJ9KYIOOq6b5L6/srh73dpuWO8yHDw+FKXmHN87njPA3aqU5lYiS2XlJ76X jijwEKz3CjWDiEKJ2unFJmVCQ+CHzRBZ5hec5j0QBuE1suLh9sCPJbj1MayY6Kc+nLSl 4Xuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mBem7715; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a1709063f0900b0080f0493b9c8si14436817ejj.536.2023.01.29.20.22.06; Sun, 29 Jan 2023 20:22:29 -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=@quicinc.com header.s=qcppdkim1 header.b=mBem7715; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235351AbjA3EUR (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Sun, 29 Jan 2023 23:20:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjA3EUO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Jan 2023 23:20:14 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99F001E1E1; Sun, 29 Jan 2023 20:20:12 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30U4CTM0027449; Mon, 30 Jan 2023 04:20:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=uvCdY5WfHdYLfMg4AdvYMpcg0rtYRAIkcx2+qGh2+tE=; b=mBem7715x9ik5srTCjiDPbMpROdMYbKefhYiyK0KnE4ZXlTowz018Qpk4djKy1UPyYok vhIJ3AiNnxGzhnGS1gxBkrEg3atRSL3Zl0fTjXl2pVEj59bTeh9tpNil/xi8NV5C5Rlp o+Cs+sINYY6BElSaGUCfpqzSlkYByfi8DsaHAMJZ7TkrO4akRHofUPw2YfwfHRiCdjx4 w9JO/XV4hVo+CWCkxB7um8g53oKz4b9DFSclR4AIOhN8y3ZUH0u2gHEYUZ3n0yLxd2Hd v2aj9nbzZr0DsuqR9RSODiEju0gfDXsn6zKzE9eft6hA2nMYfo30gKEt8iJ5dgThbB9l pg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ncvvu2mfq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 04:20:09 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30U4K81T004396 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 04:20:08 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 29 Jan 2023 20:20:08 -0800 From: Bjorn Andersson <quic_bjorande@quicinc.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Sebastian Reichel <sre@kernel.org> CC: <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-pm@vger.kernel.org>, "Subbaraman Narayanamurthy" <quic_subbaram@quicinc.com>, Johan Hovold <johan@kernel.org>, Neil Armstrong <neil.armstrong@linaro.org> Subject: [PATCH v3 0/4] soc: qcom: Introduce PMIC GLINK Date: Sun, 29 Jan 2023 20:19:59 -0800 Message-ID: <20230130042003.577063-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: hqS1Jm6R81dEKodPSW7_aFx02gQV1zc2 X-Proofpoint-ORIG-GUID: hqS1Jm6R81dEKodPSW7_aFx02gQV1zc2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-30_02,2023-01-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=842 suspectscore=0 spamscore=0 mlxscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 bulkscore=0 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301300040 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756419902116949757?= X-GMAIL-MSGID: =?utf-8?q?1756419902116949757?= |
Series | soc: qcom: Introduce PMIC GLINK | |
Message
Bjorn Andersson
Jan. 30, 2023, 4:19 a.m. UTC
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 | 105 ++ 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 | 478 ++++++ include/linux/soc/qcom/pmic_glink.h | 32 + 9 files changed, 2399 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