Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5791538pxu; Thu, 22 Oct 2020 11:06:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJGGtRafDNN1ns2IAifHn6FrRsLkFRl2diEMc5QbMNSutyhB1j/CNNhtb1VGuyMCOgrnOf X-Received: by 2002:a17:906:4d44:: with SMTP id b4mr3265541ejv.131.1603390010775; Thu, 22 Oct 2020 11:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603390010; cv=none; d=google.com; s=arc-20160816; b=yXJbIVpfMGk7P/ZOqhrPkjlm4PrMscGZCE4GdZmO+rKfnH2Ym/ZB4Kf/zcKXXVU7NF xtf4IpcwSedUwukX3WdFe1RUi1FZhpgawYYymUz9WwQRFII9SKoRNxUUKoL1Mde5NUY2 Ep1QOT9zz7CxeqPIlEvWt+Kx52HGA2ID8p6xe/Zp1oMezdRDu2XDNDlFch4NKnqUbXP8 SkOsQkf091gIvs9IVIqwRU2cUMdvI5GL2fWtxNmI8BF8jc/h4y7s8SwtFXx4HChatsSf DeB9HAlXnp/83uIvjui2n852O6sQfPnRgnMADe0kbEIKWCIInJNmfcAzvyi8JJZBxKEZ v9ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7/ApqOgT6rJSIW3AcKna1ofio2ozDFN/t+wgZI+j9B8=; b=tIDWJuu6qT9yvrn7B3sd/7P969TfPeVavreo0646I7Uob9L5ynYh023kDf+Lu6FKmC d4+l8J711npvvlR7pcBGQCJKjZHY/2dJPF/9zffDRuuU3wWMvSXnVFwW67YgvJLV9DEb 1nhx1HSANurbNBa8pl1Pver8DdUoZgyFOde/2tFNiMyO+MveAn60YRgcJyQMmnyHvcMd ok7+oJLSe4BK4PNm4qCf4AS58k6ADzFlKGzXPjgffenkgOIIPQY8ehRQokbr4yIyC0Ea dqIdsXJoyLpPj7XRNdgKRnNrvThrkP/QqrLEH+rCzXk3WTTDCgX7IfE4Wvtc+1mo3YZv l0qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si1558204edg.229.2020.10.22.11.06.28; Thu, 22 Oct 2020 11:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S368976AbgJVP7h (ORCPT + 99 others); Thu, 22 Oct 2020 11:59:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:48766 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S368920AbgJVP7T (ORCPT ); Thu, 22 Oct 2020 11:59:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 32E0BAC48; Thu, 22 Oct 2020 15:59:17 +0000 (UTC) From: Nicolas Saenz Julienne To: u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Stefan Wahren Cc: linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, p.zabel@pengutronix.de, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, linux-clk@vger.kernel.org, sboyd@kernel.org, linux-rpi-kernel@lists.infradead.org, Rob Herring Subject: [PATCH v2 08/10] dt-bindings: pwm: Add binding for RPi firmware PWM bus Date: Thu, 22 Oct 2020 17:58:55 +0200 Message-Id: <20201022155858.20867-9-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201022155858.20867-1-nsaenzjulienne@suse.de> References: <20201022155858.20867-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PWM bus controlling the fan in RPi's official PoE hat can only be controlled by the board's co-processor. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Update bindings to use 2 #pwm-cells .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 20 +++++++++++++++++++ .../pwm/raspberrypi,firmware-pwm.h | 13 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 include/dt-bindings/pwm/raspberrypi,firmware-pwm.h diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml index a2c63c8b1d10..8029ce958c48 100644 --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml @@ -64,6 +64,21 @@ properties: - compatible - "#reset-cells" + pwm: + type: object + + properties: + compatible: + const: raspberrypi,firmware-pwm + + "#pwm-cells": + # See pwm.yaml in this directory for a description of the cells format. + const: 2 + + required: + - compatible + - "#pwm-cells" + additionalProperties: false required: @@ -87,5 +102,10 @@ examples: compatible = "raspberrypi,firmware-reset"; #reset-cells = <1>; }; + + pwm: pwm { + compatible = "raspberrypi,firmware-pwm"; + #pwm-cells = <1>; + }; }; ... diff --git a/include/dt-bindings/pwm/raspberrypi,firmware-pwm.h b/include/dt-bindings/pwm/raspberrypi,firmware-pwm.h new file mode 100644 index 000000000000..27c5ce68847b --- /dev/null +++ b/include/dt-bindings/pwm/raspberrypi,firmware-pwm.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2020 Nicolas Saenz Julienne + * Author: Nicolas Saenz Julienne + */ + +#ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H +#define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H + +#define RASPBERRYPI_FIRMWARE_PWM_POE 0 +#define RASPBERRYPI_FIRMWARE_PWM_NUM 1 + +#endif -- 2.28.0