From patchwork Fri Jan 19 08:43:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Majczak?= X-Patchwork-Id: 764222 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 0ACC31E534 for ; Fri, 19 Jan 2024 08:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705653815; cv=none; b=Isl8dXgvG/+wt3n8egd9trbTf0gVHF0dH/78f0TWXmkDHIKYNpjTEwX8PeMxrgyxvjxsHQYkUV/15x2Z9R1ayyuC/ozo+aww9xBm/8TZQ4444rwyrilUVrnAJC0XR3gKAx1E7LrvCrw1vxh1a5HeZLn8Kdg4Ym9LxudZdUtlG5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705653815; c=relaxed/simple; bh=89c/E1WE9Dqz+FNJvgcC0QqVkf88/Uc2d4rfA4sgVJE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nm/80gdpgiLtScIaNGSHOXHyVXf4f87VVrGCYFYu3dWNxbrYXHv/+Bm3S6avNh1WTo3Za8r6Cu7qaUvA4qJRmKyEB7Se5/7AABezv0KeiRp9V7k2EMS7jfHuEtM6ogvJZbrdhahS5+d5uhMFHNs9UpmOl5sQawQ/SeLYRSpjcac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=B8609PWG; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="B8609PWG" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-50eac018059so676310e87.0 for ; Fri, 19 Jan 2024 00:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705653812; x=1706258612; 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=NipyPWLmE/gRh6MB2S3xsZHlrOKnabjbF4D7HyjLfJo=; b=B8609PWGhWhC6ZRA0wWNnvCjRSaXWp9+JBfWgltZQkfwaQeAobKu4Nv8aBkO6CaloJ ai/I9/7c69Y5ZYm2TqsB7T1GA5SKECSBx78CSJnjjFxAldvZ/7/3qLtdrErnchDvB+1R r4zE1DC8TUDR1Muue+E0Yw53ULu9dOADD8bHQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705653812; x=1706258612; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NipyPWLmE/gRh6MB2S3xsZHlrOKnabjbF4D7HyjLfJo=; b=oKHHyxoUS0HOLy/AncT3mCGW/1HfQ1XIKloNOKmaN1SEJvGQWgiqvHNFAQIsOC1N6Q 5od12Id5QRmpF4/ptNNMSOuCkAqh6mxjTAlAWhc26qFGYJ/UE7rlzDCjVKBszBxxg6bL BW/2bQ+jZVWcHieotRJQ84IBA2iddHuortCuYnSDMi3FV/HRUCRZymw5+NdWPyUDrEsC 5mzNsFYBqKPtH/HVVggTFko9P/CsIa27WDL2CDqYP1G82D9D7QDi2B2tnlgrlbBrCvJm ZstZBMxshkgutbJMJHHk0s/mYAo+LsCwuRstuiekG3JLYBqPkEE91a8Su8xjE82eG1E0 fOAQ== X-Gm-Message-State: AOJu0YwSP8VhVLHCyOZfjygnhSN2naLJCXtc/VzmJW5pvfCK/U24yCQu 1JFo3HNoQoXPaukkaVSolGSsW0GaaxCMFXt7/kHcKvTkOU4s7KDmaA/9YCjvew== X-Google-Smtp-Source: AGHT+IE1FyC3NQ9gESEcnrvEJTYihiwykuX4jenP0Fk3IRgGkqirbCwDO6Yg7zBJ7psoJRM2hI6NmQ== X-Received: by 2002:ac2:5627:0:b0:50e:7410:d293 with SMTP id b7-20020ac25627000000b0050e7410d293mr463966lff.135.1705653812166; Fri, 19 Jan 2024 00:43:32 -0800 (PST) Received: from cracow.c.googlers.com.com (138.58.228.35.bc.googleusercontent.com. [35.228.58.138]) by smtp.gmail.com with ESMTPSA id q23-20020ac246f7000000b0050e6aff6630sm905591lfo.152.2024.01.19.00.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 00:43:31 -0800 (PST) From: Lukasz Majczak To: Gwendal Grignou , Tzung-Bi Shih , Radoslaw Biernacki , Wim Van Sebroeck , Lee Jones , Benson Leung , Guenter Roeck , Krzysztof Kozlowski , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev Cc: Lukasz Majczak Subject: [PATCH v3 0/3] Introduce EC-based watchdog Date: Fri, 19 Jan 2024 08:43:24 +0000 Message-ID: <20240119084328.3135503-1-lma@chromium.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself. The previous version of this patch was sent here: https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925 Changelog V2->V3: * drop "-drv" from driver name * use format #defineNAMEvalue Best regards, Lukasz Lukasz Majczak (3): platform/chrome: Update binary interface for EC-based watchdog watchdog: Add ChromeOS EC-based watchdog driver mfd: cros_ec: Register EC-based watchdog subdevice MAINTAINERS | 6 + drivers/mfd/cros_ec_dev.c | 9 + drivers/watchdog/Kconfig | 11 + drivers/watchdog/Makefile | 1 + drivers/watchdog/cros_ec_wdt.c | 202 ++++++++++++++++++ .../linux/platform_data/cros_ec_commands.h | 78 +++---- 6 files changed, 264 insertions(+), 43 deletions(-) create mode 100644 drivers/watchdog/cros_ec_wdt.c