Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3433608rdh; Thu, 28 Sep 2023 11:24:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkOH/wXzdcgv5bbfq6s7AKygSUO03vJEScFJGv66BGm7CbgYnNnt4BxTxKE0CsdVwB7ea8 X-Received: by 2002:a05:6a00:1a0e:b0:68f:b3ed:7d56 with SMTP id g14-20020a056a001a0e00b0068fb3ed7d56mr1884425pfv.34.1695925463794; Thu, 28 Sep 2023 11:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695925463; cv=none; d=google.com; s=arc-20160816; b=DIaVI/16iZnL9B+D1zgSrEHycMRJTLZlivsXtAl9yGsVY1G/wI0eprck6iVwYL34cy d0mqBFwV3hy8H43hYzuVo6ax2MI6mBYwgxcUEwTskje5Oj92A+Bl7jJw7kQCbnpFv7Xw BDjFvt3JiHde8yY0FvZPGlLbJ01k8l0WabU/Zk7LHpp2i7qboFcUOLmRK9Q52OMrLrwW H9Jy0FQ50hyfJRUBmFaWzUVXzoA7Ps7+jukrDnMHnj0W77v8PQWMvDcKjBieEwqmiQTc ULIBXVAdUvs31JFdDC/5wEy+sbkjxWRiFlXRJjLIv8qP8jwLXU5uZ8Y30gMr8mHvgXo+ lvkQ== 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=cYZaZ52P94Nv0BH2+I21/Hwf2Z5oO0NS7NwF8HCguJs=; fh=hmDexVm9nLszmOoCBMuupKB2a/QvxAZtP6GusY7x2x4=; b=YI9R13WCqrCWEjB2C1E3jIBhu63HyOYzIBUM26EMIrd0GKwi2ih9LhOwc4OsxfnQdU LJdxbGnaSAVnhGadHAFgSA+WECaa4Bb3dNnl8HEbrT1L1Y/iOxv9XdA9kO6OS69Yr5iT tyLuCG2nkAOGFCFy0lsCx2TIARvh2mKbd+sgfszEK27DPomJxiO0X7/YkGcBCirewObo QRFDsVqud++DYl3T2cpGppBQqV6ceRijkdNt+cceFojljyPE8Iu1iMjWAgWXHJTIErK8 scCgdovwY+w46KP+g4NU+5TdTRnaAHfzKMVOO++J4mP5Ofqxw7O3u/00yaIe/bAIVPJ5 tf1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bRIO/tqP"; 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 q132-20020a632a8a000000b00578d6cb1a16si19027038pgq.178.2023.09.28.11.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 11:24:23 -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="bRIO/tqP"; 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 219C182CFA70; Thu, 28 Sep 2023 10:15:08 -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 S231520AbjI1RPD (ORCPT + 99 others); Thu, 28 Sep 2023 13:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjI1RPC (ORCPT ); Thu, 28 Sep 2023 13:15:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DFCCE5; Thu, 28 Sep 2023 10:15:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81242C433D9; Thu, 28 Sep 2023 17:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695921300; bh=kPaMMTfGtPFnEBE78lki4GvEmVbGnWmgp2jahe8ssow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bRIO/tqPvZZaLyfasZtL28uvq5784eqAJZHcQYoLpV/QWRMlqYEZPmusgmDFmcur/ CySTWyS6IQMcCj1MMI8ET0MKNq9W0t/1YMHDLjBKHWJRjMNHjISuSAItaLEO3rSp14 BIPx0K6rTDH87+f6C2DJtRvJ8fOnvuGb97qCl8SaaZDFH9aamtbJ2FQFtK6thH6S55 y5G+Yo82NsmELSWy/pWHcVr2+qR+rSZtUeal/kObh9B2z9/UK/L4KvK/OHScqLKKnX kYXsuk3igncpknX7/H46rJALXCnpnD3MWNlSF6QsU1SCCt2T4WZTgA6M8aV1ss1AQS SF9IVmNxLclZQ== 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, Guo Ren , Fu Wei , linux-riscv@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: pwm: Add T-HEAD PWM controller Date: Fri, 29 Sep 2023 01:02:53 +0800 Message-Id: <20230928170254.413-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230928170254.413-1-jszhang@kernel.org> References: <20230928170254.413-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 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, 28 Sep 2023 10:15:08 -0700 (PDT) T-HEAD SoCs such as the TH1520 contain a PWM controller used among other things to control the LCD backlight, fan and so on. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/pwm/pwm-thead.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-thead.yaml diff --git a/Documentation/devicetree/bindings/pwm/pwm-thead.yaml b/Documentation/devicetree/bindings/pwm/pwm-thead.yaml new file mode 100644 index 000000000000..8a7cf7129321 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-thead.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/pwm-thead.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD 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