From patchwork Fri Jan 6 13:58:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13091399 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 27FF1C3DA7A for ; Fri, 6 Jan 2023 14:00:44 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RZ1I031qUPTw4gEr/FWAVMvhPBQLGM2bh2JV7ZVpk3M=; b=jsKKcRigj3owB3 yV1PaM1sRBY/gDfZHNtSUGz4oKpa00QB6rUZEMBN2SFhnnW4eCJlNqcM5UBH8o4U2UattXpJkUM6N B/v6YorPfNk2+sSWdv7vGlfrAABgFwnRm1FP4Ri8Li90I5IJYmSsMESkO+DUIpLEQGfVwX/HvZq/X adzvCAfvyHwLjATkPa7hkb3cMjqgVnVi+f+ITG61GU+cCcPGMWX6ULTdpna8P/loXEDrXfBTp1HFA xS05dN+JRF0vQ05XklF5jgTzsUUKstIgodmRqDFWioTzumEpFUaJn0zvIaYQ00IwRu5COtX63nLYx ogPH0o2KrD6PkgKINlaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDnG8-008cgZ-Bt; Fri, 06 Jan 2023 13:59:48 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDnG5-008ce0-5q for linux-arm-kernel@lists.infradead.org; Fri, 06 Jan 2023 13:59:46 +0000 Received: by mail-wm1-x331.google.com with SMTP id o15so1098674wmr.4 for ; 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=ncRXfZEkNRcwzfV54gaRLOqzf7rBEu5h3toZsU31nbb/t4Q0WeavH0hx3607nRE+9z +YfC9GbaC+vW0xVYTssUQ4wxXBtvyzJQJwMazPO3l2lVVt+s85Co/sP6WbqUkLvX/Co4 NwZiBWpJYaC0cEt7KU2wNut6CUU7YjXIUUZTLInqmcP3SgxluxA5GDhI//HgeeqXscPP 5SIMfsPjEykueYp2pfbXH3gempXn2bLiZAOvJgynwNNEfuMGfNWbrTtRSnicUgmZ9tMV emKVk7hieGPRTlEdnSuhDw2tg15f6+45o5RR34MeGQY/NbdHglPocPgSzsISbJm552ja 20lw== X-Gm-Message-State: AFqh2kpyiJcADRxA/elxdbmKytRcS8pRBQr7tL98tGHd4/npX93qyXne 0ls2v6KPL03SOWetc1IzIwY= X-Google-Smtp-Source: AMrXdXuygvfm8mRFWYnSTzY5jUBvxaGI27pFQrKR8DN0dYm+bpUC4Egl9CsTDYkvmgxAFoOm5QyGXg== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230106_055945_237570_4C8FC01D X-CRM114-Status: GOOD ( 13.42 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; + };