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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA255C61DA4 for ; Sat, 11 Mar 2023 05:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjCKFGq (ORCPT ); Sat, 11 Mar 2023 00:06:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjCKFGh (ORCPT ); Sat, 11 Mar 2023 00:06:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7558ADBC5; Fri, 10 Mar 2023 21:06:35 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 281C2B802BE; Sat, 11 Mar 2023 05:06:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id AEAE9C4339C; Sat, 11 Mar 2023 05:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678511192; bh=fNduKqqPUYV6F1M5u00Pcrdw5zzaBtWuks1TRf+NJ/0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ekGcQoY+Kxgdx5e6Ghz2XIRTU9F4D7gkVIkgrfXgIk6lKjPKhj7R2DCYBfLPwFuUk cCsRAAsqAS5fxg5yC9dE9ZFmKd34jZReqAqnE6ELhb+gNwDAwtq6WFdrkV/SglVvim JCjSo8SukPYjkYRXVgLvTt2RVyswCktu5tXvpkv5ty31wTR/Woy5Alj0rj0PliXx0P cR/2dVQmtr8mGUhO4/sHPcBLqMpJ9aTpv2XAvUBbd05a/aK4QFajMBGI3CAKULaie7 mWWlkWV5B6t4uyJUJj7wBT+cy4GJe3m6NqLuF1BP2lzX95TDXZLdtjsDwsp+Kav0EA xSPW+xe3Nt6/Q== 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 8B9E4C678D5; Sat, 11 Mar 2023 05:06:32 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Sat, 11 Mar 2023 06:06:28 +0100 Subject: [PATCH v9 1/5] dt-bindings: pwm: Add Apple PWM controller MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230214-fpwm-v9-1-364480b0e4bd@gmail.com> References: <20230214-fpwm-v9-0-364480b0e4bd@gmail.com> In-Reply-To: <20230214-fpwm-v9-0-364480b0e4bd@gmail.com> To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , 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=1678511189; l=1759; i=fnkl.kernel@gmail.com; s=20230213; h=from:subject:message-id; bh=BeW75+AIFJcFrpFjOZabHWBRDLlSvckpqesK7uzTCx4=; b=2NNGG96r/jbX7m579lTO57gGBGKnbgLbl2KUHFY6kBbZJ6PtWrNhWwUmOmeUNdTEqCfjAaBWb 5/5vWMjguqZBLo4/EYgJE4AolIoIZpZIEgkUxmp1idzFfzlJVTuF6u0 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 Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; + }; -- Git-137.1)