From patchwork Thu Nov 4 21:09:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oskar Senft X-Patchwork-Id: 12603799 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 3AF54C433EF for ; Thu, 4 Nov 2021 21:11:26 +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 00D7E6124F for ; Thu, 4 Nov 2021 21:11:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 00D7E6124F 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=dX682y039BLmrpLq0VYcF8vuLRmOZCxnfSMVV6dIC0Q=; b=ij7 /WJjdw22DMOQmo88h4tcH1RRklDlFw66T5yGMX7lfpElbLrPBgMPxEV4MIXotyxcHLSXBILqcpWzy H2K5t7AIQhzElqhzZF2/OmdGqHlZHrV5D/ZboB761yUaWTiV7fhXhty8OAYJBCeAPxZjzYdEVVzwv VeGVUKB0X+ipbC/RTtRJg2dWc0DzlK6Njowyng7+GbmULvW//QDi7lQrVNa07ETbfjlRhhdTjTzMQ mDi9Gd1SOBwT30HWtVUVRcAYJY2IZZYjjX7MBugSp54rUjvu22niI+GoQGueO16hO6A/MC1fYiFO0 sduAfYq/EB40Svrc29UQo+qY1jqlD5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mijzM-009ycf-93; Thu, 04 Nov 2021 21:09:36 +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 1mijzI-009ybk-MB for linux-arm-kernel@lists.infradead.org; Thu, 04 Nov 2021 21:09:33 +0000 Received: by mail-yb1-xb49.google.com with SMTP id d27-20020a25addb000000b005c2355d9052so10324328ybe.3 for ; Thu, 04 Nov 2021 14:09:30 -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=7eAvWZMUuk83qtD9UGD4CmQ/pWSKrNHVd5Ady12gMfg=; b=rZMYILror75Ht0AoBH/ZsvgKjVwaFo18MhCkuaBu13bkWfTbN1VZGREiucrugYQnjk 3PM0CUGc+QnXp+VyClKs2qeMxLzOz8kHqoO2X3yYWHa7tq2s+P+BnTRhPg8Cyw2zaRJB PLh1+RH+WjaKHpXmdyRLZhyHgTW5U+aLTyVJ4sNzlJEIyfBHqqOrt/1LqACMPALQ3SS+ e3NzjxwdTc2Nwdl1S6gn/zcrMU38LQPuxNEk86vrKBgT+orwFNRN4jU6PvAPVBzXNi3C dJ0tpmBiU9j3QsWpaIjLb2YNsob85WX1E67j+q38ZnnDne8zoRdfW9LcYQhbikrokLhu fYKg== 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=7eAvWZMUuk83qtD9UGD4CmQ/pWSKrNHVd5Ady12gMfg=; b=JUeyBn7gbjrJnEnMRWACF8i9gzvPjcwoaWuRDfsRUg4VdvcMipYyTwz2kpFMAM8IN7 f1qRGcO6eUuT4MkW68i40mSDPVW/w8AaoJPOFVN8vYdUggLMzo0L2upeUqGjmirFkk09 DoHpFJPTk4ULw2UQp4JaHDVSOMx0ajnyMxssoIuR5IVIxOcXDHdDPiMZG4y8HWverlXS SccjCueaQL/FXFpsJ+GRS+aEXWC5mz+ph6vXPMgVWjenokG0UZ5vWx+CAViAICT+9LsO RryScIbagqHitML4Ijw2MhXrPV4wo3BTCJ5uVv9rzrpounmKi9jRx+i3DffqBD/wX+Hz /HqA== X-Gm-Message-State: AOAM531vAbSm+nGWGJaOsW5DbR6Msn4hLel/rdEvMEgcXvF62nuURunN rqOoUlO7VHRABkUSoQNKAed7hGIMUCWoFS91N6uLACJ5EZgWxBdl5BZH0A4/0OF6vR/U3jRrkXb WkIFd3nUI3MFwute8Auc8yNp0LiGe8zuudi9K0zqL1UxDhadV3tUTEu8EptiAh54vENZ7xyLs X-Google-Smtp-Source: ABdhPJwY4ltXWbOSiMhD5uAht74woKKOsNOUMTZw+v1ATbZtma+JpvQiGfD/6x46fgOGYQGcXioAnH0= X-Received: from osk.cam.corp.google.com ([2620:15c:93:a:24f7:55ac:2f28:525]) (user=osk job=sendgmr) by 2002:a25:c907:: with SMTP id z7mr59727605ybf.172.1636060169398; Thu, 04 Nov 2021 14:09:29 -0700 (PDT) Date: Thu, 4 Nov 2021 17:09:14 -0400 Message-Id: <20211104210914.4160448-1-osk@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog Subject: [PATCH] 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_140932_745492_0CF6C8EB X-CRM114-Status: GOOD ( 10.76 ) 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 --- arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts | 23 +++++++++++++++++++++ 1 file changed, 23 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..fc1585f34a57 100644 --- a/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts +++ b/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts @@ -213,6 +213,29 @@ &i2c0 { nct7802@28 { compatible = "nuvoton,nct7802"; reg = <0x28>; + channel@0 { /* LTD */ + reg = <0>; + status = "okay"; + }; + channel@1 { /* RTD1 */ + reg = <1>; + status = "okay"; + sensor-type = "temperature"; + temperature-mode = "thermistor"; + }; + + channel@2 { /* RTD2 */ + reg = <2>; + status = "okay"; + sensor-type = "temperature"; + temperature-mode = "thermistor"; + }; + + channel@3 { /* RTD3 */ + reg = <3>; + status = "okay"; + sensor-type = "temperature"; + }; }; /* Also connected to: