From patchwork Tue Nov 16 23:57:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12623301 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 EFCB4C433EF for ; Tue, 16 Nov 2021 23:58:02 +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 B5A5C613A7 for ; Tue, 16 Nov 2021 23:58:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B5A5C613A7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NPrHWmF/7NCS7hpaExYpNSipnz2t/qlhmTlvjID1Ico=; b=X/gPo6D6wymyyV r+zUacGCm+yZLm+g+tlC6KRDXIg4kzbrybu2zskqc4PRTmN3NRcpAhYoOSChdOktmK5KWd0Kl5Fs2 5pPwaQ5O/W9ia8cFWY323z46t6Z4uY92VM2fYNP5OpR5ZLSJ7C/5dD7BrZtctyDpZsuBrxdb/MBIE MjI5057Z+w6Hq3zoKRSf90t+H57kZpfY6ibpCmKzHjJ0X/l2zPggFfUEvdS7JY7sYz+/2MNn6PCpj Vy3vadL1qon99jDm/x3Fz5Pdkn7JbwKX4i/kEMhb0EIRvSstBtUafZcU79X5pT69eWN6qpO8jVLoE QfHMJNYMymgtN+44C+3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Ko-003005-MC; Tue, 16 Nov 2021 23:57:54 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Ki-002zwA-3H for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 23:57:50 +0000 Received: by mail-pf1-x435.google.com with SMTP id 8so911033pfo.4 for ; Tue, 16 Nov 2021 15:57:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=/zwzMgCKlV1Dn38wdj12JN6kln/RrqctqE2A6Lwr2FE=; b=ZysnW7EWtqkGYnKDLftVi2BN9z+BXclDtaC6OcEZIR4ipTPYCiZGxz+vs51ytOMJGS y5ynfxXnj+NoVKKvo0FFFFdzKLaplwCO9xdVEIdNy5XZax/Lc8Wr7o4DgKP4KKFB30qf wpo9HXc5jKrgxDmjpEKrWdnHrP0tRemck3qBerV62EgmhGgKBL1x2wob5gNGLvpvFf3b s66Et6kiY+/grIJ6nrxVNZnAtbU5MDuNfKeOOj7qfjnEJhm15tzwT3W0U8QBgzKq63Nj bFB64EslnTFrN+5NP4c4bsMrD/xooYnLed9juV1G2w5d9EI+RmjtGcX+rclX7tvD30dT GoPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/zwzMgCKlV1Dn38wdj12JN6kln/RrqctqE2A6Lwr2FE=; b=fo25vQKHapAYYThiTStIr1R/nM4CLIqAntL/s/DRMw/FPRTOvEzZcoc/zp7WMdVtqP J4isdZbonzd9UAo1eUWxVMeQzrR3rfd2zIFYQ6W5QsjObGpzY8E3oq/U5iGfIWUTUYVu 47HWfMYQQn5eogIx7Utgo/cWvcBBWwW8pMO1LDD487nCqrvnDx1/9eneDfDzoq7DsaMW WBtp8dmT+BhyfzbxmmLudDMcUX+POLVSO/d5uHZobMQ1eNMvzokl9Bj0wC1Pv/WZS3i1 agGKVKb96lfu4/k8Fh1UHwoSdr1wS3+kLZ4uJU4sJkZGLMrSAm3JhHFb24ktJ6/aZk7B F8kw== X-Gm-Message-State: AOAM5303mVkpNg4yk9eWrmgy4CRSWRITay+6o6Ybw1oD0MZgSlwFgPzi LlNDtVwzdlY964fo7ur8X40= X-Google-Smtp-Source: ABdhPJwMuieDf+DAk+m7r28QGKlTvTljYzr9P1nwGXj+b6V4bkxiqN/+dz+stexAM8vKUuyqc43iMA== X-Received: by 2002:a63:5257:: with SMTP id s23mr2112128pgl.473.1637107067577; Tue, 16 Nov 2021 15:57:47 -0800 (PST) Received: from localhost.lan (p4899162-ipngn25301marunouchi.tokyo.ocn.ne.jp. [122.18.9.162]) by smtp.gmail.com with ESMTPSA id il13sm3458697pjb.52.2021.11.16.15.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 15:57:46 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id BCE9A900958; Tue, 16 Nov 2021 23:57:44 +0000 (GMT) From: Vincent Pelletier To: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Qiu Wenbo , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, David Abdurachmanov Subject: [PATCH v2 4/6] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator Date: Tue, 16 Nov 2021 23:57:40 +0000 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211116_155748_178602_EFA07949 X-CRM114-Status: GOOD ( 10.11 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Provides monitoring of core voltage and current: tps544b20-i2c-0-1e Adapter: i2c-ocores vout1: 906.00 mV temp1: -40.0°C (high = +125.0°C, crit = +150.0°C) iout1: 5.06 A (max = +20.00 A, crit max = +26.00 A) Signed-off-by: Vincent Pelletier --- Note: checkpatch.pl complains about undocumented devicetree binding, which is fixed by: https://lore.kernel.org/linux-devicetree/20211116110207.68494-1-krzysztof.kozlowski@canonical.com/T/#u Changes since v1: - Added missing "ti," prefix in compatible string. - Remove trailing "." on subject line. - Rename tree node. --- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index 270360b258b7..6e7775fdae32 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -51,6 +51,11 @@ &uart1 { &i2c0 { status = "okay"; + regulator@1e { + compatible = "ti,tps544b20"; + reg = <0x1e>; + }; + temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>;