Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1674757rdb; Tue, 20 Feb 2024 03:48:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlM3ChrUDUMg8kZ0hvHzNiAwJpd1y3UMqkNYv2PzBSsubdqKvprxTifJ4uLP/sL3wrlEHZUHoBSpcGC+oIhdFYuwi73x07pbGMdXsPMQ== X-Google-Smtp-Source: AGHT+IF7s+RyMPJzJUiOe4MVhBbWkIF4df6t7TgSimj4+vKa93pVGq8NqkFVThC3Mqyuqnd9zFVz X-Received: by 2002:ac8:58c4:0:b0:42e:2ce0:2f07 with SMTP id u4-20020ac858c4000000b0042e2ce02f07mr807502qta.0.1708429731076; Tue, 20 Feb 2024 03:48:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708429731; cv=pass; d=google.com; s=arc-20160816; b=RHHjWt5/jM4AL6Ksv58TtYWEKQAT1NPQkvfxU49QuX6gVE3+ZVbxD6wrobeCXwJGyS o99rt1559xer47llpS2CWSHd3d5WfbK9Gyoe3q1Z+X19DyZOTUdwc7PS+AbFqJTm81gg a2kSjQ5P3/ZJ5vrGfUoXkW/dcW1Tn+1DhxgmI0gm9EX1iPFaJQC5HjNv5BQYYJ0a84pb LHK9oeT13FGhm1Tnlm5FRf0gIASM7cP1s/wKYXr3Y5wosJvO7ATYNri2IexNoZdZfBQ+ 6UXr+d7p+bIyI+yjM8JSHr8nyxGOZxzPSk1UyrxGN8wKU5DUnCI+wjPC2zZ0XBAKETC+ 3oEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1paBppa9kXyF4t6jx2dx0KVwu75oULYWFXwh3w7uJhk=; fh=uSArYc4KJs2ezsHEZo1eVE9clAnkq8SFEuzP5+CnTPU=; b=EAdkoV2YVw4hVD1U/zTxqjreiKRB6lBRFrvAk87a3vbWNsTeBwIHvixU1l/8JVZAVs LggszHBWwD0nS/jtrbSE8efwtgWqekDdKno+H88C1Qv7eUPXepkryOjSrLD/pdj1IlXf XrcAjCMHwW5Mk/G/UnmwfsS5Pif/2rd+D/mFy87M02RCjE58bBCrZOcjDrkD/Xtt3Jgq BNfnd0RNn36+CGr0RH+l20A3eeliVVjSpHDvh13dd7xKSi8YtfGKMHXIeFz0jMBqSEvK YJjtrzCVA1JG69/2wS8zvOm0RcmIxFqk1lESh5OiOa03ctw1TeRVxvEqJPaCHgGguBeO EckQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=dos4Vqu9; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-72939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72939-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c20-20020ac85194000000b0042dd67a5543si8029093qtn.185.2024.02.20.03.48.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:48:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=dos4Vqu9; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-72939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72939-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CD8891C24853 for ; Tue, 20 Feb 2024 11:48:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1FE367A0F; Tue, 20 Feb 2024 11:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="dos4Vqu9" Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (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 7D03867756 for ; Tue, 20 Feb 2024 11:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429723; cv=none; b=XMX6d1r+WY9U7a+JqT7c0xUQn+dHHG1M4rvTuHfLpmrDB1IcQCquUSLwALnU0wSA2iAjf/S1eR5aKH8x2+L16i5eG0XOnKTQK/vVDn/iQn45mx8HNy4TfXdHThVp85WkEjuBCE8uEw80psARD2Nd3rylRDOXZwLOX/nBwUN7HIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429723; c=relaxed/simple; bh=1paBppa9kXyF4t6jx2dx0KVwu75oULYWFXwh3w7uJhk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=agVRc5nBOmvd15vlAsw9bDD8GBbPqnTgHEJYtPvhFIfU1V/NvlfvYmqG/DxOmKxzkyqXsq4vx/UlqPGh5D5HuhlemAYSIKyIRhVfpDX4TXXnU/vM1Ao/V0LWkRlkX+ynoGMByATKv+kDL3XBeVPlKHfeLd2tBihWzqMl5AgicpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=dos4Vqu9; arc=none smtp.client-ip=209.85.221.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-4cc13005119so432385e0c.1 for ; Tue, 20 Feb 2024 03:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1708429720; x=1709034520; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1paBppa9kXyF4t6jx2dx0KVwu75oULYWFXwh3w7uJhk=; b=dos4Vqu9qn1f0VZfm4KPRbnXV0MZFq0GNdHNLRUhrd+n16n3FUa99zLSdVXrFTYPUJ nwIJxPXtoKQrbOG1EHw1KEpW644cYGjEMl+uUtONDhzsgu+CJf/XmP6pf4Hdw3Dq3lAK 4S2bpy1W6Q9pwDFKcLfVehmBsOGwQg2kZQeMRpbGtqPu/vMsJn8M5NuTCqP0r0xNxDkr uCg0E7Ylb+lnb3me3oS3tyBaKN5oGLhtUZKfBOv0dJA0udAkg7XzR34DlvBY68L/QfGQ +371+/c4772e3tTNTIJe68YZlTnn8447RxavBjr/pXZenubkO7BQPkjPHHk4voFugvXb JunQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708429720; x=1709034520; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1paBppa9kXyF4t6jx2dx0KVwu75oULYWFXwh3w7uJhk=; b=t7VUI8GIjbs5biHQnmMYEsbgWpIAJWQejMPQxw9rE2TyMhym9FO2gEZbHDo5GeQ/Fe QQ6WJ2skjNTg+SiF799LFWlz01Ryr+s9SwyIaxOcJqm/EJ5PxmudrVirBXkFYYMkyp40 00Ex2pk1xAoUWoKSImJz8YQLXxtt3VWpI5jHO1fJa8svtsx4JXuCeTECmL5WKF6A+bst xAHtPvUoVc0ywYC4niyvhg/+1Xf0Tk0RqtOxlvVpY8CW0XiZHVuMdt23/WVFVgG4+oIW zj/uQ3bfAE+XlkruorvcBGsztJd8b147n3whwfHHKDPLOfvp7IkBzv5Y8CvOALeTuqdw ukcQ== X-Forwarded-Encrypted: i=1; AJvYcCX9Y6iz4dvu1fE8vTbXbjQq8YzwBh+Zq4/RM7hyBT12kkJvPqmWeG1xabdfuXeBDu9xQvAuAzgSbQZEv4m/56sQtsrlUK4YYDwLn25b X-Gm-Message-State: AOJu0YyKof4ejgzC4qLBH2/cAnmLOdqbpF+uID1CmYq8dVvy34hJY+lO iUO4getRrEn2RaAyvw5eboYKneKK9+0LlMkyzJnu9Yc+H2LKDaAmgiQ5JNUv92vFAA14xBVntn5 Afd/vPMnh6qM5Mb78kAwNy1fUeJzR0fI/WdUeFA== X-Received: by 2002:a1f:c743:0:b0:4cd:510f:4137 with SMTP id x64-20020a1fc743000000b004cd510f4137mr3182381vkf.16.1708429720382; Tue, 20 Feb 2024 03:48:40 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240220045230.2852640-1-swboyd@chromium.org> In-Reply-To: <20240220045230.2852640-1-swboyd@chromium.org> From: Bartosz Golaszewski Date: Tue, 20 Feb 2024 12:48:29 +0100 Message-ID: Subject: Re: [PATCH v2] gpio: Add ChromeOS EC GPIO driver To: Stephen Boyd Cc: Linus Walleij , linux-kernel@vger.kernel.org, patches@lists.linux.dev, devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, Douglas Anderson , Pin-yen Lin , linux-gpio@vger.kernel.org, Lee Jones , Benson Leung , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2024 at 5:52=E2=80=AFAM Stephen Boyd = wrote: > > The ChromeOS embedded controller (EC) supports setting the state of > GPIOs when the system is unlocked, and getting the state of GPIOs in all > cases. The GPIOs are on the EC itself, so the EC acts similar to a GPIO > expander. Add a driver to get and set the GPIOs on the EC through the > host command interface. > > Cc: Lee Jones > Cc: Linus Walleij > Cc: Bartosz Golaszewski > Cc: Benson Leung > Cc: Guenter Roeck > Cc: > Cc: > Cc: Pin-yen Lin > Signed-off-by: Stephen Boyd > --- > Applied, thanks! Bart