From patchwork Tue Jan 23 22:05:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 765770 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 5F2F74E1D0 for ; Tue, 23 Jan 2024 22:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706047529; cv=none; b=Ri8k+coCtN2KqLvbUJc2WhZGeAda7varpgBssiE+e1UJnA8b6JZ439a63f3RbKAQu5X/oPec6RtazykrJC+5Oge1s5EyFe2qdQudOxs/guCedrPPbfpTXxXbBBS19UDvyzH2AWx9+1hjPorNUuHHcBLbrwXvioSAtQYlEr79FXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706047529; c=relaxed/simple; bh=anPJRLvgFfoVKonfrqY+CAfoMBnCL4+TiwFr4Nj5IWA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qxzf/cJWNfZj42Dur9rtLTs+fME54cXBX4pioE0mcDI8d9nTuyuxdtmX22hxJOiJMP6oI0pmPbx7lLduXAbZEcO0Y/qAfc12Cd0ioVhCam7XBZekg/zMqeRM8riu2RXDsqg9Po6g4Y2ufvg/mnITN5pUNvzyDQm+nKcHyEws88w= 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=qbVAC2vD; arc=none smtp.client-ip=209.85.222.180 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="qbVAC2vD" Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-7834a91b086so375841785a.0 for ; Tue, 23 Jan 2024 14:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1706047526; x=1706652326; darn=vger.kernel.org; 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=3E9jUO/PvaC+94R5jes7948yznQ06BHfDuuwd4Z3Mzs=; b=qbVAC2vDxAacoZ0w2VjXY4XQa1MbVGHQKzlN1nHaXzsCguIcg4MgJYmUb+KyXxrOcp twaRZlVwHcMMSVgvQCTrqndbt8vhqe/yRn0F7tAKVDgrwTL7nlLHPpBILQ1WhEU1NAxw 80yVLRi6NIMx/2gbr8jqPHvAHsxj4pVhxQ3Vt/FU9J4pMD140ZhJrTxTB7lvNK5H6o7e Mlk7Nze2UQzy4zso4BsZenTfAfTF7APj01Py5Ru2W2ttJtZiZta3XWoli/xa3hjc3CN5 OnkpcJvAGwgziXEDayMhcCbtTvKWbDT/Fq3/ALVeK5eV9W8tyKR5Prdae28+L3QdX+CK q6zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706047526; x=1706652326; 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=3E9jUO/PvaC+94R5jes7948yznQ06BHfDuuwd4Z3Mzs=; b=TinwTAULH2/v8F96OiXFuU+7PsIeaN4ReTDm2mEOIgAil3maUcTrLW+5H2iavqfuck NMt/jcib47tXg2c5L9Pxjq0MiCp4/rIBds/6wJV69JrTqcz9Oidhv2QwaO0L6zFC3u+u WXkHv33Ww/epcGwlB2GKTt3EF6znw7+PRE1sV45KHkZriNdeuXeS+9CBYptSrOmK7dWE dCmruZhgL+/lSlZcwxy+OFvzwne1l9f1gd0XozPsUWRYSbYG3y4OZJD7u+Dg/c7MydOJ m8C2wtz5TGBUjGFCBnFWccmRWtVXx7tLaS60aY2+4x4Rl2S+h/mcORG5y1JaV52Kk02g H5Vw== X-Gm-Message-State: AOJu0Yws8uMaAIPmkvmpNNoDRJOcXiFhYw7g0fJ7l0071efyc100upWw aF+6D3aU7XYZubioXa6BMnwvpz5sUiOvSDsjKaiHFzvNzCf2+YEdfNAAM6Uu7ho= X-Google-Smtp-Source: AGHT+IGNBWALoN8Sbo50AoIaWBKTVjaovPRpAwlxEUdSGzKKXO0xqE90mgpIQFOKaOHPTlD6VCPqdQ== X-Received: by 2002:a05:620a:1276:b0:781:e4cd:785a with SMTP id b22-20020a05620a127600b00781e4cd785amr397331qkl.21.1706047526304; Tue, 23 Jan 2024 14:05:26 -0800 (PST) Received: from workbox.taildc8f3.ts.net (d24-150-219-207.home.cgocable.net. [24.150.219.207]) by smtp.gmail.com with ESMTPSA id y26-20020a05620a09da00b007834bfeb0e8sm3425402qky.51.2024.01.23.14.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 14:05:26 -0800 (PST) From: Trevor Gamblin To: linux-pwm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, u.kleine-koenig@pengutronix.de, michael.hennerich@analog.com, nuno.sa@analog.com, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Drew Fustini , Trevor Gamblin Subject: [PATCH 1/2 v2] dt-bindings: pwm: Add AXI PWM generator Date: Tue, 23 Jan 2024 17:05:13 -0500 Message-ID: <20240123220515.279439-2-tgamblin@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240123220515.279439-1-tgamblin@baylibre.com> References: <20240123220515.279439-1-tgamblin@baylibre.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Drew Fustini Add Analog Devices AXI PWM generator. Link: https://wiki.analog.com/resources/fpga/docs/axi_pwm_gen Signed-off-by: Drew Fustini Co-developed-by: Trevor Gamblin Signed-off-by: Trevor Gamblin --- v2 changes: * Address feedback for driver and device tree in v1: * Relocate "unevaluatedProperties" in device tree binding * Remove redundant "bindings for" in description --- .../bindings/pwm/adi,axi-pwmgen.yaml | 48 +++++++++++++++++++ MAINTAINERS | 8 ++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml diff --git a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml new file mode 100644 index 000000000000..63461920a362 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/adi,axi-pwmgen.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AXI PWM generator + +maintainers: + - Michael Hennerich + - Nuno Sá + +description: + The Analog Devices AXI PWM generator can generate PWM signals + with variable pulse width and period. + + https://wiki.analog.com/resources/fpga/docs/axi_pwm_gen + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: adi,axi-pwmgen-1.00.a + + reg: + maxItems: 1 + + "#pwm-cells": + const: 2 + + clocks: + maxItems: 1 + +required: + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + pwm@44b00000 { + compatible = "adi,axi-pwmgen-1.00.a"; + reg = <0x44b00000 0x1000>; + clocks = <&spi_clk>; + #pwm-cells = <2>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8d1052fa6a69..8a4ed5545680 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3431,6 +3431,14 @@ W: https://ez.analog.com/linux-software-drivers F: Documentation/devicetree/bindings/spi/adi,axi-spi-engine.yaml F: drivers/spi/spi-axi-spi-engine.c +AXI PWM GENERATOR +M: Michael Hennerich +M: Nuno Sá +L: linux-pwm@vger.kernel.org +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml + AXXIA I2C CONTROLLER M: Krzysztof Adamski L: linux-i2c@vger.kernel.org