From patchwork Fri Oct 28 16:52:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13024084 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 DE490C38A02 for ; Fri, 28 Oct 2022 16:54:54 +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=tfNutfytsLdHDcT82nFkHk4x6pMiLgLXpbcr//NDE5w=; b=oOwH0mhRwlBPXu dzwTccjvGxp1ybm01lon3HqdltBF5hEQVvrzuhEQ2plC011nCQodKpwxAGToOmvOq4sPqEG3EwM1u k0P1btURBtVrsBZvtWna3CNHuvPqwMWUN6TLaxgTV1pFrXD1Is6FBD+slGRgP2+77ABXrevFUARUa RgGH8rf2hR9Qhy6mFaEu4B1fJYuHo791wKlzjyQrHU+mColTnE2hiXA8gu/JbYO8heMzMSs70Hufx j+HII8q1flYRDmt0Q0t4UdLtNeZ9KXwdBW7JSPNHc218s6FE1eSFWi+MxV6Jx8G0qu4NWS8KetdfB /2J8LgDhrwE1K/ippZIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooSc3-0013Yr-Ui; Fri, 28 Oct 2022 16:53:45 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooSbt-0013RV-7i for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2022 16:53:35 +0000 Received: by mail-ed1-x532.google.com with SMTP id y69so8728146ede.5 for ; Fri, 28 Oct 2022 09:53:30 -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=C33seGVoVdC4qa6odCGMM1UoRMAEyPpQFpcRe9CmJUc=; b=ovzgyGUxkoVOneqlKtvwiYv658V+dDonx3OJ+SBev41qlLDg1NpzyH+GqBCCnE5/wv adSab9LjklbHjXr2q9nMNuRdXkNXuB2fnFCTEWPh+xrJVTgfyXf3s8qbhbhrf373AULi dnpRsp+VcGt8w0RhxPNVBx/ZjfqOBxgbXFuABBSweMNzZmHg5YBRtx4Rj+ozu4bJhiI3 B1X9dmEuc1tqAar4mMczvCBeEQ4W/aQx2njMj4QB2SodIrSm7s9C6wtJ22KYRAtH/4Jk VHPMotD+KziMDnWeFqOY3ADQhN5TcxjbT712+cPKrZ1c0PujS0Yj8VgRasDErFjMrXCv PBpQ== 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=C33seGVoVdC4qa6odCGMM1UoRMAEyPpQFpcRe9CmJUc=; b=Wt2hTyPHM/ZiSb2N47+OBV8yDuKDuZJSs6zbgAX23lqBA6LvylpshMNnBMm8vdYNUU HEDVGoBfYSehvQS06Yd4QQILwn325wfdW2uImLEMCIKMTgmmVBIl9FeLYqmv6C8EWiwF w5IYJmkl4vrdaZ9m1zRsCPeD0dkpXKtluehSDPa1cSYxCsLUjtvmOlduYeyCSAu96/am 6eqtjmSQ0xwUrp4S+OEwto7Pq+77/R8yITMUrvVdK5X8onS/TKWk2AUQOACzH/epFxWE Vyl2ORJBXGIAMyAk+wSU5Yusqu5nbqwRN8U3D0uex2S/F2ZrV3mEXNl32irgESKisR3k 8JaQ== X-Gm-Message-State: ACrzQf1t87OSMrxiR+rlHuWERz6pAAnsX9ez9lqxxDMCKWi2s7jJUQFC flybKI9psQ1WI45mcN75N+M= X-Google-Smtp-Source: AMsMyM7qjQeg/XqtG5uytmvtDH96ok5pg9w6JiGjPO1p1bwA9dri1+cSZQDgCvElbmA68t7nLMDJIg== X-Received: by 2002:a05:6402:5ca:b0:43b:6e01:482c with SMTP id n10-20020a05640205ca00b0043b6e01482cmr340391edx.189.1666976009647; Fri, 28 Oct 2022 09:53:29 -0700 (PDT) Received: from localhost ([88.227.58.131]) by smtp.gmail.com with UTF8SMTPSA id j22-20020a170906411600b0073d638a7a89sm2411522ejk.99.2022.10.28.09.53.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 09:53:29 -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 1/4] dt-bindings: pwm: Add Apple PWM controller Date: Fri, 28 Oct 2022 19:52:13 +0300 Message-Id: <20221028165215.43662-2-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20221028165215.43662-1-fnkl.kernel@gmail.com> References: <20221028165215.43662-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-20221028_095333_412954_83188D21 X-CRM114-Status: GOOD ( 13.60 ) 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 --- .../devicetree/bindings/pwm/pwm-apple.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-apple.yaml diff --git a/Documentation/devicetree/bindings/pwm/pwm-apple.yaml b/Documentation/devicetree/bindings/pwm/pwm-apple.yaml new file mode 100644 index 000000000000..39dc32e00a3f --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-apple.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/pwm-apple.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: fpwm@235044000 { + compatible = "apple,s5l-fpwm"; + reg = <0x2 0x35044000 0x0 0x4000>; + power-domains = <&ps_fpwm1>; + clocks = <&clkref>; + #pwm-cells = <2>; + };