Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp161960rdb; Wed, 14 Feb 2024 16:47:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwwa6j+OR/PKYE7shDSRz7wmWm4In1K8u0evc8OjGzADmH5E/33LJBFaf7sN1FfqIKLNQGXvdZ4EKQA8tvW5yWXrtBlfyBQ96q5w2NUg== X-Google-Smtp-Source: AGHT+IFUtJJ3d077voYu3MDp8x6aMkiKKqjBxv/rQL+kzS+qvoRG6HvQpJdFw4CUeRgPVe4oKPGD X-Received: by 2002:a17:903:453:b0:1d8:ffbe:82d9 with SMTP id iw19-20020a170903045300b001d8ffbe82d9mr283656plb.14.1707958022686; Wed, 14 Feb 2024 16:47:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707958022; cv=pass; d=google.com; s=arc-20160816; b=GCtWkMS5y8EYFX0stqRMUUao4nyJOowlaWsIlZ/f1DJYA1VeeGW61n2NfYOuqHpd6Q DrgkTQKUOHvqWu0shEupndK6fZm1K/CXjFjMshjMWjFzJHtQzpBi8xRGMM+1hrtersp/ caq3ps6BF0ILBcu3vnwgxH69EtHTbf8KgSetDts47WLA0R+T/m6TxV1PWB1NJ4Z27EsO wT/p+DpGT5vsaL+IKAQr4bROG9+w78VsDIt/D0/Iaa9dRfnl98G1ByzyJZP/31Evt6p0 Xbt8iAcp+ZhsDShGRUD6bbprvZBhEDj3Du0EGCl0TxbnX6Muxut+piNDpf5glDKhs1jI m4jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:dkim-signature; bh=ZK7IS77/W7TToczCQpY2GYKtvK4AuoqqptX1LvYKQRA=; fh=TumbKOMTClX2aXVjZIERW1eSCnFsBwYfbHEWf8nsUfU=; b=waYTR3Dtynsl4/BkZVMmQO8xZAN8p3BwIx1JfhjLDmouiZtskDk1VfBdiwbMkj0MUv gy8MvAF53sDt/UIgnkyakieO44iQaSZEhQ5uNbE7TKdT8ms/zD1OkK/kgBQyg0OaUt6G ItJBGkWsMc+plAjWsFkRcz1W+S3cbWuv0cF7T0uZDtcsfxtMmwJa+b1THegc/xZoFPvm lzK4f5+Aoq/67Wjp6ZdJmplo59wjZw2uhKtWqqgPuio82Uyf9PDJj8Jb9MG7axMAwQVR eyU9/VaSweoFxKw1yamks2y1F4NlGvvSGY9seYWWg/cMKty5qta9+pnWPZtNcoajc5i3 O7Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Rpg3YnKi; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-66192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mc14-20020a1709032b0e00b001db5b4036ffsi118843plb.91.2024.02.14.16.47.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 16:47:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Rpg3YnKi; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-66192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 39B0E286FE2 for ; Thu, 15 Feb 2024 00:45:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EDCE1373; Thu, 15 Feb 2024 00:44:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Rpg3YnKi" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.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 DB194EC7 for ; Thu, 15 Feb 2024 00:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707957897; cv=none; b=Jg2r8j1r41EC0iZKeQb/+smsqjOI6tA0HTRkj0B9zNkCrmWjxjq4gyMvacXLvyMGo8iw4mrWS+kEr+Brj8KvJf456Zvr6yn6YCblmW9G4fQG5YnZedQHiAK8kSbUeFh4Y4lSM/h06RkBSbnYUo4WCfl6CcBEGq1aPdowP+ga06k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707957897; c=relaxed/simple; bh=wP/opWg4NPPj3Q1TJjBcRMLyLYuk3vBq7WguCOVgHEk=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ADjzzsxa8UQysgsjR8pycBiAtfhjTeH95hYA+sR8SmlspWrMtZZTqUJMabJoFhpJuKnfNfttn4sB543QsWDFuu38IWFB6wXNsPbHDrCztKm7rIa+NHH/IS2BWf40FDE5AT5sY6zzzGqGe0/+/ukLOxJUEGojq4eAqNurTn6o1x4= 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=Rpg3YnKi; arc=none smtp.client-ip=209.85.208.174 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 Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d0e520362cso3195431fa.2 for ; Wed, 14 Feb 2024 16:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707957894; x=1708562694; darn=vger.kernel.org; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:from:to:cc:subject:date:message-id :reply-to; bh=ZK7IS77/W7TToczCQpY2GYKtvK4AuoqqptX1LvYKQRA=; b=Rpg3YnKikda5gYTI6t8tbb4u9HLoOhCMrJam+9AqefCcRhKc5xaqBssE9mqyS/zg4/ GwRGAq3O4XcrcMMpxkOH5C5NO+gZ//wiak4RQxfiGSCWTev1ibSgBbhbq7hmXPUT+2eu Z5c7DbL3lslmiGnvieKcjWmJZexhgLZxb1zTM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707957894; x=1708562694; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZK7IS77/W7TToczCQpY2GYKtvK4AuoqqptX1LvYKQRA=; b=QykMd0S+8fhfYS8d4461iTBe43EBh1VsB+SwkLb6oBHuZYW4QMnwVWaWySAiO+MMgu O3/l3Ij1URbBrHaLYBqFDQGXs4BvIwO3N1/cEdSlmLyN0Izj6vln9+RDV2mD5ng6fG89 XXoZhBux3qwwaqqqrgA4qtigV6Z87Rqcqrq8Vr9wpW2q5shGwrrldRm3G5lELf6i7F4N Gb6cluWJuc/+7fjtdhqIK/14Apv2y8Puyq7b2Lo0EKx8qV40KSQNdF0f78mVxHxh7O1Y 0aNzvH4i2LBSgoSqi3CDCSOkuMMeIDlT28sILQiM4DNcrhTaLHZ6hW7gbtPZyxkw5/3D KL1A== X-Gm-Message-State: AOJu0Yyu65kRM3kphlE50/m5MVpBuRpAMkVjjLh4EUIhUEQtBFeV5TyA xfDXvNsrioEfWi6x42SVIFQ6MSv06i4vFgxGLQKPwa0JnMCmmfd4Jpa+hGjah2+DhcdQBmh7kcs EElv3LNqzi73zqYW/2aTDSJh+wMkttjM55qUp X-Received: by 2002:a05:6512:3487:b0:511:5c98:acd2 with SMTP id v7-20020a056512348700b005115c98acd2mr193884lfr.37.1707957893979; Wed, 14 Feb 2024 16:44:53 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 14 Feb 2024 16:44:53 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: References: <20240210070934.2549994-1-swboyd@chromium.org> <20240210070934.2549994-2-swboyd@chromium.org> From: Stephen Boyd User-Agent: alot/0.10 Date: Wed, 14 Feb 2024 16:44:53 -0800 Message-ID: Subject: Re: [PATCH 01/22] dt-bindings: gpio: Add binding for ChromeOS EC GPIO controller To: Krzysztof Kozlowski , chrome-platform@lists.linux.dev Cc: 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 , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Benson Leung , Guenter Roeck , linux-gpio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Quoting Krzysztof Kozlowski (2024-02-11 05:26:33) > On 10/02/2024 08:09, 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. > > ... > > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + spi { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + cros-ec@0 { > > + compatible = "google,cros-ec-spi"; > > + reg = <0>; > > + interrupts = <101 0>; > > This is should be proper define but then are you sure interrupt is type > NONE? Does not look right. > I copied this from cros-ec-typec.yaml so I'll have to fix them all!