From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf2-f13.google.com (mail-lf2-f13.google.com [74.125.229.205]) (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 CEB974399F8 for ; Tue, 15 Sep 2026 17:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.229.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789492400; cv=none; b=Mw5jNhfTTA/tbEy8U+G3diopSNIeLMAxIbH1WFjMw7ZiJjrQYYlUS78QspOjcYjWS6E8LfOq/53iz8dKKDqbO0yujnRYHilVJQ1D5yKdJIC6wbaYcsRwlC99p3CiUuLkoYz4Sj8EICkVa33B4grND4oxeUAdb0DDa3vBxJspdAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789492400; c=relaxed/simple; bh=+5Qw1AJ/rnv01BOK0sB9/jNvDPLE+eUv2N+zI5ILzRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NsGpow8b70c3s8+oS/kl7M8VX0Zsa2SiVxuaRlTtdjwrNENc9+ZkYxTvAS2xF/ejBQNkkmsiIMeKm0/Ltq14Xll9q4PKVv1AEISt9Gs9G/mtopdwbJgPUbWcFOL2ppquhOt6ZYAX8vONTsQ7e/LwpW4z9zOX6//PWCj8dGoDJvk= 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=OSIUlwuc; arc=none smtp.client-ip=74.125.229.205 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="OSIUlwuc" Received: by mail-lf2-f13.google.com with SMTP id 2adb3069b0e04-5b8b402f4e3so1009246e87.2 for ; Tue, 15 Sep 2026 10:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789492396; x=1790097196; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=2rZvOWqII6zhNAM1aIgNmP7tEU6m3yPOZhby2VtHyYc=; b=OSIUlwuc2YF5ZAkWd0Yow+qrxO7IFgF5TfeGpS2DXanPLDydwbcjpOGjSx4rJxOKdq GXRCeRWElRJZxr4Ni+Um3fl1xAw8BQDrINNGC/aZaagy+tNfAPNNN0ndf+X15MiGx8WD C1KdwxYGo2TsGZVtAMw6ydFXybtm8wDJp6C2vuMnhkjyCtUXSeWL9SsXvXDCYhScD7xk l6iUEZrTIq9wfHJLzEtcIWDZI4d2ii9rWsI5Hf+a6ZM0C5FvfJjY3VbYJC0/kE01CohU FSMjtovFKee/8toUlK658Az6CCtzF5VN+xgBPVfAxtvShfRjo4nzWw6JwU7lZk4A4W6m HClQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789492396; x=1790097196; h=content-transfer-encoding:mime-version: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=2rZvOWqII6zhNAM1aIgNmP7tEU6m3yPOZhby2VtHyYc=; b=rfxeOwTprw20zRMjm5Eglz/AgBIhdghJ2BCS6tQGu0JoN59z29USrwLXrwcoUXiAuy Ec5dENgigA13UxlvgfXRsBjnknLB5Nb/f9n4CUF5Req+UjEiH+zu223IsknF2+DrQYbJ 9qKooqfAbRNBISv4Gd0a/Gyooz/J09A5qUT/xcpi6ZEahD+pTCKSA4t2/HnOxQTV20H1 Ww1FG12szHNXVzTmv5XrCovJDjiBpnCFbiZCyxmX9OdIt/RCFUcKEPTg5wkpNSszSu/M aPx+YZPQeWVJsBk9EIRGXVGtzuRAy+c7nxo6fQEsvlanBfaBc8AO9qdE8mRlsQrXIpez f7Ig== X-Forwarded-Encrypted: i=1; AKwUvBycFpG+8173hT38DI+jO00i0+FT0pkIyz7LTMlP1KMuuarlen0ZmyjZkB9IZlMQnWyJQsHUpM815A==@vger.kernel.org X-Gm-Message-State: AFuF++nErtBPS9/vl7gMTE8zFgf3eTiEkZbK7wCOt02qiqE9Zqtienh8 j/8sjE8vIINxGYuiYfa+iLsoVdpPFsSWXrwP8JB2W34SSmdJzjvzHPEXRscOmvI= X-Gm-Gg: AYBFou2Pbzm7cKzb2XN9XDuWzbXgNtI562+WP7zmIxh5G+YVzd9dyMc8TYjKDj0tQyk iK+L1jgUI8TgklvBuO0izc3YZRil6im046s9OLsLnd7vx47T/dxD911vZMrBqB0PlJjTOPNqP0X HbFWnXGH8+rAxv8hYu7RCnqXu4Iin8jm8XrEusMnBXiWT7s7NJBRo0XxEbemw5qbuiLK+4cMaQf dj6934NJjDL5Gg4vtkMmF+qH82Luv9Jgzii5lb140ZndGnciNg+AOjJbFDYLmgHnsNEdg39NPwo SLN6gpUmQ847sZk+epGMe55xAqRfqIz9qgy4J3seouKyc0ZWeAFBbIn1EBrXC1v+ejjuMah7PIF G38H3QDJCkRDSOGTekU4dOF40pEzXvWd/YqAfvZxuFE45CEDhv5Giq64gwsxkGNyTsWj7+OvM06 SqMMQe4CuuIwYO2uuqMxPEvNra3nR9Ur6fXYIhAN9aE0SQ7FaJgzrYzdBQrwQncA== X-Received: by 2002:a05:6512:668d:20b0:5b8:afd2:c17b with SMTP id 2adb3069b0e04-5b8afd2c4cbmr2852103e87.11.1789492395427; Tue, 15 Sep 2026 10:13:15 -0700 (PDT) Received: from fedora ([46.8.219.5]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b8b57eb908sm91791e87.79.2026.09.15.10.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2026 10:13:15 -0700 (PDT) From: Vitaliy Sochnev To: "Rafael J. Wysocki" , Daniel Lezcano Cc: Zhang Rui , Lukasz Luba , Christian Marangi , Lorenzo Bianconi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitaliy Sochnev Subject: [PATCH v2 0/4] thermal/drivers/airoha: Fix AN7583 mux mapping and expose all sensors Date: Tue, 15 Sep 2026 20:11:27 +0100 Message-ID: <20260915191131.25214-1-sochnev.v.74@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The AN7583 support merged for 7.3-rc1 reads the wrong mux positions: the mux field names are swapped, and v5 of the series swapped the call arguments to match them. Patch 1 fixes the field definitions. Patch 2 serialises mux selection and ADC sampling. Patches 3 and 4 add one thermal sensor cell for AN7583 and a zone per sensor. Tested on a Nokia XG-040G-MF (AN7583) with this driver on a 6.18 kernel in OpenWrt. Without the series the board powers off 2.6 s into boot. With it the three zones match direct ADC reads, and concurrent readers during CPU frequency changes gave no failed read and no shutdown. EN7581 was tested with equivalent changes on a Nokia XG-040G-MD. Build-tested on arm64 with W=1; the binding passes dt_binding_check. The EN7581 IRQ ordering reported by sashiko-bot on v1 4/4 predates this series and is not changed here. Changes in v2: - dt-bindings: const: 1 instead of enum: [0, 1] - Drop the note on device trees without cells from patch 4 - Rebased on thermal/linux-next v1: https://lore.kernel.org/all/20260913145226.34643-1-sochnev.v.74@gmail.com/ Vitaliy Sochnev (4): thermal/drivers/airoha: Fix AN7583 ADC mux field mapping thermal/drivers/airoha: Serialise access to the shared ADC dt-bindings: arm: airoha: Use one thermal sensor cell for AN7583 thermal/drivers/airoha: Register a thermal zone per AN7583 sensor .../bindings/arm/airoha,en7581-chip-scu.yaml | 3 +- drivers/thermal/airoha_thermal.c | 159 ++++++++++++++---- 2 files changed, 126 insertions(+), 36 deletions(-) base-commit: b115930d716defc3a7daa2bc2ae2465d864b7114 -- 2.55.0