Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1674186rdb; Tue, 20 Feb 2024 03:47:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbe8SKa1zi8JMh+hVnUXs5FbfP/lkmDWy//xeTBGts9GU2YpnjQ6my0nKdfHU3lrxQRR7NkSzi39B235FO1nH2YBWucfz2nr+mb5gjgg== X-Google-Smtp-Source: AGHT+IFYl1KeIUJumhnh6Zrf2LGwH6VNAVQ0Nyt16d/AM95jIWYtfxYaF70rbQPdTOhOOAHwM7IH X-Received: by 2002:a17:90a:bb86:b0:299:3eb3:4d41 with SMTP id v6-20020a17090abb8600b002993eb34d41mr7073281pjr.7.1708429639978; Tue, 20 Feb 2024 03:47:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708429639; cv=pass; d=google.com; s=arc-20160816; b=twbKNFefAPQ0tC1G4+JLr6bST5ZBZKsx/N0uCZ1+Ta1eHNKGx45RmRQnGLWTUcPZqo b9F50TOwTlraZNBZIRPLtZ39cAcQhjiElHV1pD+TIgx2QTJQbtLuqhElSCO5XBWWoF/Z klk0jSCek8JWHLAVUdz5xYw5Sas29AhwkLfxfZ9qNeXP3keHsV5rNkX68LRHb5+ll+XW HWu/moYqATzcZa77iPz3deOiehMyflw4yHk79draOK78QHTdbB70XPTEATThhFL0NAln CJhMc5+h1cRoMVrgyHImOUtyKbrXG8D/kuRxMfD6i97twzcVTBbmo9rzcqdgfR73bEKg dqww== 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=B6RqJSPI71QVegWMkFBgsdGc3en2Z5VC7xej49dSawM=; fh=KzMUhM1I2vhgBAcICZMUXZe+37wJPfllxPeVtGIbmBM=; b=sldOBUlwKQptUblSxcrWvpTjuX8F10ZSX/NLaJNUjKPyYtnhfU7W/xobiLPRxEnBwQ uX+t7JK6Y2qFwJDOypUYAjiCK7jF9w7Y7j5GwnqLx1E3rPp9/DYBszdZPURizeJSUDds yenrtFLzV0tDbrq0791GUgVq5rx7Axg7AaBzkcnLx2dA8O1lj9TiudUyAZdMwlXD0VKU fXiWQNK1rESE9kxl8iD0hFs2MZIRyKYVDdSaqGgjg+meNlNk9JMh0EVGTrDDAHnHrLss 17n7NkqV2NtyHZr1kjuARgxThaUi07zzMEhzZ7W5f//He9YrUxEJHNwv/W5B1LEY9BAR 8riQ==; 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=RXRUoodM; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-72937-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72937-linux.lists.archive=gmail.com@vger.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 71-20020a63004a000000b005cd8b5dfe9csi6239969pga.491.2024.02.20.03.47.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:47:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72937-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=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=RXRUoodM; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-72937-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72937-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9FCE9285581 for ; Tue, 20 Feb 2024 11:47:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85ACE67A0A; Tue, 20 Feb 2024 11:47:13 +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="RXRUoodM" Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) (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 49DE46773B for ; Tue, 20 Feb 2024 11:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429632; cv=none; b=QUK8iFw5oQ6zE0trjNyloNXbOQWR0armoHkbLhAL6RKbRLindgOHRXh11TbHU/IqnQNKL2buIJaV6HP0dWxn7HyBi6OlrPYK4IGp2p0gHEirCwwpgfcfiIn54IPUq5EWNYNXrYuQCiYgFUQUphdqV0VwyJSyslLBRssPxnVdBhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429632; c=relaxed/simple; bh=sfltWzyTzAdCakZmDcZEIFogRIcduk+6sj+HuSfY4kg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Osj0u4K8CrJip23U9o2g+SqsjcBvxv0LkAxq7qOV1TSOPRGKN/4G2rA4HROctPjdXO/aKa3ufg8j4xdums+JFJLFtbmBeqX/0La37azZ8EgHXLlEGUb4nuZC2LCLPyAjltB/svzF8Syz21mmu+fTfU+T/MAltR8cY4fJUmj+M78= 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=RXRUoodM; arc=none smtp.client-ip=209.85.221.176 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-f176.google.com with SMTP id 71dfb90a1353d-4affeacaff9so773383e0c.3 for ; Tue, 20 Feb 2024 03:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1708429630; x=1709034430; 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=B6RqJSPI71QVegWMkFBgsdGc3en2Z5VC7xej49dSawM=; b=RXRUoodMky/46TA3ifI9m4cdmmubkLMUjbVt2j1BjP3NydDmcwDriYWaAQO0/xJxaE eipxOt/F4vWi6S73gHgoZJ0cfvp6A+YIVF75POt8gIGNWmny64YWVeVtkDaT1Z+5cqOn OcJATRpmXHneqTp9ddVzHjYXaAEHlxup8teven9V6hntjFo5XNRLItF4nvVD01sMg+Br kapR9HptbOe6EY6jzMv07MZPvDhje50RO2zmENwocN8JXH9OCLsPbBt0hoEeaIvDav70 rxLSsDfdlWG0SAHFZ5rgX04391zqsBRgtkPmhHNoqE3s7HJ0BcubGGd8+jBgyhrUuU9m 1dsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708429630; x=1709034430; 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=B6RqJSPI71QVegWMkFBgsdGc3en2Z5VC7xej49dSawM=; b=SJOqkCp0RZECPCvvSiVHhy0GmmuPAytlG74tCPh6DTq76gRU1ZKAIzOb5ExxcGRhZJ TYEiscIK7bPTeLvK82byzUkBwUUIlB0bJulpPYl0Xgt29Ti3QxKqInQ/MZ5TVeDCEYGw TCGkQHxkR12Ok3vPN+dxpJw4BXbAbvrzrNSzwqA5wLGe1iVzJxdzyyuGHndqK1QcnUUb aPB181Tutt4YmvQL5nMfQ//4eMp0zi/Tf6JhWtq/gID84+YEGGG+EBeTE3A8xMHD/FFj kC2YOHqkI8tYh1y8wT83KsvlF9R115AX7g+5YCNu65xRAMPKXMwFJe+t+wxpHurvJ4XT 5+Dw== X-Forwarded-Encrypted: i=1; AJvYcCUphx1OkfRl4IIzAB/hYzLVgf8XLT2+FnSnFjCZUP0PKOdHFSybfSSSS41yA8uFPLxFMojlqGO0iGThVi3ajvx+LQ3S7ppF13DUuemE X-Gm-Message-State: AOJu0YxNClQrTfeSxYvZxBaoCVyWEaWaj7IX16aHpo5CakPvZfSA81Uo VTbp+3lqcaHWGrDS6IaqSZB37BqCLB99dT0CSPWG39yOB7Y2ClYaA8KlUxIZKJ0Ef+vFkvZ5RXc vIIHQ0oHWPJLcmzEimz3L8TTC86NjCfGkgiqc+A== X-Received: by 2002:a1f:eb02:0:b0:4c7:b048:bb9c with SMTP id j2-20020a1feb02000000b004c7b048bb9cmr4873813vkh.15.1708429630233; Tue, 20 Feb 2024 03:47:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240219202325.4095816-1-swboyd@chromium.org> <20240219202325.4095816-2-swboyd@chromium.org> In-Reply-To: <20240219202325.4095816-2-swboyd@chromium.org> From: Bartosz Golaszewski Date: Tue, 20 Feb 2024 12:46:59 +0100 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller To: Stephen Boyd Cc: Lee Jones , linux-kernel@vger.kernel.org, patches@lists.linux.dev, devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, Douglas Anderson , Pin-yen Lin , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Benson Leung , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 19, 2024 at 9:23=E2=80=AFPM 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 the #gpio-cells and gpio-controller properties to the > cros-ec binding so that other devices described in DT can get 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: Pin-yen Lin > Signed-off-by: Stephen Boyd > --- > Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/= Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > index e1ca4f297c6d..aac8819bd00b 100644 > --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > @@ -93,6 +93,11 @@ properties: > '#size-cells': > const: 0 > > + '#gpio-cells': > + const: 2 > + > + gpio-controller: true > + > typec: > $ref: /schemas/chrome/google,cros-ec-typec.yaml# > > @@ -275,6 +280,8 @@ examples: > interrupts =3D <99 0>; > interrupt-parent =3D <&gpio7>; > spi-max-frequency =3D <5000000>; > + #gpio-cells =3D <2>; > + gpio-controller; > > proximity { > compatible =3D "google,cros-ec-mkbp-proximity"; > -- > https://chromeos.dev > Applied, thanks! Bart