From patchwork Fri Jan 6 13:58:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13091398 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 705CDC3DA7A for ; Fri, 6 Jan 2023 14:00:40 +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=vcQYvSP6THOjL/BvFulU0d5LAoY8KAARZnfXyynBnKY=; b=q9C8Ty+7SmtlED zpV1g+wvqMguPWmUSfQK7QGbeEOsEvORqtK72Gl/TMu2BPX6Zk6NzpaKy2rS3j2WUt0oYqMd7qap2 TII4An50El2qM8YmPrHYIYUgrq7qLcHKo6rnAHzlOq+5Kfz8OqTvuNXEKPAQuntzYiPD07fZrKAep Y5Y1BOHwvriI/G1gtXla45M8UwGDkOiUnfo98MS6SY+3mtVF1MX9IIcy59rHTOpshwFCv+G1ia9TL 13MKFQUtN1qU3ZO1tTo/2/jKHMDx/7Eds9Dp9SzwRlXQKonQI7xJtuVoHH4hip0fn3/0vtZXj4wVf amccJa59KDnzVB95QVGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDnFo-008cXL-QM; Fri, 06 Jan 2023 13:59:28 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDnFl-008cWM-J4 for linux-arm-kernel@lists.infradead.org; Fri, 06 Jan 2023 13:59:26 +0000 Received: by mail-wm1-x32a.google.com with SMTP id bi26-20020a05600c3d9a00b003d3404a89faso3747242wmb.1 for ; Fri, 06 Jan 2023 05:59:23 -0800 (PST) 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=1mlyc9DQTAJ+skih8MrYLJL8eGML7Mctz40JHiQZ9T4=; b=WXntHq7o6JZkKaK/EHu8eMAmXERVNZ5Tjuf3Pl7X7skPpV8x+QFuAVf5LbNzV6oFRW mOKPS5o7cG1kEkMtY0tl9FCHRI0PL2ceGR1cYjweygxUMlQ0ftuF7aKf7gWj1dwTaG5x cCbvDhXPvXeytmGxIVGsJq0inXkhUMwHdgC109jzRttRlyRhf2kNqEXdUZMp6+wj5vJw o/gC1hrWliliSHWHJD3PIbLY5sR0yZLr7HVptfjCh0bgqirHWhSTzVLYlq1whLYhYJBu 6cqKntesBYw9DQH+ZU5wSY6fGDkTuQ0SwV3gKmYpEeIFEzsYEiCueGJzijl8kVhFiNWo mgAw== 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=1mlyc9DQTAJ+skih8MrYLJL8eGML7Mctz40JHiQZ9T4=; b=PEsccX8MAc19ZzAXwN8QMft2Y17f47LXLi/GI/yZhP+z8U9c6b0mX+ne6dkCTPoIsT Q2fVKVCcFExZKnN934JBylXNuRrFgr1fqpchKUQbDxYhYx6udIC6cVSn59ivyh9YX4vg npAcacrzT0xHvyOQPL5SmMTctUqIkKWCBbVSbe4WqshWH6ccNzkZf7+6Vti/8hmcgvCK +eT5GQ3FRtsgHPjujxUs2jbAAlfps/JUt1o14ZK594ftFqCXvw4Z28usxYmrrs0qMsQk wyOHz6gl8R5F/K3GUehjWTrMTNxSjU5QGTO634NV50670bxZulQTBaJpquobX9xgq6D4 WsFA== X-Gm-Message-State: AFqh2krZZHGLgHkNfnNYOZ8bbafzY2gY0GSlZbMvXlw9DMc+oIX6Cj7u I/DUCKAe4jzmIKSMQ6eSEOc= X-Google-Smtp-Source: AMrXdXuHgyEpDEDjZdAZuSHCf26rChlqT+0fQVHZrgeNnuYZffHhKAABwdxhZ3V9jhzxidbnKL1q0Q== X-Received: by 2002:a05:600c:1c21:b0:3d2:2043:9cb7 with SMTP id j33-20020a05600c1c2100b003d220439cb7mr38463441wms.5.1673013562697; Fri, 06 Jan 2023 05:59:22 -0800 (PST) Received: from localhost ([212.253.112.114]) by smtp.gmail.com with UTF8SMTPSA id c7-20020a05600c0a4700b003c6bbe910fdsm7386690wmq.9.2023.01.06.05.59.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jan 2023 05:59:22 -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 v6 0/5] PWM and keyboard backlight driver for ARM Macs Date: Fri, 6 Jan 2023 16:58:35 +0300 Message-Id: <20230106135839.18676-1-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230106_055925_649199_7AC58FFD X-CRM114-Status: GOOD ( 14.39 ) 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 is the v6 of the patch series to add PWM and keyboard backlight driver for ARM macs. This time the changes are a bit more substantial and include the changes to the t600x (M1 Pro/Max) device trees. Here is hoping that this time, the paint on this shed is up to everyone's standards. Changes in v1: Addressing the review comments. Changes in v2: Added the reviewed-by and acked-by tags. Addressing a review comment. Changes in v3 and v4: Addressing the review comments. Changes in v5: Added t600x device tree changes v1: https://www.spinics.net/lists/linux-pwm/msg19500.html v2: https://www.spinics.net/lists/linux-pwm/msg19562.html v3: https://www.spinics.net/lists/linux-pwm/msg19901.html v4: https://www.spinics.net/lists/linux-pwm/msg20093.html v5: https://www.spinics.net/lists/linux-pwm/msg20150.html Sasha Finkelstein (5): dt-bindings: pwm: Add Apple PWM controller pwm: Add Apple PWM controller arm64: dts: apple: t8103: Add PWM controller arm64: dts: apple: t600x: Add PWM controller MAINTAINERS: Add entries for Apple PWM driver .../bindings/pwm/apple,s5l-fpwm.yaml | 51 ++++++ MAINTAINERS | 2 + arch/arm64/boot/dts/apple/t600x-die0.dtsi | 9 + .../arm64/boot/dts/apple/t600x-j314-j316.dtsi | 18 ++ arch/arm64/boot/dts/apple/t8103-j293.dts | 17 ++ arch/arm64/boot/dts/apple/t8103-j313.dts | 17 ++ arch/arm64/boot/dts/apple/t8103.dtsi | 9 + drivers/pwm/Kconfig | 12 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-apple.c | 156 ++++++++++++++++++ 10 files changed, 292 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml create mode 100644 drivers/pwm/pwm-apple.c