From patchwork Fri Oct 28 16:52:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13024083 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 05E23C38A02 for ; Fri, 28 Oct 2022 16:54:15 +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: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:In-Reply-To:References: List-Owner; bh=mW/lcosGu0AC9JTqHEtmb7aPILv8t6ZXuBZCmLbfHD0=; b=vlafaDqfoxcOA0 8Z46it/M5UkNB9MPjRgYC0tOTRaO9hkANfNYl8HiiGzmPDZzGWb3yo393U4nOTmZUQPa/pWDNX+TE horIyvw/QpCkdjDzVRR4EAnr0c6eQ3H2+MyEiWCWw5VhhmhdFu2vPKu1fo0AR0wFTFmWXjYPIvI7D PFgn39g4WVdoXcwnPVQUHF1d0Hb+J0ZozZYmIds7XRrY6iJO+2NyKmDDxUQicJyh/Ncst5vHrBkQI FcDuz1L/jZQTSAQZMG7It5kbazOHnBDKMITJO2kgL2FHYy5gsIOHYWSqnJ4R6rAhUnIdIf7jeVXD/ 88Qa+cP4LV5CqSHitK6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooSbO-0013Eg-EU; Fri, 28 Oct 2022 16:53:02 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooSbJ-00139B-Oo for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2022 16:52:59 +0000 Received: by mail-ej1-x62d.google.com with SMTP id ud5so14347113ejc.4 for ; Fri, 28 Oct 2022 09:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TRbtjzgGY79KT/za/x8o0WGQEAKstEUc6+ZUvLa/3WE=; b=Rm1QgOjAFiI7XmFUhmPEZeVtIvOd4SWpfjF8UQiJEDSDLZL7F2M6r9ByqbGV/JByp4 Gv+fkWsQJ88UVp2YtPZeQqKxuaVRxYmvpr30scl035igGDXPVadrzYMtHmEdSv4lgSnq vm1cQURGqu5jG05rh321S9jyPgK1mI/l2VZM9FPwNqay2EfePWJDExQClNkSqrI6KBQp +hVA6dgfE2iRfo3JkqkWF9HBGcLA2Qm+v6n3eJLHLuWfuttfiILkbnPESeUi+fZwJtno SvVb60STbZAD5X2utynPoFPNFvBtl2VmtWBDWcD/7tARz8FbcSVwSnt+I2dVgP4qUxg1 WZRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TRbtjzgGY79KT/za/x8o0WGQEAKstEUc6+ZUvLa/3WE=; b=35ktwlQhdov9QBEHnod921E6jvgXdAX9cQXdxOOL2bmh7OZfNlTk+njUPT1RUjNcT4 zES6XNK7u78BXoB7KUwP8QXb1QscZyF0kJXq2sykl2geEC+vOas7d4V/7lEP6Tc4foDN chqG6ViqYI6vDsi73CP860bftBOd/blPqccjMVynHqxomSnixvZWNHSm1zqT3L5R0+69 qb7HdLUthjXJ+XdKwpuffV450Te/iZLIlQHvkcF+64C9kz7VdMqym55hPSEZUwtv6H4Q zS5/uhpi/5yCYxoQwsrZDl1hODjrCWcRl4xVGRLXA6ttINZdpq0XpJUrlaLIjMjRrB/y D4zA== X-Gm-Message-State: ACrzQf04t0tZ8k7EMX/uneUyNLgLdJG4u5Zr5FFk32wOAWyThWARGLj3 DUdF3nevLDTBpTSS+iQC3FA= X-Google-Smtp-Source: AMsMyM7gsqxktKkco3+PcK41044g4dHIYIHKTgAqQdmLcpGgPUnZd0RVuxuYWimJn9kPdH4HvFGBLA== X-Received: by 2002:a17:906:3111:b0:7ad:a7fc:f3e8 with SMTP id 17-20020a170906311100b007ada7fcf3e8mr243112ejx.518.1666975972737; Fri, 28 Oct 2022 09:52:52 -0700 (PDT) Received: from localhost ([88.227.58.131]) by smtp.gmail.com with UTF8SMTPSA id x9-20020a056402414900b004589da5e5cesm2952990eda.41.2022.10.28.09.52.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 09:52:52 -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 Subject: [PATCH 0/4] PWM and keyboard backlight driver for ARM Macs Date: Fri, 28 Oct 2022 19:52:11 +0300 Message-Id: <20221028165215.43662-1-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221028_095257_839284_31309862 X-CRM114-Status: GOOD ( 12.95 ) 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 Hi, This series adds support for the PWM controller present on ARM Macs and used among other things for the keyboard backlight on those laptops. The included device tree patch also hooks up the keyboard backlight using the pwm-leds binding. Best Regards. Sasha Finkelstein (4): dt-bindings: pwm: Add Apple PWM controller pwm: Add Apple PWM controller arm64: dts: apple: t8103: Add PWM controller MAINTAINERS: Add entries for Apple PWM driver Documentation/devicetree/bindings/pwm/pwm-apple.yaml | 51 +++++++++++++ MAINTAINERS | 2 ++ 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 ++++ drivers/pwm/Kconfig | 12 ++++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-apple.c | 124 +++++++++++++++++++ 8 files changed, 239 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-apple.yaml create mode 100644 drivers/pwm/pwm-apple.c