From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8AAB3B8BA1 for ; Wed, 24 Jun 2026 13:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782309542; cv=none; b=Ie0+UQHwjY6LV5MbW1J3Nzu9P215qM/Q8jwuWO2lsZelzEvmNoo6E5RNkDYM/2mD0ijSJiNLkZpaZvt/VZ3u2r1s3JmraHuDyaGCISOxUW9//oTPc9WAY7oOhKjDOzK5lsJUEuCyrqkQtT13p8TRYB2EIXlhwJDJEtUbe9cHvd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782309542; c=relaxed/simple; bh=rZoy75d1F530K2+ThODvbmPdZCic8tHOaNMPkK37BVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QyAzwvn1eKVzZxa74J0lHTjokVeVimB5C6nHzgISPA2Misge3RZKa7yZXAVIK3Xo81YT0rPOY/MvYc0yC5MJxluCKWjJQ5CTRT/vEkeyg6kOzYBEcq0+BT8ps2D+y7aKZy/uPPx+bJnHlSvjx6zSycL8gxh0gKl09qWoJ4E+mh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mV+//V+B; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mV+//V+B" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4924593f45dso12181765e9.1 for ; Wed, 24 Jun 2026 06:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782309538; x=1782914338; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xy3H6Mm52Vr1FVRw8xaYMztW/ew2mK+cmZQhwwKNUmw=; b=mV+//V+BxCtvsA8WDrD8kQNm0frliGCNwyyCYDV8hBontCw8/MfgOGQFuCVQ0SzZ0v CxwjOGpJaudlo/is3ejefrTocpsOJUeMmX2gEob60MBFOVvZrqaesYM4VQ0Qglv+caa3 CneBhX5rJzNtT1AWlUqi5qH73vLpAhrdpSJftBpbm4fR4JZO0pFo5G1V1pSlGp7iREAr XYMSppk/b+f7lJ3FBPJor1mZ+3vyctxKtCOAXzvZuMN/Rp47/Orzg49uXLWOvDSoNyKe fjafct5mrzdJLLFk4wCzkLS591BcnRuXuxXtoNcHo7qudWkXewbkTbcRK1GfDIVFRbk0 0hlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782309538; x=1782914338; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Xy3H6Mm52Vr1FVRw8xaYMztW/ew2mK+cmZQhwwKNUmw=; b=dSy9pPqp4H5tXgLgMcrb1GZbLUMcs5pwZOperhpocY3TWBWtjeaf965MDFu+olZfjQ 1boF6kkRbJAaiLvLQbEvwhlyZCYjSI7kceN1AZCgKP1TE34GIRdjYh5xG1OmCSDUTZx1 CfdjToGQ/8oIFFvKPNOZyeWSjH41VM4p3Ij2XU+wE2RclAh5yZ1c/ggykmIbywJ1ai7J KA9aPK7PLKjW/7Db8MWA7P/Nl52VKaJ5HIn/FMQ4v4RDjodnbjPX8h6JC1EAWrXJ+vP9 lzwLe3PwiSwnyu/ahUJdtODL9q2fFQZTia3QwMnDZEqcJ7WhpjjmSQspqTZqTIJkbSY/ 4EqA== X-Forwarded-Encrypted: i=1; AFNElJ9EH2mOMNc9I7HUI9+v/ioZei9i+VaDuu/4GjVRyhcpBxklBme6OCuybaLPsK96kox6EJbkljXc26c2V2c=@vger.kernel.org X-Gm-Message-State: AOJu0YzdyPBI9Pa+VRUk0KHyU6sqk20CxwZmqq3bOdYOzk/Ni0gatg/w U+dGxgprObQHEvwNbCtabYqRgBQ7679s7JrQPC2Jin907JIeCKlivAXIrLEyoSEf5LsJr9Zq X-Gm-Gg: AfdE7ckAl2xD3bDaXhlZFJbhJwRWWPA7IG3wOeSw+JiNBIBmr9O6RiuIhH+QzHxZcLD 2OUV4RlSPJRw9nb7yRm6uRTmhTHWOSKM92uqpPF+G0RgS3cZ6FjdOulj5RVFdTaSF8PoDPyVA9F a2QQkyjO0I/TZDqIVjd4mMeIbqBQRYq3C+t2Q0wdBh8qNWULdzvbdwrE/2qOr0i0jxOcg7JXsrL +BliWMgVceomcOuWJ6hlyUOQamQKzwxengwlxPXkbnfDHvbE+Yapmhd31vT4pJSfAopSLqdzSa9 vDsdoLG9hGC/jgioNOGvoyv4OdB1IexHhozM+2yc04Rogx0PtHmSskUtyWjygethsVOLmJ7jWJq D9OETV8yVewz4EdzWK8OdfDQ2xTnFQ5Rys/hukzFNkPu0gK/yZPt0Lz7tiicdNxloJIkolfdhmc oAJxrWdLKQ/Y7d X-Received: by 2002:a05:600c:3489:b0:490:b8e6:be40 with SMTP id 5b1f17b1804b1-4926086e5edmr52079765e9.21.1782309538140; Wed, 24 Jun 2026 06:58:58 -0700 (PDT) Received: from beast.lan ([2a00:c281:1461:c400:bf16:e4f3:7fa:c2dc]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-46c221d93eesm6734311f8f.20.2026.06.24.06.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2026 06:58:57 -0700 (PDT) From: Boris Shtrasman To: Sebastian Reichel , Shuah Khan Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-api@vger.kernel.org, Boris Shtrasman Subject: PATCH v2 0/2] Power: supply: Add PbAc, NiZn, RAM, and ZnAr support Date: Wed, 24 Jun 2026 16:57:16 +0300 Message-ID: <20260624135718.286771-1-borissh1983@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These series adds support for PbAc, NiZn, RAM, and ZnAr chemistries as defined in the Smart Battery Data Specification v1.1 (Section 5.1.30 DeviceChemistry). Currently, the sbs-battery driver only handles LION, LiP, NiCd and NiMH. The Smart Battery specification defines 8 possible values: - Lead Acid (PbAc) - Lithium Ion (LION) - Nickel Cadmium (NiCd) - Nickel Metal Hydride (NiMH) - Nickel Zinc (NiZn) - Rechargeable Alkaline-Manganese (RAM) - Zinc Air (ZnAr) - Lithium Polymer (LiP) Map the missing specification values to their respective core kernel POWER_SUPPLY_TECHNOLOGY definitions and documenation, declare these values into selftest. In selftest LiMn is moved to the next line to comply with checkpatch warning after adding said types. It is an update for https://lore.kernel.org/linux-pm/ajmc_naB7zYv0SPY@venus. Link: https://sbs-forum.org/specs/sbdat110.pdf Signed-off-by: Boris Shtrasman -- Changes in V2: 1. Seperate into two patches. 2. Modify Documenation, self test and sysfs interface. self test is updated as the documeation is now mentioning them. -- Boris Shtrasman (2): power: supply: Add PbAc, NiZn, RAM, and ZnAr support power: supply: sbs-battery: Add PbAc, NiZn, RAM, and ZnAr support Documentation/ABI/testing/sysfs-class-power | 2 +- drivers/power/supply/power_supply_sysfs.c | 4 ++++ drivers/power/supply/sbs-battery.c | 8 ++++++++ include/linux/power_supply.h | 4 ++++ .../power_supply/test_power_supply_properties.sh | 3 ++- 5 files changed, 19 insertions(+), 2 deletions(-) -- 2.47.3