From patchwork Fri Mar 10 18:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein via B4 Relay X-Patchwork-Id: 13169953 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4FD92C6FA99 for ; Fri, 10 Mar 2023 18:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ICO5/VEmdfjvf2h4A3qOUpuGACpq/W9Dj4kpSL+DxwM=; b=kmSoynK2HLPT9d L7aT2pcb/6+YgflPPzWMhJQTcw+Q9J4vpI8nHWAWZJ0WlW74pztYxtrjlYKL/9ffy5cXRS3MQl4Sw t6DjpUZJI9C390j/VKjd5FTQVaye3tnISOe1u+K4dorcEU6WF+N+jbwivDQdEt/WLSbuPm4y/uAsj 1dt84UkjihNIvma/2OmyTNDM20fwVwyu1EUuJIg3TYPvMsmsSOB7uIOgPyZDSv4bj4eWYwaNzGFN0 FnyouUtUzRoHbLwzBVeujf3qVTLuUIGExjYFM85XLbEYaYG7gWPzk/v/9OKHJktxDXlkiX08SQqfj K+76BZmq60YiJVMSufVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pahjc-00FnIx-4n; Fri, 10 Mar 2023 18:44:56 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pahj0-00Fn51-LX for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 18:44:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 0151ACE297A; Fri, 10 Mar 2023 18:44:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 39E0BC433EF; Fri, 10 Mar 2023 18:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678473850; bh=fNduKqqPUYV6F1M5u00Pcrdw5zzaBtWuks1TRf+NJ/0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=O+kQGfvDfMr4K7ttGaXYLHW42p1+bGSyaXgGVIrfNWDGvhHjk/bBarxOoun/fjsA3 R++CyI4s01XKNiTWWP1SYM7Q69/zyVDzEouBv6ZxDiqEUFzoIvr3zl7CKZAytweTZc W9tx9fRFIQDrPScba5LKQBjJ44vRlbcMmA+W9ssCIk1f3OehTO6YFQByoRTEQT64Zc 9EpvMco7+2kxa/PiUgakMqLnUZ08MrpaGawHkIuXCXf0YmewL5eN2JnjIvnwL93jMB 5LJpsSdev0TF/5V9aKujzxIglD50QpCz19xZY+DFNwbDYF1Fb2XBpq0Hq+/54KP8sA uc6O96YC/scnw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C3A5C6FD1C; Fri, 10 Mar 2023 18:44:10 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Fri, 10 Mar 2023 19:44:07 +0100 Subject: [PATCH v8 1/5] dt-bindings: pwm: Add Apple PWM controller MIME-Version: 1.0 Message-Id: <20230214-fpwm-v8-1-65518a0d4944@gmail.com> References: <20230214-fpwm-v8-0-65518a0d4944@gmail.com> In-Reply-To: <20230214-fpwm-v8-0-65518a0d4944@gmail.com> To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , - , Sasha Finkelstein , Hector Martin , Sven Peter , Alyssa Rosenzweig Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678473848; l=1759; i=fnkl.kernel@gmail.com; s=20230213; h=from:subject:message-id; bh=BeW75+AIFJcFrpFjOZabHWBRDLlSvckpqesK7uzTCx4=; b=/vTGd02mkahO4nOW3DJTyFY7h2pzCXFuk1VQ99SdbaFb+bj7m7O9RB6ZxgZuRhbVaXY0cKb1/ JWnTavY++JJCkpOU5xYbvCd3JLp2XSgpiNqeGgUdh/NBKc3pzYSgJsp X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=7LFSAJtxIWAs9LzCIyX0sSvCZy2wQTyEIu1zch6o804= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20230213 with auth_id=28 X-Original-From: Sasha Finkelstein X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_104419_431363_DADD6C86 X-CRM114-Status: GOOD ( 13.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fnkl.kernel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sasha Finkelstein Apple SoCs such as the M1 contain a PWM controller used among other things to control the keyboard backlight. Signed-off-by: Sasha Finkelstein Reviewed-by: Krzysztof Kozlowski Acked-by: Sven Peter --- .../devicetree/bindings/pwm/apple,s5l-fpwm.yaml | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml b/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml new file mode 100644 index 000000000000..142157bff0cd --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/apple,s5l-fpwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple FPWM controller + +maintainers: + - asahi@lists.linux.dev + - Sasha Finkelstein + +description: PWM controller used for keyboard backlight on ARM Macs + +properties: + compatible: + items: + - enum: + - apple,t8103-fpwm + - apple,t6000-fpwm + - apple,t8112-fpwm + - const: apple,s5l-fpwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + "#pwm-cells": + const: 2 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + pwm@235044000 { + compatible = "apple,t8103-fpwm", "apple,s5l-fpwm"; + reg = <0x35044000 0x4000>; + power-domains = <&ps_fpwm1>; + clocks = <&clkref>; + #pwm-cells = <2>; + };