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: 12462 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp938749wru; Fri, 28 Oct 2022 09:59:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q166JsFKUhOmN/JrXe13KOp7pJOmTht0J8jLYRXIC3HwfU34XvSrvbpVEXmI2NdTIttLh X-Received: by 2002:a05:6402:5406:b0:452:1560:f9d4 with SMTP id ev6-20020a056402540600b004521560f9d4mr353215edb.333.1666976377046; Fri, 28 Oct 2022 09:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666976377; cv=none; d=google.com; s=arc-20160816; b=qYFeAeFNGt2vn9MPfQgSy3ijxPn7Yg+Akhvyhn3qjjx3evItEiX4MiSLJyp/d0JUD7 5bLugtcYmiZ/xz7l8Otv0/Xx/KrH5aRMBTbyAxc0/Ys3uHWBlX2vOo4nGRVsDhYuOVq6 HPfzRJK7x9LrDJNgtaXJQocUV7JkASK3Tjv8nH4bk3emUS8ujcxw6zn1tKcpC3T/yMES Pkk+zRTcNIxeeNWXKOHEnIXKWqKXnO/OrmuMFM1AsAZmqJdNgN13Nx5s8imL8ITqxrQ1 iCKqsi0Fq6Ld1coWQdq70MPm3Z0m9Arem2YT9fhV8d3tiJN+Egqs4ox9cOiwEi620wrs /HRg== 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=C33seGVoVdC4qa6odCGMM1UoRMAEyPpQFpcRe9CmJUc=; b=GVAtmHLWF2489hu+S+4iza5SflEDfh3/lWZqZ4031L2LPLk65UKazlQM28qv9UP54O PRJk2EY1J+yZ87GcLJhejjmZBK2277QTz2EUpHWAENlQemooCsgDnoadLqBxJa17z1tR LyTrytgQkOne22SulllUk1o/MNDnSNiuq7y+lbQsX2zqb91DuCEYFDlGmUBUp7HGXRXT f7yjMMB6qtK6/6MEuEgXYTta+mXu+5NuJajtDmyvPEckjPV10dRY/m58PFh0ALhdDL0f 3KXRxCNDSZeNBK7QbCqebNRWSDEdRJI0vFj2z3HOh7P5Xj4Vx9lh4Z/Loyqgr0e3vFD+ ICWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ovzgyGUx; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a508710000000b0045beaf03ddesi4713170edb.411.2022.10.28.09.59.13; Fri, 28 Oct 2022 09:59:37 -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=@gmail.com header.s=20210112 header.b=ovzgyGUx; 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 S229936AbiJ1Qxk (ORCPT + 99 others); Fri, 28 Oct 2022 12:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiJ1Qxb (ORCPT ); Fri, 28 Oct 2022 12:53:31 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ADE720FB2A; Fri, 28 Oct 2022 09:53:31 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id z18so3721510edb.9; 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=ONX7DpgGtF38DMEf7KTw/9jLHiLuLshgW9ZZwZGwPuHYnEg/TDVtuZ4KqgnWZ6nOa4 Gm3K4p3fiIb+RKF0TT+F43eHlBs+ZP3unUBT3ToCVI+CPpQOTO6wxxSl9KJOHJPPh3kQ 60bV6mlSrjJyfEI5uNXXoVcFputl+c7knIv4z8uu9kDl7IgKcyxIiiq2pGvPwj2HNoQk cVIccGB/rg6XzPUPBt+g0ZyiLyHc1ztNeQAX0CrsZZEbHZ9M3ozeyE94UzkGd2Ztvl/G Mb8HxCOC1Bjo1/41tQCo+ViOBKV8JRfQLB1Jg39B3krg7Zp4p1EoLLGzabksGYgC3OiG LbTw== X-Gm-Message-State: ACrzQf0ixubwYylJxkJbo1NG2WAEirvFj5vvU9COiSHO0trpGVao951d x9bddcurifEyWx+91snATww= 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-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747951421341509057?= X-GMAIL-MSGID: =?utf-8?q?1747951421341509057?= 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>; + }; From patchwork Fri Oct 28 16:52:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 12463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp938760wru; Fri, 28 Oct 2022 09:59:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6URxKZJRw8oENJpqNYK7j4wfocUxIiha6Q/N2o4LhY6WmTY+Q0BcUpx9RhZKM28o/Ig9Jk X-Received: by 2002:aa7:d650:0:b0:462:d945:3801 with SMTP id v16-20020aa7d650000000b00462d9453801mr361427edr.117.1666976379417; Fri, 28 Oct 2022 09:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666976379; cv=none; d=google.com; s=arc-20160816; b=WeQj6tywh/tjYsW3k2mmGBgQvX+p2hRQY5XAB1HXkHCWYUYsh60ryKLKQ8aHYCGx35 8fN8Pip2/SF5PObuwyC8dizQ2F/mGmsjAvAi44RkcFooREG04tDpbCackhupj8l1O928 jz7z7la670r5GWEScm/bIudRxN7x9dh/N6UyGDtQ5imCBl/aFFpewswn2bW84zhnsDNQ 55OLh5b62rGzITE2vKMTp07k/gg6x7MRA0H7wHCebP8lgkbXsSXWft687FqO+bV/VaQQ TKrDNuIYaFuuZd3pDxDOLhTJTRoTCUP7NrhBSYpRZ7qQ/hQdffAAwZ61iNk+VlcGqGua szUQ== 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=tV6s01AbwYkQdjpJZBm9lXEp2eoEWm0Fi1fj3eRupAY=; b=MO1qw1GKQA5X7bxc96QyEx70PeqJmaFyyWg5Bg1DWCLnHSo4wP1e+X3ktEYWq8hHuP 6IZRLykbgkHlzOAmyFkZUknr9dGYMnFdgFEc96o0PIfYECkpx8de+0c/XwGS8I8wpq/G tPLmafyyKgLzllHJ+eXIgp/EnnGC2Tg3f81yuvVyoymfYTAzdMZdum1iI6aIjaex+TOT J0xie4fZQAW1QKS6KrO37K+3N3UFXZV9S8YvZQnua8/btWaAYUIqS7UgOSsMo9WbbhGA bZL6w0ZtAqA+0NpG8SivrAqr8GGj2x4hlFgTm1dLQfWGH3lbpTqY7xgPK0mrP5vhvgcO pG5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Wn9mroTi; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt41-20020a1709072da900b007ad6a0afbc6si5960913ejc.7.2022.10.28.09.59.15; Fri, 28 Oct 2022 09:59:39 -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=@gmail.com header.s=20210112 header.b=Wn9mroTi; 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 S230168AbiJ1QyF (ORCPT + 99 others); Fri, 28 Oct 2022 12:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbiJ1Qx6 (ORCPT ); Fri, 28 Oct 2022 12:53:58 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A3D219FDF; Fri, 28 Oct 2022 09:53:56 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id d26so14268139eje.10; Fri, 28 Oct 2022 09:53:56 -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=tV6s01AbwYkQdjpJZBm9lXEp2eoEWm0Fi1fj3eRupAY=; b=Wn9mroTiWrsQWcPC2y9SPU+AWLR0J/+mQ9Z7st9E6665BwycRdVhkW9c5wyoUmNlvT zGJyuxLu8/mm32FU4tc1F+nXq7mbRR42aMuITUgi17Ss4IIRxkryRbaghfOkWZK78kiU YrsocUg5ylWvI3xeVofu8JYCH8/0n4K0YZave2QHsnuUoH5iLVaQwHHYKEQGlb7+TjTq M4Jkdx0QPfuEFWiLowDUzBgwzYzBMlI7Lu+ry8OwJ2ecg+RkJkHZoz63PF2rwfSCaPHe BpMpxTuw0Dno0bNBbf2wnuIe6L7rOLhSxMSmm1wKnDW1jooaGJYWaxfS3IPBkHWHhWMe c6KA== 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=tV6s01AbwYkQdjpJZBm9lXEp2eoEWm0Fi1fj3eRupAY=; b=vvQ6f7H03TPkiU43Ssk7XwtfJG4rXCPD9khtWdjBzVKQa/rGGprd66wYo4Eclx7os6 kWZI5bOxJy3aQ9Ak5KhbFCjCrnka1RRLX1u/iSSfSBN4iljmi+5HbMuOC1IAHzrr7a+E D/yxBT9F8j6QBrdTHCyGSLELka+akPNhpBAiQehGD6R1jBka4o/myux2PYM0Vy7IpGZT pyE590E46ZbCjbDWExZ0PIsQoCF9L8OgNPUSYfXPHVg+BMi7qvi6vdfT6ICVTvaTgtur CVmYIEzkOavW4y/KhpXzM2wcIQ3M9pOwCI86EQfh62LNs2lgrS3yG/TXwG/g8eePmYuU bIfQ== X-Gm-Message-State: ACrzQf15wsVIO0f312/GrD8F2Ae/AOYHj0zfrCbYso+WwdOtApa6luxp Wo9/1zNGdctpNgUUJys3OBw= X-Received: by 2002:a17:907:2719:b0:7ad:2da5:3ba7 with SMTP id w25-20020a170907271900b007ad2da53ba7mr258719ejk.340.1666976035297; Fri, 28 Oct 2022 09:53:55 -0700 (PDT) Received: from localhost ([88.227.58.131]) by smtp.gmail.com with UTF8SMTPSA id x12-20020a170906b08c00b0079800b81709sm2407440ejy.219.2022.10.28.09.53.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 09:53:54 -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 3/4] arm64: dts: apple: t8103: Add PWM controller Date: Fri, 28 Oct 2022 19:52:15 +0300 Message-Id: <20221028165215.43662-4-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-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747951423476492325?= X-GMAIL-MSGID: =?utf-8?q?1747951423476492325?= Adds PWM controller and keyboard backlight bindings for M1 MacBooks Signed-off-by: Sasha Finkelstein --- arch/arm64/boot/dts/apple/t8103-j293.dts | 20 ++++++++++++++++++++ arch/arm64/boot/dts/apple/t8103-j313.dts | 20 ++++++++++++++++++++ arch/arm64/boot/dts/apple/t8103.dtsi | 9 +++++++++ 3 files changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8103-j293.dts b/arch/arm64/boot/dts/apple/t8103-j293.dts index ecb10d237a05..5652cd41730a 100644 --- a/arch/arm64/boot/dts/apple/t8103-j293.dts +++ b/arch/arm64/boot/dts/apple/t8103-j293.dts @@ -11,6 +11,7 @@ #include "t8103.dtsi" #include "t8103-jxxx.dtsi" +#include / { compatible = "apple,j293", "apple,t8103", "apple,arm-platform"; @@ -43,3 +44,22 @@ &i2c2 { &i2c4 { status = "okay"; }; + +/ { + pwmleds { + compatible = "pwm-leds"; + kbd-backlight { + pwms = <&fpwm1 0 40000>; + label = "kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + max-brightness = <255>; + default-state = "keep"; + pwm-names = "kbd-backlight"; + }; + }; +}; + +&fpwm1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8103-j313.dts b/arch/arm64/boot/dts/apple/t8103-j313.dts index df741737b8e6..cff53f8770f3 100644 --- a/arch/arm64/boot/dts/apple/t8103-j313.dts +++ b/arch/arm64/boot/dts/apple/t8103-j313.dts @@ -11,6 +11,7 @@ #include "t8103.dtsi" #include "t8103-jxxx.dtsi" +#include / { compatible = "apple,j313", "apple,t8103", "apple,arm-platform"; @@ -35,3 +36,22 @@ &pcie0_dart_2 { /delete-node/ &port01; /delete-node/ &port02; + +/ { + pwmleds { + compatible = "pwm-leds"; + kbd-backlight { + pwms = <&fpwm1 0 40000>; + label = "kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + max-brightness = <255>; + default-state = "keep"; + pwm-names = "kbd-backlight"; + }; + }; +}; + +&fpwm1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index 51a63b29d404..a95dc482102e 100644 --- a/arch/arm64/boot/dts/apple/t8103.dtsi +++ b/arch/arm64/boot/dts/apple/t8103.dtsi @@ -191,6 +191,15 @@ i2c4: i2c@235020000 { status = "disabled"; /* only used in J293 */ }; + fpwm1: fpwm@235044000 { + compatible = "apple,t8103-fpwm", "apple,s5l-fpwm"; + reg = <0x2 0x35044000 0x0 0x4000>; + power-domains = <&ps_fpwm1>; + clocks = <&clkref>; + #pwm-cells = <2>; + status = "disabled"; + }; + serial0: serial@235200000 { compatible = "apple,s5l-uart"; reg = <0x2 0x35200000 0x0 0x1000>; From patchwork Fri Oct 28 16:52:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 12464 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp938770wru; Fri, 28 Oct 2022 09:59:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RKhu9F27sTL7fg/SRrZpNGl40ogn9nsdCdhnPwFz7kfE/6J5LWiIGZjFKMAnpWJHrZwu2 X-Received: by 2002:a17:906:3111:b0:7ad:a7fc:f3e8 with SMTP id 17-20020a170906311100b007ada7fcf3e8mr267905ejx.518.1666976381231; Fri, 28 Oct 2022 09:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666976381; cv=none; d=google.com; s=arc-20160816; b=o1xZ6Y84DJFQN/wmqpKcHOO4hwnoh+w5n2fJohavCqUpyWl3wJC4kojlWm3G1ifqD+ Pw0MG1JkceDGVrWCRXUtazZt5xR+fgpMfsEvNniJMfuvFBglmme0H74wWMEq5PdRxG9c gSWNpuNkXHKAhHgcMaWklGyL8eqFAodWH3eUhnNKyHk9aX7J8o34ACwqOKI5DD5NoqYA y35PBEraZpbok1SV9jCPF8bx9GIDKCw48krhYCL5AmNBwVaOP8kgPG20sCkZ4C6yKPVp d89ep5ckmtlak9IeiV20BeGiyc6GSTZWOvwG92lOoPpIluNeZDMPhe4JMLns5B2b8N1m +T5g== 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=9VlWXXhBJnoc4ngEOzP/zoEPXuNu3Pcb27/diH3nA+U=; b=w6PxSWqjfBsNoSjUy/1YJ4q01zeYAMaUEJNs1ouPXRQPwBTOREOEoX4TAQHC8H/uI4 9RbbJLzFsYNW4AQNIGKRS4APxSr2l71NXM9lOn4bBtyvfHMPS+ZnN4GY0+kNaIRj+QNb DdmcvCyh8VxLBfwLgd/Rqn/sPyEQT+W2FBfW22uQmjM5RLC7IrOWtcyv0f/Sw0YKGusS Dj9rgTZ2VwJFyDFLGjh+eSvAbdWEwdjg7g6TtKyxAz/x1Gh7jC/bik8qrR6VtjPWMpLA 848r+R1AvqoOyrHUEzxRmQfrnHXl+ilPAW7lMmcq0NcUBvKwfWn+5cTft0iHoYaq629j IChw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LZzR4NF5; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb24-20020a1709077e9800b007ad943d0608si1672672ejc.630.2022.10.28.09.59.17; Fri, 28 Oct 2022 09:59:41 -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=@gmail.com header.s=20210112 header.b=LZzR4NF5; 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 S230004AbiJ1QyJ (ORCPT + 99 others); Fri, 28 Oct 2022 12:54:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbiJ1QyF (ORCPT ); Fri, 28 Oct 2022 12:54:05 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE8E21CD41; Fri, 28 Oct 2022 09:54:03 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id kt23so14268728ejc.7; Fri, 28 Oct 2022 09:54:02 -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=9VlWXXhBJnoc4ngEOzP/zoEPXuNu3Pcb27/diH3nA+U=; b=LZzR4NF5aoNbliaJSdl30q2EeC7dveHrEZucBmr23Nlq4IrlxZQkMjIW7sDrxWvoN8 ZH+klDe6aAHzQATRGHz8yf+Fl2GXzKKKD+yilDoMpyjCqEnn4pX5MQ+o0mI8TeeQbmdW oKvLqfzKbhkewDLcdKdmr0Z7bIw6jwfZghXizSP5p1eELZwPrC+wmHoCRZwgd+PwCIN6 IzcAWNLUIJ6LJOjRm9brUnjpjrcAVWBhMX2HrZXFKVt79h9x1ktnCcRths+1BgWnv45P H8y96CMGIIHJv+U2qnkiyINb8a/MwbEuwLN0SjVV1OTnjP/xHtAH+tBcnBwsqKdtw/XC 037A== 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=9VlWXXhBJnoc4ngEOzP/zoEPXuNu3Pcb27/diH3nA+U=; b=pfCm+hGzFb8YeDVzDLYEN0x5kR8JwpGt1UIp3bX0/WSEmaF0UrYDR9qcUgoIvO47cp 3xLfaxdxpGh/9yd1n7J8WldV4BBej2gX8UlL6yA1cbsjt+aUsq/v8wrqGD2O6soTz6rB QCHqFSEZFQG+5+89iugV3HuF2mDdq0HLdS5/hCN2GwKScbc3tBHYW6c/AfuTo1/0NldP YwQxkDtza9K6tNKVHoug5DmCun/lhy4+A1aowngLFGQ+h9adLBAK0OFIFt6OWLZbkWCs vrSMtq0TRu4vENvRaRmlFbpasdDUILKtHEFzCwrc35I6pI3Dg88bG15sNN8rGeDIZ9m/ 4yRg== X-Gm-Message-State: ACrzQf2PmfSzKTpSMsqBk10e2SR8uVGZEVsNO1GzEquLnr41sBrMzGlr P+0V9EoHUB+7tl5q097QTMI= X-Received: by 2002:a17:907:6d84:b0:78d:f2b0:14c8 with SMTP id sb4-20020a1709076d8400b0078df2b014c8mr202721ejc.749.1666976041659; Fri, 28 Oct 2022 09:54:01 -0700 (PDT) Received: from localhost ([88.227.58.131]) by smtp.gmail.com with UTF8SMTPSA id p17-20020a17090653d100b0077826b92d99sm2417677ejo.12.2022.10.28.09.54.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 09:54:01 -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 4/4] MAINTAINERS: Add entries for Apple PWM driver Date: Fri, 28 Oct 2022 19:52:16 +0300 Message-Id: <20221028165215.43662-5-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-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747951426046057882?= X-GMAIL-MSGID: =?utf-8?q?1747951426046057882?= Add the MAINTAINERS entries for the driver Signed-off-by: Sasha Finkelstein --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e04d944005ba..4c9719a2439a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1908,6 +1908,7 @@ F: Documentation/devicetree/bindings/nvmem/apple,efuses.yaml F: Documentation/devicetree/bindings/pci/apple,pcie.yaml F: Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml F: Documentation/devicetree/bindings/power/apple* +F: Documentation/devicetree/bindings/pwm/pwm-apple.yaml F: Documentation/devicetree/bindings/watchdog/apple,wdt.yaml F: arch/arm64/boot/dts/apple/ F: drivers/clk/clk-apple-nco.c @@ -1921,6 +1922,7 @@ F: drivers/mailbox/apple-mailbox.c F: drivers/nvme/host/apple.c F: drivers/nvmem/apple-efuses.c F: drivers/pinctrl/pinctrl-apple-gpio.c +F: drivers/pwm/pwm-apple.c F: drivers/soc/apple/* F: drivers/watchdog/apple_wdt.c F: include/dt-bindings/interrupt-controller/apple-aic.h