Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4609128rwl; Mon, 3 Apr 2023 07:20:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZyPp5xHRpuVe/hqzJyKr9vV6rA1Yqj/lok/MW9mL43XHZn0jKiN2e47Ylg0O+8F3GiSq/x X-Received: by 2002:aa7:95a4:0:b0:626:dc8:b004 with SMTP id a4-20020aa795a4000000b006260dc8b004mr37237012pfk.26.1680531613570; Mon, 03 Apr 2023 07:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680531613; cv=none; d=google.com; s=arc-20160816; b=YgqFSM1NbbGsWp2GHgu7ACvnKPT1GT/cw45LIgOwNYgqsGIlMmm+uUZi1j8pnY7qFp Ktxv7mWqFiY9U4t3Lu2prvIQ1eEVWpagHlcwsnA/0M5c1GHcbUVEcwPMfMRfbE/TApz9 Sm/CBAplqLUa6i/a4H05ki58+PtrPMXCr30oEkU4mLXjP83muGiwKVJ9O4iJ8ZP8fCQL XrRvOhR/n2TgDeRp3MkyXsgKEs2GH/wKPqlCHA3+tKl2lgjV+ObxOvl9JDu8QDURtO05 kzc0JtaEPldqhx+UcRmiZFDoGXtSLlp4WUuEW7pSLF7VzwXE07HM1lyIHYqYdg4tz8xp W2qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nJYacimGEnezkdEDWVYapUfFz6VSEbh+cecLDwNQpPI=; b=r0M3qapi0l3bIkNvWSzYhOdvR0tW+0oGI7rNrVRikalHdiqTunXX/5D/qF64mvaWaW dgkQfXi5kGY/7AIzR4//ki14bONvNiftAiXH3S2ETUuPWEcvSzxanaC/pR8HtlhhvbVR yfIsDMgLRWCEG9yALyGRQOjOvPSZWVltQnddI585iAdBcTvNuCG+BTrAolOJh8vnHSoy VdZGYFNF4xLDx7tavkSuf4lnPlizlGG50f7RaEDQJBaJgZpjn6rtHloMVUxg23KhwYby jfoLQpDMzCkh80toq/mw920j3gYuKe91MS0p4ikKCVS0wHQOsiPFpaOzb+rFEs+tOk9e E2tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OgdnG2Bj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f36-20020a631f24000000b004fbfeed0847si8110005pgf.193.2023.04.03.07.19.57; Mon, 03 Apr 2023 07:20:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OgdnG2Bj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233092AbjDCOTn (ORCPT + 99 others); Mon, 3 Apr 2023 10:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233056AbjDCOTf (ORCPT ); Mon, 3 Apr 2023 10:19:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 724842CAC5; Mon, 3 Apr 2023 07:19:33 -0700 (PDT) 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 1C342B81BAC; Mon, 3 Apr 2023 14:19:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id B5CB8C4339C; Mon, 3 Apr 2023 14:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680531570; bh=I2XCbxG9Cbk2qSclumqecDS7C4Bp3/lDRqXhcL+ocBo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OgdnG2BjHoXDgR8FvFMFVT3PPtnozlBqAuzBkxejQDz6peADWPYvVG+246aqJh6YS Oo8HHoLB4Nx5jjOCSMDt5+XT9NlNyziIbX7BBkShXpKO80q0xlg6rVTrfvgfudIEYM LvFTZqCWItqqpkYqNOoAaU2wg4/DFDh7/Mq59xwLocrY0hdIyNAb1BKIVn5m35TdOD qF4Sr+XQLw8wPVLbamIbNWC+0DciG7qzGOQbEsNocI6jb5AlV7VrvfWGrBiWhmarUo BLENzNtxT1GyYcGJJKgCGDZpZcBkXRZsz2TMDsc/htcXUSBmO9MSjdGnm0UhOu7aoi ci1uyLncNrApw== 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 A51EEC761A6; Mon, 3 Apr 2023 14:19:30 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Mon, 03 Apr 2023 16:19:19 +0200 Subject: [PATCH RESEND 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-f3094107b16b@gmail.com> References: <20230214-fpwm-v9-0-f3094107b16b@gmail.com> In-Reply-To: <20230214-fpwm-v9-0-f3094107b16b@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=1680531567; l=1757; i=fnkl.kernel@gmail.com; s=20230213; h=from:subject:message-id; bh=fzyNZVqrFDfSog+FhRnUURMW1j9jGTz6NT8Jga2kj0o=; b=wDTSDAUYv+YS7AQm51X0oCt+TNnZit097fgSHKyaRA8XFZb1Bigm3JPCyRN/bU2glqWtE1K1x azQ0CiYprBRCOUhptGHBTYOuUaHmO3IRn3VirrYCzdTjaJXRSAFM/K0 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: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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-143)