Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp419614rdb; Fri, 5 Jan 2024 14:51:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoNjNdorlCp4wRoFeCDqhEx7lirahMW+dJdzsH6eInLqbSYJH6aFsYkhf+79AjMf2Uibf5 X-Received: by 2002:a17:902:bd84:b0:1d4:deff:5416 with SMTP id q4-20020a170902bd8400b001d4deff5416mr141907pls.139.1704495087387; Fri, 05 Jan 2024 14:51:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704495087; cv=none; d=google.com; s=arc-20160816; b=DPEtoaOF5qy/LXGO9dVxWZT3zpnc94JBVplR8Hhb9XygMgETyyrEkWKzOH1qsyRyRV ATmMpsFgR9i6OMfRUiXozO1izTdNtNyj61tlI5/NsQ15CcDsVWBMajQF0tTjKr/rz56Q XrHmfNZVxCQzRzfN2LTOo+QQNyneVLmdLZkwVCEPBk607yNe1YD1e/LFcmkkdvWLEqY0 jSNA9DlDfpxxxlAkcY0acySmuSyBc75zYkvAs2reBQdusVuoWAmF4tqLxvFSeL2uHA/n 1lx3rKnrtqVrpd6qlHxmeV1d+Q701z0hAJoOanHiy+UzAUvJHZkVQgKdX8Rhz5kNTUSB Yqbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from; bh=Z8sv2Ac75F7IiOMTglo3QKAhJ3bQBUqUaGSDsNSbP1M=; fh=cqd7bcudjVxDW4UBlEO+lufv1o/VtPKGzkkQaF3IMjo=; b=tRVjddlufvM7ZPuPij6qwbbMWm/zrQi7tXD82WdgaLkLeT5AYtEzpZjXQ+PNc53bPh HEuDmHHTC3SMBoT1Bo+d8ZMCItw2vgCrwVmuL5Jx1wCU/x8FA8vzf+AFxziFraoimTKs kwlkQtiATbJ/fR+TdnzKZf6RqP9efYihTq+vhC1l2uRNIfJ2jT2SghvghMe+oAdtLt8f /2VdhMBQcE0p70LzglLeJUubLHJW674Ly1pUtNHJABl+D+NWw50IFRBvtP0VaGolvDF7 7s2P+BXsMs3LtT2ibCa9H7MzPwieGYhQv/s6rCzdE9RN7MfRGUi1wByQSCLXld4DBRiX KvWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18404-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e2-20020a170902b78200b001d0187da0a0si1877636pls.292.2024.01.05.14.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 14:51:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18404-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 15504284F60 for ; Fri, 5 Jan 2024 22:51:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8F2E360AE; Fri, 5 Jan 2024 22:51:18 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0D2136094; Fri, 5 Jan 2024 22:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id C4FA7852C5; Fri, 5 Jan 2024 23:51:05 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= Date: Fri, 05 Jan 2024 23:50:32 +0100 Subject: [PATCH] dt-bindings: pxa-pwm: Convert to YAML Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240105-pxa-pwm-yaml-v1-1-4ded9d00c38f@skole.hr> X-B4-Tracking: v=1; b=H4sIALeHmGUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDQwNT3YKKRN2C8lzdysTcHF2LlKQkA4OUtFTzZDMloJaCotS0zAqwcdG xtbUA6x6XOF4AAAA= To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Duje_Mihanovi=C4=87?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2935; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=exJFcZMfLakzLW30XCN4B+b4XSe/8POoE4BDRUIR0eM=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlmIfChkSh+CgUu/dIC5qbtD5pY+rHr6ydJk/RV aTDzQY4m42JAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZZiHwgAKCRCaEZ6wQi2W 4dxwD/9TfUze7+TN88Hg8yHNR7YIBQZvmqCYKjo7YA1FpAf1qrSuGQvzfM/If8UjDPXKOheXriX 7WC5xCwb8dFe5yaefC+rIDQH1WsjZpZcik9V9P72hGMGR2HYNhjNDF0hMTbzesQ1IlNNjU4afoF VgMKpD0agGn3GQaKe6O6pgQLwcaLiBr+m+ukqlq1tn1Ps3kCZpdJH3OLqUsxJ3hfPwS1zpKQ59b zB3OJaPpp9kC2vBjq1aW4UfZiiw6zde1ilk5+paRG/vihqdY1OXfJ0fsf7gy1fFc9xrfRwmPt8H zjtANB/r/DF2Zdj4Bskn5vULn+neGfxkddNokV3zXx/c7Mkudt0A14da4/SXX2WAj8PdFwp0Dp+ KXV5Ybt6cKX56BFdy3cg/9BgMEBuAno62+5Iyh7emBF5HTfYfbDEpmHS6d1xIpNKFBs/zIu/TzQ cOMt73isETCb53+iGADWX0gCXcJoHC6yRHp75GhLJHNVWNyTyNDDbsb1HPlcBvEFAFHM5vcSVK2 4FJFEIB2DywIIk1pxxybqxgmSuQgfMr0vs0z7DiWYKRM6VPkbiabuW88WZmChd7J0zktlhFNlZ0 7L4l+OPUyzDAfOdn8ua616idpPWYsBmUxdY6J4y+7W3y2s1N4ticl+KwHy0lzilB5Ldbi0Q8i9N vG/ZHe56sarjNDw== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 Convert the PXA PWM binding file from TXT to YAML. Signed-off-by: Duje Mihanović --- Documentation/devicetree/bindings/pwm/pwm-pxa.yaml | 51 ++++++++++++++++++++++ Documentation/devicetree/bindings/pwm/pxa-pwm.txt | 30 ------------- 2 files changed, 51 insertions(+), 30 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-pxa.yaml b/Documentation/devicetree/bindings/pwm/pwm-pxa.yaml new file mode 100644 index 000000000000..fb20e4e1daa8 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-pxa.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/pwm-pxa.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell PXA PWM + +maintainers: + - Duje Mihanović + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + enum: + - marvell,pxa250-pwm + - marvell,pxa270-pwm + - marvell,pxa168-pwm + - marvell,pxa910-pwm + + reg: + # Length should be 0x10 + maxItems: 1 + + "#pwm-cells": + # Used for specifying the period length in nanoseconds + const: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - "#pwm-cells" + - clocks + +additionalProperties: false + +examples: + - | + #include + + pwm0: pwm@40b00000 { + compatible = "marvell,pxa250-pwm"; + reg = <0x40b00000 0x10>; + #pwm-cells = <1>; + clocks = <&clks CLK_PWM0>; + }; diff --git a/Documentation/devicetree/bindings/pwm/pxa-pwm.txt b/Documentation/devicetree/bindings/pwm/pxa-pwm.txt deleted file mode 100644 index 5ae9f1e3c338..000000000000 --- a/Documentation/devicetree/bindings/pwm/pxa-pwm.txt +++ /dev/null @@ -1,30 +0,0 @@ -Marvell PWM controller - -Required properties: -- compatible: should be one or more of: - - "marvell,pxa250-pwm" - - "marvell,pxa270-pwm" - - "marvell,pxa168-pwm" - - "marvell,pxa910-pwm" -- reg: Physical base address and length of the registers used by the PWM channel - Note that one device instance must be created for each PWM that is used, so the - length covers only the register window for one PWM output, not that of the - entire PWM controller. Currently length is 0x10 for all supported devices. -- #pwm-cells: Should be 1. This cell is used to specify the period in - nanoseconds. - -Example PWM device node: - -pwm0: pwm@40b00000 { - compatible = "marvell,pxa250-pwm"; - reg = <0x40b00000 0x10>; - #pwm-cells = <1>; -}; - -Example PWM client node: - -backlight { - compatible = "pwm-backlight"; - pwms = <&pwm0 5000000>; - ... -} --- base-commit: 610a9b8f49fbcf1100716370d3b5f6f884a2835a change-id: 20240105-pxa-pwm-yaml-8dbb00dfe7c6 Best regards, -- Duje Mihanović