From patchwork Mon Jul 19 00:17:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 12384559 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC1FDC636CA for ; Mon, 19 Jul 2021 00:20:03 +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 BE88A61009 for ; Mon, 19 Jul 2021 00:20:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE88A61009 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cK9cyevzHNCKzrCFCjzzbWy/EcnHJ6jXz1FKunickAs=; b=WVVpyS65V9laSk AAeViKA9JpnAp/w/kxt4+E7B/f0AkIZySB44UmAKmUrCyTrF6Yef0WSFXJNg609RmZIWMZJ+5ctvn bqCVRlFyKw1gDFCCC+ldNfwrXYuJ95ZCrX4bY4mQNRpAe4Aw1emG+wpXz53DxwzFNPvxwiLVQ6kpp CBvgNc9J6lU1+qFODVGl64qkFjIC4rJnIkvs/LtPwCbj7d46Ie12pPxjeAfZHSqMMNw5SoyshZ2uK 0YYQDxu6XTCq0kyo3xuMbdokLvA9mGMuZNmtfQjq46lKaegDPdukFA+xtJaFIRH9y2FJwkoODHlfc SuaLBuIYR1tsFdvivMTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5GzH-008AAU-Ra; Mon, 19 Jul 2021 00:18:24 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5Gyc-008A4n-Az for linux-arm-kernel@lists.infradead.org; Mon, 19 Jul 2021 00:17:43 +0000 Received: by mail-pf1-x42c.google.com with SMTP id b12so14932083pfv.6 for ; Sun, 18 Jul 2021 17:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1gtBV11Yp08tX+bShNS4fOnnqi4rnWJMiZDXxIw07HY=; b=VHIRZh80EZf7ljdAEYZJc0XzORChQ/oS9ZpcsfIKq1C/zPibRc+JifbI5VPYrZqMxc 0Ev+RVv8VlX2fvkd/cSWPD58Hiq5Allr5Jek78yxMeWS2zYElE8vwHdeDVfrkYZMWV+9 ITrJ3bh0iS37tFEEyxDfyqeiykd3dj9rx6ny7Y4ZaNqQAVZ5gQJPQZsihufJyqf0lTdD VodM6HwNI7q6N4BKT0k1y+nNBpEpkhcIbq/ELbvcD888J6yXGhHGFhAs+NrFS8ANuTOy +diZOovi1zxJQyePsHgwz1auOl7gjpkqWIc/vXlvWPZTWorQI70A90ILBeN6oGk+jkwI 4JOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1gtBV11Yp08tX+bShNS4fOnnqi4rnWJMiZDXxIw07HY=; b=iCK3MtBcj4BxXZ1eEHujU8zds4PH5+amOWnnuyltaUQCIUXJo9Do1ztEfv4hddfoea 2RpuTLdvhUlYg2uwOMwILboHU+gEoGHIdUv73qr2/sK7QwSiaCRmt666QyZgp8U0z3TZ Gj6gj8GNaeSrNTnXaqTRyO+xUzGFt7iC3h/OoS96sOMeb+El+gc00ld6u+pOnDuozgWl veUkFFzjNcM9Xy1SBAfQR60CQDfff2YxRQZYhP7vajCE1Nug7BJPLAEOxuIcRxo0TJGU iHQbFu1DjRKNuGqLujBifzmUuLe/kjTBdhgvvHICC1SNA8GjZoQ5n5mCrJOPikCE0Pb/ 95ug== X-Gm-Message-State: AOAM531ondPqDiYFJgNNlrL3eVGo29JsfpSgs7/cr3FeMQ9Pog5+fNI/ m7h2+XedN1iCCimoDrjw5BM= X-Google-Smtp-Source: ABdhPJziOmNCGHJ54lIjSTicoJLCkd9r6laOAsYHbZkU5k7hWg+BhWm5brJrvi3bGNBreHWhTzmaFA== X-Received: by 2002:aa7:8058:0:b029:332:9da3:102d with SMTP id y24-20020aa780580000b02903329da3102dmr23071284pfm.21.1626653861877; Sun, 18 Jul 2021 17:17:41 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id x7sm1059847pfn.70.2021.07.18.17.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jul 2021 17:17:41 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Cc: Tao Ren Subject: [PATCH 4/4] ARM: dts: aspeed: wedge100: Enable ADC channels Date: Sun, 18 Jul 2021 17:17:24 -0700 Message-Id: <20210719001724.6410-5-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719001724.6410-1-rentao.bupt@gmail.com> References: <20210719001724.6410-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210718_171742_422732_6A6C5D3F X-CRM114-Status: GOOD ( 11.26 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tao Ren Enable the ADC voltage sensoring channels used by Wedge100. Signed-off-by: Tao Ren --- arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts index 39c6be91d53f..584efa528450 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts @@ -12,6 +12,11 @@ stdout-path = &uart3; bootargs = "console=ttyS2,9600n8 root=/dev/ram rw"; }; + + ast-adc-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>; + }; }; &wdt2 {