From patchwork Sun Apr 14 04:22:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13628896 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="rz4e5PeW" 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> 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-hwmon@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: 6Vql/QokWNG+mc8ohfqk09zjB34YAFmcz5UkIst2Q48T5Wh8y/WWd79WCdzZEYdrbllTe5B5211ip93wTA9qIKSigXDgArPt4oU3lu0Lu+zKsZVffWYCwkczUazDsoI6T0OFgnrhhtAZl/qGW+AVZrriiJeJXCjyRpBhGQ4SJdizX9noIgDiiCg3+sMZBEQgL/nPLC6hrNXINXg/4RI44RLiHwatDzCSkZ4TKo3KYVsUTP8usvOhIS7TNum83Lf1St+F3WAJbasRE7GQBTGpodqAG+iVZsnb0W9cjw+Cl9D6gY5lFfliCPBsexXK8ytLtYyjW5zFuEQUzNb1TrveYb6az/0SHhTFABSHVR8abJn9MMbhsGq2/NXIg1Vnts9okm8twCIMTxnWi2tJcVzcuUe/dmXpBRQ8qFfb/N+9J14/pPC5k87J8VEkkQgk7gK4dil0O+MsOS7wVIg8YYEUnPsEWcOkkc+VDFE1MAgeiArtMiY+S66Eya+MRr3HNahWkqtmJ9JbNP2mGK3NhzZwIjAHVgY3TmTFvP3v2bH+h8SnGGL2AHjG2BMtsZ58sTpNVvLL6TkYWJ3AAISQn8jlAOIFcIB9lwkccxljNk4zSfvjhMboG+pQAVZm7KbCWwjEqzUyvGZbRZKScIS+/feEhIrDyHFNkc5xManDqAP9QHn4DwKL/xvo9k7D969+byymeO6RaRuLOjohzWqpWrZQY1RlA1Hz1xpq9e41etWXT8pH5+wDN19rBQTLWOL4jpIqiiUWFGnBB5Cq1xRgZZkUYmde6tBteDeKtMnzc4UqK8FMn55NUkpqndllp9fXcIKhanfiNpBK7tS98iAQ4keGVJjV5EjWHdYXWsnw6gYmy9+KClZx53Vx5nhDNcDpuRfBqPwlvLUKAsw/2xQjoxqkYbsrtCSU7Xuqp8SVLnJXO6xPc50q16pUKldhn2P0hm1RJckV+vwjyRNNnf3gzXFWI7xW4MZDOgiJWRR2OytVskEiN/hZo3ItGQUYsFEFBhb2uZf6RPDT7sLQ3Zd3KM9YQJB0Zf9gQy4jblGr/fsK5elg1TszXGuVN8Axcqmn6dnumxnj8dkQu+YbEETgCFfgmTXYJAAWt+GEqxB5WKRRHGA3W5vHkVDcXvFJLZQWUctcTe97tAPGU46P5rfAd2dP9b6ayHukwck1owJXxnv/xGTOe8BhQml+Z+wENpr/9uX4YB6W7uqj228getfTKdSoEAmiEvgepwK0bWM72YJsvWRZHz9vks/9460ip7+1/KJGrgJQIg1IEBhszvasfM8lIPHxMuiUBrB9+amJaqLjGNw= 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: SXZUV0VGy3ZurPskgOl2q7xhKmBi0TO3rOUDCb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Op7rxiHWGK/ILIXq/fwbQYKjVcYEJdV/hr3KupIoWLzUBUafFUFnx0SjFkUQU9L4jfDAzaXDOlPp0acGDlEBfqJ6cSE+YlAVX7ca7Q0D5Lf7V1jMj5UyVH6bJiED5dTONjc+TezwPxTdMYiW+pfQNYD1YnVFyo7iWJ+OyE2EgDXbkssb5aI5ZXC/UYEdK5gtYZRtCPCggdc+nUyLLLkKCaiRZDWGe1h4/sI9hgNrPpZeu9oOY88mfvqBxQz5PaQA+JtlAFD6kT/roQBiJxq//F+ycKe25e/RPUXZvJWrTFnweGRlejtqJ4UdrqqMSk5JnTU4sRdiVUt/nATBV4FzaluB6B3Fu75S0OKv503MXB6FfRh65MdYJHK3g+2X6bipbUrTNnLSVjCI0nsqnTpnlZYyRrY68QX0ddkVzqD4aNzLD7SzSEmKzWTHqV3VfbuPHjc9KDcQoL8PsU1Z9ekAVMpj5wcm4w37rw781gw/e5ni5Utgz7p5RBPMaeyEhW6PnsgPlMkK3G4BD1nCUNvQvRbyE= 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>; + }; + };