From patchwork Fri Nov 5 00:59:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oskar Senft X-Patchwork-Id: 12603905 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAE44C433FE for ; Fri, 5 Nov 2021 01:01:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 72A4760F39 for ; Fri, 5 Nov 2021 01:01:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 72A4760F39 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Mime-Version: Message-Id:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2u0UUvJtuxtFUtDGayiHWJOfHr7PPdsD8GXpwOltVIo=; b=oCY DKRst1jRZQ37wrVTagc1D0RB2/Awk+I1Vu0iAHXzLdOABFteRwvw/N+4nxjJNcqsOzXfBBpwK4hBN XZxwlidHYuh7aH8wrOjMW/gca5awFZgDni1bzJFAEp6qoJQpMLZoXxhdnTSMiCXDRB56pfIH/abtv LiRxW4HvdPvDHIg+yDvfCoflQVlwXyybc90t8mXEUD+BuJUf9qB4dFE7prkaLfYlCGZ8tmmmoS657 IMMTbkBdpnMB6rGZIddHu17W8JLMr+KxjfbUt1RP+yB3k971W16LJjuAnZ9FNmeF+6HB64uWSR8X3 MoLcq+yTZCIYlJ3SqGdTq0BDDgaP1RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1minaT-00AGA7-BV; Fri, 05 Nov 2021 01:00:09 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1minaP-00AG9i-U4 for linux-arm-kernel@lists.infradead.org; Fri, 05 Nov 2021 01:00:07 +0000 Received: by mail-yb1-xb49.google.com with SMTP id v20-20020a25fc14000000b005c2109e5ad1so10997263ybd.9 for ; Thu, 04 Nov 2021 18:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=BWRsLXSuRuX7m2v7ufxzsJ2Lj2A75oZX9+jsZ2D7yIw=; b=rOB7r6/fbY4l8mLPY8G3uBq2wReZq1FkHA0EBN59GTT5x8sq0UR3tghTOvqg93YHAp ka1dLR4hOsSUL+pyNB7Uqgw5s0H60ScBMNGlizFjPJ+LUQBEF+vfLk1e4OjZMgQc9Byd e2stSuja4pjQw7iO+8De8x2Vs6eNmKC3mG+rYm/fZwxHBe2DCuHQLIxmVTBTspSuerjB ajM8wiAa9HlwhqKJMh5nN/8j++sUnE3NjPtiq2nmk5TntUHB7+GvIh6497yJcl2VN2oV huoKII/Ozk5GvReIIeTaWv+F5FEfr5ssOgz+Qr4pJnTMeMZKYjN7+4OUyVi5IR9PMXaa zUYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=BWRsLXSuRuX7m2v7ufxzsJ2Lj2A75oZX9+jsZ2D7yIw=; b=uW2lODZupzRoCtAmu2Dy1XFtmZD04IrEAYIyKqeYOonG7xzj+fswfJlEoiEjFuS2QU ipJFSwDj9rvZdD1uIUF+c96HZxmm28KkLN5JptdHQSXqav4I7zOlRJVpES83juKsVzj1 I9qWtCU2+Ig0yQwkIayisyqTI5cfOzgEQmJmlBdNpkBdRQGDwohzLB3ItRP9QzIVSlLn bdXSC3EIncedH/MDUuFAKel9WSmzhsgrNKaRNFKDINK9cD4JT4HH21XFp5OknilD4rw4 yOrbC3w11yY/UAeV3b5qaEvCHK9UHi5L0AQHi5v4naiAlBjVJ4SRSMSL63tbvNfm3pPo vLsA== X-Gm-Message-State: AOAM533viDNOw1Rspr5xTY9dxW9pYab17kShMkYSIAF/E3QRJheBW/t5 SS7QV4nv52EHVjuhK/8yAjiY7/+tyo+/bE0q0T0eKvLLg1SSr4mWbGRGQK+CuEc4hIQTW57Hp5m jqEuISPdhJdxNyT8l3Y+xoodubR2XTe8B2whw9Fz5YrZlFhyfbUIgLPFWvJr857PrHJNboyQu X-Google-Smtp-Source: ABdhPJxGKt0KTPJnJkQP+F1fXbU5ufjr9qUcOu3vXpvZaG/Sj3DoJSO3btei4j4hApi6sqDQHbLE7aM= X-Received: from osk.cam.corp.google.com ([2620:15c:93:a:24f7:55ac:2f28:525]) (user=osk job=sendgmr) by 2002:a25:50ca:: with SMTP id e193mr48233941ybb.324.1636074002883; Thu, 04 Nov 2021 18:00:02 -0700 (PDT) Date: Thu, 4 Nov 2021 20:59:55 -0400 Message-Id: <20211105005955.107419-1-osk@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog Subject: [PATCH v2] ARM: dts: aspeed: tyan-s7106: Update nct7802 config From: Oskar Senft To: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Joel Stanley , Andrew Jeffery , Oskar Senft X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211104_180006_018017_62F9C7D0 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This change updates the configuration for the nct7802 hardware monitor to correctly configure its temperature sensors. Signed-off-by: Oskar Senft --- Changes from PATCH v1: - Removed superfluous "status" from channels. --- arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts b/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts index 68f332ee1886..66734e4e2ea1 100644 --- a/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts +++ b/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts @@ -213,6 +213,25 @@ &i2c0 { nct7802@28 { compatible = "nuvoton,nct7802"; reg = <0x28>; + channel@0 { /* LTD */ + reg = <0>; + }; + channel@1 { /* RTD1 */ + reg = <1>; + sensor-type = "temperature"; + temperature-mode = "thermistor"; + }; + + channel@2 { /* RTD2 */ + reg = <2>; + sensor-type = "temperature"; + temperature-mode = "thermistor"; + }; + + channel@3 { /* RTD3 */ + reg = <3>; + sensor-type = "temperature"; + }; }; /* Also connected to: