From patchwork Thu Jul 25 13:27:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 36D95C3DA49 for ; Thu, 25 Jul 2024 13:28:57 +0000 (UTC) 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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LcaryiO3GRwXMHEhHAbSAjtc3ZpedfbPCALrznL9hYI=; b=Y0VJh+TqyKWrlU6IJzwpIykovX ZPVZ1XYKeshHppIJIZWZmrJTISk4beDTze3dx6grF50ZxjGPiZVXwkaud2e9uoBecOik5ufql9Kee pvEMu6/yvESCkOKw+3K0Ooe8ng0dd0vTFN30EvxJ2d13UVz0GGUJ1qw4He4Y/yUMF1f4S0y1mzX4w 9eovDc7MJ/xejdyEjw4pqJgqO/gB749L0lwEGVpna28aiIDHf7rwYU//pKmlKNMYAhhGXaHVP1+In g6a2wTOCnesiIAhMRXj3TpF7z+E9/1cteVBe2Z2IIYR1rgDokWSRIx8ZyVQPh+4xOegPQ089ASuQC 8ul5YmTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWyWc-000000014ki-0d6p; Thu, 25 Jul 2024 13:28:54 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWyW8-000000014V7-0nEL; Thu, 25 Jul 2024 13:28:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BQXKp4sw/wTFPPYldp3gMbk4RGEPIoiNvRhp4vlwiTfVpdfJl8KHmciNpmEipy7tEzqocWlhc8sV/hGVfs0+yEl6wokPOMhdIorbKWZmp0JjILNU/yz4htz3+CICFi9vjlWV4Ky+srOSx7yrtkAAPaaW+73MWIT15HrNKs52hU+4IVuMvQtws1nRys08fzPGoeS1QjODj24cWcnZypZcw0QMrhh0g7R4si69CBYBhpx5FKu/OMnl0hQN3gK18vHuyj7nJndjJB2SQqOlxmQ/U/lOIvNmq9piUbGPwF2m0UWOuSxOJBJd7cSAiswX4/MPcQ9h0va8z+Oul+Hpe/Jh3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lBpVZjh2NnQubKNFxCn0nUPLaAPSbgyPx/mM4ADWwPs=; b=NoMXVpbNf1xPo4Q4nuRhfLwhGO1CBeIZ+oVuOqoZU2yS6aj4JMPmxy5KGugl3+6vZFBwqXhm1R8mGif7bN1znp/1x74ff/jextYirWQUy/r1snPSi3M/Tp5FuseOwxTMA9WC2KqlG92cYmPP/csiMiCflpQ6XY8h1QP5ZiBv2cVdvW3tD96JG4PKw6Fg2R4vHYHwmEkrtuS5xiVkQ7uKnKAiu0tnSJ1nMfHZ6JlumPh9sUtHLLm0ZDD4Suk3vvn8C8vyjUgPfHk6NOcsXIfzjy50ItEdVYzwObv+PvGeOPpG/lpphWtrTBu8DMEnGqz50aCqNSMKQY7dkYe6dl7T0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lBpVZjh2NnQubKNFxCn0nUPLaAPSbgyPx/mM4ADWwPs=; b=dBmgrh3w1IZsEyFg+W++/kfJC4H5ppP52jdYM/IsHon01nRhX2gDt9IEu4ZT8E6tW5oyUsq1ePfBRe7uNjH7VB4tgXbVl2BPPO+xX9dp31O/X0fiXy/aJgSpvV5OhuL11UIFFGuF6FpGwP9ko4Cta+jALVzRpEEdftngPI9/wCc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:18 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%4]) with mapi id 15.20.7784.016; Thu, 25 Jul 2024 13:28:18 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:49 +0200 Subject: [PATCH v6 3/8] dt-bindings: hwmon: add support for ti,amc6821 Message-Id: <20240725-dev-mule-i2c-mux-v6-3-f9f6d7b60fb2@cherry.de> References: <20240725-dev-mule-i2c-mux-v6-0-f9f6d7b60fb2@cherry.de> In-Reply-To: <20240725-dev-mule-i2c-mux-v6-0-f9f6d7b60fb2@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1P189CA0008.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::21) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 25a9be1c-1492-4a1f-fde9-08dcacada4e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ib5MJR25cbkQDBIMD9HfkeXdcYrhcHr?= =?utf-8?q?CrsEPALpRAQugNr6VMh9A2/ZxJBAyCs8RKVhWpo1Xbc48SCH+W3dm7kARtyRS9pw9?= =?utf-8?q?p8b75t9+Y45tzovt8vdO0KNmX7FtARWnrMtS3ZMt+0DTpUg3L8YRj70UWUzR15YML?= =?utf-8?q?1tkRGIdP25e+jEl9bui69HkNpawJISl7Rc0dBwkZVRGgTO7R/DhoQoswKuKsB5Gg+?= =?utf-8?q?aEXae5iTbKfJN5Mf/zixwlmIJqPhPwviT+IgfjQ3Grj8n5dLA4FUuGeOnWNIgqTnH?= =?utf-8?q?rhZjpsmC9Q2uMjIRSs16N7Y95JRMcaTGWCCgYYsgAYcYCwQG3uGKFVSrAnmuHNqcQ?= =?utf-8?q?maX4PyQ6DzwFOMh+mwR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0gOKLG2UoVDeGYpnn?= =?utf-8?q?bnwBRUQ36nqu3JF0DBIed8skeKvcwzgcbIORCM5hhjwl5kzczFt4IoJoJvQ/hHvqw?= =?utf-8?q?0P4AJXOvXnPH?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lAmQmYTbrDGN0GPMrft60w+qqnJm?= =?utf-8?q?Z5aykMgvl+m+q3kU71oS/C7dtLkKUnJrJy4+q1Cvu8l3m4Rpy4XK7w3ROY48shkCz?= =?utf-8?q?4qRqs+uGUXaQftGXsAsMeVBVBMlahO4zr4oAQFyC/ybFGuoefeEnNNQ+Vfcm/64E0?= =?utf-8?q?LcYVAthDz3wC8kqyJBXgg8ChmJQpu6/b1RVxmMgk+Fu0kejb2qpvBmSsEdJQXGdJE?= =?utf-8?q?t+cjfHFmZpLDzCd84470eixGeTSxDLGXoAIZ/kzWtu7Xn9jCP4ZjXzCT6dJFlBMek?= =?utf-8?q?MI8YWvWm79wvNHhU66mI8k/kJz90pzpJpyZapMem14+WQgEglFEVS171SlkxdLE1g?= =?utf-8?q?2qs/jgm/RAtSVdxxh8ZPTOMPKgPihLOH9CyboSp2JBdE0Tq5UR6Z38Er6AY3eh3d2?= =?utf-8?q?7lpyO+cjvhAFvftHGkktj3cp80gPjzWcfuKTopV4QFLLTVyEBL4qApfNjImxZbjib?= =?utf-8?q?6eCY9C/igk2gXBo4kagI5/+o5tIfKxKAdMVz2IFWfhoVPFFbwMpKq5LZEGNUXBeZt?= =?utf-8?q?TFZWhBatPheXO2qNyDxt1XOmAKlVZ1azzkI0rPAzEg3iE42Z72hw2uFKuNPE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PLFA?= =?utf-8?q?sTzYeSL/yGTs+uvA7R6scDIxYu28ZfEk9A3gY3Vjn/GMmfBcrPWfh6xY/noKZB+i4?= =?utf-8?q?O8ygJycVmR8NH4kDlgReDQBSm8ZbRKW58A=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 25a9be1c-1492-4a1f-fde9-08dcacada4e8 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 13:28:17.6511 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nV14Va1gmMh6j/5rcK3V+cV/L60p3i7J5ZBkHRF9AD9xGPJ+VxLUzBP/GaqEhZPwGIuNxpKpzW7JgE9Xv3WaWdjIQGpfLr26Iy1B9QZ4XiQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240725_062824_330844_99767957 X-CRM114-Status: GOOD ( 13.45 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add dt-bindings for amc6821 intelligent temperature monitor and pulse-width modulation (PWM) fan controller. Signed-off-by: Farouk Bouabid Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/hwmon/ti,amc6821.yaml | 86 ++++++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 86 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml new file mode 100644 index 000000000000..5d33f1a23d03 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,amc6821.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMC6821 Intelligent Temperature Monitor and PWM Fan Controller + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: + Intelligent temperature monitor and pulse-width modulation (PWM) fan + controller. + +properties: + compatible: + oneOf: + - items: + - const: tsd,mule + - const: ti,amc6821 + - const: ti,amc6821 + + reg: + maxItems: 1 + + i2c-mux: + type: object + +required: + - compatible + - reg + +if: + properties: + compatible: + contains: + const: tsd,mule + +then: + required: + - i2c-mux + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "tsd,mule", "ti,amc6821"; + reg = <0x18>; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 5d3dc952770d..24f8aca55f15 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -368,8 +368,6 @@ properties: - swir,mangoh-iotport-spi # Ambient Light Sensor with SMBUS/Two Wire Serial Interface - taos,tsl2550 - # Temperature Monitoring and Fan Control - - ti,amc6821 # Temperature and humidity sensor with i2c interface - ti,hdc1000 # Temperature and humidity sensor with i2c interface