From patchwork Wed Dec 21 21:06:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 35521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3742614wrn; Wed, 21 Dec 2022 13:08:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsqmSBS/5zC8kn7UFscuPJMROiG+MtHtbE0n2/i2tTLixo/6Mfauk1SdaeaYiFMO/2k2PDH X-Received: by 2002:a17:906:484:b0:7c1:ac8:399 with SMTP id f4-20020a170906048400b007c10ac80399mr2727880eja.55.1671656902841; Wed, 21 Dec 2022 13:08:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671656902; cv=none; d=google.com; s=arc-20160816; b=o0KI0rhtrUihKxb7XGBWmfL0vtAkvuHHVaPLzNFX7fbQKVhs7X5wPAQXZkO83CWM/s ff/aJN0pKjNmKT7tN8Fce4EasMpbY/pd/XfNhvuMA7uHy8ASrikCgv+DGrrLST0XWJqV Knt+rB4LxL1Ofx/N/IjHI55BKyk75aLY+haeA7yWY8IBqpOB6ITYWiAM0ohPryMR4zv1 ijKBFlwg9ocTZlH/5DrnxFbQ4GPxB5aB0s3YEEbJZAl8M4jzuRapC62301nArj/DdmhT wWo4NvhisV0xlpl+MXgMdcROV2Bi2EDPcCKxA7HoG8Lgzz3rsuWwEYoqrwXWNZGbP+6d 0VtQ== 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=yFteND0SAfzIiJ0DW+A987xH62sFm/AOlGDLWBwAZbhvTZlvFs1R/LB6nWAvV7MX2s gNsqmfI/6N5SeJQS8SbxOqBfKuAP4BjK1cXK37YZXu1ZzcScP3O2riBwQuWGMpjjDhVB TG9QuV+agTx0+FmE4KCnJHR8Cn5ju3YYxya7Mc4UbGUS1V6X3PAr+MgDSlp1Vvm97hin 93RRFm2SXJeskgHnkQ4SifoteopMWPSodtFmRoVP6FB10vhbqLov/xXrwOVpxdOmFJM8 8vf5z5lwJgLn97b7Ts2iavngU74es9gsJ1HifMdyqbZyUzUWnab1yLltYeCRIEr18m/O PWXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="TV7HOi/n"; 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 sb3-20020a1709076d8300b007fcfcf3b8a4si3907461ejc.353.2022.12.21.13.07.59; Wed, 21 Dec 2022 13:08:22 -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="TV7HOi/n"; 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 S234796AbiLUVHP (ORCPT + 99 others); Wed, 21 Dec 2022 16:07:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234653AbiLUVHJ (ORCPT ); Wed, 21 Dec 2022 16:07:09 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 416B325C75; Wed, 21 Dec 2022 13:07:00 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id i187-20020a1c3bc4000000b003d1e906ca23so2482726wma.3; Wed, 21 Dec 2022 13:07:00 -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=TV7HOi/nDk6tN6Btf7NEWSQXW12jGkXqBc1ZJZCpH7rHo1bIES6jPHXyDmr0LSxqbo b5uA3Oar5vljGcFFGzJfAEtkP83r+gCzHBOsSCdOBCVWDhP++QpHCL6iZoaFO81DDjOp +ln2VaE4F/NLkO8nhyNKGYtqHD7HyPc5ztIKFo8uEpxmAOy8vaB5ZgTRNQ33jW9Klc5d 4C3KidpPrCRZFnnd84lnlzKTBA7BtjKQco9hL0K1ntYXZFvcmLYkpUELHmd5cmHheaWA ppkuj5BGp+nUHilJygcVRcX3rztLrHkZB0rn2+VypnYZDGo0RF94KAxBcymdTpfPNrGM m1Ig== 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=jnPbEDg+g5s3PS99231xf9mPMuzW5T7vWXraRjl+jN1Z2QtPSpFIPHlb0nnKssdpcb 4ZsPJT07LArIgMIutdRbDpTYx7OiXV4QjNV2pzLhJR6sWhwCTaBVcwiYlYOCoCm8Rl/r 6f+joJGeYx7LFuclqjcGuY32nmmNEcivv8sf1QM2DWEz3oszVYbjv8U2YTJhuX0+7Tsy OulrLMdSrPCG8fpsswgRW6rvrHo4lVRByjPknT4ftTasWxlsZq8HCGthmKyzONLcsnbW 7fWdy+wzimTO71ke1qug8RY0Me1sCMKEiuwxdsnK4oB/XAasrvfzS0OsAmlFefTrG20F OktQ== X-Gm-Message-State: AFqh2kpev1+88mkLWzyOqWAjXiyjmzmpU/jPgaL6DXgPUshgt/EIBRSS 0iVORkkHjdzcfhq7JiOkGuw= X-Received: by 2002:a05:600c:3b82:b0:3cf:900c:de6b with SMTP id n2-20020a05600c3b8200b003cf900cde6bmr2673465wms.15.1671656818782; Wed, 21 Dec 2022 13:06:58 -0800 (PST) Received: from localhost ([176.234.10.188]) by smtp.gmail.com with UTF8SMTPSA id iv7-20020a05600c548700b003d35c09d4b9sm4134856wmb.40.2022.12.21.13.06.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 13:06:58 -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 v5 1/4] dt-bindings: pwm: Add Apple PWM controller Date: Thu, 22 Dec 2022 00:06:45 +0300 Message-Id: <20221221210648.2735-2-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20221221210648.2735-1-fnkl.kernel@gmail.com> References: <20221221210648.2735-1-fnkl.kernel@gmail.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752859308394126797?= X-GMAIL-MSGID: =?utf-8?q?1752859308394126797?= 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>; + }; From patchwork Wed Dec 21 21:06:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 35522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3742820wrn; Wed, 21 Dec 2022 13:08:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtCLIrrePtbuU42DkkGblPhZ+Q1c2frluWN0HWdOasfd2NV0IF+xm810IMT8B5+p0p4iZjP X-Received: by 2002:a05:6402:5418:b0:474:a583:2e1a with SMTP id ev24-20020a056402541800b00474a5832e1amr2634421edb.12.1671656936698; Wed, 21 Dec 2022 13:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671656936; cv=none; d=google.com; s=arc-20160816; b=roIzjdkubMU3UvIT2AG95f7hiSwa7mRh8jCsEaPJrpAFNR/1eY3qBJ2ECL7nZFi4Dd /+Hvn4dVIyEFmgMZ8qagc390Fk/wcAkJ7+nWD2U68Nz9tTUwrLhnqFeM3pTKtCfxBpuW Rdhw/Ct8yT18prVBvai6PQ1m2JH6bDwBS9WYN9XzktJOumMdEJQ2NYJRm7FCHu/QcEwS Oe808AL193MjKznadqw/SKaENE5HCnD7OGzeAAMtiYrbQGVUC+/IVkA+dNDBniphnESv N1PZE1UGbCEurHZNeILSBjomqmV/oNruRkouelNTlp7KBbynfTw/SdgGZGG/k/9WcZlC d98A== 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=5nrHW2nZPS02ZWv3aQJK/QCBWF5IiEBszwRBGZwror8=; b=DkDFggJ4bTycREpnfd49SCmcilR1p7MSSycsk/1vBGfh2RVpp0Mg/xOfSglbJxl4vz R5rWXIb5aqy4QfSwVEkkkMMuDE39eD5WSQsghkuLhcLFyWWkBIyrPTYf26RYv4NKvJWm wvpzoQc64QpTy110aAb0/RySEHahVHgfA6D/ebgpCLASW/BCe9+dUnV60Fabiw7T6kFi 2HgVk8wO/WA+QoNylWuMbu5JMAkOL7IYIk6lfRR2oQ9MLXpzcwPomYNmjnq4rCNd8JYc 8o7TMOW3yXURRu/nlea2ahzhimPMOuaZUKiddWXG0t//HO6orHF0ynYdlztfVAAUDi7W 7M/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gnICfvvq; 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 b8-20020a056402350800b0047bb18d10d6si6396511edd.628.2022.12.21.13.08.32; Wed, 21 Dec 2022 13:08:56 -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=gnICfvvq; 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 S234966AbiLUVHh (ORCPT + 99 others); Wed, 21 Dec 2022 16:07:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234804AbiLUVHU (ORCPT ); Wed, 21 Dec 2022 16:07:20 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D75FE2657F; Wed, 21 Dec 2022 13:07:10 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id p1-20020a05600c1d8100b003d8c9b191e0so1380279wms.4; Wed, 21 Dec 2022 13:07:10 -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=5nrHW2nZPS02ZWv3aQJK/QCBWF5IiEBszwRBGZwror8=; b=gnICfvvqTzoxFV9J6OhD0dfy1GMLDNmK/+HGPTgNy7dKVlH4BJtcjnaMWCj0kUHjSb PuUR6Pw/5E0+NzyemYIlh07NYT/DIYBozIoFTNM05Nh5VemjtWNf5stVx/bLlH5yNyQB IjFEW8elV7s6xC9lVWDg8fdLI7MrHrzvdqhxpdjlA7hpSrcn+Q+4JWL35hroS0mR3ZfB b7i4ashBFei/Wf4nHej2MssKZof6oEi/VbgD0AUQUDigRaq5AJoisgNqzDYp3OzbiPuc 48v2tGY8toKeT68Cbg2DGBjecM50txuHjcj3/tkcLvYZTeN73lHQVV4uBAZRK48LKiCr ADXQ== 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=5nrHW2nZPS02ZWv3aQJK/QCBWF5IiEBszwRBGZwror8=; b=ZX2mJLLHJ/ZqPaNJqJ1qT9aq1PqwI0MhdV14qGTN84CCfF+ybyXSoa42c3DW2ifmZ3 kRXKMx71gav1iMHg3HI7oh4l0PaA3rb2CX0FqnYDXtZKLB46wlG1kPQdgIhHOA6mz3pB kO/fYXazE4WuefdVLr+g4C/72sVxPHCox24w6ApskWwhkdm9sRvQRfkT+xdbQkKalE51 p4wRH9mwfey9+QLPYVTZn5Rqpmu9XOsTeNa8vw8JM647lJ6KSKg5eKjUAE8FbYPXoPzH k+LAtHDxBqq6E2zCTD2NJm9mHDhtIf31vk6cyi1eYkyEKc9ahN+PfIBoKE2BvLzENhxs TgDg== X-Gm-Message-State: AFqh2ko/htOadaYjO47q3GEXKrPetFDW1XGROr1zpdqy3dwRp2u0mY3Y A3ZknuH7z3FJbjAU/mW8NNg= X-Received: by 2002:a05:600c:3b9d:b0:3d2:3e75:7bb9 with SMTP id n29-20020a05600c3b9d00b003d23e757bb9mr2358068wms.34.1671656829455; Wed, 21 Dec 2022 13:07:09 -0800 (PST) Received: from localhost ([176.234.10.188]) by smtp.gmail.com with UTF8SMTPSA id a1-20020a05600c348100b003b47b80cec3sm3412423wmq.42.2022.12.21.13.07.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 13:07:09 -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 Subject: [PATCH v5 3/4] arm64: dts: apple: t8103: Add PWM controller Date: Thu, 22 Dec 2022 00:06:47 +0300 Message-Id: <20221221210648.2735-4-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20221221210648.2735-1-fnkl.kernel@gmail.com> References: <20221221210648.2735-1-fnkl.kernel@gmail.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752859344163895966?= X-GMAIL-MSGID: =?utf-8?q?1752859344163895966?= Adds PWM controller and keyboard backlight bindings for M1 MacBooks Signed-off-by: Sasha Finkelstein Acked-by: Sven Peter --- arch/arm64/boot/dts/apple/t8103-j293.dts | 19 +++++++++++++++++++ arch/arm64/boot/dts/apple/t8103-j313.dts | 19 +++++++++++++++++++ arch/arm64/boot/dts/apple/t8103.dtsi | 9 +++++++++ 3 files changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8103-j293.dts b/arch/arm64/boot/dts/apple/t8103-j293.dts index ecb10d237a05..43f79570b458 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,21 @@ &i2c2 { &i2c4 { status = "okay"; }; + +/ { + led-controller { + compatible = "pwm-leds"; + led-0 { + pwms = <&fpwm1 0 40000>; + label = "kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + max-brightness = <255>; + default-state = "keep"; + }; + }; +}; + +&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..57e75e6ddf63 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,21 @@ &pcie0_dart_2 { /delete-node/ &port01; /delete-node/ &port02; + +/ { + led-controller { + compatible = "pwm-leds"; + led-0 { + pwms = <&fpwm1 0 40000>; + label = "kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + max-brightness = <255>; + default-state = "keep"; + }; + }; +}; + +&fpwm1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index 51a63b29d404..ccdb26ef6b22 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: pwm@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 Wed Dec 21 21:06:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 35525 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3743857wrn; Wed, 21 Dec 2022 13:11:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfFmz23t4WmuRyVc1q01FliVSMZE4NxCakp2pg0kvILuEhJu8eOJhCU6oxjjxi5MtxEuiH X-Received: by 2002:a17:906:b150:b0:7c1:9b07:32cd with SMTP id bt16-20020a170906b15000b007c19b0732cdmr2461682ejb.39.1671657090557; Wed, 21 Dec 2022 13:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671657090; cv=none; d=google.com; s=arc-20160816; b=NQO58Yet2T4LIcu1h9H3ogzVTWZTJOS7Cfb/EkAUwks6c7oeWaMnmGbhPinkI78RKY pL96LtNbiAqkOgDbgrmzmj18w5C8EBInppNKBrnzOkqGr5ebMzpae09Qe/iHAtBd64qS NGkcZXpxg1q12dZyvPhaWAaYHRp1/caLJY/I8WpSuMBHI4VUBlMULt1D/2ToyfNWEwMe nauocCAQsW6pdjRMiZuuwXW6z5jEgxtnarH+0Hmev7c8UrIX5WQkDCsIKCb7Nb3kRRKB il5dgtXRC80WQowIDXqwnYl3pmujbHNqziP6qUHnRjpQXx3aNoRMgwSIzCZbR3cFWHHU fDSw== 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=lVXE/tLR92m2sGWA4Ap2iyUSciCN0CAi8jf/sNy+hqY=; b=0vsL2YShQlmk/M1ymmIpUZUGS+TtKcO46gIueBtZj272WgDG+tce0Ise1xkPncfPhu zdmmz5ZL+FLKtHkWE6HDv67cvQEAPC+i2NJsl2PzONpf/JqJXHzhVapBf+PkXHisO74t NoIlY96vUIFBrCIiLXNCgrHAw5Txf+yBf3BMM9MUPnDUCKquYMAK/eqW6ezrX63JwDeT x7ig+llLkSr3uuTjcDTEtBjh+exGEtIbDDSKPlyGaDJfwiZE3LFlGcpyAd9pEUtGT2rr XMK41D9L71OjE19b2RjPE9L9D+eoof7bBR9/cZD59Cy+QjcnBap7FZHRxzQpLDmeYGPn LRAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J45PmuQV; 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 hr25-20020a1709073f9900b0082ad5e78975si7797568ejc.803.2022.12.21.13.11.06; Wed, 21 Dec 2022 13:11:30 -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=J45PmuQV; 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 S234914AbiLUVHt (ORCPT + 99 others); Wed, 21 Dec 2022 16:07:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234761AbiLUVHW (ORCPT ); Wed, 21 Dec 2022 16:07:22 -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 9101D2654D; Wed, 21 Dec 2022 13:07:14 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id o5-20020a05600c510500b003d21f02fbaaso2480446wms.4; Wed, 21 Dec 2022 13:07:14 -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=lVXE/tLR92m2sGWA4Ap2iyUSciCN0CAi8jf/sNy+hqY=; b=J45PmuQV/HLwZbSRa1zjfv/tsrzWpuonlqZd6yTp1A6jaZbjVPWCZaZyTqYveMq9q6 264D8JUg9gWkj+4GOjbq1x1wf5vhTjg3Bda9/RFAqyqh6YuA5hVG0vQv5Qdcf+Z/CA/b Qrq+qb2hYkgBCKmGnrWWK2wBqCOzkJAZ3M53R0I4abbQXs3CxH9o+PdQXpuS/5rYyGeH moF9ehwTKu/HeN84sg+yA4VEy8SyhYJEp5909w3wSb/3ZI7p6RnK+Y2ZDbLHq8Ojlwzm WCBTheS1nGU9FTTxS1uMeP42pkjFNxvK2lkUJjInGvxJuOL0+K7V5HZYAzlUGEnf4iPT BMSA== 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=lVXE/tLR92m2sGWA4Ap2iyUSciCN0CAi8jf/sNy+hqY=; b=arQ8k18JMCWNIEL1yBdR6rg5VJnEM6RfvDhsWcdtM/ixqaYJXWhjlx1NqW9ycAllFp ieTnUazFdgS8k7K7fQpiwdpBLMwN1QkdwCcivfcY+ptPc38tZ+NDL1yJDfH+bfhr4JKt KVD1lnkhlZbpKCXKvf18KCa+PD8n7iDDyQnOYicUjUNrmAyuJIRMle42dq6LvYm7rMI5 5Hnz6m5pibvOFSLpE8VOjQsOvjghy+hcSehvEJcE0KcMd4u09eKl2yK/l7Dm5lcrN7j/ WDQTPs3vcm6cqeXozMsn2+n5D33J+9V+ktxnoQ3uZBhlSCgIYqXm/+4jEXXAP328Jsjx pOzg== X-Gm-Message-State: AFqh2krNhzgVlC8r1XkLKE0s0uKtjVphahX+CaAXa0ZhYh2pgJeOQqmF xKvlVZs/P1txRn63fJUAGPUxC9ADnNXrhA== X-Received: by 2002:a7b:c3c6:0:b0:3d2:3376:6f37 with SMTP id t6-20020a7bc3c6000000b003d233766f37mr2633965wmj.10.1671656833130; Wed, 21 Dec 2022 13:07:13 -0800 (PST) Received: from localhost ([176.234.10.188]) by smtp.gmail.com with UTF8SMTPSA id r9-20020a05600c35c900b003d6b71c0c92sm4911025wmq.45.2022.12.21.13.07.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 13:07:12 -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 Subject: [PATCH v5 4/4] MAINTAINERS: Add entries for Apple PWM driver Date: Thu, 22 Dec 2022 00:06:48 +0300 Message-Id: <20221221210648.2735-5-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20221221210648.2735-1-fnkl.kernel@gmail.com> References: <20221221210648.2735-1-fnkl.kernel@gmail.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752859505037406020?= X-GMAIL-MSGID: =?utf-8?q?1752859505037406020?= Add the MAINTAINERS entries for the driver Signed-off-by: Sasha Finkelstein Acked-by: Sven Peter --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 886d3f69ee64..cf773aa53210 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