Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp466910ybh; Mon, 20 Jul 2020 23:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/k1Ie2DLZYFpXKvmJo+0o3+b/nomp5E3vhiocEKY2jmww4nBU357NCsoEMDbO2ogsbE+R X-Received: by 2002:a17:906:8417:: with SMTP id n23mr20937299ejx.192.1595311342835; Mon, 20 Jul 2020 23:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595311342; cv=none; d=google.com; s=arc-20160816; b=FPrxF/a5vyxqX5eHpJoTm7DP/sqyBUmTZo/oXL1iry47p0nNyvIx+LLf/6eK5b5HUN lqfqVLLkbFs+ek+p+J8YHO0qp0QunMSoWzgy+SQJFFdXPVGb3UfaRcldHxQrJW9jQISp 6404X43OxVLaGEx9oSkZjTIPPC/inHg9gEpu8BSjJmSl0l5Gbqjb5okQVaJvW0vDshxD J5g8KrOHYcx1jYobK7/p9Fk3KGN3OiqjPdUeB/6FozPGulrIEBvbsREUhDa/WGc+TF/X amNCzmLExPDSQ9GP7ziVO28FTt9KZfWY/LTSFi+tLivZWOCDip6YAMRa+cZEpkrBrcab EBKw== 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=KalL12U8jxOBVqP8PHbv6nTACYFYFiF1qxSnMyEE5hA=; b=NSozO/K4AWcKtYxWyl02cYj9pOfBCxxPKWJauso5pa23GgHlA5EJV4AO2luazLvnGZ sJZ/7/3KWyNgHzhqcFkq4Xwe+tdm9edczPGdSPLpoSf2jixI1W3tlwgHiCW5yPbU/q89 /8PIfTY/DYeQFN3ClN+GmJ6tZUX5u4gPTFvwmktSmiCgMBBr3CYEmhqnAnxtANgS0wwl oyfSrSglvbVrLSgofvj0s5slNBL/ciY0CIAhO4+B+CcqPSv59FD2etuCv5LRLQ4LfXKd zk7UY6zQXXmiCYeQkhiSqjCW04YYywnGLt40WXDDQTF6/33DghCdkXnvbJST0En5rAnq FGmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QlO/ZsGg"; 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 r8si12218358edq.393.2020.07.20.23.01.58; Mon, 20 Jul 2020 23:02:22 -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="QlO/ZsGg"; 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 S1727019AbgGUGBr (ORCPT + 99 others); Tue, 21 Jul 2020 02:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbgGUGBq (ORCPT ); Tue, 21 Jul 2020 02:01:46 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8033AC061794; Mon, 20 Jul 2020 23:01:46 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id p1so9790129pls.4; Mon, 20 Jul 2020 23:01:46 -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=KalL12U8jxOBVqP8PHbv6nTACYFYFiF1qxSnMyEE5hA=; b=QlO/ZsGghWQu/zZez41FEtB5swaHL2vFcaf5WLGFFLAt5mgWFleMKPBb63iR8Ylhpw rtAtTLaxVIKUrLLu6DuvRnFioFgqfZoufq6ORvh0cU3c2KGiZSNjxynS5IAJ3lneDqeq SJ2PjS2hbd4yLWY4xj+QwCRFHCCTcG1i1aQcvwB6tAGUnvEfJq5UaZfpwe3Pxx/qYhMq M8uTx9qngEN/W7k0HyGqgC6eO/boJtnpAlq+iP3gAOkscUkIdmNTU9rKSwGA1vuspCbC kGnSNKg34vO5OZoq7qD0b0JZjuaszx907qXWlVJirVE2bMqBOJ8i35LfUw5l9lHb4jks 27Qg== 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=KalL12U8jxOBVqP8PHbv6nTACYFYFiF1qxSnMyEE5hA=; b=Rrtrcif48rXX3SpwIznpj0/Vww3EB4eyE9gbCTj+GR7aWJmDPvty4M55CLvTT1Wtuy eWuv7tfZVMmrS6S4rJpQoLA9QZAol0dJGrjdirZWFmQdDgO0aI6lTstKxMTp4QQT4J3c eZ2dZ2hxA63Cf1sMqu7b622EPBEZCq6K+7YwHE5gn9tx/IkPp8PxcxaLxufM0G2Vr3r1 cTv17M0SdNZYv9CTPfiwGRU1sAnXZPw0chdc+iEfbvBwE0KoOwUsEnRUx6PnA6aNYza9 gPKhhcsvHJHeFGF7r+VeLXOyk+zQ9z82pnmWoBlAzjGZtHWsyOsioFB2HHqZiDHAwrNe UemQ== X-Gm-Message-State: AOAM532OP79BWxe+pkFR5WQjfnWnTYrVyADRjZoWPIc7+w2d253nsYIf wH/frayYxwtL+lec/FpT/88= X-Received: by 2002:a17:90a:9285:: with SMTP id n5mr2825539pjo.27.1595311306059; Mon, 20 Jul 2020 23:01:46 -0700 (PDT) Received: from xiaomi.mioffice.cn ([209.9.72.214]) by smtp.gmail.com with ESMTPSA id 129sm18368833pfv.161.2020.07.20.23.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 23:01:43 -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 v5 0/4] add some power supply properties about wireless/wired charging Date: Tue, 21 Jul 2020 13:59:33 +0800 Message-Id: X-Mailer: git-send-email 2.27.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 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 | 71 +++++++++++++++++++++ drivers/power/supply/power_supply_sysfs.c | 4 ++ include/linux/power_supply.h | 31 +++++++++ 3 files changed, 106 insertions(+) -- 2.27.0