From patchwork Fri Nov 11 17:33:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13040660 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 4B784C4332F for ; Fri, 11 Nov 2022 17:47:33 +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=YuOIr/oHtoM00r5WTCU1SkyWRCJK40ODAasoKlnfQ2Q=; b=xLDncitJjJvb/e 0WGfTSv1iTry/LQ0zb6vMceXJZX6z9KXf3142dpr0NiUO70zq66pEC2gEr6UIFDdyvGOpDRrHqsDA Ll6KhnMAM+6TzjekRz/zCwLk6+n3KZZ+QsJmz1oLBixpAF0dvIpQ+jo4jImeheYaTPgRfHWwdREbY 8cwh56Yc4I3GxS9joTudz999glC0csonla5sz9HyGskaGjYK5m+GgjFOI1au6Y/jnpoBmqqkAXvay vnXYGX4ATlLmF51jDpqNpv9NC2haZ6W8hw7YwOj27UAwSmumPvJgHct9BD2gZ8vPKTE9eZv2Rl7xh LmVv4SDgZP+er2sorJFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otY6c-00HPmc-Fu; Fri, 11 Nov 2022 17:46:19 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXun-00HJ17-Vw for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 17:34:08 +0000 Received: by mail-ed1-x52b.google.com with SMTP id i21so8528126edj.10 for ; Fri, 11 Nov 2022 09:34:03 -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=VcLz+JLectl4eq76JetIRN2RIxjnki5yQTvjxWRfAgM=; b=D9eruaRgsUTg63mWpBsgzufnU+S1W0EcOItzcOWKFcDN4Fj99yc9qisypftFtx/Ou1 12/wvgaiKsjgrVniAsiC5abbCGEaX2luQRIC3lz8eStkPcrWtowlAkXozzcYRAPAyKJ7 zl6V0DJKSeAGwM1v+S3fJCR0XUpxoyoVqncMj+mtLB0oDajxjVwy1H4VB6MUHx1Aa2lx WUHFNwp6siYTeAIINk2BhlHRA+446txsPaIN8KMo0fN5GYnDMMMtJRqKZao7/iRT7KoS 5vg49szXKtScm8SjxfDxNDIXk9Tw5v2gN9wVXSEoqVin7PwGFaWTCR3IviOZQZYQKSxM DHMA== 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=VcLz+JLectl4eq76JetIRN2RIxjnki5yQTvjxWRfAgM=; b=63Br/Cix+kPlDXiBGB15rx7EH0rayMZiwxIXm4OKuUZeorMLu8X16Dfu5US8zGNxSK 5702iJKtOFczgm0mpAP3aRQGtlH5muRj+BDEFcb/fh0TXsI++QlyQDDW/fU8FCF/xR6J 9cwlPtjuPNTMobDOLIKFxZPFsecv785IK4nvJv+lKTwvmkQyXUrFVQjAPbEK3r11/4B4 jIZM5plZM9mWSOZCvs5NmG4TctlnKrO7BncDUearxYYDN2WvM2e+xUJg9uHyNvl5Gapt VO3mzTtSDVeKPYCj7hZUI0isI9FrIe5LzL9XFnmTrXmPx8N2/qs9pq6gbhRvRfdQmoc4 +x7A== X-Gm-Message-State: ANoB5pnpU+McUeWFlMGflxO2gyZRdRe7uVsBStZsfjK4xw2GTVSy+FO6 mtb81BBTuosRjNYpWiJ6nlI= X-Google-Smtp-Source: AA0mqf4ckoin6dGD/x5XJtdvqAL0YTD5HKpohCb+EetbuAAk3yn/kZAu0w6RnZJIPV0/UUtoMLBHRA== X-Received: by 2002:a05:6402:1bdc:b0:463:7312:a94 with SMTP id ch28-20020a0564021bdc00b0046373120a94mr2496485edb.178.1668188042536; Fri, 11 Nov 2022 09:34:02 -0800 (PST) Received: from localhost ([85.153.204.139]) by smtp.gmail.com with UTF8SMTPSA id ku21-20020a170907789500b007ae1ab8f887sm1138089ejc.14.2022.11.11.09.34.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Nov 2022 09:34:01 -0800 (PST) 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 v3 0/4] PWM and keyboard backlight driver for ARM Macs Date: Fri, 11 Nov 2022 20:33:44 +0300 Message-Id: <20221111173348.6537-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-20221111_093406_067180_DCB519D0 X-CRM114-Status: GOOD ( 12.97 ) 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 v3 of the patch series to add PWM and keyboard backlight driver for ARM macs. Changes in v1: Addressing the review comments. Changes in v2: Added the reviewed-by and acked-by tags. Addressing a review comment. v1: https://www.spinics.net/lists/linux-pwm/msg19500.html v2: https://www.spinics.net/lists/linux-pwm/msg19562.html 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 .../bindings/pwm/apple,s5l-fpwm.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 | 127 ++++++++++++++++++ 8 files changed, 242 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml create mode 100644 drivers/pwm/pwm-apple.c