From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 86720367F39 for ; Fri, 19 Jun 2026 10:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781865152; cv=none; b=b1Fs+b4ls2FsPjIdQ4vN/RM2QAb+bXBmdcRENjgjMsAPiyMzO5/ag+ZaF6fS4SIyGne1tITfNJf4o1cxj251Od+z72YEnITByvyP1C3Sv2cQ/vxv/963l4ZR+Qi0uHivPnOdsb+axzaF6DMyXzI1t+C+BlO+dQy84TrklCD+AlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781865152; c=relaxed/simple; bh=nc5m+bp6mN1sPIsGE38DpxKGU4eoOEzX/WayhXyLTfo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=huC0yBrkhyBvSccJ9XAnBC5CZso4RnRVC84QXt4vEqhGwGfw2beU98Vf7DCa0ihDbK/hlb4JMwas0hJ+q2TVBBAUgF44Zh6U9j7cD6OXF5EMGC0klCvd0nILbjsxAj3eYzILMIKeBhGlZo27s4wUomUcdUcnhh3x/IAjj2tKrvs= 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=OzXCOA9V; arc=none smtp.client-ip=209.85.218.46 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="OzXCOA9V" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-bec49f7e35eso277242366b.2 for ; Fri, 19 Jun 2026 03:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781865146; x=1782469946; 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; bh=ejJlf4ORDhRW+CuMcNt9CGcahTZgVcQIjfGmn7OZ17Q=; b=OzXCOA9V/eoliVpWNlvAMBHCW713hRwP2s3LrItv5+wKleLASsBpTXF0Nu7yRUgMzn QcWTV2GoncZym5REgSpExf8eIWU2Zt6X5p3Dp4st41E4W7gXvhl0aK+Igt1uPglRkHkf gBmXkG2zvPaCR/UkhU1Se0dINXAKw4RIVTHFoN2n+TAkawF9OMPvtyYintsDcW3ZIxjI fEV/Q4yObh6zRInrgrQBKxDjNOJWbFt1hW1+7/KxUAynA5LF5Mf7xGPmzyqNeZB0c6EC Sup3EnCZcl8wSQifbk9J1D+AiZeS+PTBV9EBPqbk0CXAOhQvWII6ZH/Hec3maIGoLq0N adTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781865146; x=1782469946; 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; bh=ejJlf4ORDhRW+CuMcNt9CGcahTZgVcQIjfGmn7OZ17Q=; b=UdykBfNLBujSOwut+IIPIOHIvsNn13GtF1fGjq9jVDZcZ0KurDcJ7+MqQGNKawkB2t zEGQdnViG1eurtpEF7c4OmGKeI1bZpJpzrWo7dfQx/4M26D6KrCNw17LkWETnZg8cE3A 1/88kaMmITFfQIUhxV5rihR6oK4k8AyQ9Os1i5aq6luyiLTp0kehjEtPXHELGce7RHYf YYibwgmbwxKRJZOVC0ROAA5HV38GPLjQjrlfchdB7jHIuP6FcntycyztXa72AsU2dGa4 /V0fd7MEI5T+4M7rhT9FTDKbMutGheuhbpK+DCFOsn7dmJ7NgSfQGnSP70Fqxx280uYg fLag== X-Forwarded-Encrypted: i=1; AFNElJ+K8kHEmKG0PXCosPFVPEvbol9TK+zUfWMavEVTryxaKW7e+T9drO4IBMrEm62AG+EjcszoRE0jb/1L8cE=@vger.kernel.org X-Gm-Message-State: AOJu0Yzu+zya2ZdN2LbNjYpQB0IqDzcQsKJpxn5hieBWq95Vmx0fnI0J J2JBsZaJNlvNYt4pgCPyacooTFdRmRYOD7fBU7LNLklkgXTMMqbPreDR X-Gm-Gg: AfdE7ck8R2f9ynaqNfDyeE+f/KvPFGIkOnjymqC0gLoSmQboTeVgznb8OM85yyA4nk6 SV68TiBrMBGGS4sO52wfDKFcmmpU1TmSvrcGewrTja4qaJcNawGOWIcfmpLehTVwJ0s1ipFuqsC ehmsvUPuqOxCgKorKC07/oNnPgyU0ri7z3l8JB7YwMhIKglQmsi2mTj8noIYKovB8r7pD/tFtaD fbeRqUEzr2DIAPie4VzdIMuDOiOOPQUi5nRLP6AWAg+Z71gmNy78psTRNjASPvkGXZV+Hm3NJVX DyyRJGrlfedtn+7xZsPv/GTsQUSUdjm4O04hfk/QO4k56/mHcauq/kHdLdgIARzm5iR7j9+DUve 7+GcpPjD0sf/5xk5evM02NiUvdW82/5pY6r/dPHqqN34zA7WRFi4GjtzQeEtzZLmyRkZAKbY2x9 C45o6Yqri08MolOjJMSvaTz1ayiS80Bqt10w== X-Received: by 2002:a17:907:934d:b0:bfe:ed06:5a15 with SMTP id a640c23a62f3a-c098bd62af7mr162171766b.51.1781865145730; Fri, 19 Jun 2026 03:32:25 -0700 (PDT) Received: from xeon ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c0a8490cd59sm76702466b.16.2026.06.19.03.32.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2026 03:32:25 -0700 (PDT) From: Svyatoslav Ryhel To: Jean Delvare , 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 v2 1/3] dt-bindings: hwmon: Document SMSC EMC1402/1403/1404/1428 Date: Fri, 19 Jun 2026 13:31:51 +0300 Message-ID: <20260619103153.216444-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260619103153.216444-1-clamor95@gmail.com> References: <20260619103153.216444-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 | 191 ++++++++++++++++++ 1 file changed, 191 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 000000000000..bef07b599720 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/smsc,emc1403.yaml @@ -0,0 +1,191 @@ +# 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: + not: + properties: + compatible: + contains: + enum: + - smsc,emc1404 + - smsc,emc1428 + 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