Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2484986rdb; Wed, 4 Oct 2023 02:40:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGufA2vXiTjEFwMbXkO6WU3cWLORo0h+EQI/SufIUeU5d5qCCXdL5olKJ3dPQQIFxFEBlXB X-Received: by 2002:a05:6830:1db7:b0:6b8:8f20:4cbc with SMTP id z23-20020a0568301db700b006b88f204cbcmr1529608oti.13.1696412408094; Wed, 04 Oct 2023 02:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696412408; cv=none; d=google.com; s=arc-20160816; b=tvlIbayIw/MDI3+CR8fXzNOSm7JAmajYJWt2mXZS/gfkeD9WVMSPtricy9tavg97Hf ZV78PUgTDvQZ8RmIlGiBkL+70k8Fs87D1CIi+5ZrfQtFq/J3n3aSB6DCYzt7SvF/Db1M HbQBVR304bxr+H14PuyGw61jrVUQbVgEUMnFcIV5v/fpHt7U2KSpJSgPixM8EMX/1lHg QtguLrk/N1RfPwrXXuonnmSA9K9J0cxZW5ZDCkbFsi5/CFChiAxaQ14v2byvX9k9l3Q0 RYALnciuiTeHiY3AQNdKKIo0IfMiUwKuKRu+td3ykLh1xZ4Kqa4F4YENjSvCjM7OJThD 42+Q== 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=dmcQpKgzWGb+frSigM+2bKIG4ciAe1TBmEXg6kPck6o=; fh=l53NGSUWVwSFbDpxOdi+UhGzdVINQI32LnYbYIyTtx4=; b=bj6OAVMqHPNJqXnv/csgh6tP+WZTtgbH1miSlhVtHjrd/bTSia0kIcgwx13+NpQs2+ 1YjsXgQeavuP4y+7bOVUozEdigtxdcZxs6hOxdT74N4MAN0a//S/owGqENqK7nRqjnQp df6DO43CsLzOEXI8QYzaKJBysKJE4/ttFG09N1OB/R9Y7iRW8P1pa32OzcLoN9Lgow0T rJ80ALzhdESTyTSelzX37O3rAWxYVdt4E4MrtmAzhXic0ufCyyo1SRrcdIMMl1YoytO2 8cONgC5XaSyJGq4uE3muh9mu3V/tLEpdpbhKVjoZGJZm8KjEu5klurOYVOaHlYtfZOx9 Xv7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=utRM5di0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c192-20020a6335c9000000b00565f0e9cfbbsi3621888pga.382.2023.10.04.02.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:40:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=utRM5di0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 47AA38260F63; Wed, 4 Oct 2023 02:40:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242072AbjJDJjp (ORCPT + 99 others); Wed, 4 Oct 2023 05:39:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242069AbjJDJjm (ORCPT ); Wed, 4 Oct 2023 05:39:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F378BB; Wed, 4 Oct 2023 02:39:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA5C8C433C9; Wed, 4 Oct 2023 09:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696412378; bh=2KYQTHHdlxj8qqNgAA+KrAtJZX+1U+xrdvGAdks0XNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=utRM5di0La3cVCDAD+xziNd9r09uI+BdzTNkawHSEMsjrfMSGfdB9f8RbvFjsQA/C cBi28Tr4ExoqyTA7H2xEFRkAFSRrC9M19/IF3uPaIHOUK7xb0gN8+GAelTJQe8LvLP FsgOzK1tKxXwMKsZZ5XF8SG5hzhW6zWjj7H29K7h53DyvKcwW3oO9KUDPsXey2n7UC UZLgRJuFdx1wQOtURVCRzYnTvBH8OTDyLH/rsFH0m4UoVd25uvp7DgZtfcS7+VmVJQ F+ZM2UC6PGFlrzTeR8gbJ+mR0IKD2Pj96wn758sUIC7ysPapwJP8B1q9pXt8XPJ+Cj FDSHmhO9UmFOQ== From: Jisheng Zhang To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 1/2] dt-bindings: pwm: Add T-HEAD PWM controller Date: Wed, 4 Oct 2023 17:27:30 +0800 Message-Id: <20231004092731.1362-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20231004092731.1362-1-jszhang@kernel.org> References: <20231004092731.1362-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:40:03 -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 --- .../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..b9c88f758a39 --- /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: 2 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + + pwm@ec01c000 { + compatible = "thead,th1520-pwm"; + reg = <0xec01c000 0x1000>; + clocks = <&clk 1>; + #pwm-cells = <2>; + }; -- 2.40.1