Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2423587rwl; Fri, 6 Jan 2023 06:19:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXvb4Tiy7FIyPYMka73dCkvSHjbVjgsQpibawwOG9Y/hRl8b/BTIIjutav81EnZFIZ2Xh0mP X-Received: by 2002:a17:902:7c90:b0:189:e91b:c18 with SMTP id y16-20020a1709027c9000b00189e91b0c18mr55651343pll.32.1673014748486; Fri, 06 Jan 2023 06:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673014748; cv=none; d=google.com; s=arc-20160816; b=Lj9Qb5er9Eus9sVBehFF7F/+0lJtr7RfeWDXmAGCWDOunPQ29Mo6hVUVHuEs0KcywK pn4y5SqpVGWUkEbpdRnY2aFbIRNN/FgrUuqVq08JmvxcHyufzDh3l22iVDK+RyC5/d1H 6gHBnQKuMiRrWxT/4lhYqQWYVpjVbrrC/8ciLO4fCIHSN44p7L2UNtXdnn/8HpPMq6Xf UeJQEh/QvdrWtgH7KGV8W25LB60B8nZZUARVdc9Dtjz+kCwBrVswPdDvj1XxCZ55AQIY pYK/ijY2AqafUx+Q0n/ehJ44q9KR3kdh1nzwCiKg/VL1jd4Fawu1WFSN0HY/qxwOzDxa 6CJA== 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 :dkim-signature; bh=6k6iH6ye4eNPwympT1HKSV19Z/5AZl0oVvTiapSuckY=; b=0pPzaMnR0P1m54rgBXaH/7q3l1KS4KS0ZKgExm6QaWWOmceoLvsp4lirDLiZY15iHv OJ3jAoJdGEOUOG8W+NOJfE2Xo+Iu84EiG+ZNKu3V8L0vu6LjGDD76/r/Gj21CJRchSdU f/taB6SKkRCcQ6hhVED/A5FzL8CFXBJ4KvEXNrM6PlPL/symclKDTXT/9/PSLNa7bRDJ /13byhivNMhjPgaZqOC0QrspTjMk1x3HgK5wZZ2TfmnJeEmpzCeVSo6HJp/pSs6skMYb a4wfphjU37GaUxMiOsw6tAQm57AGMjilKpAIhWgeLJdsbiKncdY3oZnbmZNy706S32R3 piGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d5wSGisg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg17-20020a17090326d100b0019317aff5f1si86620plb.603.2023.01.06.06.19.01; Fri, 06 Jan 2023 06:19:08 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=d5wSGisg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234616AbjAFOAG (ORCPT + 54 others); Fri, 6 Jan 2023 09:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbjAFN7r (ORCPT ); Fri, 6 Jan 2023 08:59:47 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 944A278150; Fri, 6 Jan 2023 05:59:44 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id ay40so1112367wmb.2; Fri, 06 Jan 2023 05:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=6k6iH6ye4eNPwympT1HKSV19Z/5AZl0oVvTiapSuckY=; b=d5wSGisgrvwYafyq3ycpqsF857ErZCeCRhvsVrA0CxojhnPy9m3G6+nR0o9CYOCKmo i1y22ry6WnjF/LXPgItplCXXO1SrDVbma1vah1FnmoxWLn4H4YszS9Qmkk50umr0kFKI CsDUoT/xIu/DzkgvRHNgUqPvRPIahVJnjkKyUHCAcDbtgXphQ6KNff85c+4ZFa2JuVnm Twrir9GN22TLT0YA4g0x6z167dCCtcCHWQUxwedJhNhoHU4Z0GI3SXzGhPpshJltvOXZ eD5twvkn68nUmYsqXEqH/Q35X3BFfWXqL8RRpNX568bS/rHGlifExpQFdBR5PjN8N6hY LXHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=6k6iH6ye4eNPwympT1HKSV19Z/5AZl0oVvTiapSuckY=; b=vYZfW+kvfyOTJPgUvT3Fte3iCkZF2FJ4bAI6Tq0jDpZigAwYhj1GR0ovCCx01q/NkY htWCMjJupdeS810vlYSiflA4PJCF/rWosssmcqGVkxyUuhgJtSmNA+EJJldOA4rDsklS MrPGqmyoScm2ExLPy/kvVnLdooH60ME8TXQRrTZkKRoq16PSkLprmoH5RMSiR/U+7vyj J5QtO9ZX8mvfUYSQ7+dkDokmcVLorbQ++ucMeSbDoBvxFaZ+xkAMd/FbJ9YtCWUereQ3 blj3QmkMUZ/g6bjd8mdDbVni00M15/9Qi6WoK5JxpDmkm+eOisIMKJb+7FAy48NRpf9t lVdA== X-Gm-Message-State: AFqh2ko8NjIeZItPRtodB9UgFXNwem8Kjx4C0UHXhiNOQCD1GJfEXNb+ aKR3P403YBhyeCBW5kDTzB4= X-Received: by 2002:a05:600c:2d91:b0:3cf:735c:9d54 with SMTP id i17-20020a05600c2d9100b003cf735c9d54mr38771335wmg.1.1673013583162; Fri, 06 Jan 2023 05:59:43 -0800 (PST) Received: from localhost ([212.253.112.114]) by smtp.gmail.com with UTF8SMTPSA id o9-20020a05600c510900b003c6f8d30e40sm7279485wms.31.2023.01.06.05.59.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jan 2023 05:59:42 -0800 (PST) From: Sasha Finkelstein To: u.kleine-koenig@pengutronix.de, thierry.reding@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sasha Finkelstein , Krzysztof Kozlowski Subject: [PATCH v6 1/5] dt-bindings: pwm: Add Apple PWM controller Date: Fri, 6 Jan 2023 16:58:37 +0300 Message-Id: <20230106135839.18676-2-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20230106135839.18676-1-fnkl.kernel@gmail.com> References: <20230106135839.18676-1-fnkl.kernel@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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 --- .../bindings/pwm/apple,s5l-fpwm.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml 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>; + }; -- 2.37.1 (Apple Git-137.1)