From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F12D0C07E9A for ; Wed, 14 Jul 2021 04:20:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BAB8D608FE for ; Wed, 14 Jul 2021 04:20:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BAB8D608FE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:In-Reply-To: References:Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5+27mcyGq/gp4+AraQZitITlujVdB4vtBuFZ3e0sLYU=; b=BXlnvm0zOiRkWu H2AmmbTejtTGTy7OGpd0JPJNKNFsFUT8qdSHxBaIlrXRFpACKt/YLN784/eLAW7h12Pzhq0HVpAdm PUIRp98EWBn2tW/kFr9DZ0l2QM4u8wPsBGp65Gg0yMEJnGSuyV1myJjdOlKURwOq57rVAWxe0XHVp bz+iLIzDJuyM3oTMCnI6k6DDkFq2RlVut2IR7sLyjftg44EgnYCkmilEWClYMoESktYlPHaMezUWY zAbkSkN2+NLa1yJagtNQ1iESRqMl5yMWLQjAAkNWdB3Fl/UDHK5eQYzghxRSQmStao/nObcX9wVtA 20LoKVTFH7EpzWBxwhCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3WMA-00CGk6-LI; Wed, 14 Jul 2021 04:18:46 +0000 Received: from mail-eopbgr1310112.outbound.protection.outlook.com ([40.107.131.112] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3WM5-00CGjK-L9 for linux-arm-kernel@lists.infradead.org; Wed, 14 Jul 2021 04:18:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CpevQbYndXiNJefA9swnSF3v5xnRMJB75jij2b8QeLhphodaWz0XAFPJs0mX9ACD6/85y4kDLRr2+RD8ENOMgGzN8th8wimWrHKV271xbYyh8z0u9ge4fqzdlZNLN1jXnChr4DZ4kAbrEJPReBS37FUk3MKRPA4JF7MftKx5DNSo5D8UG3vxiMVFD21bpKW9FmHR63KBAOigwQTZqcZNDgLyEDMQrWIseELcpuWGwB/vzNk0T1KyN32BcHo1V7ThxOEjdfGo/gTJ5Pmq6tBK8HzFDywklrnw7YDx1mutXawZieLSSuYyLT2i0ub6zzkSwgtzF2S4S28MRjWvRfwjKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0vAqyhtNsnX+x1tA1Jf4grJdKn82KPtVsyj6y4gJeik=; b=Q6wVYWwbIcEtWIlKdrYPlhggc4/SUEqvD62+kfDGlcHbOi+1UYPVmasfgUpBGzkvQx+ptHSUyYAOCZGXqtnd/S+xRLyazN9S7RfQljf3kUh5HyLxZBcIgYaDgeAvSowfWG9Ol42w62npddE0RN+3wcpe/guPTYbUB6m4doIQRJBbyIZFF4WMeJ6n8Lvu56KoWegJXYPnrK4aWl92BJ6MyRAoJV6miwzn+hxyTEYqw0pFAXuVUMGhih+4/iYN614RN8GDN1zbM2wdKkyaiP45kPfD8KHkad2VPNAfB/8rhwF0rQmPlQYo1nejkWavWPg8ffCHeDzuh99In20/Pt+cnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0vAqyhtNsnX+x1tA1Jf4grJdKn82KPtVsyj6y4gJeik=; b=cAsVijoNFPMpZZ2uIt5xVEJK6FA+0pMHOUrJCzVN2rx+j5asLZQtCFLh+Um9pfBzVIrrZhnfo4JFILo/J72N2I4KuTOomBGbiaqPBmo6dnSIdF9HCK+zHTWVFjIOlPFXftt/phWqQt8Dbu+2gJCBdZwpdf50sW/z42J6L8Q6hcVdmG/RXLwcW4tQpUE1dcjTCDQ501KbWcYMW7VsNTnOS0PfaCYnhyCFJyDfrWdduCYJzd2mi8iEtnPD6QToGWQzNI11fJ1WQTwtdFsSne/cGMT41mvLAwjn07HTAeV4+QwUawTPYfSf9h5n7R2454JCI3sBdlAyIkFqL9mrA2cx2g== Received: from HK0PR06MB3362.apcprd06.prod.outlook.com (2603:1096:203:8b::10) by HK2PR06MB3538.apcprd06.prod.outlook.com (2603:1096:202:3e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Wed, 14 Jul 2021 04:02:35 +0000 Received: from HK0PR06MB3362.apcprd06.prod.outlook.com ([fe80::a529:f5b3:b9d6:5e27]) by HK0PR06MB3362.apcprd06.prod.outlook.com ([fe80::a529:f5b3:b9d6:5e27%4]) with mapi id 15.20.4308.027; Wed, 14 Jul 2021 04:02:34 +0000 From: Billy Tsai To: Rob Herring CC: "lee.jones@linaro.org" , "joel@jms.id.au" , "andrew@aj.id.au" , "thierry.reding@gmail.com" , "u.kleine-koenig@pengutronix.de" , "p.zabel@pengutronix.de" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "linux-pwm@vger.kernel.org" , BMC-SW Subject: Re: [v9 1/2] dt-bindings: Add bindings for aspeed pwm-tach. Thread-Topic: [v9 1/2] dt-bindings: Add bindings for aspeed pwm-tach. Thread-Index: AQHXdI7yKsdmsqvIQUSavJJdmrvZGatBf8qAgADnWgA= Date: Wed, 14 Jul 2021 04:02:34 +0000 Message-ID: <029CA29B-1488-4F73-A9E7-FB9BCD0B987F@aspeedtech.com> References: <20210709065217.6153-1-billy_tsai@aspeedtech.com> <20210709065217.6153-2-billy_tsai@aspeedtech.com> <20210713221431.GA936073@robh.at.kernel.org> In-Reply-To: <20210713221431.GA936073@robh.at.kernel.org> Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec7bdef0-fdc5-45bf-7912-08d9467c362b x-ms-traffictypediagnostic: HK2PR06MB3538: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FfOXoqnel+dz4oUqYsJfo/w6bsuBifwfvGkfPAw+GW0K06yCkg9yZfxWiI9ETQMiwhuMnVSwBZT3zKKbYUx4WQ1xjk2yRXfxHUmQEReZ6+xnjE+pb1wuNLjy/IgLEwobhCwQsO8M52F7zrxd/fx9oheaE1+BK6svpm/H/RAkwlR85sulLpYCdCqZd9y6XyzCbLuc99RtOrdAf3frz8o4ULZvsk8igFRJShol65vpeN+sU5XP0oi9U9SZRbf8a88G0OFdIolxhxfLTIc/sp3+djbLJLYrvTHD8fclx2PglnzN8id51/rD6qNPVtwtPAxC+SxT8pY0P8uG52NIUc1VR8EVybxr+wF9QVzhRL3fLVE3/AG2tTarKFytQfQ+w4v+hXLrA9Vxd7KD0lNBkLZX6C+OEc65+q91iaY1tYD8avwPUc4+D6AHDVM3M66VVmtLuBFxpGat56YawzJq/GhaSTN5zusy4TBUHTkFaTQroLN2ET/yUAQ8YOXH/WC7PC9AAfqIqpAK/Mr8d0WCjv9KH/ILYGqkOCzNtTavc83ck+D3+Y9V0SgYw/msIteXPFybd6d8TzyGTBpl6x6LbpmLTHvkLlwaIVx5sOPm9695hntvUxX2S7hOWAdgdKDqw+xDyh1klBfLDWbbtyAsbPnmXpOEmYwj7cNjBsPV560caKssAEEFL6m4dbQP+nr0Gzazkb1+p+bfnK4W5qOvDeIBZPWE+ZO3PDQs+EE20MTLEKhlUVQb1bqyBDvoQmvPCA9GmaJRM5k//ZRKy2uzM79XLQ2aIKQJIv43Te09nBweaZn0nV6XY7+FjVkEL9628Sidnlelnh3f4ag94Hjf+CA9w9lWD920PhCDVjlUPr7WrLA= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HK0PR06MB3362.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(39840400004)(136003)(346002)(396003)(366004)(83380400001)(66946007)(6512007)(66446008)(64756008)(6506007)(316002)(86362001)(4326008)(966005)(33656002)(66476007)(53546011)(5660300002)(122000001)(66556008)(76116006)(107886003)(54906003)(2906002)(478600001)(8676002)(7416002)(2616005)(36756003)(186003)(6916009)(6486002)(38100700002)(71200400001)(26005)(55236004)(8936002)(38070700004)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?alBhZ2pIcngxN2Z1ZTU3WHdaclZVMmZjQ2dMZUUrcmJzSDZJSFYraWJaWTJv?= =?utf-8?B?bzA4YkIyTEpnZS9jNmNoNjdnYlAvbEtPSHVxYkMyUWRJYXVadmM1WE1CeWVX?= =?utf-8?B?WWlFL2ZmOG1MV2FmSy9IRllISTFNc3lsSWNPdVNXUjlKUHNDSWhwZ1o4eDFP?= =?utf-8?B?YmlnWk9Fdm9XSHZoOUNRa3B1eHJCbzBjQ1dzckpjdnJodms2azBFVWxkREFJ?= =?utf-8?B?U1gzN1loeVIraVVGV0hXSVhVWVNUaXd4dEFOelN6YmtmemhSQzYzTGJzMmpn?= =?utf-8?B?ZTBWN3ZVUVUvbWZ6U3hCbElITTRJdTNCbEF5akZDMWFKWHhhd1UxWkxiVUw0?= =?utf-8?B?QmtNSVdjZWpDOFAzeFdkNXpCVlVMbVFiM3FMMzh2UG14Yk9UMngyNFhIdkll?= =?utf-8?B?UlNBSUdXcUlFWVRVeW5WeUJMVmJLNG9peXFuRGJqSDZaZEJPSnFaT2hmWW9K?= =?utf-8?B?WnRIbjVPV01vTDJBSEJkejZxNjE3Z2dXblpYUFpub2JrZUJYZ2liR1MvQ2lr?= =?utf-8?B?Z2R4SVlGdEI3ZWhyamozZTlhMUZjdWlTbTlZY1pWQS9jbi94cklCVFNwVTEx?= =?utf-8?B?VEpuWDR4ZW5pQUdOWWRJZ0xoRndqZVdpWWsvMVBLeWU3aVZGZ0J5MnRMRW9P?= =?utf-8?B?SUdJcWwxYUcxQUQweTNRb09lL0ZuM1k5SUdvRVZNU2ZQaFRoMGNrTGkrOHVo?= =?utf-8?B?Zk83dVFVaXBoU3Zwb0lJZkdvUCtxc2hDYUoyVFpSRUlVTURYTjVESUFTM0JN?= =?utf-8?B?OUtDZldZQTg3akxobmZSYmxJaEM1VjU2WGVDN1MzWkRlRHd1bE9jOUVyZDN5?= =?utf-8?B?RFRBVXhJS1NuV1VPVzZCUnptR3VHeGZNdmxObVIyRzVvM3J3cFB1a3FROGov?= =?utf-8?B?ODlXaWh0Rys5YWVBWXovZW43bzNDK29vUzd2MzRwd0pTcXdOY254V0RiT1Fq?= =?utf-8?B?Q010Y0paSzUrdHhITEpqaDZKcXRBUDFyeVFOMnp3V2RiVHNHZHY2WVlUSzln?= =?utf-8?B?Njd5YTV6YzZwZ2tZZHduZUIxRlFaOVJJU2ZDbUlqek5GQit2Nzl3YTdPak9x?= =?utf-8?B?MXBDc0lSbXB1VzlxNU1OdWQrYUpNbHVBT2ozeXk2bDRJV0VocytWV25OQVpO?= =?utf-8?B?dXBCS0ZFSHV5N0ZsaXNSOXFmMWNsNkZ4Q3EweUJINHZTc1R1b04yMXNzd2ps?= =?utf-8?B?a1Z3UTZCUUNsTW4ydTVUN3lNbGIzdDdyUUtPbUo5N2k0WVpSUUpKbzZIcGtC?= =?utf-8?B?UUUrRFJ6NHdPSGZTb3dDL2FaNmxlYmYrQTl1M05zTUdpQWpYbGJhbDJhVExF?= =?utf-8?B?ZktHSUVuaEtWU1g3UDQwaFRhUHd0M3NWR3Y4akNRdlBtajRwVENEOTFJaURs?= =?utf-8?B?K3l5ZW1aNnRad1E2a2JZbXZkVlpXbDNtaWRjckdRd0lLTFJBdnoyU0sxUFJG?= =?utf-8?B?cDlsSUFkckh0dDA4bnhkODhoMjZmWnA1cm9yczhhVE83QW1UU2Y3aVBrY09L?= =?utf-8?B?Uk1RUGdCdWhXV2Q0bzVCNjdZRXh1N3BZTFNvdXlpOEwxV3pPeDh5MHNKNXpM?= =?utf-8?B?cGdoRzgyOFBCWDdtVTJvakNLU2pXTmNURHZPVXQ1ejd3bGsvMWFJd2JTVEpX?= =?utf-8?B?R1dMR0t4S2lDalhObEl1RWlaOXBBcWVtQXZWTVpZZFY1cmdhWkkzeFJyRHY2?= =?utf-8?B?Mkw4VThCeTEvNTFETFozdkRyNjlaVGIrelNjNkhzSHRaMnN6NEtsOHdZTjhT?= =?utf-8?Q?2idXvFm36cDrqGRKABLKS9XSvwzl+UC4qn5qb3I?= Content-ID: MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HK0PR06MB3362.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec7bdef0-fdc5-45bf-7912-08d9467c362b X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jul 2021 04:02:34.6724 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7NHnw8VngZyJHZUd2qr/Hmh+iNxQMJIiAACVvv9Oza6IwA6kPTK/xFi3k120OdD/A72c3HMXzNrEyzhZBNKRNXVMEtLLSocnLhItZc3C3lw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB3538 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210713_211841_927628_CB35549B X-CRM114-Status: GOOD ( 20.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2021/7/14, 6:14 AM, "Rob Herring" wrote: On Fri, Jul 09, 2021 at 02:52:16PM +0800, Billy Tsai wrote: >> This patch adds device binding for aspeed pwm-tach device which is a >> multi-function device include pwm and tach function and pwm/tach device >> bindings which should be the child-node of pwm-tach device. >I'll say it again, the fan control h/w needs some common bindings for >describing fans and fan connections to pwm and tach. I'm not going to >sign off on more fan bindings just doing their own thing. This patch doesn't use to binding the fan control h/w. It is used to binding the two independent h/w blocks. One is used to provide pwm output and another is used to monitor the speed of the input. It is different from "aspeed-pwm-tacho.txt" and "npcm750-pwm-fan.txt" which only focus on fan usage. It is more like the "kontron,sl28cpld.yaml" the device includes a fan monitor and PWM output devices. >> >> Signed-off-by: Billy Tsai >> --- >> .../bindings/hwmon/aspeed,ast2600-tach.yaml | 69 +++++++++++++++ >> .../bindings/mfd/aspeed,ast2600-pwm-tach.yaml | 87 +++++++++++++++++++ >> .../bindings/pwm/aspeed,ast2600-pwm.yaml | 64 ++++++++++++++ >> 3 files changed, 220 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml >> create mode 100644 Documentation/devicetree/bindings/mfd/aspeed,ast2600-pwm-tach.yaml >> create mode 100644 Documentation/devicetree/bindings/pwm/aspeed,ast2600-pwm.yaml >> >> diff --git a/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml >> new file mode 100644 >> index 000000000000..a08471f96a61 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml >> @@ -0,0 +1,69 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +# Copyright (C) 2021 Aspeed, Inc. >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/hwmon/aspeed,ast2600-tach.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Aspeed Ast2600 Tach controller >> + >> +maintainers: >> + - Billy Tsai >> + >> +description: | >> + The Aspeed Tach controller can support upto 16 fan input. >> + This module is part of the ast2600-pwm-tach multi-function device. For more >> + details see ../mfd/aspeed,ast2600-pwm-tach.yaml. >> + >> +properties: >> + compatible: >> + enum: >> + - aspeed,ast2600-tach >> + >> + "#address-cells": >> + const: 1 >> + >> + "#size-cells": >> + const: 0 >> + >> + pinctrl-0: true >> + >> + pinctrl-names: >> + const: default >> + >> +required: >> + - compatible >> + - "#address-cells" >> + - "#size-cells" >> + >> +additionalProperties: >> + type: object >> + properties: >> + reg: >> + description: >> + The tach channel used for this fan. >> + maxItems: 1 >> + >> + aspeed,min-rpm: >> + description: >> + define the minimal revolutions per minute of the measure fan >> + used to calculate the sample period of tach >> + default: 1000 >> + >> + aspeed,pulse-pr: >> + description: >> + Value specifying the number of pulses per revolution of the >> + monitored FAN. >> + default: 2 >> + >> + aspeed,tach-div: >> + description: >> + define the tachometer clock divider as an integer. Formula of >> + tach clock = clock source / (2^tach-div)^2 >> + minimum: 0 >> + maximum: 15 >> + # The value that should be used if the property is not present >> + default: 5 >> + >> + required: >> + - reg >> 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..ab49aff1928a >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mfd/aspeed,ast2600-pwm-tach.yaml >> @@ -0,0 +1,87 @@ >> +# 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 Device Tree Bindings >> + >> +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 >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - resets >> + >> +patternProperties: >> + "^pwm(@[0-9a-f]+)?$": >> + $ref: ../pwm/aspeed,ast2600-pwm.yaml >> + >> + "^tach(@[0-9a-f]+)?$": >> + $ref: ../hwmon/aspeed,ast2600-tach.yaml >> + >> +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"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + #pwm-cells = <3>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_pwm0_default>; >> + pwm-ch@0 { >> + reg = <0>; >> + aspeed,wdt-reload-enable; >> + aspeed,wdt-reload-duty-point = <32>; >> + }; >> + }; >> + >> + tach: tach { >> + compatible = "aspeed,ast2600-tach"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_tach0_default>; >> + tach-ch@0 { >> + reg = <0>; >> + aspeed,min-rpm = <1000>; >> + aspeed,pulse-pr = <2>; >> + aspeed,tach-div = <5>; >> + }; >> + }; >> + }; >> diff --git a/Documentation/devicetree/bindings/pwm/aspeed,ast2600-pwm.yaml b/Documentation/devicetree/bindings/pwm/aspeed,ast2600-pwm.yaml >> new file mode 100644 >> index 000000000000..f501f8a769df >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pwm/aspeed,ast2600-pwm.yaml >> @@ -0,0 +1,64 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +# Copyright (C) 2021 Aspeed, Inc. >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/pwm/aspeed,ast2600-pwm.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Aspeed Ast2600 PWM controller >> + >> +maintainers: >> + - Billy Tsai >> + >> +description: | >> + The Aspeed PWM controller can support upto 16 PWM outputs. >> + This module is part of the ast2600-pwm-tach multi-function device. For more >> + details see ../mfd/aspeed,ast2600-pwm-tach.yaml. >> + >> +properties: >> + compatible: >> + enum: >> + - aspeed,ast2600-pwm >> + >> + "#pwm-cells": >> + const: 3 >> + >> + "#address-cells": >> + const: 1 >> + >> + "#size-cells": >> + const: 0 >> + >> + pinctrl-0: true >> + >> + pinctrl-names: >> + const: default >> + >> +required: >> + - compatible >> + - "#pwm-cells" >> + - "#address-cells" >> + - "#size-cells" >> + >> +additionalProperties: >> + description: Set extend properties for each pwm channel. >> + type: object >> + properties: >> + reg: >> + description: >> + The pwm channel index. >> + maxItems: 1 >> + >> + aspeed,wdt-reload-enable: >> + type: boolean >> + description: >> + Enable the function of wdt reset reload duty point. >> + >> + aspeed,wdt-reload-duty-point: >> + description: >> + Define the duty point after wdt reset, 0 = 100% >> + minimum: 0 >> + maximum: 255 >> + >> + required: >> + - reg >> -- >> 2.25.1 >> >> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel