Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp396112rdb; Thu, 5 Oct 2023 08:58:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNdL4Zx9PQQ5toFWZCAmIGnKJEF6b82lNJ51pTxmT/59JrxjWdliiJL65FjImFvT2isLmY X-Received: by 2002:a17:90b:4c12:b0:274:8363:c679 with SMTP id na18-20020a17090b4c1200b002748363c679mr5265196pjb.19.1696521525231; Thu, 05 Oct 2023 08:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696521525; cv=none; d=google.com; s=arc-20160816; b=CX1HS2AvAwwqTIP03daGE7YTzLxSdKBJ45RQ9mmYLsOlaEl0Qrfc+s5TElDlb/FIco trIfm+cOJlTb5Zb6UoCa00ULQSXme2Z8g7AYqTMMozvflGQVOaeKVxDxYPyls2Fr4XOv HeVk4L1sWyWi9W7lUIYjIXe+97Ej+CI1COYFUUnTRc9RLHBVHlaEDUEVYtTY49dew7i/ JZOlXMMY0Z3ZmJHK0o1SJizqGMTnoMrW1jRasrKyGIwhpoSLNJGz3Nbp4bf9En0LwGT/ ha1zqkB+LKWQKg7fZcYthBlqmyS+Y6peEAvRAVBVwJqQVKfGb2W7fF+4KR9TS2VaW8QK T18w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O4+HxTbZpVYmhk+3lQDgxZeAOZcxygSAiIT33sowygY=; fh=EdwdJ92l1FFTEhch005sfCaVulvYEJbF5Zo74uKW6mA=; b=SL99Jr6TTBaykD+pB0f/SaUOOn/pDMnYlk5XOeJigHLLM9wkmLNq5m2xpycq4LVPAs PKgrIMkeVawn9zCNzWdDjbHTdyYeb6amIlNfOzed3smQ9rA3KM3DkmNxozyDmz3yvAOf PRE9u8N78ouIZMaIfVBaCORVuQTAiqY45YbkVYU9rLjpamHUnYzWAP61lc2B7EA/k5tU Fm88I9UFbuKi7mZuIagis3Bmr6x7BLWRNM1XgCBRXlA+vcMH5cuAO1jBcofzSGVTgWVk +lTnKtxlO56oy+7kQ/orISL6Lw/5XCCOtvWosXIFrOf2+QbuoqBEqDzrOm+lzB8dcuKL HUFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qi5hmaZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p1-20020a17090a868100b0027729063879si3923620pjn.27.2023.10.05.08.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 08:58:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qi5hmaZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BC03088D5178; Thu, 5 Oct 2023 08:58:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234673AbjJEP6Z (ORCPT + 99 others); Thu, 5 Oct 2023 11:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234237AbjJEP4n (ORCPT ); Thu, 5 Oct 2023 11:56:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49E83158F9; Thu, 5 Oct 2023 06:57:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EB11C4AF6B; Thu, 5 Oct 2023 13:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696511860; bh=FvFYza5x9SIIDMnc6LuiyfJJi2ON+p3o+hoKtpoSL5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qi5hmaZIDtPlhx2c4ALDQ6HJp7a6DS5QaACOaPvXm9Peip64ktVO7rkq7sY2CqBLH 3jhSX7WGpwuu/CeP5gJMMec9URMsQS1vHw+aeLnGPuQMN5OPgiQe7H1/q2Q+FcGCVA tPpIPk780sm0c0ffpNso4bodCzRqQs5DO7KygBy4di0vd8D5FUfdH71YXKpgdSQ2PF l9wNoJRynwa13m9nISzrrenPgZINkDcbosYmPMdpKfuyWIBK37dCoJ0FZyBf8Z3mfZ d8DzQCpSkWnppxRoKJ8+qoJRNkZw2wIXuqT65slTyuz+SpqEeZa4T+TE+R9IKYDYS9 jqDcq92N4O8Qw== From: Jisheng Zhang To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Fu Wei Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring Subject: [PATCH v3 1/2] dt-bindings: pwm: Add T-HEAD PWM controller Date: Thu, 5 Oct 2023 21:05:18 +0800 Message-Id: <20231005130519.3864-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20231005130519.3864-1-jszhang@kernel.org> References: <20231005130519.3864-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 08:58:42 -0700 (PDT) T-HEAD SoCs such as the TH1520 contain a PWM controller used to control the LCD backlight, fan and so on. Signed-off-by: Jisheng Zhang Reviewed-by: Rob Herring --- .../bindings/pwm/thead,th1520-pwm.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml b/Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml new file mode 100644 index 000000000000..e75d8e9f24c5 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/thead,th1520-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD TH1520 PWM + +maintainers: + - Jisheng Zhang + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + enum: + - thead,th1520-pwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + + pwm@ec01c000 { + compatible = "thead,th1520-pwm"; + reg = <0xec01c000 0x1000>; + clocks = <&clk 1>; + #pwm-cells = <3>; + }; -- 2.40.1