From patchwork Sat Jan 14 13:25:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13101956 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 107F6C678D8 for ; Sat, 14 Jan 2023 13:27:41 +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=/sYTAm7KWjMvZxN4PeBauDUgKRVIBELZdL0zmjv0S+c=; b=chrPcPfc3PGXb7 xmqZ5CdR/+NDG3PtwKjv/uDtrdV8IpBz4ZfMBD6zVf8yQyGEjDOu+3eeX1aMlt/5jNVfiRB2ip12H 1kyfCVHW0ZppIYfyxDgRmJTakdUmrNF73hSNQ4+JWIf4Uy3T15J4Z8HcmlYKIemw77EeG/rRtMq7X gZw+YKOGeSJWsS13FIWDoz4nqvP3L/5J9ujUl9mCgtbssOv7/t3jG4YZ9wNmgeyqdSM/6IwKbNDyn YGeg/dkdobNr2NB0xuaZAEyNS8fYthTVIXwtLjmQaFgPvHzAKSQg2KUsQnC1XI+LXTvcLPpjELZ92 vZ7O55W29RiPGsiVhE/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGgYV-005rUr-Oj; Sat, 14 Jan 2023 13:26:43 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGgYL-005rRH-AC for linux-arm-kernel@lists.infradead.org; Sat, 14 Jan 2023 13:26:34 +0000 Received: by mail-wr1-x42a.google.com with SMTP id bs20so23403460wrb.3 for ; Sat, 14 Jan 2023 05:26:32 -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=g99//iPDMyFvy/+oL6QKSbCjazZl6KWjaU9oRhSg69A=; b=Qb7HH+w7rp3xAgJR1Gpka6RuRPxxIMArkq/4xD/AB7fEVE8B4m4GoBFgPabInQxP24 DGKmJ/RNF0ofRA7EbLR0FltGrB0oHAjOS952ahiUaA38sxS7zJrL2y8l2OYlP+VKnFIT vJ1ieL8AhvquLoVyYHMJBg7Xmpm04JT+ACxPHRx0NxnznlK+xp9RYCtHVV5jkg4660Px kAMLrBX8wbiXOeAquft79WbwSiVN9BahjAa7fPabLMo/IvpAGKUK5cENcc8V4A4eatUx gxjTdBq0YBJQMDbYt2tI1JFiKb8lC3y4azvtL/dxpPBoeGosZO296wLAxZSPk5joGCb4 qaOQ== 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=g99//iPDMyFvy/+oL6QKSbCjazZl6KWjaU9oRhSg69A=; b=ozhtA9HpA8m6O3VZs5jxt+nAmXa0dtU3OPNFhFR+PaGBsGrMNP+K7SzH32LsrDzHXR LMDBpqEXQYABU5ba5cdNP3AQVTtoOzqMWVKy22UCk6Nf+woyQXBThixsluoCKIk+df1z oq1Y8M37eet6QQg7r1oxrW9g4Mn6tH3VQ6p2FjrPX4EFQ1vebVhhgf8wW4zWcJ3E4w+v 9uK8OLHBVpa5n0AytGI4t2tdWzH7jSIzqEHMCbC/C+K3iZ8on95z0YnNYVJYbKhZalun qWJUkQ/IJ/qPZInO48Q1NEHFCsLQqhpA0eGImW7Y+xZHXPFACtmkU1yV1uwGbO+PeVSc Q7lw== X-Gm-Message-State: AFqh2kqxE8vHayDrcAgEstJQV+oEovOht/U7ykMYckD9HemAoqFKguCH viJMaZ8bAbX1ZtNMZjfrezM= X-Google-Smtp-Source: AMrXdXsBc/LGTR4mKUdrY1ifZw+/ZCsvICxAoo41zGYSM6mx6uQfPVXS7JeG3YiQyGR7HodrV5+GWQ== X-Received: by 2002:adf:f44f:0:b0:2bd:c6ce:7bf9 with SMTP id f15-20020adff44f000000b002bdc6ce7bf9mr10462091wrp.33.1673702789767; Sat, 14 Jan 2023 05:26:29 -0800 (PST) Received: from localhost ([176.234.9.57]) by smtp.gmail.com with UTF8SMTPSA id k6-20020a5d5186000000b002bbddb89c71sm17643370wrv.67.2023.01.14.05.26.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Jan 2023 05:26:29 -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 v7 0/5] PWM and keyboard backlight driver for ARM Macs Date: Sat, 14 Jan 2023 16:25:03 +0300 Message-Id: <20230114132508.96600-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-20230114_052633_373803_6E6D9662 X-CRM114-Status: GOOD ( 12.72 ) 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 v7 of the patch series to add PWM and keyboard backlight driver for ARM macs. No significant changes this time. 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 v6: https://www.spinics.net/lists/linux-pwm/msg20190.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 | 159 ++++++++++++++++++ 10 files changed, 295 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml create mode 100644 drivers/pwm/pwm-apple.c