Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1051280lqh; Sun, 5 May 2024 13:57:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkhJAQKn7QqB3w8P8z+lLZy9XhgIzL3IJvb/7CWwecJIzSLaGtk3uO2F/4fry1Ja0wnTzOKseEsvDjzz5Q8RGDbxBqAErs7I6dqbz1rg== X-Google-Smtp-Source: AGHT+IH01acaNwS07TQPoxgkLJJnFluCHgy8ckysu/nET9MzV16pFE+FufJIhOJ3AbOE8p6Zj2iF X-Received: by 2002:a50:cd56:0:b0:572:1589:eb98 with SMTP id d22-20020a50cd56000000b005721589eb98mr4718052edj.12.1714942654519; Sun, 05 May 2024 13:57:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714942654; cv=pass; d=google.com; s=arc-20160816; b=lBdFdZGMG5QU238Z37yfBBL6XoMxjtGByyTsIWnOc6U8y63ic2l+7BUMgIFib6XiYQ wtJYSTkXJDb+s/z2cFX9fecpT+zy3rkotqyGTlFs9a1jAsG7nu1XUJUg/xbvmABTqMWj NJOhmxIkIA6ySiVqozfwkT7gbk7kBEhZf1LnwWIwTI4LqpEnZO87o70Pl/FgueMd/qmJ F3xwgfWezsFMa5anLSGBs024xL4X8kMh3k4nRGIOzPsk/cvF3Ubpc58NRn9J6t9PpKfW 08mg2B+9tH0zKOvFWzx5s6YtUtaVFEGNmRPlfwblM6D9NmbDtyfa0o7OtWB8fvxRuQ9N MmFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=elKr4shxqEGX71jhtFA9yoB2g3y1Dyh+nmmyD/vMRTU=; fh=xk9RTArcm315XOKmsKEI7McPdt+6dtl+QycaoTzsAsM=; b=rX3LMDPLGmj7AMMiCYIo9qSTvW4rEVyghMHRJiDxPiJXBKX4sm3rUCGR0GHJ70DLjd cwjhB4yutlWi/tC2J5oU6kVCDKDUuENZ9igVj7ydpil2NpYtRrQusWgJ17zVCsUOJQAK 65T5x5FVy4Tc3/DdEvckvqyHalS+N1IAXUF+D/y7p5k7d35X0y/aPBPfJDwXfqB8V3Ay ZCUBNMkS03VeVV1csAKczsngLI/9hYZcU5a/IPQkM5X6/IogO3lOPxgyaNzjsbrvcAGR cILbT9tH6IsTRS3vi+skuc+b0n7tnnEXwcc5/pjROiDGsKGjQ0zzrO+fspX82GL2HsRE xCqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="Jv/P4lby"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-169147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169147-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e11-20020a50fb8b000000b00572a745521csi4205389edq.358.2024.05.05.13.57.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 13:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="Jv/P4lby"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-169147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169147-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 42DF81F220EC for ; Sun, 5 May 2024 20:57:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA486763E6; Sun, 5 May 2024 20:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="Jv/P4lby" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B44067174F; Sun, 5 May 2024 20:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714942631; cv=none; b=j6u+cG9N7zHTevFAv27eFIKm7V8PrCK3KE/qmevlI7IaDeXQZgIBegFz+fxcogw4m9lZL+XzAUzGBtnE/W96OTSTByIe4SRPlhJ0vGaxl1FwilHgKJDO+aVZcRezquSjeD2hucwKTvc3KbT84sQhHkU8cta83YPOR2Rq7rPh1Ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714942631; c=relaxed/simple; bh=B0W+vFhgmBSPGwdf0igAW7QleTkDZUuNRB40wVINrOw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Wt+quEHsKpvVuPYjzurAV1PNBrR5VMHV1IGMHZ/75IlDIPiSKRDeYfPqh+zZWmtTAOxBZi4mRCl6K3xRFQkbtUEbvH3HQNV7gUto8qvF6pHRrDR3heqvpChH9DzLxXXsj2e6U2kCdZjRMro//NaIDqQelSPt88ZjF5BSy1LmHWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=Jv/P4lby; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1714942625; bh=B0W+vFhgmBSPGwdf0igAW7QleTkDZUuNRB40wVINrOw=; h=From:Subject:Date:To:Cc:From; b=Jv/P4lbyVhju4wdemX7EsNEco9WGqnhVjNx+vIJol7hWrCK9rt3eSxG2Ky9J3v/Rh W1y7KeJRPdYB68CQHxCHNrX0fxGvjb73qT57qg3SSKkEof4Pl3C/o3yIy9SPTtW/vY MoZXNNIjTyh0DbYdox7xHnS8q6zx/C5P5OdYP7MA= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/2] platform/chrome: cros_ec_framework_laptop: new driver Date: Sun, 05 May 2024 22:56:33 +0200 Message-Id: <20240505-cros_ec-framework-v1-0-402662d6276b@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAIHyN2YC/x3MQQqAIBBA0avErBNGsYKuEhFiUw2RxggVhHdPW r7F/y8kEqYEffWC0MWJYyjQdQV+c2ElxXMxGDQWG2yUl5gm8moRd9AdZVcaqTWdt61DB6U7hRZ +/ucw5vwBxkfUWWMAAAA= To: Lee Jones , Benson Leung , Guenter Roeck , Tzung-Bi Shih Cc: linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, Mario Limonciello , "Dustin L. Howett" , Sebastian Reichel , linux-pm@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714942624; l=1281; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=B0W+vFhgmBSPGwdf0igAW7QleTkDZUuNRB40wVINrOw=; b=7SZMtKOLZiVnP8Zkzw94Pl6b5MmUhbhM+5g2NJXEdNPaEewFzxPoG8scSAC27+vjXJbhN/osb 0O9Tr3zm8f3DsK4grjYsmdjSsAhnUUHg37cbW0ergdGO/6RpQVoxsWj X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Framework Laptops are using embedded controller firmware based on the ChromeOS EC project. In addition to the standard upstream commands some vendor-specific commands are implemented. Add a driver that implements battery charge thresholds using these custom commands. Patch 1 adds the general scaffolding and device binding. Patch 2 implements the battery charge thresholds. This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (2): platform/chrome: cros_ec_framework_laptop: introduce driver platform/chrome: cros_ec_framework_laptop: implement battery charge thresholds MAINTAINERS | 5 + drivers/mfd/cros_ec_dev.c | 13 ++ drivers/platform/chrome/Kconfig | 11 ++ drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/cros_ec_framework_laptop.c | 173 +++++++++++++++++++++ 5 files changed, 203 insertions(+) --- base-commit: 2fbe479c0024e1c6b992184a799055e19932aa48 change-id: 20240505-cros_ec-framework-10e627c46a0a Best regards, -- Thomas Weißschuh