From patchwork Wed Jan 25 15:10:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13115779 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 A6893C27C76 for ; Wed, 25 Jan 2023 15:12:34 +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=/9XLxhol8qs91f1L7OkL0vJllmo5WRSt7n2JiS6XXl0=; b=MiqVo4AEUMRFR/ Bmr4qUnlyK/keOiFDeyq8qHz946+qD2xrNg2aybkGQb2sRebyvBwO1oQHsRxsMzFD9p/oS5jbbADm bfThl3U8XPbxEvGq+AI+DhF0oX5e3uxfs/WbenFwEJAXFrw20I50wGa2gW7+wwBpWMol6espWx1ia 8EcS2nu0euFtdM3NpWSkSZf23+Rn6IS5RwgLpzni5Y7LZvZDqCqlBJ4/IH7ipLbBOjqE8izGXadCS uOJ0dwtrlVUkfRJB4BQMP+KHB792wfe2Nx56RSwlLmHoqud52+TVgcNZxW/eOfvChwPvrGm0Jgq8/ c4btPmrDZIplelPXTroQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKhQs-007kCL-2k; Wed, 25 Jan 2023 15:11:26 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKhQQ-007jzr-Tk for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2023 15:11:00 +0000 Received: by mail-wr1-x432.google.com with SMTP id b7so17383808wrt.3 for ; Wed, 25 Jan 2023 07:10:56 -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=K04NI6H8f8RRsBW0KL8tL6HKr2Bz5cQXmicJNH1klmM=; b=SA2NQRG/L8QUVWZChVmJ1+8+IwRHdlSAEQCRRz9NBXcZi7iBjHxcyQuHGJt43u4c6e llYwjNEegTZnZmdn9Fb5EXaLrLNQC/2/LbrSvfh0phjkGDAtovHvnZOuedSGpM9yxdHr cq7cHgRrXAnI0s1mFRwHG/ivgoWw588IqPFeC1EZcLdIWz4jseGVZeQIGV1ZC66Nz/hw U1j5SOasK12fW7FmEPaIjqRxH19RHXfm0aTCiBDwJac2TqBNelUnjDwPy85fziB74Dwk Pm8pGjiubUTQPnfbXFnNxO0K/ZDNakTMM64W10ZdIfD+bpJK3QmTTJr8LoPjUptYOkg9 UJ2g== 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=K04NI6H8f8RRsBW0KL8tL6HKr2Bz5cQXmicJNH1klmM=; b=T0+pfzpPjSzRcR/0ncUV6GynScTPmt9kfTq1eKulpjWaE9T5N9buINzTeKbxn04rQZ H+UB+LcSW05rFC09R1qW7cXcoBd0uVVmWeWixNm16eGHGm/CEzJMi1urI1bmZHNar+BJ NEo2vaUUWs8tuVDIGH/JObssGeiEALsy6YToMYdPS6K8nyKIx1cF2jJtZywaNrXt+D4o L6XRbruB2BvExuq7OU1UHhdaGmG/4axhzPYmZOhNhtvpMn3yqnlGpnvgy9eRVd9QuYZE rvFS/vvIpdNsaFRyaTG8+K6kiVLZLMtN4EX7CqfOJoylTbT20Ox7rgd99mO4HXnb37a+ jrMQ== X-Gm-Message-State: AFqh2kpVlq4kzBpiA1ZhgxiumWBhYdxMvgpAixuOzHslY4LKvHCTpEgF /T6y7jyQBSq6DLPfRwOsAiI= X-Google-Smtp-Source: AMrXdXv8xSDMKuPB22yoht7YSdJKa83pN2WZr5uVBiJfuWmo6tGV5xAiy6noeRVyDoNTBw+2C4pl2g== X-Received: by 2002:adf:fbd0:0:b0:2bd:eb6a:cd43 with SMTP id d16-20020adffbd0000000b002bdeb6acd43mr26306973wrs.15.1674659455687; Wed, 25 Jan 2023 07:10:55 -0800 (PST) Received: from localhost ([82.222.96.52]) by smtp.gmail.com with UTF8SMTPSA id v7-20020a5d6107000000b002bdc914a139sm5344448wrt.108.2023.01.25.07.10.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 07:10:51 -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: Wed, 25 Jan 2023 18:10:36 +0300 Message-Id: <20230125151041.55483-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-20230125_071058_987800_DC9576BB X-CRM114-Status: GOOD ( 12.24 ) 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 resend of the v7 of the patch series to add PWM and keyboard backlight driver for ARM macs. No significant changes this time. 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