From patchwork Tue Jun 6 09:45:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Billy Tsai X-Patchwork-Id: 103706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3280245vqr; Tue, 6 Jun 2023 03:10:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7K/MOLo6CSHtVIz6lfPE1OYBlvqENHcOrR7rVPFDoc4pMoTLHvdBRs5F0bvBAt69cE+cQM X-Received: by 2002:a17:90b:4f8a:b0:258:ebb3:932 with SMTP id qe10-20020a17090b4f8a00b00258ebb30932mr640279pjb.3.1686046205681; Tue, 06 Jun 2023 03:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686046205; cv=none; d=google.com; s=arc-20160816; b=yo+YOOCAoZfbV2qHekF2+W/xai9XLBZrOUWijckzPmoBMW4o9ZWYPCi09VG5w7+Gsd 3ZRzhLoSBdjigV5KeRRhUCmkyMu1yyfytb93FLbQ7yF5W5YbmQZbDidre0lYkEazcFPM V9GoOiNKgM3yYhuf2kWHIFadD+KHUxTc+a973jQ7Q6FlukIH4IVaMD4OUvY23Otick/O 32nA4cfG19xyFE3U+LYsy0vlVCbXHllEDLw5kuR4oWoK/jUyxbkEs06GCEObIWCOMo0/ NkTlMKQWcBuOD5nBDg0o4vVIfeLiZIcl5yXBbSzcJBDA36DCUNNtHa9r0iVteQyp+FSz RV7w== 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:to:from; bh=gDHtJOiRh9Djg3MBKHzQGnmaT3gUCdwEluVkEXXO9eg=; b=Ro9K+Yb4tNeXGAQBW2RIf5QUhW5lpfdSuedFZC1N3Y76BNUclI8dZOoQmmmM2OaFME Yipyhk8nAZK0UmAyE5NSLJCmX+7bU35/EjdQB+FvJ4zu8j1/R+Qi9JbXsOx+fSKZWG9I a/S0IhTDRm30gCtMRflCgYYZQnzu6dia0cQIrl0a5xMCI3PSeixWXqKyBQEMBT6wp+W+ Zo37PLixOxNMXY63NaidQYZgCihVoq9fzKYIuyr+HUihxV2u6v5JxA+i0CQfcMR0OYfV Rt0WpO6WTWZHOBooJbGl87+Sw+61133/Sg2rM+ZtSqgIBW2ioilDacCgO3dP5MD1c1Go 1qHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 26-20020a17090a031a00b00256918d8db9si8815028pje.17.2023.06.06.03.09.52; Tue, 06 Jun 2023 03:10:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236970AbjFFJ7G (ORCPT + 99 others); Tue, 6 Jun 2023 05:59:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237615AbjFFJ6w (ORCPT ); Tue, 6 Jun 2023 05:58:52 -0400 Received: from mail.aspeedtech.com (mail.aspeedtech.com [211.20.114.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1634E1711; Tue, 6 Jun 2023 02:58:41 -0700 (PDT) Received: from BillyTsai-pc.aspeed.com (192.168.1.221) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 6 Jun 2023 17:43:42 +0800 From: Billy Tsai To: , , , , , , , , , , , , , , , , , , , Subject: [v5 3/5] dt-bindings: mfd: Add aspeed pwm-tach binding Date: Tue, 6 Jun 2023 17:45:33 +0800 Message-ID: <20230606094535.5388-4-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606094535.5388-1-billy_tsai@aspeedtech.com> References: <20230606094535.5388-1-billy_tsai@aspeedtech.com> MIME-Version: 1.0 X-Originating-IP: [192.168.1.221] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767947586065152772?= X-GMAIL-MSGID: =?utf-8?q?1767947586065152772?= Add device binding for aspeed pwm-tach device which is a multi-function device include pwm and tach function. Signed-off-by: Billy Tsai --- .../bindings/mfd/aspeed,ast2600-pwm-tach.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/aspeed,ast2600-pwm-tach.yaml diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2600-pwm-tach.yaml b/Documentation/devicetree/bindings/mfd/aspeed,ast2600-pwm-tach.yaml new file mode 100644 index 000000000000..f98c11ff3f8a --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/aspeed,ast2600-pwm-tach.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2021 Aspeed, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/aspeed,ast2600-pwm-tach.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PWM Tach controller + +description: | + The PWM Tach controller is represented as a multi-function device which + includes: + PWM + Tach + +maintainers: + - Billy Tsai + +properties: + compatible: + items: + - enum: + - aspeed,ast2600-pwm-tach + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + pwm: + type: object + $ref: "/schemas/pwm/aspeed,ast2600-pwm.yaml" + + tach: + type: object + $ref: "/schemas/hwmon/aspeed,ast2600-tach.yaml" + +required: + - compatible + - reg + - clocks + - resets + +additionalProperties: false + +examples: + - | + #include + pwm_tach: pwm-tach@1e610000 { + compatible = "aspeed,ast2600-pwm-tach", "syscon", "simple-mfd"; + reg = <0x1e610000 0x100>; + clocks = <&syscon ASPEED_CLK_AHB>; + resets = <&syscon ASPEED_RESET_PWM>; + + pwm: pwm { + compatible = "aspeed,ast2600-pwm"; + #pwm-cells = <3>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0_default>; + }; + + tach: tach { + compatible = "aspeed,ast2600-tach"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_tach0_default>; + fan@0 { + reg = <0x00>; + }; + }; + };