From patchwork Tue Nov 16 00:52:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12620999 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 253B4C433EF for ; Tue, 16 Nov 2021 00:53:38 +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 DD68861B3B for ; Tue, 16 Nov 2021 00:53:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DD68861B3B 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=P5bWKTl+ZXjDFMLxUf2uDSZW0/uS0OWAykX35iozhFs=; b=Hm2n/eRpATO2+z QcTLQYEm0WKAh92XqSG8rHZux8JHb+OmrEqOVGCtk/VTsH5Rxbh8VG8vwKydBWsQh/QhLWHE1thMo J/pEHLKG463WhhDt4B2WFs95isUXy0VijEYTt5SUVVdc6H292bdtkgKAtYT+r3IvxmGtXueCK1f0S WfgmTXZWhm5NTSCIQAlZvh9PinwM8G22B6kJ3uSa5QMQkdj4TPAxu/xJn0hjx2XxT+kKPMnLGkepG /UzDLk/hi6yZgOaSH1CIPq0mmkPnDJ9eKGEqkhNqigbgqzGUQ5AhzjIgtJocoRUqHfK1+p1qFVd4A sNo1JDn/fxEWyT7b3AUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmmj2-00HTwt-5b; Tue, 16 Nov 2021 00:53:28 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmmik-00HTrN-KP for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 00:53:13 +0000 Received: by mail-pl1-x62a.google.com with SMTP id o14so15926943plg.5 for ; Mon, 15 Nov 2021 16:53:06 -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=aZ5tXp1sMvrUv561doAiiCqmD/rNuSSbtkKz5FumcyA=; b=Fokzzr5kW5aWUlaCTKfzgxiKq8Sz0JJNct2dPr95icW0vsZJtaR2EFMTnO1oVDfMOq Lz6JGgFasUyOruecRwq5Aml0eaiTTg2hnH8ICBGuMMPr777ZnKVxIVX5IvluwbuK+Rxh IsN8tYvUeOJ/6U6qlHZicvs0HDoYKEcXWRmbJRZCLUI/NSUB23Le+8IpMm1BnErovhx0 /LQuVgCI0ouIkBrtJacuCHdWWHdWgKrQCegBDrITIPL4TLXT0NkMQRmFyoWkFbcwxX37 thogFTUiBYPEvVKPH9yj+GjkpWVutq8FxhlU8Uua6imHeqE6Fadf2rf4Rz5xTfSBxRVx MKQA== 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=aZ5tXp1sMvrUv561doAiiCqmD/rNuSSbtkKz5FumcyA=; b=NhzTi5ifYt91qYWWC9HIVjAHKOLYBXFPfTeN3sklthiSqKF+fIs+yoCVR/spWF/et7 SJNPTehpBA7ud0R21kqJfw29YHH8Ym/ylChSDtkpA1jcKcy/dWSvWdAF9NXnyMWnCf2Z Z6HyHY9Hv4JUh9FG+uc60/h3wRV/B9dS6orW/98e228X4kfK5svEUDQ582pGWrFyFJJc NtX8y3qSzk6JRijF1W3kst2TuFKbxMgWzq6VFhKiPwpiYSjX5HCzhgTwtibnhNOWjegs wwu2tvreU+bMa4+J9Hk9jX/KBaTzd7+87BDvkqzQnPjY7yUReRZzF/7ZPgsnIeV+dfGu 53AQ== X-Gm-Message-State: AOAM530+f5jqqXifDbffqkvp4y3jaHwg68aErfO/g5FYSpr36WCoPCPa YhoO16EMlJSv9E9dz+iYh4Y= X-Google-Smtp-Source: ABdhPJyigJGV07hysM698lYSq2/gFNLDQaOt6dLD9KS7jPLXXnrmHTdY0gRp1kmucLGbfl6j1VlUpA== X-Received: by 2002:a17:90a:1b45:: with SMTP id q63mr70178224pjq.135.1637023986396; Mon, 15 Nov 2021 16:53:06 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id b22sm12780502pge.2.2021.11.15.16.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 16:53:05 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 7D2D4900958; Tue, 16 Nov 2021 00:53:03 +0000 (GMT) From: Vincent Pelletier To: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Qiu Wenbo , Yash Shah , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, David Abdurachmanov Subject: [PATCH] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator. Date: Tue, 16 Nov 2021 00:52:59 +0000 Message-Id: <0879c5b0c72b9bf6bf71f880def166f8804f41c7.1637023980.git.plr.vincent@gmail.com> 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-20211115_165310_695109_D71DBEF2 X-CRM114-Status: GOOD ( 12.62 ) 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 for review: this patch has one warning from checkpatch.pl: WARNING: DT compatible string "tps544b20" appears un-documented -- check ./Documentation/devicetree/bindings/ #32: FILE: arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts:55: + compatible = "tps544b20"; This chip is handled by the existing pmbus module, and there is indeed no matching entry in Documentation/devicetree/bindings/hwmon/pmbus. I am not especially knowledgeable about this chip, I only know it is used by this board, so I am not sure I can do the best job in putting such a file together. If needed I can git it a try. --- 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..e327831d0d48 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"; + tps544b20@1e { + compatible = "tps544b20"; + reg = <0x1e>; + }; + temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>;