From nobody Mon May 25 08:10:52 2026 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 AE9D1358391 for ; Sat, 16 May 2026 17:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778951265; cv=none; b=CbjZOOTOq1UGMcBrs+GdebpY/V7PNfopXef9xrqIXXcjQ+k0gPgQ0e/RrH2qPk2+rJtMWSvpZdao/YYZGqixUmW9LUihIXpkQDGmIowdXMzcIvgepjKBGIkkmZst+ypXOqkS2Ny66L+GLzhcqpIC+URnTV47/ejNy8NMrrZEgvQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778951265; c=relaxed/simple; bh=4e+bn1uubIZw9wql/1SJXdIru++gUkvx4CTwKY8VeGs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Em/VvOAqccxL2W5ZSm+qlmqMBfDMGP8cyGPYhvyuTIHd9RiAIcBaghu84gz2On3g/HFVL2rgv60J35sF7NYYiAxxoSROtKV+1o8E1AKCjjXTa/oT4FkoaViyGvhhFGrVSbQInUbaKc7Z1FXVLUqGBu2XFEaLfSGbfE/vEQfBE0A= 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=ONz6HPXI; arc=none smtp.client-ip=209.85.216.43 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="ONz6HPXI" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-36974221f93so280707a91.2 for ; Sat, 16 May 2026 10:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778951264; x=1779556064; 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=y5EcwcuLp5lxGviQ6k0KGxmJmfzJ96X9EE9tFSv1iWA=; b=ONz6HPXIcRz2T4PoGARtgwke7nFBMNk78GFFbDnX9LE9eqYUD1BH6uGhkYbBSDCumg nppj8qKvMFd4VFig9wuK+h0ByG4Bqrtd0b/0eZwH0ZAS7O3Ag0EGUql/YHCqlDuy7ca9 xUcaimaBzsxw4NXp18ULHaYKM8gsHL1sC+pgjFzQ0ttolfJWM92aP1B1dunzgHoBxGgS wp/T726RGk+/sQw7EQeVOtSu0nd/UVgIjLs5ao2pLQQbRkWRh04GM9R458hlhcvbsiGO y+t5epWZzRKpf6wTGEJuq6OZnhsxjQi4QS5tlD6UI1aLhrc6soqFFnakvVndg7QsCC1M eDGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778951264; x=1779556064; 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=y5EcwcuLp5lxGviQ6k0KGxmJmfzJ96X9EE9tFSv1iWA=; b=dgwNJEp2MQf4+avsC/6P66JoLaYsjb0KtRM1z9yTY9JwP2ocHCj69zDlGQqd8aIeS3 eZ73oo/ibZWa2S/uw3gO9cVJDa2BYyGBXNuSQDVGll6yls/icpiQYbatymveqWoeXHAk 02B9nf0r8JswH1vrQkzQCKRXOuYwzKQE17Ueo7bJligg7C6vK9nDTQEUU+hwADRdTHFV 8C0IGgpTQRwv+X5M8Ap5xiMtwfSyqYRp6DNZQruHXCx01HE7mkAAA9tPRiOxyder2jam rtPEvUBwo3vlw3ce+Z55Zh21OnVo6Hfucd9FwzqA+khnhupb1MfcIN9POrKxGbG1Ag7x KhEw== X-Forwarded-Encrypted: i=1; AFNElJ+T38tnRQNxvjPnSJVIzYExsdJFdwMJKx6rJm+Y3Wg66El01zJ4jJl84Qb2CycqObaq5ZVWB/TnQYQhLxI=@vger.kernel.org X-Gm-Message-State: AOJu0YwEIdNtx7gUtRIjbPNJgoYL81tTOVaGW/nkY7qdm4yNg4CB0UoY 883iTxII2PIlJZbOexXvTz3HRDlLKdb+JB+AEs0RoOvFvKwmP6RDO0qfwV7ykyhF00w= X-Gm-Gg: Acq92OF+RSCa5AT8jIp9j83jA37rAvIyJwTJBEKqs9So/rwqnk5t6IZhq92OneX2vu+ XVeGgungXlQwjrh4l/0SNGTZcuMakg6ek1LSh/fRC2VvES/Rmry8y5Ss4Ds4eVeSHDMm5Hb4hQ/ rujA8XEg+EDGxmU8kSGz5ebKuPrU9L1pwxCQXgqtMxNlYxglzYaJAgzh4X+4c4tb8MVFGsHnOCm S9yggb8/hKCS5Xyr1gnlCd6tC5HMuUNqBXvwlZYtpRiNjKEW8rJgQ9F6EKOlluH+mTTuw/QoZKX HvhvOpN3RwhuWVfgf8Mqn64pEfrlEqQqL248/+bxWo/YcFnrmbk9SqtKFensawQNsGwd+VX/gIh BNLRto9GyM+gx5sjLy/w6epE4DSVqJv1ky3v2hcxCWPmQLuy1KzkB2IzjA7CNUiftRmFcbg5BlH oPXUNxldMMfDbnL6r3rdFgCXKIUhaUnuSqGkycgTtyWS7OVm/0z/nWL9393p3FmDwTvCGbOdqf3 Ad6b1hGIn/6oFo6BiuusU9phQQt0cxLmaYHkrT8RILQyMlMf4yPcJW8T8qzNBk= X-Received: by 2002:a17:90b:2742:b0:368:cefe:ddd0 with SMTP id 98e67ed59e1d1-36951b82f8fmr9282400a91.15.1778951263902; Sat, 16 May 2026 10:07:43 -0700 (PDT) Received: from ERIC039ERIC.localdomain (1-170-184-71.dynamic-ip.hinet.net. [1.170.184.71]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-369514aecaesm6308994a91.17.2026.05.16.10.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2026 10:07:43 -0700 (PDT) From: Chen-Shi-Hong To: linux@roeck-us.net Cc: corbet@lwn.net, skhan@linuxfoundation.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Chen-Shi-Hong Subject: [PATCH v3] Documentation: hwmon: lm75: document sysfs interface Date: Sun, 17 May 2026 01:07:27 +0800 Message-ID: <20260516170728.2066-1-eric039eric@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260516160823.1461-1-eric039eric@gmail.com> References: <20260516160823.1461-1-eric039eric@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: quoted-printable Content-Type: text/plain; charset="utf-8" Document the sysfs attributes supported by the lm75 driver. The driver exposes temp1_input, temp1_max, temp1_max_hyst, and the standard update_interval attribute. Some chips also expose temp1_alarm, and temp1_label is available if a label is provided for the device. Add a sysfs-Interface section to Documentation/hwmon/lm75.rst to describe the supported attributes and clarify that temp1_alarm, temp1_label, and the write permissions of update_interval depend on the chip. Signed-off-by: Chen-Shi-Hong --- Changes in v2: - Document temp1_label as conditionally available when a device label is provided. Changes in v3: - Add changelog requested during review. Documentation/hwmon/lm75.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/hwmon/lm75.rst b/Documentation/hwmon/lm75.rst index 4269da04508e..fa8ddcaa0c2b 100644 --- a/Documentation/hwmon/lm75.rst +++ b/Documentation/hwmon/lm75.rst @@ -181,3 +181,28 @@ is supported by this driver, other specific enhancemen= ts are not. =20 The LM77 is not supported, contrary to what we pretended for a long time. Both chips are simply not compatible, value encoding differs. + +sysfs-Interface +--------------- + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +temp1_input temperature input +temp1_max maximum temperature +temp1_max_hyst maximum temperature hysteresis +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +If a label is provided for the device, the following attribute is also +available: + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +temp1_label temperature channel label +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +If supported by the chip, the following attribute is also available: + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +temp1_alarm temperature alarm +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +The standard update_interval attribute is also supported. Its write +permissions depend on the chip. --=20 2.53.0