Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp482666rdb; Thu, 15 Feb 2024 06:17:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxCwkDD4xoJf12MF7JON4QqDlYvzpIUtURtXiSBL4TZj3SIV1pqemmbAS2HlYGVwuJgOc60vaqQ0Md7PJRJqT3CsqHPYqZamgdEs9vVA== X-Google-Smtp-Source: AGHT+IHA9b8IFQjqIxkg5RT2ZyFAaSZsiNMF+y2xwuch/nYPn1ieDvAV+5UWyh8EqUP2XCfFXrXL X-Received: by 2002:a92:b10:0:b0:364:ed88:c95a with SMTP id b16-20020a920b10000000b00364ed88c95amr1763966ilf.24.1708006655981; Thu, 15 Feb 2024 06:17:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708006655; cv=pass; d=google.com; s=arc-20160816; b=L3YfBiuaGqWCwVKju8u7v2Yda7cmZdYqPrd+TeCkMNKQgQ88fYzRoiup3P3+tmIOEN UW7CWuTXdIZo1WeEFY0O/Im0zEjrcmxikA0i2TZXirzkWWUPJ6md4Y5edXJnZQFUKpkr 7+auNbmuzhr1hBZNmMWiO3aBPLxntckO2ODnYxuXPp1YXIysGU8Zp32Otg6VEh0uh5cE QUljNQR+G7D+NVDJixLm2ba+Jb0U8GPrTMoiRzzLPK5+4iFC7ocTnm14RdNZxm8r0EMw 18mVt1Cd1wk3UoaGgBOFs31gD24b3F3UjWO9CvQKTopjvFdXJAjZN872gBPmQQMhRzKS VWrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nLpg0O/tm1q3m2m+fkQ4hXrDpf2j/OKGqlaTgUO8c3Y=; fh=Xv2AIY/VhlL6PyC1zBDKNZbukVIsTsce6camO1WJNfw=; b=fXdXuiqLZZSIVwWoUGYuRUbl8BBlBHWLsF/e7eKulImxOJfLkDcm3+CcqQvlYoW89S 2F41J+jdX1Qba1B5Eg3At+hGtI4WOlNMgWXPyS5asn7S5/KIlt1P+Y1ARMNT8CWEuUG7 wwwZwTo0ezWNLenTmDyzh1UJns8xlBecLba2f5AaCKCPyK1hrtg/imxVG06/x28LyG6q NphXHnMbocxqY4oclR7/DMEOJ/xudyiPO4SPkFScTpBJRqbtzoTzgOHb3oZAXfz3/9Bl 3SZvR2wscQ6ERWHjy/AuJTTOxXc3JKIRngyhG1RUEcC4g8cplxM02xn/vte+vECiKTSY sm4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OMgmeOrM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67047-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f28-20020a63381c000000b005c5e24d4364si1148417pga.428.2024.02.15.06.17.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:17:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67047-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OMgmeOrM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67047-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9D6572953DB for ; Thu, 15 Feb 2024 14:06:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD4C9131E33; Thu, 15 Feb 2024 14:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OMgmeOrM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DC13B12D74D; Thu, 15 Feb 2024 14:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006003; cv=none; b=WSro7qFAGcfB18IUDAuFCeomLFDoT/OCoWy259qhKYQJk4XVhK2SglN5hl3u/mJSybIkHVoC8HYyVXRsTorKvjZhAb+NQndXvZgW4EGTM3/E7DFFkXWSnsZTxo5Iuk0BmRsuTloQA/PTdET2ABSoLwjS5li7rJI6xZhbIJ2GeHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006003; c=relaxed/simple; bh=Wz68I4JN+sBrvrmI2vCBMnMFZ1gd2Eau+yuFoH6X428=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BbbyuK8sMD4hzhcxb4QUSaPh8f6Ws2eWXwaLKmX6Eb1g6fql/2tPv9dOM2WEIjK1rdHALm3nqG8ZZoogD8oe9hvVWZYjJYpyyYvEWn3seaaWLPBfc79azRWQLpOcT0iuAbH656ezFwExSgdAA9yNYBb9DPcXFJqX8Gtl2Tprhfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OMgmeOrM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3DB1C433F1; Thu, 15 Feb 2024 14:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708006002; bh=Wz68I4JN+sBrvrmI2vCBMnMFZ1gd2Eau+yuFoH6X428=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OMgmeOrMASsuoPOGWdDmOZjU31bUgDKOPpJz0A/Dm/x4FwRKVwENjDuHV8xzH1FTa 3BcN32aTmFt8lPQwoLRmMDpZnyZwgWdChXBxXTq064aTSG82rSeD2A0cbVCl/Snt9j ba/nx/RoNTlR99nlMMO930YzkrQJ7L8LpelVhMPCUNZb/nayqx8KG+6fxpLCR6ib5j lq7QCVk+4xCl8VMZ7DoZEZ1hUe5gcI8H68XMwHF+3hKheuHav4/LZonH9lkgdLlGYT cGALzI3+Ubh4ejfteUw/cY8wOmV1p63NpFdHbrcKdUnmoU3ZbLRtTreE5hk5qKk7iB /rqZRNN70+fHA== Date: Thu, 15 Feb 2024 08:06:38 -0600 From: Rob Herring To: Stephen Boyd Cc: chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Douglas Anderson , Pin-yen Lin , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Benson Leung , Guenter Roeck , linux-gpio@vger.kernel.org Subject: Re: [PATCH 01/22] dt-bindings: gpio: Add binding for ChromeOS EC GPIO controller Message-ID: <20240215140638.GA4162082-robh@kernel.org> References: <20240210070934.2549994-1-swboyd@chromium.org> <20240210070934.2549994-2-swboyd@chromium.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240210070934.2549994-2-swboyd@chromium.org> On Fri, Feb 09, 2024 at 11:09:12PM -0800, 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 binding to describe these GPIOs in DT so that other > devices described in DT can read the GPIOs on the EC. > > Cc: Linus Walleij > Cc: Bartosz Golaszewski > Cc: Rob Herring > Cc: Krzysztof Kozlowski > Cc: Conor Dooley > Cc: Lee Jones > Cc: Benson Leung > Cc: Guenter Roeck > Cc: > Cc: > Cc: > Cc: Pin-yen Lin > Signed-off-by: Stephen Boyd > --- > .../bindings/gpio/google,cros-ec-gpio.yaml | 49 +++++++++++++++++++ > .../bindings/mfd/google,cros-ec.yaml | 3 ++ > 2 files changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/google,cros-ec-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/google,cros-ec-gpio.yaml b/Documentation/devicetree/bindings/gpio/google,cros-ec-gpio.yaml > new file mode 100644 > index 000000000000..a9f1d7784070 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/google,cros-ec-gpio.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/google,cros-ec-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: GPIOs controlled by ChromeOS EC > + > +maintainers: > + - Stephen Boyd > + > +description: > + Google's ChromeOS EC has a gpio controller inside the Embedded Controller > + (EC) and controlled via a host-command interface. The node for this > + device should be under a cros-ec node like google,cros-ec-spi. Why do we need a child node here? Rob