From patchwork Fri Nov 5 03:29:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oskar Senft X-Patchwork-Id: 12604111 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 24D9CC433F5 for ; Fri, 5 Nov 2021 03:30:33 +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 D7B2461051 for ; Fri, 5 Nov 2021 03:30:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D7B2461051 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=a7EEqGpyWD/gM+m2UQeDy6BDGf/X7rTLY7HFl7b5UxY=; b=bzp CFVYdV/CkwLFuGnS2pl47NOeJe6NGJtnXQEP79F3mFSr9/nE7uNr6aLwP4a+MwUw5QMXDbA6oQQKu 6VB6XE4gAvgb9t5sKY3IUYnuRA3/++xeVQzwJJ/6wGd3nwotiGSnGBfCeqLf7xFLD5RjKsOlqpc1A 8GLz54thUy4rB4XcVQI8QNVlBdGKT+z4awhJwb84gwyxiZg6G7n91xkDnsVPE5HucvP6t5IX2M2AB 2miaocYWZ4uv8FJI7n7lCBtqcaYXRV8bfYa//+JUNL15jJofJN6fwWEM5Uzm1ZXHFcBW293xx3WAO 4Fa3MZZZIEl3qD5nuojFsZUXWgwUVXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mipus-00AV1m-5S; Fri, 05 Nov 2021 03:29:22 +0000 Received: from mail-qk1-x749.google.com ([2607:f8b0:4864:20::749]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mipuo-00AV16-Gq for linux-arm-kernel@lists.infradead.org; Fri, 05 Nov 2021 03:29:19 +0000 Received: by mail-qk1-x749.google.com with SMTP id p25-20020a05620a22f900b004656284f195so146795qki.12 for ; Thu, 04 Nov 2021 20:29:17 -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=7CQtFRKLxqx+qqsUKVRUJaYz4sr4nG/VYl5q0lBwYzk=; b=RIX6Y8FM251JQ3iML3SYH6Qs2eJhQ75+DtnYzmjHfU2udUaG852cuVUKAGsbWh4UXD PSuQvdQTLXOtL3wTkorMbZ/2vd2susg3jHJZIAWjupqhPDuAXbdDb3CAWffPzAHDcUSs sn2GbOL4iXc5fNSQiAhftUYrTNNqBe8zJpUc0/ViLatwZIY56aVFjcy8HvVEt6d9ZLV2 Pguxyb3Cn3qpfwi5FDs7ZjET/j0qtn2O87N4Qt1ljMqTMbet4N1uOKdwu2Bvd6ivzHAN EKvnvtnk9wzYgYYUPXrc/zaT0eb4U9eRvf6y6MVP9d6+Bm5B6zXhCLLm95RRxNS8z1hg +3CQ== 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=7CQtFRKLxqx+qqsUKVRUJaYz4sr4nG/VYl5q0lBwYzk=; b=dTy+ruikSQnuqEvuAtoTCnO7RxUw7DJmOpCz6cvxoaLEhGhI6qK/UdOCik5SzbDqga SfiBClAxjevzKw+T8sPf6jzchdHzCoHnqp5Rz4QCzJ1+qRXfcGowzNm8U1oTAhVHAPq6 X+p+FwnVC+lp3wM7ySM8KggJBXv08RKghERwNiWB+UzlXVhxx/zFHIP/6Im7exrgKqsS 1RNQ0mjmla9eLspi/uGiRGwcDFCijaerB9N6VP0ctdVhdr1ABKzxZMe97Hued9gagSzv RrR9AwWJfy0fuOccelgyuhRKpolECRH+o5d1zAduu+x3itKf7niWqvFv6THR4Nj8hjBO zNbw== X-Gm-Message-State: AOAM532tpx44f1txNblXq3bhBd/yA6DS1fNhv9iDzZPaYRlEYTMq6ROk PgumCWqDZOcZ29gYp2Adw5XqvIPWojP/3v6VmBKL0DJq891T2GxXCPdDv5WQDP6TbgyFvulRik1 fy/I6Ggc6HPLRdXtifTNYpxXcYIc293wwONaSxMJM3eBmy+mR+tNM7Ip3DrAe/K6mDETpjbgH X-Google-Smtp-Source: ABdhPJyvMunnH5NqggnkiHuCluQZLQysSAvHHDAAqWNSvkewifEK1juuQ/FVxnm0Kw0Pcv6Dit8AhCs= X-Received: from osk.cam.corp.google.com ([2620:15c:93:a:54be:9375:f9b:ec02]) (user=osk job=sendgmr) by 2002:ac8:5ac9:: with SMTP id d9mr47311556qtd.383.1636082956536; Thu, 04 Nov 2021 20:29:16 -0700 (PDT) Date: Thu, 4 Nov 2021 23:29:10 -0400 Message-Id: <20211105032910.446492-1-osk@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog Subject: [PATCH v3] 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_202918_586898_3559D8FE X-CRM114-Status: GOOD ( 11.45 ) 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 v2: - Add missing address-cells, size-cells configuration. - Add missing new line between channel 0 and 1. Changes from PATCH v1: - Removed superfluous "status" from channels. --- arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts | 24 +++++++++++++++++++++ 1 file changed, 24 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..60ac6d3f03b5 100644 --- a/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts +++ b/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts @@ -213,6 +213,30 @@ &i2c0 { nct7802@28 { compatible = "nuvoton,nct7802"; reg = <0x28>; + + #address-cells = <1>; + #size-cells = <0>; + + 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: