From patchwork Tue Nov 16 23:57:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12623297 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 3D351C433F5 for ; Tue, 16 Nov 2021 23:58:00 +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 1184661BFE for ; Tue, 16 Nov 2021 23:58:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1184661BFE 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: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:In-Reply-To:References: List-Owner; bh=bppwJfk/ohpTL6mFQMTQFhoaIr7Xlo7772mvG5yb6Yg=; b=GLvjbMHFFHAqA9 46IICKppQ0ekMfE17TO+5JVZV/p35bDgglBJJeiEFTig+itGvf9m62hrGNubQ45QMIcvMBHlLuRMH TOLV/9rrTIbBDDH2Zf6BuswttYrvlyw5nFUbrDPxWAGgYMAWkr8JhyNGr5XlTwE6lKrVXLsB+HRFL tfpY3D87KUAkuwMeOfsTtm71vtmSVlWuQE1gS5DYxG4B+jqM7+84tlv6GfqmAcy9bs7yYOYJF5Bfe GqHzP9ThTQkwEyK14yFdHRhgzwKnRZsingMMOKAdE5tzk2/V5nUoYeMC0Kil7XfdS2m62oasS8dG7 s5DjbIvqeGIGQ3xkD2fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Km-002zz8-KE; Tue, 16 Nov 2021 23:57:52 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Kh-002zvx-Rs for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 23:57:49 +0000 Received: by mail-pl1-x62d.google.com with SMTP id o14so577311plg.5 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:mime-version :content-transfer-encoding; bh=vrbIOXmEg+gIS4wEDNBUS5d/guo/eziPZaC2mTYxZXc=; b=JWrZ4w7QNwVa8l2FZpPgy01wj1EYBBbDAwBRw1ZHUVQSJEAUVhd7Laz4aO1UhUJSOY /v2g56IJj/ybdHGNuNeh616KSX7ScKdPk4+NhebzZvlDJB+mJAOVEMk1zUV8HYhF4ozc 2/LRBX6ZsthvqkmxwIuq0MWF9cXfyrzfohk66dvudtDYrvI9kh1Y8GGmuP402bAbFWoD l8if6KJYJ0nNIehrLc7UNbmoQgwDw1WUHLq+vFieDMACwjVK8A/1DXaz017T654YuSpl hnOffQobD248JAzLfLbRxZ3q7+ZM8aqfmF+ttkvPt1WwLqH4qTnQiUi9u7D8NEPQlUUm OIYg== 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:mime-version :content-transfer-encoding; bh=vrbIOXmEg+gIS4wEDNBUS5d/guo/eziPZaC2mTYxZXc=; b=AesVBLSVaW969hl9X8KemlTv6xFsb2/x/xgHhv6YFWY1x/O94niP8k0wbukfIpp2Uf cHp5rnasQgJZ/nW+Yj8PWxY3S7ct2Etrw5zYa1Ywsm14+XojwZWwDLbggkLNBSDexbcA E0Rt3VF+9LzBIEUZoOy5Xts4as3Fm6gb89DjlNSVbHOAFsJmTXXhYG2jVquFDqLZswQ1 BHb+leIsFGR4UdtvL48o4DZJVIrCkUzb8xkWy37wLjQe8Vxn1ZhzrC6R4v2VwbstaLyZ cvPNUv2hgNsaT/KUn8kNRAN4oTLX1RRbGzfi5PDRWBc7H0Vg/I0dhmAwkIn0FuyZopnw ZBAA== X-Gm-Message-State: AOAM530+U2GzZWQvEtX2mTlHxLoT+RDq7hyTlXDePZx1jGhayZhm6mgc qFT+QD7U5dbpyOnHpMW5p/c= X-Google-Smtp-Source: ABdhPJzmUhE6Hy6mniZz6KoEJb3wtxhjDBL/clLr9G1wQO8UmiPC+vpReQmMadnklyyhjTJymuFmeQ== X-Received: by 2002:a17:90b:1b03:: with SMTP id nu3mr3873436pjb.47.1637107067201; Tue, 16 Nov 2021 15:57:47 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id o9sm10314408pfh.37.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 A11D9900949; 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 1/6] riscv: dts: sifive unmatched: Name gpio lines Date: Tue, 16 Nov 2021 23:57:37 +0000 Message-Id: X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211116_155747_938290_A010DD6F X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. 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 Follow the pin descriptions given in the version 3 of the board schematics. Signed-off-by: Vincent Pelletier --- Changes since v1: - Remove trailing "." on subject line. --- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index 4f66919215f6..305a086e5207 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -245,4 +245,8 @@ &pwm1 { &gpio { status = "okay"; + gpio-line-names = "J29.1", "PMICNTB", "PMICSHDN", "J8.1", "J8.3", + "PCIe_PWREN", "THERM", "UBRDG_RSTN", "PCIe_PERSTN", + "ULPI_RSTN", "J8.2", "UHUB_RSTN", "GEMGXL_RST", "J8.4", + "EN_VDD_SD", "SD_CD"; }; From patchwork Tue Nov 16 23:57:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12623303 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 2F74CC433F5 for ; Tue, 16 Nov 2021 23:58: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 ED8A16320D for ; Tue, 16 Nov 2021 23:58:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ED8A16320D 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=LqOeV5sLpKRd/IVeimASpI/hDNxlx5d7+pwc6vkBaws=; b=NWAgdgHBWejGSJ NgKWEE0G1S7U530aDoY6vhSwm92sRwQ0I7WCycRf3iaoRPcjbehAAM5DtLj96U65SOlcGn7a2DmQj XuYvKdcVn45bTBLB2ZhwAcVKjSBdbM5eD1WQ+JKG+9M4pz3WVBicyaecnvGfj4Q5vT69a7zrvDZ1m ZQn1VsXp4mb5iP/B5UEjSLPqai0T54PjEkQz2wtVPiwv8GPzqv/tIiY3d91iTxzh3BY1QgDL0EHSg vCAI0KSWjnPqJNH+Co+5PiD70bgN/PVBUwm6woeAZbVgV4KIbTPJPrZkh1O1aTaJweTqtFcrAYPuf 1dnUaUC2hK3cGZM9Macg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Kq-00300x-Gv; Tue, 16 Nov 2021 23:57:56 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Ki-002zw1-6L for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 23:57:50 +0000 Received: by mail-pg1-x536.google.com with SMTP id 28so569999pgq.8 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=lKn8U3vTkXK9ZBlzMtXDj+YHFGEgluUXaeDmujmDJDU=; b=MYBFr2IrCPsxtOescR/u9V3YhA8hvrw9TEvKwsfslqq26VneO16fyXkQ7r768npAbc gXRFft8rJ3RsXRpQn13tG40SKUJN+ZC/1JTp7ue4elz23wfeRFnj362LccsFIQ1J7Vam cTO80DFxGb22J5ciIRt7W7a1eqWaUePV6bUwX3kBy9pF8Ej1wff4hlNqCYcT5yt1GY24 wfkJWbjeUrTbmREkEOm3qYwFPV7wJJxrAzErEBx8YUwLW4O/esKNlzDcQ1EMWi4iy7nO j/KjduD/0D0W5em1Les0P157nYMPT5LINhKkhgok3T2H5gP4gzprtM3FHp87LD/Gl9gf KOLg== 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=lKn8U3vTkXK9ZBlzMtXDj+YHFGEgluUXaeDmujmDJDU=; b=ED5SJ37V779A8WKY7lr6o11Zy3PjuqSZsRXKDX74IcjPcpq32balba2awAZzZva6ds RcTcwAnA6BaRKfYyFZE6HvgxknPV+rvbMmAh7U8FNStuw1nHymwTQ4+mDEhXu/KyjXVq 5pKY8gk1WsoiuCnb7gruVl2c2lFrKcglykfhvZO+9PllVZE+bpeTdE5nMZpjuoTnSlP3 m4vXDOMlAftbCGSYf+H3F/lZ4WBUcLGZ69hv95UTmg+kDQNMXK43rX0EyKs43DBuprYh WMHJLHOgr2Q40rYus//tTytzvrGTMqFCUL0aoLezvM/aLRCGXn/dPFbLfri1LmoBt3WB jMVA== X-Gm-Message-State: AOAM532+mkibWfzXpRcHZoQRYOOGhg+dnfGa7LwCGO4xNfnE5k1vQX9G 7sv0PX8T/4MsKgrT+hlXMPnBgKgOkYw4R/FK X-Google-Smtp-Source: ABdhPJzjR/I+yZIEQg5XCsv58hcLYy2yU8CB0QdQdk/mWraFZCmiLWi/R/xzqlIXqFS3+BRz//FSqA== X-Received: by 2002:a62:1d09:0:b0:4a2:82d7:17a5 with SMTP id d9-20020a621d09000000b004a282d717a5mr32135027pfd.64.1637107067442; Tue, 16 Nov 2021 15:57:47 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id b10sm21210389pfl.200.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 AF508900956; 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 2/6] riscv: dts: sifive unmatched: Expose the board ID eeprom Date: Tue, 16 Nov 2021 23:57:38 +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_262859_57184DE7 X-CRM114-Status: GOOD ( 10.24 ) 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 Mark it as read-only as it is factory-programmed with identifying information, and no executable nor configuration: - eth MAC address - board model (PCB version, BoM version) - board serial number Accidental modification would cause misidentification which could brick the board, so marking read-only seem like both a safe and non-constraining choice. Signed-off-by: Vincent Pelletier --- Changes since v1: - Remove trailing "." on subject line. --- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index 305a086e5207..cf8937708829 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -58,6 +58,16 @@ temperature-sensor@4c { interrupts = <6 IRQ_TYPE_LEVEL_LOW>; }; + eeprom@54 { + compatible = "microchip,24c02", "atmel,24c02"; + reg = <0x54>; + vcc-supply = <&vdd_bpro>; + label = "board-id"; + pagesize = <16>; + read-only; + size = <256>; + }; + pmic@58 { compatible = "dlg,da9063"; reg = <0x58>; From patchwork Tue Nov 16 23:57:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12623299 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 B5A53C4332F for ; Tue, 16 Nov 2021 23:58:01 +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 84CBF613A7 for ; Tue, 16 Nov 2021 23:58:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 84CBF613A7 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=A4SbXxkJ3/7rAZXUGIBYs/NQUscWJYuw+/V0A9vxwPM=; b=Kx2MatoUY/aWY8 JNzOUWrlQxJrslUjm7Hsl4F3XAYI2d+auWPlR+wSukfBCgepnth3tNqPho1HgX+FoO/f0NPZrPEtn TE4Id6wdNrp8Ku6958NVMntke85j1XIsrP1Fdurr6ybWz5YWXGNaFANwlRMC3gXxblulFJ4f28JGI +hLmqC4oNxkXMLEeoEFbLhHuy39fEglhGsYPEkJSBxXQ6dyntj+OR5B/rkmOY7CloVFl8BZh+oRGI /blfXvIffNJ4TWHpWsbN+2jBsijUmw7+wxIy2WWP3fDTwf9Y782+hy9XXiZk1odoj++qPEVYN7Xmk QndRYe4IPTnDDmmIq+Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Kk-002zy5-DA; Tue, 16 Nov 2021 23:57:50 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Kh-002zvw-P6 for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 23:57:49 +0000 Received: by mail-pf1-x42b.google.com with SMTP id g18so908172pfk.5 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=OVuTAXKfST06LlKa+3lMZr3LwgCnmVMpB0im1jCL3Bc=; b=R0HeMjNP0oOGJit2TNJfMFN3aPrN1kb/JK9644Ic65UEfFRZsGsK27vd282geVOWWR 8rMMFbhSbiwKLImoS0pmCSPUVPS3cQiz1Xm+I+jN7d2JUWRir8XzGHSci5G0DpQZwR3n GMFG8ocDfIR5V3PGgjJzPBNMVGeKzmFfKLRob3Y0tZTpt0WGLkf4IE7sqqc6m6+RSfKB DtGY2U7f6anDms43hsqdaE1rTLqodp0KXkto0tO2/18238ePV9eOIjxs9zP+/VX9/bqZ wOILzAbQx6dRbNTj6Su3pjRxZUVzdLZL+R3VCnTXnS9ecQZe7AvCY1RzRkPUzWp4alVq V/dg== 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=OVuTAXKfST06LlKa+3lMZr3LwgCnmVMpB0im1jCL3Bc=; b=igsgJnAASDlVv2+BwT/qGkNT+6ALpPdX04To2+6NkZqqnINUfvAvozqVacbH+TzOv6 3nnXjq8lerqb9Ue+Ia5CW1h9LweqqMTnmicdDmCzFe08bXlgiBxH5QhgmmOJgCIoELDo tqxty4zVYgVqL7BRorYrnaIFWGCQZeGpWLPPm94iTE79mZNzxPecY3teHROGjEeyswN/ y3t69MNWx18W3kQ3KzwkgaKZiLbLb+Msq/uiLPBaQKfCBpR4p8E3BWdJdfGS9jRDqrg4 pFvWOBzlalQ8+Vp5CknNeMnnbjmMRNOOqR2Qo79jncUQ0glr9hgNAIYG0A+P6J2bfLyh tdeQ== X-Gm-Message-State: AOAM530T/UTPoz3rdHWta8uEpUUe2hz4My7zuI/MsAqzzyuYXFOy5LcH dvHmTLcQZnY2OQRlFeMlE48= X-Google-Smtp-Source: ABdhPJwsRHRl1g6o/W4ZLU43Dsi9Xri70sEvBX9y2A2g4/QPkp4X8RIip5UKAvVk62VsVeP0+/K+pg== X-Received: by 2002:a63:e614:: with SMTP id g20mr2120302pgh.159.1637107067072; 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 t67sm717236pfd.24.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 B13E2900957; 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 3/6] riscv: dts: sifive unmatched: Expose the PMIC sub-functions Date: Tue, 16 Nov 2021 23:57:39 +0000 Message-Id: <72d7baa6829ff02ee7ad0344fe1d33a2269780a6.1637107062.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-20211116_155747_837482_55FF8DE8 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. 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 These sub-functions are available in the chip revision on this board, so expose them. Signed-off-by: Vincent Pelletier --- Changes since v1: - Remove trailing "." on subject line. --- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index cf8937708829..270360b258b7 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -75,6 +75,18 @@ pmic@58 { interrupts = <1 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; + onkey { + compatible = "dlg,da9063-onkey"; + }; + + rtc { + compatible = "dlg,da9063-rtc"; + }; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + regulators { vdd_bcore1: bcore1 { regulator-min-microvolt = <900000>; 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>; From patchwork Tue Nov 16 23:57:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12623305 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 6CA53C433EF for ; Tue, 16 Nov 2021 23:58:06 +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 3482C61BFE for ; Tue, 16 Nov 2021 23:58:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3482C61BFE 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=snG4RRix0hIoGnIMu+ic1Pbf4frUGbOlLU15ljWXXAU=; b=f0kCHWo07VCLrp sZQ1BhUgc9P5TFKlAVn3LGNLKHhxIXR8U/6dkwNF9GZMkn4lk4mu0/xMGBPJUqOB1U0M2iajyiImL DpwizyqwuVH7SpyERNpR35Rn9PZvy5EcFkEJWzvC/0phL6aI1bWkij6uukLZwqAHRCcmbAD2fgOhZ ElJ5j4NxfcAeDTXVPAxRTn8f79ePY++4C6XUKAFtNeiERrVT8iv13EayarlOPD2OLSMRzO96dueKB M+0/w+8viCcjDrDyybB0wBD1cAOJUDIZkEhkJqYzcmkRaEO1j3ED75VhFL9oQv2QP+h5hU6OEaGdl vNpIF82Q2cZxgbpXKPXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Ks-00302V-ME; Tue, 16 Nov 2021 23:57:58 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Ki-002zw0-4M for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 23:57:50 +0000 Received: by mail-pj1-x1033.google.com with SMTP id nh10-20020a17090b364a00b001a69adad5ebso890412pjb.2 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=4RnFUnxfyHUhy4tSfteuuuFzNC68zU1zp+2bcst0AvM=; b=mtK6FejF5gDDC3Kdl2FWM/nJlfJWiHr1fz+/YcZ8xjSht/F9pICNna6qb8OWPeFRkg UF8PhJvQSZ+MAUwWZ1kDpQwxP9I+PVhZwXNLzcaAVfblnVDt3FKpStSzhy+6RwSIn6XZ b6vS1usgBDonjcDAEaENxfP2fW+v7vQVOe6DPE4StkthSIrjRbTie0hh4Ton2jAQYo/U XqNaH5RrgvmyH+uaZPsiAf/02pKBY4dgfhHwQGP8UXtcAqBRIj33HeAQlhZ9F+QIQczY WIVb6GpmAyg5vwi6YpNQYmofNIAohHPdD8dj8Df9TrjA1p2XBTzapbOCB1OLlhFzhE+z +27w== 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=4RnFUnxfyHUhy4tSfteuuuFzNC68zU1zp+2bcst0AvM=; b=1fdTnMpLke3pYdbGN39fYv0GgodOpweIwV4a8S7bSK2SCepV37Bi2sjx6QMeJYVRlx m0cC+Ky83eGSvzbc77hRz6c8zEKwvo4vWurKato70BHPA6AISW8Ztd1V9hFr/RtFWs6N Rk+bc/CsZbbLXy7N+yUYrniK6ZqfjyQn1DLXEbuakX17HPLtsaCjDMbRe+lVzjpE+KxU tuaWvRrrNYNSwYt9+qBMg237xVBnQYyPeEJxtjJmA0I6/bhZ0IaJGove0paGeVkMqmPP Tvq8cqRgP8ZkT9rj+WuwBWoTfb8Vajq8VSfGBMZunc4+5u2aCqN2JOAFMvd2Ihs4AGqZ K2Zg== X-Gm-Message-State: AOAM533Ru9QmNayjokgFs1Gs2I+yxngbx8RQhVF+YO9hgNMSNcWRoNA7 iH/PaDcu+U4RNHfSFQih8Sc= X-Google-Smtp-Source: ABdhPJz9ehM2+2Q0tVAnzN2/KnBwkPBwfxgX3ToK8L5DmNzTK0gG1mue3l/ZAuv2z48HQuYJlpMPZA== X-Received: by 2002:a17:90b:110a:: with SMTP id gi10mr4012168pjb.124.1637107067327; 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 u32sm21005751pfg.220.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 BE8DB900959; 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 5/6] riscv: dts: sifive unmatched: Fix regulator for board rev3 Date: Tue, 16 Nov 2021 23:57:41 +0000 Message-Id: <867fd3a362122eb2a370a7630df14977e29bad13.1637107062.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-20211116_155748_209172_9293CB40 X-CRM114-Status: GOOD ( 10.74 ) 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 The existing values are rejected by the da9063 regulator driver, as they are unachievable with the declared chip setup (non-merged vcore and bmem are unable to provide the declared curent). Fix voltages to match rev3 schematics, which also matches their boot-up configuration within the chip's available precision. Declare bcore1/bcore2 and bmem/bio as merged. Set ldo09 and ldo10 as always-on as their consumers are not declared but exist. Drop ldo current limits as there is no current limit feature for these regulators in the DA9063. Fixes warnings like: DA9063_LDO3: Operation of current configuration missing Signed-off-by: Vincent Pelletier --- Changes since v1: - Remove trailing "." on subject line. --- .../boot/dts/sifive/hifive-unmatched-a00.dts | 84 ++++++------------- 1 file changed, 24 insertions(+), 60 deletions(-) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index 6e7775fdae32..1abad0eec02e 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -93,47 +93,31 @@ wdt { }; regulators { - vdd_bcore1: bcore1 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; - regulator-always-on; - }; - - vdd_bcore2: bcore2 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; - regulator-min-microamp = <5000000>; - regulator-max-microamp = <5000000>; + vdd_bcore: bcores-merged { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-min-microamp = <4800000>; + regulator-max-microamp = <4800000>; regulator-always-on; }; vdd_bpro: bpro { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <2500000>; - regulator-max-microamp = <2500000>; + regulator-min-microamp = <2400000>; + regulator-max-microamp = <2400000>; regulator-always-on; }; vdd_bperi: bperi { - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <1050000>; + regulator-min-microvolt = <1060000>; + regulator-max-microvolt = <1060000>; regulator-min-microamp = <1500000>; regulator-max-microamp = <1500000>; regulator-always-on; }; - vdd_bmem: bmem { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-min-microamp = <3000000>; - regulator-max-microamp = <3000000>; - regulator-always-on; - }; - - vdd_bio: bio { + vdd_bmem_bio: bmem-bio-merged { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-min-microamp = <3000000>; @@ -144,86 +128,66 @@ vdd_bio: bio { vdd_ldo1: ldo1 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; regulator-always-on; }; vdd_ldo2: ldo2 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; regulator-always-on; }; vdd_ldo3: ldo3 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo4: ldo4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; regulator-always-on; }; vdd_ldo5: ldo5 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <100000>; - regulator-max-microamp = <100000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo6: ldo6 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-always-on; }; vdd_ldo7: ldo7 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ldo8: ldo8 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; regulator-always-on; }; vdd_ld09: ldo9 { regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; - regulator-min-microamp = <200000>; - regulator-max-microamp = <200000>; + regulator-always-on; }; vdd_ldo10: ldo10 { regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; + regulator-always-on; }; vdd_ldo11: ldo11 { regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; - regulator-min-microamp = <300000>; - regulator-max-microamp = <300000>; regulator-always-on; }; }; From patchwork Tue Nov 16 23:57:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Pelletier X-Patchwork-Id: 12623307 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 C4DB7C433FE for ; Tue, 16 Nov 2021 23:58:06 +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 988DA61BFE for ; Tue, 16 Nov 2021 23:58:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 988DA61BFE 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=XMWdR1kggry6/rGCjxpsDP7ZApPXHukAolH3hOYBo/4=; b=H3rE8aRTYtllnb QLRTqnxiz+n/5tm2pC9nz00dawaS3JxlPClHvpIRA3IFRuC9gpeb2RksPwK16DKASZpcYOj0w31Th 9hGnPul4G4rZ95aUy/H03RZSpomZkx+o1tl1mSY7Bpb8ZYwDT67Wdz6KNe0TjF6+w6hjFtPyEsIzL OF+amouB66oU5uxeqiivgiGxUai2jpKdoPRp0KOB3etAlx/xHBG9+JZZwCH0AP/d150DRz2ZTw86o YuaSsFYPn9XBQuNiNjefd4xxB0GOVmvIgTSKxez1CoyJjVStmJ6qYRZAvN8cEShLF2oU2XL4jmGJ0 7owIMYJqGgqOj8cLcN9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Ku-00303j-OS; Tue, 16 Nov 2021 23:58:00 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mn8Kk-002zxV-3Y for linux-riscv@lists.infradead.org; Tue, 16 Nov 2021 23:57:51 +0000 Received: by mail-pl1-x62f.google.com with SMTP id n8so586231plf.4 for ; Tue, 16 Nov 2021 15:57:49 -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=XUCrKyTLcq/1tv958Xe+OYnTiafzr/ke4k2ZCljxbxE=; b=nIpoNX2NFe0P9pQwXDCPeRm7vuJlB0nJcfZGCWg42MzZqovIesWtQ2HMg35EiIpmZD kaKzT90w3R1traHXPurRgUxZQ4FLu30B+9MxDP6ENK3DsZz9YqTT//JJy0ggQieIZo/n F2OZjlTfT1aLHOxFEsPNtsQYViAK/J+GIyGHPhM8XOoVmL58cApR8HpP1EJpma/OLOZA AIxoZ4vW42h6Rrj38Dl2ZgNonjWd7+d1InLkC+4ploUfnEr2gZYjQZq+/QNdr2Cgwipq pjX6mnFVphxCCiCjwU166lLUXMLXqMFDRCf94+OiB40ZxV8n3nOx0Qbd8Ek2AqaAcpSh 39AA== 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=XUCrKyTLcq/1tv958Xe+OYnTiafzr/ke4k2ZCljxbxE=; b=ZkpTTnorkf60qbrT4o6vxfq1kJa+pC7YpaNRsZ8zuNhhe1gueQ70F3057uyhadx4lr SKHRIcRUO7xYffPUNHrpfUg2dT1ZrrJw33byVj/3LdNsKEwXqKaZO84kgPLJDM8jfZ3l KW1q8cuV/80GKaDJsXZKJP/vIfWjmrY6yDy2e3ORZ95zJNXnSIh/8NW1HZ7FxlW5elbf dpo0tkMKFF6Eb2gn9fLbMqmmcTTAgxqlxCz96pnq+GqG+BTYZd/HgkNJ9ZcKnlhW4sDZ KAgqx7KNLFGonvOirbJwR2IgfMsxVZEIZJOwp1YdMlyIJ4cnvlqneALKPpxPDsdc4Beh nG7g== X-Gm-Message-State: AOAM5337o88lmmm52hpzrYt0ExlO8mU0PEkaERNhND3yuWjxYBSjBC++ 9dxEOHgUwvbZqyPvfooKr0k= X-Google-Smtp-Source: ABdhPJx7fvb5KT8Ue/UY6J2drUV3efeEbreHjWeTUERxIw+NKwH4x5GtwUctcnthxHO8ryXG9HbvKw== X-Received: by 2002:a17:90a:ec05:: with SMTP id l5mr3976311pjy.68.1637107069377; Tue, 16 Nov 2021 15:57:49 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id c17sm2327457pgw.83.2021.11.16.15.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 15:57:49 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id CB78990095A; 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 6/6] riscv: dts: sifive unmatched: Link the tmp451 with its power supply Date: Tue, 16 Nov 2021 23:57:42 +0000 Message-Id: <147b278488cb66e6024fa648deacc2601e1dcbd2.1637107062.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-20211116_155750_172211_3E9B4FB6 X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. 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 Fixes the following probe warning: lm90 0-004c: Looking up vcc-supply from device tree lm90 0-004c: Looking up vcc-supply property in node /soc/i2c@10030000/temperature-sensor@4c failed lm90 0-004c: supply vcc not found, using dummy regulator Signed-off-by: Vincent Pelletier --- Changes since v1: - Remove trailing "." on subject line. - Added a commit description. --- arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts index 1abad0eec02e..1a952dec74bb 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts @@ -59,6 +59,7 @@ regulator@1e { temperature-sensor@4c { compatible = "ti,tmp451"; reg = <0x4c>; + vcc-supply = <&vdd_bpro>; interrupt-parent = <&gpio>; interrupts = <6 IRQ_TYPE_LEVEL_LOW>; };