Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp774999lqp; Sat, 13 Apr 2024 21:23:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuDo5XVVgxLty5TjyiH3JbjXTmTLOXKhXvvsX03gX8/YSc2kHd358OTbgQ/WJFCboyXPBDgF4obXKZLsfq+HfJgN9KLM0moIJnwC3WIg== X-Google-Smtp-Source: AGHT+IF6ZcaW78L+6RbRMharT0rbvtQTUBzbHth3xtmKLfjYS3eFFbLqhqixh/pXa2ozkqght7HS X-Received: by 2002:a05:620a:3727:b0:78e:e000:8d89 with SMTP id de39-20020a05620a372700b0078ee0008d89mr991222qkb.57.1713068627858; Sat, 13 Apr 2024 21:23:47 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s13-20020a05620a030d00b0078be2f4a089si7217200qkm.502.2024.04.13.21.23.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 21:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=rz4e5PeW; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-143976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 83C891C20FB7 for ; Sun, 14 Apr 2024 04:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 590191C2AF; Sun, 14 Apr 2024 04:23:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="rz4e5PeW" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2111.outbound.protection.outlook.com [40.107.236.111]) (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 AEBC318E01; Sun, 14 Apr 2024 04:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.111 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713068606; cv=fail; b=stCIetK3p3TeKAbpULplI76S7V/AgoOaBPg/px6Mxe1mJ4+O0cGEbuFi+p1uXF/+EvdGVbE5CgMqznGtmMUU/gK/DOw1JFqmIT74OzDKNf/B2KPSUBPJBhw3KZDFUDkPlpeFCTzgD8p5INggce6nrCmyqRw7d9wEab35t5w4TqQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713068606; c=relaxed/simple; bh=K8A2u7Dq2PI6IEat9z/VFTjTqqmoSg8YMYn3t72s5Xg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=jpY6k5/2ip9NzEqbxUIEzX4IFGbnvIRTvin2SxYNI9EF/uqJ//la+TkfCQo9YLcwKuZI9mawpRzALszKW9gMr7Q8jiyAJhqkQIlyBtA7jlYYrQBAJfQYjw4d1vJPlZYDWM6Dv21lWLYYtR3yjVguK/6aqJWLfgGbyppspKLOmV8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com; spf=pass smtp.mailfrom=os.amperecomputing.com; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b=rz4e5PeW; arc=fail smtp.client-ip=40.107.236.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=os.amperecomputing.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HkR5B0msXjTsxhRh3u+HBvjZHNL6K1hYzZbUKyfx8sSrGLUA49sCWTpeCVjXmWsKGQkTyS9dIwuBYGxzo2xcicd0SDKh9/MAc5Mo1oES2DRy0XhNmywR7d2xGG7orL5SDYYE3Zp81lewSKkwRvejqmUrUbURRzmj6GX8dPdlYIL6HdzCbdebckLyxZnjRWhPQnBKMDyODxaEjjiSRHRQdn4L1F6miCUUW3D31hlBDgi7wOEmCETB8fw2FENSFozHlNrW+IELtV5B+cOtFJKNL/mZDLuf4hm7NH7CIJyP4Q8Gr4zCc730Yx13euUHRtukIAMOWtVFCpwWm9PEV2ZWJA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RJEdQMSBX8lg3gRmciFYX61DmTuf97lbyhiSNxCFbXU=; b=Iga8D1aYijjI/rd6qt1ikNp7LtyymBc8pDSJ+8vElHFUEVpUarxqjlq3UlxFvQ7LMzyzzFcGestFBC7s8NZdTdTUckfJvBSc7G73nqcrNQWjDQLKKjtFOckOljW7oNqjMispNiXiNIxK+IUIQe4EO+ENFOZozyu+6j0DqODfy2nWaM/XL+Vj8wA9Gohinx/Chy0sCCyCExFMqEnW+h43hsL9NS8dHzeuu+PvAZ+IBrtYA4jBl1eoxpAr4naTL88V8fYQ6hGweMk4OTWOVEzXt7nSM0Q47Kmx2vBaxQVtf5FlyrGx6RSad6FTqU3JWLOGnugDKi8DLBH/cCr+VArsSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RJEdQMSBX8lg3gRmciFYX61DmTuf97lbyhiSNxCFbXU=; b=rz4e5PeWQhZaQtwk7Oz9voA//Ilddus1I6FTn5mj96dgb9TnEEWNFff8R7EyQOwHKTcNaEUvn1QjGs/9Gk0VBjVA7KHAxQ6Kb430bQREdxMOES1zt8EuKyQpHFJ4Ul59KZXR8+tVKwNNiwvzqLs92iHxZO0O7k96WTFFBFw0iLk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM6PR01MB5947.prod.exchangelabs.com (2603:10b6:5:1dd::12) by PH0PR01MB6715.prod.exchangelabs.com (2603:10b6:510:97::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Sun, 14 Apr 2024 04:23:22 +0000 Received: from DM6PR01MB5947.prod.exchangelabs.com ([fe80::b557:13cd:8a29:ae08]) by DM6PR01MB5947.prod.exchangelabs.com ([fe80::b557:13cd:8a29:ae08%4]) with mapi id 15.20.7452.046; Sun, 14 Apr 2024 04:23:22 +0000 From: Chanh Nguyen To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Justin Ledford , devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, OpenBMC Maillist , Open Source Submission Cc: Phong Vo , Thang Nguyen , Quan Nguyen , Chanh Nguyen Subject: [PATCH v2 1/3] dt-bindings: hwmon: Add maxim max31790 bindings Date: Sun, 14 Apr 2024 11:22:44 +0700 Message-Id: <20240414042246.8681-2-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240414042246.8681-1-chanh@os.amperecomputing.com> References: <20240414042246.8681-1-chanh@os.amperecomputing.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0216.apcprd06.prod.outlook.com (2603:1096:4:68::24) To DM6PR01MB5947.prod.exchangelabs.com (2603:10b6:5:1dd::12) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR01MB5947:EE_|PH0PR01MB6715:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e44b872-98b6-48ec-0221-08dc5c3a9e80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?6Vql/QokWNG+mc8ohfqk09zjB34YAFmcz5UkIst2Q48T5Wh8y/WWd79WCdzZ?= =?us-ascii?Q?EYdrbllTe5B5211ip93wTA9qIKSigXDgArPt4oU3lu0Lu+zKsZVffWYCwkcz?= =?us-ascii?Q?UazDsoI6T0OFgnrhhtAZl/qGW+AVZrriiJeJXCjyRpBhGQ4SJdizX9noIgDi?= =?us-ascii?Q?iCg3+sMZBEQgL/nPLC6hrNXINXg/4RI44RLiHwatDzCSkZ4TKo3KYVsUTP8u?= =?us-ascii?Q?svOhIS7TNum83Lf1St+F3WAJbasRE7GQBTGpodqAG+iVZsnb0W9cjw+Cl9D6?= =?us-ascii?Q?gY5lFfliCPBsexXK8ytLtYyjW5zFuEQUzNb1TrveYb6az/0SHhTFABSHVR8a?= =?us-ascii?Q?bJn9MMbhsGq2/NXIg1Vnts9okm8twCIMTxnWi2t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460ip7+1/KJGrgJQIg1IEBhszvasfM8lIPHxMuiUBrB9+amJaqLj?= =?us-ascii?Q?GNw=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR01MB5947.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(7416005)(376005)(366007)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SXZUV0VGy3ZurPskgOl2q7xhKmBi0TO3rOUDCbh2G6WtNSozik4rziwZCP37?= =?us-ascii?Q?PYn9Cp4i2KXJcX5zvHZxzpxDvcYJ13tm7i2Obo4U8XHw8KJW/QGGAeqWw8sM?= =?us-ascii?Q?jrCWqRHizwRwhnlrMU4fyvLlJAcrWYlj8tgjKBM8Py0cmevX4dFoYbLqy1bN?= =?us-ascii?Q?loKOtb5J44dtEgl9LZmov3ZCD7iVr6x76B8mypxOPPkbXJ5rMczzHKK48Mej?= =?us-ascii?Q?gG/PNDM8BI2VoZoBKO8bv3n5h1Wvc3sUJWNdMjQi/dYJoy7iZ3ILmFskScrF?= =?us-ascii?Q?NvSoG/zGEUGJls2MUT77plz+v7biy+dpnH9Sx7wt28+4SWgklxb0XOrFwxAv?= =?us-ascii?Q?8UUO0FSRzSxHsqXeZG/HHMy++WPMWz7kZIJMR1iihkSvkmE/qZayMDFYEv0B?= =?us-ascii?Q?FFhy6ludAExwCVOJ07IycDwhUwNfq9i8rLmBuODm004gbDtoJ+gM7ZSMZIqX?= =?us-ascii?Q?is5wpueFlthS0QqoCsTBzCayt2JS4R7SQwNVpNr6/d1CGjfJ9t/XFZhsR5Lk?= =?us-ascii?Q?UfvoHFdmZ7ahnioQ5OvYVwLGy08ayMg7kyYMjmHP650tEe5jxAWD8tgpWK4y?= =?us-ascii?Q?m2ZD3ZNWLUB4kBANAhL0renz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bUrTNnLSVj?= =?us-ascii?Q?CI0nsqnTpnlZYyRrY68QX0ddkVzqD4aNzLD7SzSEmKzWTHqV3VfbuPHjc9KD?= =?us-ascii?Q?cQoL8PsU1Z9ekAVMpj5wcm4w37rw781gw/e5ni5Utgz7p5RBPMaeyEhW6Pns?= =?us-ascii?Q?gPlMkK3G4BD1nCUNvQvRbyE=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e44b872-98b6-48ec-0221-08dc5c3a9e80 X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5947.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2024 04:23:22.0543 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NKDmzGif/iGllOQlmXvW0Uc+nYdnQ85ATzZZHOOYutgtUL8ioMcJCYp3rDNWwD0hfcteI8cFw9tuQSBM8zEutk/ReYrmQt52epdQWLxUyiO1X4fiPx5IUx9Bzay/zLua X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR01MB6715 Add a device tree bindings for max31790 device. Signed-off-by: Chanh Nguyen --- Changes in v2: - Update filename of the maxim,max31790.yaml [Krzysztof] - Add the common fan schema to $ref [Krzysztof] - Update the node name to "fan-controller" in maxim,max31790.yaml [Krzysztof] - Drop "driver" in commit title [Krzysztof] --- .../bindings/hwmon/maxim,max31790.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml new file mode 100644 index 000000000000..a561e5a3e9e4 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/maxim,max31790.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The Maxim MAX31790 Fan Controller + +maintainers: + - Guenter Roeck + +description: > + The MAX31790 controls the speeds of up to six fans using six + independent PWM outputs. The desired fan speeds (or PWM duty cycles) + are written through the I2C interface. + + Datasheets: + https://datasheets.maximintegrated.com/en/ds/MAX31790.pdf + +properties: + compatible: + const: maxim,max31790 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - $ref: fan-common.yaml# + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan-controller@20 { + compatible = "maxim,max31790"; + reg = <0x20>; + }; + }; -- 2.17.1