From patchwork Wed Nov 2 14:15:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13028191 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 A9256C43217 for ; Wed, 2 Nov 2022 14:18:49 +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=2YvUvbLeW4PSlPAd8XKwmTj831hRTw5l65iXWQJBl8U=; b=EeDlTk7DSa0FqS UHM/t1WppLrccnt1nuj169jjIl9ap7Kze750wrHvYpaTh9ZRtYWTUZkPeTeKsGjJEm82hQVWwojd4 L/siBdWBhID0HfI9nVhA3JsAVV9eVNygLguORgdeoQv3gG0ShfOM3D6FxHxtAYX3eSb4AoIggJXGe l1+MfJldLjdFcmkxY7gbT8Crgzyt77rmDva9XFxxlUzUoI97Mo61xwFMzatomeVfr0hDPYLbQcqE4 g8MmhxfDwekn+3s15K7KvVrHNPch6hKTlKkOAYUAbUp1KciWD1wTTCZV8dnLieM1WXxvg1vUt1Emr 7+nXHMFZXCO2Wnj9uM5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqEYY-00BSOc-VF; Wed, 02 Nov 2022 14:17:27 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqEYP-00BSLM-Tl for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2022 14:17:19 +0000 Received: by mail-ej1-x635.google.com with SMTP id ud5so45720611ejc.4 for ; Wed, 02 Nov 2022 07:17:16 -0700 (PDT) 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=n7CAwgjrcSml/6VQVIiI+9hkAxXqxl9dmDVlzl2TbqA=; b=SvQifMPCv1Zm0tJtlh2KK7iWUt24xlxNLrAzzdv8DycRnNF02wjy5ji/02ySYAXmug f7OirZXhksnHBFG0Z3HcTZ8/xJhGwMF1zoUVUr1VxOVRRBVQVgWJaIwri+981L7/yu8e puIxwx0/ECDmMhS2ucLQ7uWfX6ikOYbynh+9cLQif9P/Kf9Kv0aZJRfxWKAh9DqWWfZO o8GWHaZcL8e66mMIBjRVrcFl7aIRhdBBhIKT3CmcqP3Y5XVEcCyNrp6Oaq4nrefewpPt oNVgm9khl3cEHV554cJzdY++s/gHoi8XfkZSjhxL+fC4RijkX5cs7TsRKXX2FNn7zSIR DnhQ== 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=n7CAwgjrcSml/6VQVIiI+9hkAxXqxl9dmDVlzl2TbqA=; b=MbTh5STRtGesZxaG2M08kEVd0cchvzJ7BRVrvLg7S6WEM/Uxf9cLS8blUQ73V2IgnU DRsQZEwbyJmUGwRXcu39regN/aPRrTZHRxxpJLHnTBp71M8JbPYStyjYxjvhChpB773K ocutl8iPXWa6t0JJhqZje1wLCkhzpB5WE5Or6zy5DKOEfyq4NjqecY/iqo15uajtSLUc 02ZSPZuzKF9FoSySQVXCh1BpERwoWDSqUZchZZ5h3UOjI+TiODuTrQZq8jsntcakJVOV M96l94Zk4havprmV78MABM1KefWnqZR/2pBKf/BO9N1WDMdJNINV5LcXvMSJpvDBt9Dq Fk2g== X-Gm-Message-State: ACrzQf3UbUZlYigLveWnc3XsW2XA0iyOYEG6whXC/UlZqEQbtFwFR6i2 bclbkQyCBZ+lWr6QBIIxbII= X-Google-Smtp-Source: AMsMyM4g0AgIlCivZHS7wYdviV9ZCChUaGRcHHJAMTYqQFtz7k2phHjMitGG8OdmE4/ZJHVSr6DDEg== X-Received: by 2002:a17:906:ee81:b0:77e:829a:76e9 with SMTP id wt1-20020a170906ee8100b0077e829a76e9mr24569110ejb.207.1667398635831; Wed, 02 Nov 2022 07:17:15 -0700 (PDT) Received: from localhost ([88.227.60.86]) by smtp.gmail.com with UTF8SMTPSA id k8-20020a17090632c800b0073d81b0882asm5412397ejk.7.2022.11.02.07.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 07:17:15 -0700 (PDT) From: Sasha Finkelstein To: 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 Subject: [PATCH v2 1/4] dt-bindings: pwm: Add Apple PWM controller Date: Wed, 2 Nov 2022 17:15:10 +0300 Message-Id: <20221102141513.49289-2-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20221102141513.49289-1-fnkl.kernel@gmail.com> References: <20221102141513.49289-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-20221102_071717_981480_BCC82B69 X-CRM114-Status: GOOD ( 14.27 ) 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 --- .../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>; + };