From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OMgmeOrM" 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: chrome-platform@lists.linux.dev 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32883C48BC4 for ; Thu, 15 Feb 2024 14:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dwqMrL4u0S0u4lmu+sdTsVtFTwdV4/EmDv9J1K+7s80=; b=vqJTQd4OsnoLPs b85je8cmbCmn6tx6Yo7/AOmkX8Gq0Adm0cHhNjUeWHIlzam4CxV2Cf6XkVFYz7eaaT73nM38fST+5 z0HXfWO5MTaN5/K5CFuRHKHflYbWpBGkbPcvpp2bDcR5nz67ANMH1t+J6Mlclcrw8JP05CxU0G9hm id/+hGtgIGMqD5CDCf5dRG2U68eoQT3hA1fsnCkngb7vJ5T7La2VOuN1HzH0+I4fDjeDvob4QwzwE Hl3RyL5RymvsV5gL3cYCBGeShdeuvKnKFFmddtBWxZQp4t6/uJ4IfK3/DzI//Z7rKbd/4JmiO8ubQ zNvlVYll1JIwUk+RGSpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1racNz-0000000GVEa-3CNi; Thu, 15 Feb 2024 14:06:47 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1racNx-0000000GVED-0rbu for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2024 14:06:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 1602BCE269A; Thu, 15 Feb 2024 14:06:43 +0000 (UTC) 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240210070934.2549994-2-swboyd@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240215_060645_613274_4D8C536A X-CRM114-Status: GOOD ( 20.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel