From patchwork Thu May 30 13:48:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haylen Chu X-Patchwork-Id: 13680446 X-Patchwork-Delegate: daniel.lezcano@linaro.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2028.outbound.protection.outlook.com [40.92.52.28]) (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 0F595171B6; Thu, 30 May 2024 13:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.52.28 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717076951; cv=fail; b=tdL7DOxoHYLVBrEdGrUbdkWmyHc6gRjl8pluixF7vx6RmU7qFVIC4bQ+o+F+svuy+01NFHRmGW1nluPPsIz/sinF3vq/G/XXp3A4/l0hYxJeh8qWYiD8aYZJlV+tLV+2oASVTW7I7vNWNOq2tc/0/6nW4s9kqPDN5TwvTnhmLvU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717076951; c=relaxed/simple; bh=xYjGlOAlfb3l2GgICtxJblYSnasGuwCA+dP6QXTLtRs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=VEXrNdvaOHX9qNlVvZyT5fSkna/LiQvKt9otSNXXh4I94GQQy28K6eTpRf1KHPcRYEUD+MERKUBl+sBdWIG3lO072tJ4xeJYQnVwy1bGYGOzJTCt6nTYt+vnuuor0Z/4P8sYHqw26hMUc6XYTYcChsi7bhjfW7t2aRlAoSn7PRw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=HPxtMEfA; arc=fail smtp.client-ip=40.92.52.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="HPxtMEfA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JVlEyphrYNEqlYzXEgd7GiAkismHwjj61EUer2KF4Rfjq7sVC5QJjV/Jsq9zabuk3m735VJ0gXieb85vQzijYV9u6m2X4ECrklXX3X7iCoXInwxbD5akudnwo8SJqRKMCnJtkm23sK5ZcN/BGotd4Su914V/DTYJdpvBEEec616Iw3NRy+eCyQebe5QQHVKy3/7x9ceypaDuzC/qt28Hro6pUi6AiJQWJ5QHWPdld0o3MUT6uQSayOm8dF8ysXKWXv696dbC3MhKaqLaP4LI9pZFuHW9OMbQsjzf6ctR3olQWmSWYsfVg7ADueuSJtdHkemwE0Vv/7ODUGR9VKZMXw== 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=eEGmuEkXi/wCkmyMBV2vONT62dw/AEOJbhyOvWh1GW4=; b=loTeq4z8livV0bKomBHWyhquqhG/Xg73+oegI72l5RSOUMtjv8jlJ56EXlQDKvl/F3vB6LmQomeRaaojTyVpPwcSL3zPJRXa18xr2kGHc01L2ZyussyElXSc27fbvm8P+tQty25i7nK9XyxubMmg4w1QmazQyvTrNQvh2Z7NTGhkSYZb7YgDN9kBT3ENgusycAY3wDrEcoXIUwDwlg82OgRpJGty3TYlWev3kIuaLKwR3mtxgHYhzDTGHHRcS1673ZLhw8o3J3kHTzzN62OPIonSKulDEkbSHA/pdMlVJd/sgug9oyFryRv8quOjNasx5BMe2FXN2C8xO995fiquoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eEGmuEkXi/wCkmyMBV2vONT62dw/AEOJbhyOvWh1GW4=; b=HPxtMEfAy/c5NMk27sclzzr/zJwg/QOLVRdptq4gQv1Q+Tu1Zm5Y4KVqLJVPjNdf0IUmGfkUGQO9psF2QtLGG6gr29VYExMwd3pMJTwnuUDjH27cLKb627wTAqoM3j/OJ84gk+UIEbbj25vf59Ri/97AKfZBGcfRC1Dh+IRuXm7xKipkH+9ihCeWByRRS2gBByNx9RCCgDDYLs6HJGfPoRFzuC1QZRJSCXm7ItGd3ruK+FaO9rXvjTglzRDOSIhLwiNiurZjkzj1P61xpaUX/LcTkfJttszFJAvZFIHKkRKzsunmMRDvtMkYNjlcaNYwHjU3L5kSKsdi0lswOQPMfQ== Received: from SEYPR01MB4221.apcprd01.prod.exchangelabs.com (2603:1096:101:56::12) by TYSPR01MB5657.apcprd01.prod.exchangelabs.com (2603:1096:400:42c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Thu, 30 May 2024 13:49:05 +0000 Received: from SEYPR01MB4221.apcprd01.prod.exchangelabs.com ([fe80::b674:8f70:6e29:3756]) by SEYPR01MB4221.apcprd01.prod.exchangelabs.com ([fe80::b674:8f70:6e29:3756%4]) with mapi id 15.20.7611.030; Thu, 30 May 2024 13:49:04 +0000 From: Haylen Chu To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Haylen Chu Subject: [PATCH 1/3] dt-bindings: thermal: sophgo,cv180x-thermal: Add Sophgo CV180x thermal Date: Thu, 30 May 2024 13:48:25 +0000 Message-ID: X-Mailer: git-send-email 2.45.1 In-Reply-To: References: X-TMN: [SU+B3YdJ4JmdzkcIigLXR3szeJ0yfAP7] X-ClientProxiedBy: SG2P153CA0036.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::23) To SEYPR01MB4221.apcprd01.prod.exchangelabs.com (2603:1096:101:56::12) X-Microsoft-Original-Message-ID: <20240530134827.53431-1-heylenay@outlook.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEYPR01MB4221:EE_|TYSPR01MB5657:EE_ X-MS-Office365-Filtering-Correlation-Id: 344d967f-648b-411a-43c1-08dc80af44ff X-Microsoft-Antispam: BCL:0;ARA:14566002|461199019|3430499023|440099019|3412199016|1602099003|1710799017; X-Microsoft-Antispam-Message-Info: 7e5W/w5rFkvBF4P0TkGfdxWPMSExDGTLnGwADNtMcT0ye0CvKgBkZHndOWGcj+0Qdf6UPwBSYiQIvLvZ6IHd9YSglXS6WGxv29zn5MscHUK7+hmlTH1D3ViyKCrYCHMi8YUs83W4tRzK4/3gqCtE/elXiKYBakgU81nGfwq5Z0+JkMBOupYItFAukNqW1SXWbx8FQOrS1l8+6czQqWBYI6q4+/VL9gnl7HJc/CEvMHno09aM5p2OqcycpGQGQ43DMcwlVga7FYJ/5w6wuo9eudCFyDQsSFSVBMld+T/XI1hK4rPz0TiMhlbDTF4awB0oT6PwGCkeTvWmhFE1VB3eVSW9M1pOIoVMIEmyPdRyM5ya7/mFVxf4K7t/xVe0gbTcfqsgKVFqprui27r0Eb9qDbR/h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A+zI2t1moLrBEsQ5tXwKdPV2bmitNaVdBJb00zgTb4Z2fRXk48YWYaTcUAdLC3DzV7+IgZlr0dS96NIe4jepmtdfYWNRi7Yr6/YIRo8FpG3hid3ciPG1jgUEmVNnGoXWw35uHGFHovvTwYsZeYezLlKy3x/vPwOz2apQAoHNDca4RXFraowN+wy4BmIG3vCz9YFLjGVqwSriLIo2GfJV2CV3rW1NZ/m0xRFwhLEG+o8v7H1iUfiXIF3yCSqGQSqQPypG+snZzzIRrZ6mYLLr/DjzqvO7o2/okuhMZRBwzo8A/NGPz1cB2OiBhpbxZnTSxezMAmafVfXu0M61M/+dO5Uu5mBI+V6rs7iVydm2qQz8LnROcLCznwwhZtcA7LMRbHBYCOISCRzwnqTXFvh876chnbenixU3W0YT/qSbHQti21jMhXPvvmY/x0HJN0Ly3w47nA7ONU7WFY4nxEcgOsyc+gTAMdqn7H/BLPNMPZhDNCW5lRAP9F01mepldpirqySZCVXrgbJm27k5o/uf7Zfmj/a5heYbiLp2CS+vRkMikLZI615yTWPdDs= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 344d967f-648b-411a-43c1-08dc80af44ff X-MS-Exchange-CrossTenant-AuthSource: SEYPR01MB4221.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 13:49:04.7341 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR01MB5657 Add devicetree binding documentation for thermal sensors integrated in Sophgo CV180X SoCs. Signed-off-by: Haylen Chu --- .../thermal/sophgo,cv180x-thermal.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sophgo,cv180x-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/sophgo,cv180x-thermal.yaml b/Documentation/devicetree/bindings/thermal/sophgo,cv180x-thermal.yaml new file mode 100644 index 000000000000..0364ae6c1055 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/sophgo,cv180x-thermal.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/sophgo,cv180x-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV180x on-SoC Thermal Sensor + +maintainers: + - Haylen Chu + +description: Binding for Sophgo CV180x on-SoC thermal sensor + +properties: + compatible: + items: + - enum: + - sophgo,cv180x-thermal + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#thermal-sensor-cells': + const: 0 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include + soc_temp: temperature_sensor@30e0000 { + compatible = "sophgo,cv180x-thermal"; + reg = <0x30e0000 0x100>; + clocks = <&clk CLK_TEMPSEN>; + clock-names = "clk_tempsen"; + #thermal-sensor-cells = <0>; + }; +...