From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (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 A75812139D8 for ; Thu, 8 May 2025 17:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746727023; cv=none; b=TKZ+lbDDFiRsOLDvX8bjoSvasqeGR3xYEajqem/ha/G708YfNfMC1cTVT0Jxm1iUP3LRaRPVqZO6hkfj0XCYx7yAsScqn3HFoATxcs5ERI/g0M0alCf25JnzvkaN7bmU2M+5D/dV2TXuxXwBPVCmVPjuZeIXSHia222VMCclQbg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746727023; c=relaxed/simple; bh=vGgzOqvmtXTNDUkxEJrbRUfaL/N3ftCRZlY+IGCRt90=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PeZnMyf9w4EeG0kIpPZ8/tmub0Cv3ZZQzqHx+xvpjZKtykUJInEU4A89yhK7s0U/qSrkpZDiz549mDlGAxCLqlegGwiU2y1NF+0vUT8hUrd4Z4HZbsBfqYtJPj1ufh6ONbMg22d/A1n4NTC4z+p+6f256gdWDNTEbtsKXyXre/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=CmGfi86i; arc=none smtp.client-ip=209.85.161.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="CmGfi86i" Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-606440d92eeso649324eaf.2 for ; Thu, 08 May 2025 10:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1746727021; x=1747331821; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=E/em9Rm7s3BQodglQQHbeSlKuDWm4dZvuXf5QXXEEcY=; b=CmGfi86iLWxrgyVqghNJevQnbmgJwkiw+NEBzf9iwQ+rm6D8lDItcpj5gyNbGwQ/sQ MJWMlNzj4l/LY3Jw9PAzXKQVeQT2iyCIH60DDYj3Urn5mt+zzixgOu/2poJCSseFjP0Z VYHen/BReCvIP7xDCiQqaJzMLvCWUrBI1HDVUj6iPqRXa8n3QIC+GeuqrApBVKxxotHh g+9hZJRfcQOpaFhCBCHruOt8cqmMesVrGsTwawA5Zhyh77JCVYveVlEmqUIPR1ayFRM2 2WiignIGsUJXqs+Fy/9clmsSwmFf2cjxgENxhxIT1pi/DpSVwFQMvnyXy8IPCwdTuHrJ 3CKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746727021; x=1747331821; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E/em9Rm7s3BQodglQQHbeSlKuDWm4dZvuXf5QXXEEcY=; b=J6t9dv4XfLRVTLbJ54dC+JjoSELWxicmTX4eA0W6cX1KEgjikKrCcsn6J9GxRopUSB BfbCOuEBuLHAqhb0r8MJkmIGZ4Lw32zcJnhylc+4fTgr/UxmJfWl4ykAd6VQ567ZLcT7 R68neL3PIaQ64NXVwHlu2gx76wHqVV0EjidK+sPKKnE4Ax6gTg0BjdG4c2ea0gOpM4Y4 egENAAcucYeNIADvtXhj2/qjMvkK90agd3HY/h/QPZrINQYM040bTVB3oMMo0QZA1p2d y6ZyQ82pm5K1z35toAG3RwDdqu2sgkLtn1QbiD04Mi7ADyXMNcBGZVvrMZ+tkG6m7/8U tI5Q== X-Forwarded-Encrypted: i=1; AJvYcCVAfhcEbL0PkDEfbhmWkXWLEZSitjj5VahgZMs6dOi+x7bKWcuBu45UQTfpmUmgCtFAorHMHkJptA7C@vger.kernel.org X-Gm-Message-State: AOJu0Yw8JwPNXEwk01fFKg5JUulRRawp1VSX4HaUGidbYZB9M5WZVcO+ pBcIeKJMucA0jT+e1rJOpKEcC4WR7RpqFSwX9rmoE2mk5e9CCnnGKuOEu2YuKIE= X-Gm-Gg: ASbGncsR+8CxKOvQ+/KFkWatA8fq+KDNBdyM0Vz3m/Mu5f2PxVoZFEJhjrT43ndILpm 6ufH7Aqr5af7YhXbUaSfoekHRdSvbKcqEwAMVYMZfYx5qQHoBlN6fpRXViLq8k8TmKEpTR4W9cz nkUZqc394J2PEAXyC53RB6f/cN9SO/SHqqUrnMjzn5nY6xTKxnmo4g5kwoMQi3aGU+N7JeytsVW anELhlgV6SX0KXFxlDoTt20GsazcIKeMeihyVoVf4QjHjodW+na0LJLnH/JXtkCPpBr/fFusHbo 3pJDzJgRDZFrYmuJ0n4/9vrEqkmAQ5C/aXYlTr5oLFE8z8ck1AhHA41CPwERwE06Gaipc/6aD7Z lpmxmKlZmJ0pi9wte/w== X-Google-Smtp-Source: AGHT+IHJwGAFlFty5s3LWKljU2VuT/aTgMb0iNLaZ1mqX6ViwEULZHmp7hgs+wI4bnWsmWOPe9FWlA== X-Received: by 2002:a05:6820:4b0d:b0:606:8986:55a9 with SMTP id 006d021491bc7-6084b65daa5mr237000eaf.5.1746727020707; Thu, 08 May 2025 10:57:00 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:1d00:1120:d1cf:c64a:ac7e? ([2600:8803:e7e4:1d00:1120:d1cf:c64a:ac7e]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-6083fe3c829sm81452eaf.15.2025.05.08.10.56.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 May 2025 10:57:00 -0700 (PDT) Message-ID: <4b6a45d5-a6d8-4334-a405-df1cf4c2fcac@baylibre.com> Date: Thu, 8 May 2025 12:56:58 -0500 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 02/12] dt-bindings: trigger-source: add generic GPIO trigger source To: Jonathan Santos , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: andy@kernel.org, nuno.sa@analog.com, Michael.Hennerich@analog.com, marcelo.schmitt@analog.com, jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, marcelo.schmitt1@gmail.com, linus.walleij@linaro.org, brgl@bgdev.pl, lgirdwood@gmail.com, broonie@kernel.org, jonath4nns@gmail.com References: From: David Lechner Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/8/25 12:03 PM, Jonathan Santos wrote: > Inspired by pwm-trigger, create a new binding for using a GPIO > line as a trigger source. > > Link: https://lore.kernel.org/linux-iio/20250207-dlech-mainline-spi-engine-offload-2-v8-3-e48a489be48c@baylibre.com/ > Reviewed-by: David Lechner > Signed-off-by: Jonathan Santos > --- > v7 Changes: > * File added to MAINTAINERS and Made trigger source generic to include both pwm and gpio. > > v6 Changes: > * Changed description. > * Fixed typos and replaced GPIO pin with GPIO line. > * Added link reference for pwm-trigger. > > v5 Changes: > * New patch in v5. > --- > .../bindings/trigger-source/gpio-trigger.yaml | 40 +++++++++++++++++++ > MAINTAINERS | 3 +- > 2 files changed, 42 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/trigger-source/gpio-trigger.yaml > > diff --git a/Documentation/devicetree/bindings/trigger-source/gpio-trigger.yaml b/Documentation/devicetree/bindings/trigger-source/gpio-trigger.yaml > new file mode 100644 > index 000000000000..1331d153ee82 > --- /dev/null > +++ b/Documentation/devicetree/bindings/trigger-source/gpio-trigger.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Generic trigger source using GPIO > + > +description: A GPIO used as a trigger source. > + > +maintainers: > + - Jonathan Santos > + > +properties: > + compatible: > + const: gpio-trigger > + > + '#trigger-source-cells': > + const: 0 > + > + gpios: > + maxItems: 1 > + description: GPIO to be used as a trigger source. > + > +required: > + - compatible > + - '#trigger-source-cells' > + - gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + trigger { > + compatible = "gpio-trigger"; > + #trigger-source-cells = <0>; > + gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 01079a189c93..9b2e9a9dd8bc 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -24569,9 +24569,10 @@ W: https://github.com/srcres258/linux-doc > T: git git://github.com/srcres258/linux-doc.git doc-zh-tw > F: Documentation/translations/zh_TW/ > > -TRIGGER SOURCE - PWM > +TRIGGER SOURCE > M: David Lechner > S: Maintained > +F: Documentation/devicetree/bindings/trigger-source/gpio-trigger.yaml > F: Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml > > TRUSTED SECURITY MODULE (TSM) ATTESTATION REPORTS Acked-by: David Lechner