From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 49C64535DC for ; Mon, 19 Feb 2024 20:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708374212; cv=none; b=uRLJW9oF+RXzYjksxB94koTyte5lHYRRLVTdWQvLqUKCT2v2KR/pyfWvfAlQ7BOgOz9rfjZQ+L01w8Ig7Cq4KJsuRhpyScQ82aItXVnHChEman15rJfxBGqfMVoBTGaOmqsQ2DHYD7/glk5TLl5YxnTn2yeohHHY0K1O0LjnJy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708374212; c=relaxed/simple; bh=GCN4a3XwyVGjN4FSoVSL7WZNZKmZBWlauyy+D84PGEY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XHuJCUbW4/2nu/2uaoE/3zDJsQCXA82mMf1QZwRiP0FporovT5LojYLfnk3n8MUg3YP16qMjwx7kY5tt3xaVQykiOPl1fqyGlKV3H8Wf7P0hWz51pk8I+PhW0+yWMxQ4/t5Gg+SxJjITXLT9OJCCHoN5GFX2ttN5BrNi1pLZZCY= 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=oTTZ27c6; arc=none smtp.client-ip=209.85.214.179 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="oTTZ27c6" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1dbae7b8ff2so14904625ad.3 for ; Mon, 19 Feb 2024 12:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708374211; x=1708979011; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kUa3JH16Oe5UJV9UEwjr6pY+WpID6lK8xSe+O5n7a8M=; b=oTTZ27c6MFZClRqzQH7z/o3V0VVVuDsVhO4++GBXRmX8OPpQcUHUCgjjsnRjD4zbZt 7nYgDyYg0Be/NgNN6FcFKMVRWv6rk1LO+t2erd2Q1BB/e2vn3/Putp3zDa0stjFNh7fe Lj0SjdFMa51KkwmipwlT6sLvNKvvG7C0JCUq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708374211; x=1708979011; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kUa3JH16Oe5UJV9UEwjr6pY+WpID6lK8xSe+O5n7a8M=; b=NYFdXy/NRoveb72TLLS92rQKt4k19xPVkN6B0cr9JVybBkTFPf8O1/Ly+4ANTGkStq 1TaKUVksZ+D0KK8gJ0H4CfpMnNj5OIMdQDfhfUzoJIGhVRdxnTuMUQDyhv046q7nzYu6 vd5825IQ9DMAjvKAzhLrVOCt9jrTLNerNYQ1fvUCEGKNvri0Dx1gNC5/17jphRCX2BBI TE8xK2Sm7v4ECdjtByRRHnNlKMf5Cii0n4TV/r/YzdOoKheS+AFN1NjJe+gyYyIyEM8T pTC1gkGQ4BYN4lSTIkrvh3TiDt6vOFFgr6HVOuodWZVG1vesj8rb7frwOIFPuxj2JLrS X2tw== X-Forwarded-Encrypted: i=1; AJvYcCXYzWTZwB5dWq9FNW5bpsvTOOz4QIf1oAvw4ewsbsS2x0m9Z/PZcaPRykavvRSmuPqSK9vKGAlPxJSE4TSiftl/gTs/BVBO4g== X-Gm-Message-State: AOJu0YxoR9vs3cQPRRaP/j85FrKdUdWyvbOGvpWMkywK4b7qn6/JHzdn aZiIK6UWXEn45i9cMgP+UfTPMLwkGvcr+2kust60jPIbMahdbPlMYekMrlplWA== X-Google-Smtp-Source: AGHT+IG8LtaETDPpup4Qyvx26INSaCWovgahZdaA0zbKl+GL/t4KUJJLp2AnURqkSJ5Jxmv9EMKmoQ== X-Received: by 2002:a17:902:da87:b0:1d9:2158:1308 with SMTP id j7-20020a170902da8700b001d921581308mr16281281plx.28.1708374210688; Mon, 19 Feb 2024 12:23:30 -0800 (PST) Received: from localhost (175.199.125.34.bc.googleusercontent.com. [34.125.199.175]) by smtp.gmail.com with UTF8SMTPSA id mf8-20020a170902fc8800b001d9fc6cb5f2sm4818207plb.203.2024.02.19.12.23.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 12:23:30 -0800 (PST) From: Stephen Boyd To: Lee Jones Cc: 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 , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Benson Leung , Guenter Roeck Subject: [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Date: Mon, 19 Feb 2024 12:23:23 -0800 Message-ID: <20240219202325.4095816-2-swboyd@chromium.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240219202325.4095816-1-swboyd@chromium.org> References: <20240219202325.4095816-1-swboyd@chromium.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 = <99 0>; interrupt-parent = <&gpio7>; spi-max-frequency = <5000000>; + #gpio-cells = <2>; + gpio-controller; proximity { compatible = "google,cros-ec-mkbp-proximity"; -- https://chromeos.dev