From nobody Tue Dec 16 00:22:14 2025 Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 113E71A3171 for ; Fri, 7 Feb 2025 20:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738958971; cv=none; b=jzBUkcAnYhTmCRph1Wzjfdhgmq3PiklRd/qHKVfTW92ZerinH/UxWcurHXf6RWYOhdEWFrgmL9d0wF9mG4LZzCd+/ce88zNT+YK4m5HwX0PimI1g4zyyvtMmdbgnxUZRe5RErYZ4V6Qv1iZODLuhWglsTtGEcobz8or351KlKwA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738958971; c=relaxed/simple; bh=rt+GniortcrL6xGxBnnoav6poPM6JFl88uJNx+IwPpM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AHGZgx/WSNR97qBzlHGKy5IJjcel/F7PyVghh9zrRFc0mxMiceXUN3dkTDCqvFnXkhrtChc3ZMESop+7X9rgu9hFO779u4W863qWkhLk1Zcnm5XEejNlvpxTu7nVtDH/i6E7D4kcHplQIcpy3JZjatX8+VemI/BR0dj2YEDKwA4= 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=V2r333t3; arc=none smtp.client-ip=209.85.161.52 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="V2r333t3" Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5f31b3db5ecso1160026eaf.0 for ; Fri, 07 Feb 2025 12:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1738958969; x=1739563769; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0rxdAtHegvFqd0jnw3MaUYjpnQ120eeARkMko1E190M=; b=V2r333t3zEtSQgDRXsFrMqH/gp6HsYU/6GbajFYg7OnmyWlx3XvBoovxujwhrfU4WP 7RqYut8KKJl3VEg3PXbzByYk/wnXeZMe+oE0sO/JigdmAQsO4gzwnVKnhmTcAkGQR+hK gkKmKJZaN4a6nXqdPCujZl3mQhOcPXePpHCDskSwZIg/n9GuECRjk3GPgNKPj+c/bEPa Fbrb8T09CpAW3JAhG8dCxPICWYYW/Pd6W5XwwoKeong9T3+mPcvsrj3T4s2qHvVHf5/7 y71H0urnglNRdTPEdEJLsaS69AAfCqG349cI0OlJaG8hxhmmUsw1eIyPSmy48mON5z2k idKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738958969; x=1739563769; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0rxdAtHegvFqd0jnw3MaUYjpnQ120eeARkMko1E190M=; b=qo9ghI47pYfajq8bUGC7opOpxJb8a901PxWLol9pc6HR2Ckd7qnxGyh6OCmcJieWSa vbfwkeYWiWCee7qyYCT107HiK9+w3NeGh7I4u7mqQXywLTyK4anMA81YW4SzuRYLG8qb uSg+N79efkynnAb94pGku+mI5gHNaeAnzPP8VTWLlMMa1o67b57AjUCXKDZpFR7oYnoE 8fpdNpbyA643qCuOg9oUB2zKnlbhnRnlN1T4jJquYvOSiQ/jErJdRFaMidBWDjy8BqVz qMduBNHv+ZUVUt6RyBFI2fSoaq5wNkF5wX9df2uI+ZButm+I++qKVCTMCHLrx/TqXyZH f7Tw== X-Forwarded-Encrypted: i=1; AJvYcCUj+nFbvRvhL9FSJFwiAUA+PuMSK/8a32OndIyDKyVsHdyL1MSHcubCk/B7OhLLlmmLXG3OtIx/VLIUEDA=@vger.kernel.org X-Gm-Message-State: AOJu0YxWDV1+ZU+nw9Cn1/UYuIFMnVFIVSfoKyxzgocWZfkrMaGg93oA 0eCRIBBwgIdddtkR6UHfoiU6o5ZwgXEagDSl2TAzpI2UTbqicrWdhp9eRFxOGF0= X-Gm-Gg: ASbGncv/xOzXxMEWp4NAGIbKDAC6D5hZW/vjKxvtWsUxZAab24noc5kdpSPYAr0NXYD 1jRXZmjUf8AQesb5m3Y1Ee4QlAOBzU5r++oNnDPN3vQRE949KyWeaX8kPeMXhIl/wjTpQtIkR2C ho+K7LXexAyL1NMEXklRWw+NV+rYemyN4AC67iB6O7cTTa32lcUOvqOABhEt8fwjPeyoNM+i7A+ lZ+zcjQkiTIWrfjX/Lx18NxyLw3SjAuRgPyeWkI7IBDjSv7D30P5nAHzvstjiEBGGHNSHG2KTO5 /hWCuU4D9z8OwRnNLAXlIJG5h8JaPWefl1Iun/ySVw2NA/s= X-Google-Smtp-Source: AGHT+IH3nywXAStMc7fVsLOSc4VlZO41pla1zTMf86Ld9YGrejdTYExNnf8u2y6YSKz+yvEx7GllNw== X-Received: by 2002:a05:6820:189a:b0:5fa:7bdc:e88 with SMTP id 006d021491bc7-5fc5e7bc42dmr3039099eaf.7.1738958969117; Fri, 07 Feb 2025 12:09:29 -0800 (PST) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fc544b08d4sm930387eaf.2.2025.02.07.12.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 12:09:27 -0800 (PST) From: David Lechner Date: Fri, 07 Feb 2025 14:09:00 -0600 Subject: [PATCH v8 03/17] dt-bindings: trigger-source: add generic PWM trigger source Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250207-dlech-mainline-spi-engine-offload-2-v8-3-e48a489be48c@baylibre.com> References: <20250207-dlech-mainline-spi-engine-offload-2-v8-0-e48a489be48c@baylibre.com> In-Reply-To: <20250207-dlech-mainline-spi-engine-offload-2-v8-0-e48a489be48c@baylibre.com> To: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Nuno_S=C3=A1?= Cc: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Michael Hennerich , Lars-Peter Clausen , David Jander , Martin Sperl , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Jonathan Cameron , David Lechner X-Mailer: b4 0.14.2 Add a new binding for using a PWM signal as a trigger source. The idea here is similar to e.g. "pwm-clock" to allow a trigger source consumer to use a PWM provider as a trigger source. Reviewed-by: Jonathan Cameron Reviewed-by: Rob Herring (Arm) Signed-off-by: David Lechner --- v7 changes: none v6 changes: * Moved file from bindings/spi/ to bindings/trigger-source/ * Updated description to not mention SPI * Dropped $ref: /schemas/spi/trigger-source.yaml# * Swapped order in name to be consistent with "pwm-clock" v5 changes: * Add MAINTAINERS entry v4 changes: new patch in v4 --- .../bindings/trigger-source/pwm-trigger.yaml | 37 ++++++++++++++++++= ++++ MAINTAINERS | 5 +++ 2 files changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/trigger-source/pwm-trigger.y= aml b/Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1eac20031dc3cf921aafb8aa37f= 4e4eca1075835 --- /dev/null +++ b/Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/trigger-source/pwm-trigger.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic trigger source using PWM + +description: Remaps a PWM channel as a trigger source. + +maintainers: + - David Lechner + +properties: + compatible: + const: pwm-trigger + + '#trigger-source-cells': + const: 0 + + pwms: + maxItems: 1 + +required: + - compatible + - '#trigger-source-cells' + - pwms + +additionalProperties: false + +examples: + - | + trigger { + compatible =3D "pwm-trigger"; + #trigger-source-cells =3D <0>; + pwms =3D <&pwm 0 1000000 0>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index c37504e2e19f067b9835a28708dfd1d25700a608..d6ac6cdc6278536b5c4f81ff183= 588b491798036 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24103,6 +24103,11 @@ W: https://github.com/srcres258/linux-doc T: git git://github.com/srcres258/linux-doc.git doc-zh-tw F: Documentation/translations/zh_TW/ =20 +TRIGGER SOURCE - PWM +M: David Lechner +S: Maintained +F: Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml + TRUSTED SECURITY MODULE (TSM) ATTESTATION REPORTS M: Dan Williams L: linux-coco@lists.linux.dev --=20 2.43.0