From patchwork Mon Nov 21 17:42:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein X-Patchwork-Id: 13051494 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 99A18C4332F for ; Mon, 21 Nov 2022 17:46:06 +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:References:In-Reply-To: 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: List-Owner; bh=/QcvnelDkk2xz7e7nNlxXq7IP6lve7vWgKCjhkb4enQ=; b=U2n6Ze+d4l5BQT xuqNWzg5/D6ArkAAjb9JglIn3gLCj54M7wsTER6TRjMYwAm4yY31aoYMhL0AlN9ljch3egDDhoLPB by/FPTGHTwjRkXWmdOYJbCZZ6OL6k6B1ZWbStaZh+dyJhxTbQ157hdaFAjcHUpD8rbq26Chs7D1Wj KqmSWvwT6orXE2m+clmgYzxIxC6giZkdsjLXl2MBBD48Vne13GSEoNhKR30fw2m75VzoPOzEytiP3 aAEBiONGHxFPf0hVRGsHXp/d79TZwuSgFbBWoimTJx1WgbKQkFck9C3m9tvhSdcunccOSY1VaHuCI 5ovr9IhXTc+zta1hn9GA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxAr0-00GSSM-GL; Mon, 21 Nov 2022 17:45:10 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxAqw-00GSPq-6o for linux-arm-kernel@lists.infradead.org; Mon, 21 Nov 2022 17:45:09 +0000 Received: by mail-ej1-x62b.google.com with SMTP id n21so30205313ejb.9 for ; Mon, 21 Nov 2022 09:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vc7s+j1I+v53zIS5PmltGaeTsanNeN5sDlFmwluvB4c=; b=ZW7YE20LBYtuKZLnhkZfVvIw0tdu4LjJ5muSHbTVqkWxOEaxDM8Po2OsAitkQgNX4N DCQRE1JY+E0OJ37N4H9hVjdHD4ey3PtMr/N9mT0uvoeDPkHFvMLu7XoAjx39++8TIXGe LK9WRn/LtxTMMLGBkR3t/ncaXH2UKpHENGAq6UDo6tZvxwbMLdBeA0hrnJKtHK7UkSWU icXlOnv+MYkFR33qMD0ZdcITLgMeWLPvkmKyatSwhzYY59G0hkl3kAVr/V7l07tAr8Iw qiN1gLFQIU13b/NL+NTJu4EM+IkkbKff7UkcxX/7o5AA/P75Pm+F1Y8bD9s1WDXD65SZ IEBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vc7s+j1I+v53zIS5PmltGaeTsanNeN5sDlFmwluvB4c=; b=LaUCfiZJCN69fX0HuA/XeLkTTyLVHIB6a/aQk2Rasp4ZpRAc6BsCIEsicFXm/mXWgO iilBWz0vThOa6mQaKhT+aPTXk3VRA/ZLOQeXiEbaFiFg8tBHVHdiXUItq8J36XQoYx0r uN6uUW6EjPi1dSYh+I+25BeT0la/xwOuh4v871QpObjGjninRyyafE/Go9eraN3grzkU mdLKLrxqqZEC6RMv9a/E55oMJjc0dIpA15zRM8ZNP3jMaiI5KtsV2o3GnXflwWG6SWo5 8U1ekx501jjNVBmDWxEQ4bTMH7lpVQpHUMmnfeZGQDbdiYpM4bG3101lbOl06lZQW15E KEXQ== X-Gm-Message-State: ANoB5pk4ufA6QXFDaJzOGTIBpwJM1AuUGA/xlA23A61p0oOovCsDTEzS fWWs92HPcuK0mC/vcotcZDw= X-Google-Smtp-Source: AA0mqf7lXxnZYpevpsV858rlXSzg0QPJ3/LuKa1iCQAHnmOwNX3SpRCzIWR+qkYbpC56H0BsZIHzcQ== X-Received: by 2002:a17:907:3ac2:b0:7b7:c1e7:eb54 with SMTP id fi2-20020a1709073ac200b007b7c1e7eb54mr353463ejc.393.1669052703924; Mon, 21 Nov 2022 09:45:03 -0800 (PST) Received: from localhost ([217.131.81.52]) by smtp.gmail.com with UTF8SMTPSA id x19-20020aa7cd93000000b00467f643585fsm5404201edv.64.2022.11.21.09.45.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 09:45:03 -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 , Krzysztof Kozlowski Subject: [PATCH RESEND v3 1/4] dt-bindings: pwm: Add Apple PWM controller Date: Mon, 21 Nov 2022 20:42:25 +0300 Message-Id: <20221121174228.93670-2-fnkl.kernel@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221121174228.93670-1-fnkl.kernel@gmail.com> References: <20221121174228.93670-1-fnkl.kernel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221121_094506_269143_9C763081 X-CRM114-Status: GOOD ( 13.53 ) 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 Apple SoCs such as the M1 contain a PWM controller used among other things to control the keyboard backlight. Signed-off-by: Sasha Finkelstein Reviewed-by: Krzysztof Kozlowski Acked-by: Sven Peter --- .../bindings/pwm/apple,s5l-fpwm.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml b/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml new file mode 100644 index 000000000000..142157bff0cd --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/apple,s5l-fpwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple FPWM controller + +maintainers: + - asahi@lists.linux.dev + - Sasha Finkelstein + +description: PWM controller used for keyboard backlight on ARM Macs + +properties: + compatible: + items: + - enum: + - apple,t8103-fpwm + - apple,t6000-fpwm + - apple,t8112-fpwm + - const: apple,s5l-fpwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + "#pwm-cells": + const: 2 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + pwm@235044000 { + compatible = "apple,t8103-fpwm", "apple,s5l-fpwm"; + reg = <0x35044000 0x4000>; + power-domains = <&ps_fpwm1>; + clocks = <&clkref>; + #pwm-cells = <2>; + };