Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1261921rwd; Thu, 15 Jun 2023 08:17:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SeYmLvWf86y4R90mjWkLHU65XlSzQwczUP/BIDd8yC3QYoyOleeGMpZbmezcX2TGkl0pI X-Received: by 2002:a17:907:8a1f:b0:982:a2dd:4543 with SMTP id sc31-20020a1709078a1f00b00982a2dd4543mr1874807ejc.18.1686842223351; Thu, 15 Jun 2023 08:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686842223; cv=none; d=google.com; s=arc-20160816; b=rFemTI/AoKIE6Y5PJ7XVEbQy+rvd3j0bFwFvevBYfFewjjhPn4R/ZEvQ0oJF0JPyTc aM3CI8nJ5S5fwFltIBzkGEF4JGYu0+S8OdVmqIuLGqXfjuqE5pl719Ops7nR5VDLc8lD VSaDMAUPSKDdSo7kgzfA+FJ1AkGvqJ4mZHQEx1/8IGkftKjxwo1Fir6imPtovLzfiZ31 Bef4G3z9wP/8i3lrUeI+piZmVYB3NgKbBzFn5ErzHHpiBfXkaqM5DPIQQ3699z0zuWu4 rgZCvRTaR1W8OBqHD3qftCEMPxS9Y7+xvqJOpBUtOxG/VoA6WKxol9sxCLyamS6olZqt PwPw== 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=01rML8QNhx1meW63X7YOChbwA/I11tVl46mShxzno8c=; b=LO3WijOElATzA93UAggRRUTOafsLF3dZt32HvBoFWda8lAw7dAtuL/8JLIw1VvC69u sYzjp1lNQ5CYqQ1eAH+i8tAhNwvocxGgs9J0UGv4WTspdW/KGXRMx0zHkX0g3PEJYhqd 0PNAwXNmRkh9f78/d172ki6yE/ptjNClbN+v5lCTKtmetFWxhfwp2yvY9c6rkXkRTHuk DOnCHlWMWczfWFGAyux6SbpS0R6ErR4XSh8LDzUOKLpVCUc8TsrVk/mQSjefwzs7E9Nh nKxBakP9KgmpjScYsinnIuGMhzvSqsg3OlobNZbLvweGAoi07I1gxJqKe9mXMdlUeEwu BvOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="pvA/+HLk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka17-20020a170907991100b00977ead30c92si8995470ejc.559.2023.06.15.08.16.38; Thu, 15 Jun 2023 08:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="pvA/+HLk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241476AbjFOOpM (ORCPT + 99 others); Thu, 15 Jun 2023 10:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344299AbjFOOo4 (ORCPT ); Thu, 15 Jun 2023 10:44:56 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A572948; Thu, 15 Jun 2023 07:44:54 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f76a4c211dso2517044e87.3; Thu, 15 Jun 2023 07:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686840292; x=1689432292; 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=01rML8QNhx1meW63X7YOChbwA/I11tVl46mShxzno8c=; b=pvA/+HLk8vgyap9cUCFXxWzeUdNPB9Ek2np+gXBneOchgcRWdGUWKuRKGNmicfLkYe nZmfLMgNIp8JoSlcrocdAVKe9CJ4b+2qcF6UJyPJuVcHgivOfeCZ5ZxczOmUbI0r4v3v nsuRvyqRzSdalni1iFMt1adUhZZ1MyfTVKmQPX/GseW1tjDCDMprOVtMZ9CJQ2IbY81+ Y1zZKj2Yisrge/IDvfWds0v5868fQ+zTWWQpeU13l64gIRQYJTx4+XkSiLxR87/XyA8O juOlTX8a+vBlj3qzIIU4zQJ9UdlN0lJLv69VnMZm9rAy7oHxRNrxZ1tMn7OyG+++oFp/ hOKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686840292; x=1689432292; 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=01rML8QNhx1meW63X7YOChbwA/I11tVl46mShxzno8c=; b=lqLpD0dXGiq0enYTYepW7aQG3P8tftW7kuNuV9mbJG6VC4UZkoxDqe2V2TL1/nqXmQ FmdfPy/byNsk+3t6vIYflHANe/cElIgVCXN2oaNxedpnI6PIY7vzRh4J9GgJDMbBh9yu yGONrDHqbbzyW03TYS/PKeiC1ELYDN6KD8slq8iH3OHO8UayHmsV+u/hqVrSHKMRPGu3 jrOpcyj9qoDiRYW7vNP0Mkq3P+CKgChDWtbMWpeKwZcvmkCY7vXGl3C2RyGK7n/l6P0b Kc9NIHjdSxWqgYZxRpZ0deWMF0ufzXw+i67ItVkjpTIsxVtB9U/aENkNolicMjkyc7eI 7/YA== X-Gm-Message-State: AC+VfDzO9t+b6gSFZ15AQXn+Wr37s+ajkq4MnMt37Vyy36YOWYcCMSsh t4Z2fJO8JGZ/YpSTIqKw5fZOgiunOWTE7M7gdA== X-Received: by 2002:a19:641b:0:b0:4f8:451d:d2cf with SMTP id y27-20020a19641b000000b004f8451dd2cfmr1301114lfb.69.1686840291885; Thu, 15 Jun 2023 07:44:51 -0700 (PDT) Received: from localhost.localdomain (mail.pulsar-telecom.ru. [94.181.180.60]) by smtp.gmail.com with ESMTPSA id h7-20020ac25967000000b004f13f4ec267sm244451lfp.186.2023.06.15.07.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 07:44:51 -0700 (PDT) From: Aleksandr Shubin To: linux-kernel@vger.kernel.org Cc: Aleksandr Shubin , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , Maxime Ripard , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org Subject: [PATCH v1 1/3] dt-bindings: pwm: Add binding for Allwinner D1/T113-S3/R329 PWM controller Date: Thu, 15 Jun 2023 17:43:56 +0300 Message-Id: <20230615144423.828698-2-privatesub2@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230615144423.828698-1-privatesub2@gmail.com> References: <20230615144423.828698-1-privatesub2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Allwinner's D1, T113-S3 and R329 SoCs have a new pwm controller witch is different from the previous pwm-sun4i. D1 and T113s SoCs have one PWM controller with 8 channels. R329 SoC has two PWM controllers in both power domains, one of them has 9 channels (CPUX one) and the other has 6 (CPUS one). Add a device tree binding for them. Signed-off-by: Aleksandr Shubin --- .../bindings/pwm/allwinner,sun20i-pwm.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml new file mode 100644 index 000000000000..e5f9cb2d5c4f --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/allwinner,sun20i-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner D1, T113-S3 and R329 PWM + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: allwinner,sun20i-d1-pwm + + reg: + maxItems: 1 + + "#pwm-cells": + const: 3 + + clocks: + items: + - description: 24 MHz oscillator + - description: Bus Clock + + clock-names: + items: + - const: hosc + - const: bus + + resets: + items: + - description: module reset + + allwinner,pwm-channels: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The number of PWM channels configured for this instance + +required: + - compatible + - reg + - "#pwm-cells" + - clocks + - clock-names + - resets + - allwinner,pwm-channels + +additionalProperties: false + +examples: + - | + #include + #include + + pwm: pwm@2000c00 { + compatible = "allwinner,sun20i-d1-pwm"; + reg = <0x02000c00 0x400>; + clocks = <&dcxo>, <&ccu CLK_BUS_PWM>; + clock-names = "hosc", "bus"; + resets = <&ccu RST_BUS_PWM>; + allwinner,pwm-channels = <8>; + #pwm-cells = <0x3>; + }; + +... -- 2.25.1