From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 709D43C1D72 for ; Fri, 31 Jul 2026 11:30:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785497439; cv=none; b=cTHcfND4TEaecpQCr/DyoFqWw5PB+CM/HyczwCdEJQX33eDlb/hyIVeO6nL8x9/8ZuuzvbOOIWxbiZi+q2LyPi7rs/y/A5c0tRwpn39C/K0bdIpZ9wRg36aOaVD/E9F89JGYGUS/ftJLYdi/vvXPfYY1dBU2YHtHSvJC8BtZb5k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785497439; c=relaxed/simple; bh=4hhsAxAJjA9CnHKxIGE5+DUar4FrPizlIRDXYPMfD4I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MZwtN/Y0iEoFxVakZkpXJP7OgBlFlV7g4tXniiCzzSN1K+jAHggZ6duR7P2UO5eD5MgOZ1ss8AP6fv+8FJ1adaERrucKZ5C1gHUZiD8DOW+c0qxOzu+AgsTkIS8ILjxIgBXTBodhL++dzQPZjrhlzTWndWqzkzQtlXi2pV1rzZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eJwI8Vhm; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eJwI8Vhm" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-47ddf7b09e5so1076193f8f.1 for ; Fri, 31 Jul 2026 04:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785497434; x=1786102234; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ge4jOwru2gdBik+03SVRNyiDvso3mpjCVgnlsYEIFrM=; b=eJwI8VhmB8kgbnrQL/JvPfkJykn3pUGgk0NIyUN2PVYAMA0sB9z0QjbxYkkn03WAu/ m8i4V0FdKNDyp4IxBvzHfdTQR9h9ICpZfxSFxAaSYOtlxDXRcOb+QlyvYzdrus+NBqTQ 3z+VZ4r9Ly7DbwtDDi20EHSMZskStBHuhYdCnJIUF1V8/cLiElzjGdh1RApB0+zkiQMd HOW4FYMV4npwTaIHxdJCxOWDZSoUWdm5t5cFiMSoc36NBhu3wnpSGGN/Gs+HMneMOQ3L citJLv2bWF8gYK/z+Zvha9ffmCyPikYGRhlqpWoa4zDPiqbxdi/PBTF8ksSOd2ntbH3+ wz7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785497434; x=1786102234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ge4jOwru2gdBik+03SVRNyiDvso3mpjCVgnlsYEIFrM=; b=TKcL8NNxbhf93mSSRKk86XtYCRrc20Vmvm6vR3ni8e18M8WNc5OY6OIAPa5HqwCNYA XamTey9zSW3PRpBygL9IUFXBNkSYuuggti8rmFlhN0qTeTRFY1fW9zcvW0zL4obYxMxJ V2vXRPY1e7wUgr38SXPGFBJWamtshcRfzybESfwZCBgs36vP3bf8FHySnF04wX/6AUD8 V1p0oLkpvA3uLBeFDC+iljRfc6Rrf5cvbCRvD8AozcZYXARU6pmmOHQPnJdPFfocSHzh 28oEg3TwNfb2sQYOvLinlUDy52SWoJbaR21jx1cN2G90sv82Q3BPAuoRBNSSNZjRwW4b A0cg== X-Forwarded-Encrypted: i=1; AHgh+Rr3mK525rr4EIEIV7mn8FDPU/BwtSTMb87SBYbwb2VQEoA3l/AN9dMYR0+BjPagGtjG+Bhxhm8HdXmUXfo=@vger.kernel.org X-Gm-Message-State: AOJu0YzWbsuVZ7MUvDc7AvkRVJCBOuYzd0U9Hq8qtusd3H34GNej/CRq /vAVDJoWwNoA+9D9Gl70QlMZHJVqsH86KR2FXeHRxgrupHamYfhwsuCl X-Gm-Gg: AR+sD11u2FkUOo9GBr2k1ZdDfeH9K/9WSWKlBzNIVFwsyXhYMD2+/fB+Xf3pBwTQFFo aiWgMWpZIkCdo86Qt72OdgreE2/5DvHPcVf30JzyuFhsWIq1ekll+Y8ulJsXr4cXNK2Qb9SM0lH 0qnZzac88xcwXuRrrVWGyIkSF17tVmuk9OC/9ymE5HvlPo/gMw3KiXnUeJcvGLx/StJ7a8DFmbu k2zlQWiqBIgRhZ/UmF/P7Ds8hbgrTxNgAHHzMWQnccag0JehYXOqxrCGMrgScAVFAUS6RMNO/JW JyhtcPPMj19QC/2B6YT2YBN9hJmpF305OofEo2RLaB+zhTwRwvtVFiR8AqNAdkYDFjWhgsH2mvI 3CqX2GNz85r5pm02c0KGaO+rdoQbsE5+ZRQnjiA8vrC5d37lyKU1yahyMVZGDdTIPC+2sFaf9uZ laC2J/HzsQZDEMeVHmKgb84DwlgFXBpUA+fj9GJNbUW3N7SA54cPS/kp3ieLGzIp+WAsUuNzx/A /egfU9Uqw== X-Received: by 2002:a05:6000:2308:b0:47f:8b75:2520 with SMTP id ffacd0b85a97d-47fd2b4dbfemr3609854f8f.42.1785497433804; Fri, 31 Jul 2026 04:30:33 -0700 (PDT) Received: from xeon ([188.163.112.51]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fd456a6besm3823656f8f.22.2026.07.31.04.30.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 04:30:32 -0700 (PDT) From: Svyatoslav Ryhel To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] dt-bindings: hwmon: Document SMSC EMC1402/1403/1404/1428 Date: Fri, 31 Jul 2026 14:30:05 +0300 Message-ID: <20260731113007.145322-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260731113007.145322-1-clamor95@gmail.com> References: <20260731113007.145322-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document the basic hardware layout of SMSC (now Microchip) EMC1402/1403/1404/1428 thermal sensors. Signed-off-by: Svyatoslav Ryhel --- .../bindings/hwmon/smsc,emc1403.yaml | 203 ++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/smsc,emc1403.yaml diff --git a/Documentation/devicetree/bindings/hwmon/smsc,emc1403.yaml b/Documentation/devicetree/bindings/hwmon/smsc,emc1403.yaml new file mode 100644 index 0000000000000..d7873a37c3295 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/smsc,emc1403.yaml @@ -0,0 +1,203 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/smsc,emc1403.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SMSC EMC1402/1403/1404/1428 thermal sensors + +maintainers: + - Svyatoslav Ryhel + +properties: + compatible: + oneOf: + - enum: + - smsc,emc1402 + - smsc,emc1403 + - smsc,emc1404 + - smsc,emc1428 + + - items: + - enum: + - smsc,emc1412 + - smsc,emc1422 + - smsc,emc1442 + - const: smsc,emc1402 + + - items: + - enum: + - smsc,emc1413 + - smsc,emc1423 + - const: smsc,emc1403 + + - items: + - enum: + - smsc,emc1414 + - smsc,emc1424 + - const: smsc,emc1404 + + - items: + - enum: + - smsc,emc1438 + - const: smsc,emc1428 + + interrupts: + items: + - description: Sensors "ALERT" pin output. + + reg: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + vdd-supply: true + +required: + - compatible + - reg + +patternProperties: + "^channel@([0-7])$": + type: object + description: Represents channels of the device and their specific configuration. + + properties: + reg: + description: The channel number. 0 is local channel, 1-7 are remote channels. + items: + minimum: 0 + maximum: 7 + + label: + description: A descriptive name for this channel, like "ambient" or "psu". + + required: + - reg + + additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - smsc,emc1402 + then: + patternProperties: + "^channel@([0-7])$": + properties: + reg: + items: + maximum: 1 + + - if: + properties: + compatible: + contains: + enum: + - smsc,emc1403 + then: + patternProperties: + "^channel@([0-7])$": + properties: + reg: + items: + maximum: 2 + + - if: + properties: + compatible: + contains: + enum: + - smsc,emc1404 + then: + patternProperties: + "^channel@([0-7])$": + properties: + reg: + items: + maximum: 3 + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@4c { + compatible = "smsc,emc1412", "smsc,emc1402"; + reg = <0x4c>; + + interrupt-parent = <&gpio>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + + vdd-supply = <&vdd_3v3_sys>; + #thermal-sensor-cells = <1>; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@29 { + compatible = "smsc,emc1428"; + reg = <0x29>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0x0>; + label = "local"; + }; + + channel@1 { + reg = <0x1>; + label = "chan1"; + }; + + channel@2 { + reg = <0x2>; + label = "chan2"; + }; + + channel@3 { + reg = <0x3>; + label = "chan3"; + }; + + channel@4 { + reg = <0x4>; + label = "chan4"; + }; + + channel@5 { + reg = <0x5>; + label = "chan5"; + }; + + channel@6 { + reg = <0x6>; + label = "chan6"; + }; + + channel@7 { + reg = <0x7>; + label = "chan7"; + }; + }; + }; -- 2.53.0