Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp91858pxa; Thu, 13 Aug 2020 20:50:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3qhWfIUdNuQmq1Q058SX+iFU6+WazJi5fz5VtGlg7qAiqYb11nURy+bojP7GTAJDv02rH X-Received: by 2002:a50:ee92:: with SMTP id f18mr500340edr.80.1597377004442; Thu, 13 Aug 2020 20:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597377004; cv=none; d=google.com; s=arc-20160816; b=dNklyjYJ8+jf8nUGGDbhjTIHHoummLREn3vvdnvNy+zpcnHROo5iE1vtj5RFt9Pjoa 7+AbWWA3nivgW/jfH84+sUpwsORbhO+yd9d8EVN6GePb/+SgymDd6/ZV3fRKHrqcy3sY Bv4iuRKwgumwsX+Hg4tVH8rbxe5qTwisPpHDi36uVfoj6apQjzXUrHNqk0iF12XJSL/G 571fZMDOgDH7asgPgqTfaKWgMhUa619KdtJY7fZ8/4hffgPJ3pFMmYk+FBLVGQ9rGoM8 5CqqdnqYfmtH0khQDteEIsR3X4Vdr4aJIZYtXlmaiRnTmROS0krvjmzG0WchVtUK/7TW Ep4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9UcRAYSeL0jNLaTeq0ZQKJeIrLT699AYEwZvDI49xCA=; b=cJl/2otdGpXb5eF5Ti4xmZVJWFhJD8Hldb82b/YD6aP5dpOyPfrJysSbnqRO1UqYCy /gDrA1OC7FbMD3iIAIy6M0IIKcsKwqLRZxFnTq6I0CpXJ1trY8T0ecIx958MShz/Im/M ICLmwKTlYQJZx97qQLM7L2J11a8kPhpcCdwhVWqdvLYcwBAcedu2oJJxn60z0QZPmro2 Mg5cZadctCne83Gr3Qcwv9MdEY2QltxbByy77uJ2s8J6RPe93AcZ8Ib8mFLqQtSPfzEK cxGGzI2VWO98gxvYQ8nVK/Rbk6qQrLmRTE19DV4wuujAkDBu5vJkoTYEn8lNU+qivCj0 LtUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OhD6d46f; 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 c22si4836670edr.146.2020.08.13.20.49.40; Thu, 13 Aug 2020 20:50:04 -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=20161025 header.b=OhD6d46f; 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 S1726597AbgHNDtL (ORCPT + 99 others); Thu, 13 Aug 2020 23:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgHNDtK (ORCPT ); Thu, 13 Aug 2020 23:49:10 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A737BC061757; Thu, 13 Aug 2020 20:49:10 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id 128so3890582pgd.5; Thu, 13 Aug 2020 20:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9UcRAYSeL0jNLaTeq0ZQKJeIrLT699AYEwZvDI49xCA=; b=OhD6d46fPfM9Goj3SPsorYzgqDl0C+lUpvcVL1VG2De1YMMBmD9YEDJ9HCbz9HlEBU RlmqFSgR271m7nHASmFtl21WZQ2vHwHPHQdHhvzW4b+j7kY6cnOI4n6e18oB09pMDsPy Is/pAP7ySe/D2xB0AI+rhTOzL+hUokKasIpn9izaASneqAfS4vyoy49RnvjPcqCe+JQg xmavOG11SOpbGFInH2DzgbG/fg7ARK+iuevR3aqJ7qE7qEPwzKwpUeDy/K46TESVqiPV LpV1NKV3w5t0rDLdzCQBGFhHAb32Flv6Ze5MQLf4/D5jyUPDyb9zykAXV6oNo56HxVwG FSvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9UcRAYSeL0jNLaTeq0ZQKJeIrLT699AYEwZvDI49xCA=; b=DglMs8raVpkFghPtllVbNAH3y/w4a2Y8OipQk4TZhseUbD4qK8XUh8qTE5x/aMi4sf uID6Lc7iTzIp6YuDg9GRK84Ad6DhmFu+8trgadwo7gNbgGLDRnFOtTSscUrg2d1DBV+Z SYBwUNBduwTJWYLd3JqqsPO/tK378iNPfVfvV0eDX4sod95P5F14H0hrYjACaXLS4bw+ alB4Gye3553o20kX3DIZuAAtt7n6ddyobuGOu9FQawLdaiYN4d6GV2syCNSEdpxS+FLp rO+tb9pS7KBtT4PAm5/OFSfvqRpYkE8+dP0TeNijPSCF+ylNPoMxcmM4KYoLXO8GmT4/ aQfw== X-Gm-Message-State: AOAM533mrvwk3B2U9T4jShZ+f9r4fI1KHGfw3o6smE2Ao+JNEP/XTegM LuivshR6Gml4YoBcM+buHB8= X-Received: by 2002:a63:1814:: with SMTP id y20mr502992pgl.45.1597376949644; Thu, 13 Aug 2020 20:49:09 -0700 (PDT) Received: from xiaomi.mioffice.cn ([209.9.72.214]) by smtp.gmail.com with ESMTPSA id n26sm7253385pff.30.2020.08.13.20.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 20:49:08 -0700 (PDT) From: Qiwu Huang To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, jiangfei1@xiaomi.com, Qiwu Huang Subject: [PATCH v8 0/4] add some power supply properties about wireless/wired charging Date: Fri, 14 Aug 2020 11:46:53 +0800 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qiwu Huang This patchset aims to provide power supply properties about wireless/wired charging. "quick_charge_type" reports different types of quick charge based on the charging power; "tx_adapter" shows" the type of wireless charging adapter; "signal_strength" shows the coupling level between TX and RX; "reverse_chg_mode" provides the interface of enabling/disabling wireless reverse charging. Changes in v8 - Add quick charge type driver in qcom_smbb suggested by GregKH Changes in v7 - Fix PATCH version error in 0/X email Changes in v6 - Replace "phones" with "devices" suggested by GregKH - Add permission statement for "reverse_chg_mode" - Update description for "reverse_chg_mode" in ABI suggested by GregKH - Update description for "PING phase" in ABI suggested by GregKH Changes in v5 - Add details in 0/X email Changes in v4 - Exclude the patch of "power: supply: supply battery soc with decimal form" - Fix some typo Changes in v3 - Add enumederated for quick charge type - Add enumederated for tx adapter type - Update the return type and description in ABI Changes in v2 - modify to capital letters for "power_supply_attrs" - Update the return type and description in ABI Qiwu Huang (4): power: supply: core: add quick charge type property power: supply: core: add wireless charger adapter type property power: supply: core: add wireless signal strength property power: supply: core: property to control reverse charge Documentation/ABI/testing/sysfs-class-power | 85 +++++++++++++++++++++ drivers/power/supply/power_supply_sysfs.c | 4 + drivers/power/supply/qcom_smbb.c | 51 +++++++++++++ include/linux/power_supply.h | 35 +++++++++ 4 files changed, 175 insertions(+) -- 2.28.0