From patchwork Fri Nov 19 22:55: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: 12629683 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A3D08C4332F for ; Fri, 19 Nov 2021 22:56:12 +0000 (UTC) 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=Fdg5qaBCq5Ii1lxKv8PlfA1zIyK8yK6MEJY8Jve/Fgg=; b=fTjWOBWks5iDmB AsLOVWadF4PJI/OJ3cVfMB7N6GJsIMb8W1A79wEHJ0kAEVft759OEfBAwUYqmJ/emBoZOwRYCL9jA R54RB4iVw3VYgyvBn+KvjbuwTYyNmjXQmkQyUvxQZl5WKTd3wdJyyUVYFpyc/Fc5rXCS/vA/8VhM/ mSs1p31NC8Q+wr5o6+tGHrXNc0Zp7E8sl0Xcg/c2SJ4MmakNn82ClYDy4KhoKA9UJ/W3x5YNldQVv R+I/jfbS1NoXEJ3Hkh/Gg4AEadUhRyLH/UIRPQESNxuulyITXRG2X46x4GFXa2rul1CpVUYhcJ/3v Apc5Ic6F68Y9nypu82uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnd-00BkLC-DX; Fri, 19 Nov 2021 22:56:05 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnW-00BkGI-RE for linux-riscv@lists.infradead.org; Fri, 19 Nov 2021 22:56:01 +0000 Received: by mail-pj1-x102b.google.com with SMTP id cq22-20020a17090af99600b001a9550a17a5so12042715pjb.2 for ; Fri, 19 Nov 2021 14:55:57 -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=jZmwgkqEaqsNB6eacHx7jGF/Uov9dTZSX+ljfrl1HKM=; b=V/IOvaCPhLruyYv/u2Pwu2NAOOo24zKaeNHGVUHXALOkFK9Pwu8No8GbinVvdCrgTP ug4Vi0nd4UzDVYnYLpI4WJmWOrNw/nkJrXv1T82n5t3XfkPIP2jTpRAXSZjDliM+5Bbc QuOYAJ5EVj+AOyTmdF18djuKSKaC3+NTMOq+2WFMXWZd+Ej4bSlyuobr5YZtKY1Sojcp nE7sjHSQ362M9iksil66vUXNXsosL2nd53i4/KQfJD6MEcWdQYjUlrnt1xFCfl91dRfA /lkRUxljcAmAr9f2sKAuShrXFsKGgglbIrG7lSPdhgx1cgWbEf6huX/7mDzt7FN0ontm TuAA== 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=jZmwgkqEaqsNB6eacHx7jGF/Uov9dTZSX+ljfrl1HKM=; b=ALUKI3FwX0qvdWAHjvjF6neE93AHuybko3/u8inobQm54zIdhAPbEu4Yh4iYCUePY1 O9UXpx77rYuLJnCJ84uupcZfijFlUUM4rCB0B6TbwIXdx+8C0uo/Bc02lfrNp3Gyms1c fWLtpNWHZ0F0Jr5NoO7x/Gdsd1jtG3uxsMspgEV3MpwIzZO4sGBcF9OXhrHg2uHKUDba 4VB4BPoyj5hVXYQGz3nX8yKmkRso9PjCG01hssjgLhsOqzsLbANWSnZw5fbgRQQ26D3y lPGG1b7yrstnmWIZyqzX2WVX/JL4JP5GP1Ay7BtcLpJw7EYBCzTRREgGi0TbkXQ3SxsS v1sg== X-Gm-Message-State: AOAM533P4xqQUBTDjBkh5etIYyrqeg6IKb8F9K1WkaiNpLKUjDWKeVes +2LuV47keKv1CAcmTYMwAHU= X-Google-Smtp-Source: ABdhPJz95l/urJMhGxpdaJPNfeHFnuLnqGtNyiFrtqE2iDlD9RvfTthWn9SEdWafPaD5FVqbnhABhg== X-Received: by 2002:a17:90a:7004:: with SMTP id f4mr4103477pjk.156.1637362557584; Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from localhost.lan (p4857108-ipngn27301marunouchi.tokyo.ocn.ne.jp. [114.164.215.108]) by smtp.gmail.com with ESMTPSA id f21sm658610pfc.191.2021.11.19.14.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 1B297900921; Fri, 19 Nov 2021 22:55:55 +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 v3 1/6] riscv: dts: sifive unmatched: Name gpio lines Date: Fri, 19 Nov 2021 22:55:37 +0000 Message-Id: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> 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-20211119_145558_914220_28B235ED X-CRM114-Status: UNSURE ( 9.66 ) 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 v2: - Fix end-of-commit-message separator so change lists do not end up in them. 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 Fri Nov 19 22:55: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: 12629681 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E0377C433FE for ; Fri, 19 Nov 2021 22:56:11 +0000 (UTC) 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=RTV4HrssScXzezWN+7XhLk65yoeqmASM2NgNci+pf8g=; b=Ho8rf+pl/skEcY dSn0OSlNWwIwtuWfYGrif+DrQvjqsTdISkF2BdqxhHcVoFqCv4FTMxapLbRyFKM76UNruYfxkp4hn sKGb3RpQF2ppc53qZG5obLubrFQcvMivVgp+QnDehMF3EopILp1DtKdU1NjmlciAoTrwZzszJwyxK y7pj8PkaEAYGCE2sBItgVs8EEeaXPvEn7adFPQb5ywdncbZQwY5z3hEKw//vqq3rXjhqMN79CfyXD rGk+mw6/BABOPkM6OFvMO2XmejK0IYEYtc+9Zed7q7yu8I/UOO8fRU3WVbRhwtGYvW4EHznxHKink LKF43UTDH0dKBlXcnkdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnZ-00BkIi-Hm; Fri, 19 Nov 2021 22:56:01 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnW-00BkGC-LR for linux-riscv@lists.infradead.org; Fri, 19 Nov 2021 22:56:00 +0000 Received: by mail-pf1-x42d.google.com with SMTP id n85so10520935pfd.10 for ; Fri, 19 Nov 2021 14:55:57 -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=1TdlIUtILM24Fc2UXh8s4SrJCWxmjGMPvwtQIlJ5JvA=; b=k2ZKvdwo7VNV+6taHj2fBaQjreLV5crFPY+WVis2Pge4ac9Mzc5G3ZwcQ2XI/toKiz xam+oXmu1ckuI1WGKNF52sYPFOef+cFtDEKM64+A07/pj7L0kVuLGq0fxswUolb3I+uQ 63K2txyOMIhP4wl0SSck86zX9pkqMArenANzIYG2NlHiORlmes/+5wFuI7i023zMWRfb ysvBVueVKaeO/PAwCIX79vc0EvIhEvRVrKP4kX4oMm8J6Sxx8pIWqpxZV/zZsHCdW2IN btGSnFt2tNg3lWvXuzUMoFkk1BG5YuwYXyvW0eKWf/lKAjlgq1f1yyD/C/01PmBK/Ub3 33ww== 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=1TdlIUtILM24Fc2UXh8s4SrJCWxmjGMPvwtQIlJ5JvA=; b=Ai6UK8lMXbx2KVR7IBNQjGU0N9q4iAihP/RqksoCJt3dMElc3ZZtYyjBVVLIcayCV+ GH4/uVPiDfWWMmSpG6KM7w0AnCw7Fu8ylrxD5A15mfKxtEWcHf/3LzhNpksW7aRYI+vE QQIhccmTw/yAmDLCwN4nHhr0ZcPrgLAlNyQgGVx+c5MJb1txCT3mPcU6LdhRkc0MdL3E iEKyUlCGD6KE3ECogTdmpdsGIzsKkzYkdWRhP3P1WAfNGBQmr1o7Hhfia3aFoucPw17V Y4td3ORv0zQQtroBF9fdhERCSbgw2r1LkiPkwpQ2SidTk4rGOAhAPCOFREn5SHKzP9Su kxWg== X-Gm-Message-State: AOAM530QXxUkliNhPSyKu6UN4MxEuhHS81A+D7weBRE8glDhH3PNtEFM tUzPsIXkRXOV4mhvGn8NHfCxxGjJD4Q7uteC X-Google-Smtp-Source: ABdhPJzxs/PXuLiHQU2pcYAU1NtTrlRYL9Jvb4fvqk3t4JTK6e+qbvibiIGhHAjqqEhI2g7tePcFdg== X-Received: by 2002:a63:844a:: with SMTP id k71mr9951068pgd.101.1637362557132; Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id x18sm618413pfh.210.2021.11.19.14.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 14:55:56 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 2AAD7900956; Fri, 19 Nov 2021 22:55:55 +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 v3 2/6] riscv: dts: sifive unmatched: Expose the board ID eeprom Date: Fri, 19 Nov 2021 22:55:38 +0000 Message-Id: <589539cd08e35c35b269a769caeac40b85ffd01c.1637362542.git.plr.vincent@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> References: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_145558_740609_6386C1BF X-CRM114-Status: GOOD ( 11.09 ) 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 Reviewed-by: Krzysztof Kozlowski --- Changes since v2: - Fix end-of-commit-message separator so change lists do not end up in them. 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 Fri Nov 19 22:55: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: 12629689 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 16E7BC4332F for ; Fri, 19 Nov 2021 22:56:16 +0000 (UTC) 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=eev1lEMrVnHIrOBD5Uq7HM/IAPaDcaJb71Xd8j5WrXI=; b=uWCJ7GM52brGq9 Z0e+Mpnlfe0UDCsedlbBNe/fhbTF5sG7pGwdxNoarvs/i0/pwG6y9IqmfXRTSafsqhNGa+Yxu5vgY dnE0u/rQgU0wOcrhH4r2cuBykynuBgwwzHU0Ps2GwGweoPUAfA0R9cVvMWg5hIkOoA6pFxQEgELqr gkRNi5amDqoLKw/kkVb4uYdKo75Fac8a/TxpDgp4Ny/lJDNRVk135/sGBN6M3tkhgFZbKbKIQxsW0 HoPWf0KoCuDchqYhkTRmSOEubn+SDW7LZHQa1kHMG7NNeVhfK1dJOotu90tsLkYS+jcVb+UR36E/9 cQRXWfbX05AGKs0GNB/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnh-00BkNn-Qy; Fri, 19 Nov 2021 22:56:09 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnW-00BkGF-TC for linux-riscv@lists.infradead.org; Fri, 19 Nov 2021 22:56:01 +0000 Received: by mail-pj1-x102e.google.com with SMTP id nh10-20020a17090b364a00b001a69adad5ebso9999023pjb.2 for ; Fri, 19 Nov 2021 14:55:57 -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=3C4LuMh2VIE+wfKLtAY46glakCgCNvxeiTkI8GKqos4=; b=R+ZIw1XKRLZ9ySesQABrbTWa4gMlZwrFq+FIouSxHvqdXBsAwtrFP+20qRmNwSFRvc DASSwnuV+c32ig0DWg0QuxGajbinT4SwAe6f8klUqA4v4AURwQHOi40D1/L+8HVnMUrH 0FVznStLfU4IUALgW01U346ZlgwER3uex4ce43vmToFZBFIr9qE4L2+QNwShn/lcCPf/ R10lNKpqsqe5QPjR8fdIgq+5KDcEVR6c9GSbBX0CP30YVyBpuJjdXf2LN2ruIhLO+UzE ZjtUCWmEU3SDnJs0YztmLQd868/zlWs0x82wvtShX9ZP4x8ZqmIdtyuRdkCc8PTtGmny lljg== 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=3C4LuMh2VIE+wfKLtAY46glakCgCNvxeiTkI8GKqos4=; b=YbcX4WrEAg4n9PWr9kabkIKEct/WHti+7259H3aYRWCiiNKnuqjzJk/qkbGkEXOU5t ADpt4ceYbK7B4SIJV9uGQYWgJTv0F2FRqLUSjwoTUUH1mSU/M7ffz2GKiBvqkiygR6Uc 3D3qhwN0lxChpy7LcG5PB4B9YEY2o/JKtO8xoPgHVbt24YHxWQgSxLXbiEu2AmiT50/c dMxMBm8EJBnKUypGKJUEw5hjKD19XNelkbS+CfJC4p4QyFng4Ywwk2zy52YLPww40t+Z 1c0RhfUJLo2ErBKxsaQ5PXgUvP/F+HnTEOO6/4EgIfvsfpDdSY8COqmnqa1QqPYRw2mK tnJA== X-Gm-Message-State: AOAM530lqEOmrQ3Psfkdcwph4uS+9d1YWtYbGNuoy1+PO6RfwktldJdo 6W8odnvVVszJVW5jEOCRAxU= X-Google-Smtp-Source: ABdhPJwY8Ho1qj5lw0Ln31TtjBdyghc07ysy3t1VPuYmJWU2d5GkuGWEIMcZg5LZFL6DFOjcVGO/Dg== X-Received: by 2002:a17:903:1247:b0:143:b9b9:52a2 with SMTP id u7-20020a170903124700b00143b9b952a2mr65752312plh.35.1637362557406; Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from localhost.lan (p4857108-ipngn27301marunouchi.tokyo.ocn.ne.jp. [114.164.215.108]) by smtp.gmail.com with ESMTPSA id me7sm13446042pjb.9.2021.11.19.14.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 14:55:56 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 38B68900957; Fri, 19 Nov 2021 22:55:55 +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 v3 3/6] riscv: dts: sifive unmatched: Expose the PMIC sub-functions Date: Fri, 19 Nov 2021 22:55:39 +0000 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> References: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_145558_990656_1C2FE57C X-CRM114-Status: GOOD ( 10.45 ) 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 v2: - Fix end-of-commit-message separator so change lists do not end up in them. 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 Fri Nov 19 22:55: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: 12629685 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C3561C433EF for ; Fri, 19 Nov 2021 22:56:14 +0000 (UTC) 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=Rds+tZRyB09P4idaUM8VwVTRLBtDE+V7ASdxtIvVV0g=; b=iHOgpQtr2CYBF0 T3Yb8ud8Y0Mo6Gdjh1S3KS/wg7IpaN9GDsDVruKsi8NHW4pn7mPruqyrEARhJQFBFdTS3euk9gAZt 2Ym8dYFuy4WMRaZiMjC0D1KLI8hp8S7fsPX5fN8TbCXzMEi4SRYRF1VLnjrle1XmahbljifuWnHoo 3f9Wid4+bh7Ana8PQEq9YKyvc9r3zDn2tN4g/z/Cbb+dIqTKPnitQWGa7nZcvIV66u71/sg600HTP jmTnmnckUuVWnzba0BONO/gR0v8cLWPrSp83nVgBFu4wv12ybWoA4aT8Jt43LWGFp60riJUguJ6jP jQxT+N15ljJeqbFe3jeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnb-00BkJv-Gl; Fri, 19 Nov 2021 22:56:03 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnW-00BkGE-Ou for linux-riscv@lists.infradead.org; Fri, 19 Nov 2021 22:56:00 +0000 Received: by mail-pj1-x102b.google.com with SMTP id v23so8977533pjr.5 for ; Fri, 19 Nov 2021 14:55:57 -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=TkFeT+O19YuAYlRK1DqrnGfsfAPgPV+33DhTteERFEk=; b=WU+a+R1sdUftGW3C0KIpSbX+5CC1CLh1q1bk0t2wOMXqvl80qxz3NjTh77F92U/7qp nNJA7m6rkVgkhI+HrJ1FwGYUBuYt6TVk0w6S/E6y0qMxsMXjAChgjDz7e2McUQzaokbt HfLC8GLVMj5vtrUUwgfZrzI0DL1rRMK2Fk3vFsEjPp3dJyRbZt4aWZ+22yYYe8VQhcLF 2lWfv7rWzC+SFua/2UxDgNSiL8Adr3RYFKUWAeG/AV83xnh1S3LYTdKJP5JxcRa8FiXE zOg4hPJ6OmOvX0lKK9xYBX5CtwPT0Ted3q7wuXWTaZJnLeXCtp8E03UMuSJrIkEQ/6oS p+fg== 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=TkFeT+O19YuAYlRK1DqrnGfsfAPgPV+33DhTteERFEk=; b=kA5LCkH18lUh41PQa4lhn9xtpSa6o5GyWV3jR0uIsJZ7NvLhLBnH5wdZsIfodUqs13 /tNkn4Owz5mP7ApJExw5/0T7p3FEMKZP6U2HLfdptNlLmV/3KxY8vXI5eLVMwy9LhPvC p/6d8HmqGuaMFof7BNbdC0IJUWyoK+wbFZFHJo2ksu33zgVzsyyCfb6OX4PLcghavm6q 30kDn8qTrRp92M0/eLxPGBwAXkX5Kp9iJ51A95u8zRgQxr/e4bnhuuEkCoQleJ+XwcJo UtRk9+dsWZcw1D8tCXH4/t+ztfsUTfTFEEk09QKBc2BFxehSZBZkiCG5R6amVwMbjfdA uOGw== X-Gm-Message-State: AOAM532T5G/A7tRy7mlfsp/XmaRpioULVRafrP3LHsLmFSI4Yk26cSCW vU+lMLs9rSdP42qsTgWlewY= X-Google-Smtp-Source: ABdhPJzURh5oEO0gZPxIAmtArMB21liFitqJULRyvCxT+uRMVG0Fbk/v7IAO3jHI/LzAwlJBiRkOBg== X-Received: by 2002:a17:903:22c6:b0:141:fac1:b722 with SMTP id y6-20020a17090322c600b00141fac1b722mr83226064plg.23.1637362557268; Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id s14sm629192pfk.73.2021.11.19.14.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 14:55:56 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 3B8CB900958; Fri, 19 Nov 2021 22:55:55 +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 v3 4/6] riscv: dts: sifive unmatched: Expose the FU740 core supply regulator Date: Fri, 19 Nov 2021 22:55:40 +0000 Message-Id: <5ab111e71e88d545d7f03233f10b6d84ef3d6c21.1637362542.git.plr.vincent@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> References: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_145558_848408_937409F6 X-CRM114-Status: GOOD ( 11.03 ) 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 Reviewed-by: Krzysztof Kozlowski --- 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 v2: - Fix end-of-commit-message separator so change lists do not end up in them. 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 Fri Nov 19 22:55: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: 12629691 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 53427C433EF for ; Fri, 19 Nov 2021 22:56:19 +0000 (UTC) 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=vDC4sodXJtj1MpmjbGLi+hImkQEqgi1jpqj/16k/U54=; b=bcazO6wtFW60vr zfqoCr1K1vK8sNjVKCOFfsGjzwt8TvOWk/mlGpXvEcI9am4DbQVWsyWJq8KXnpDmGr0b1dS2lLUtf ZCU1LrUblrl7GVOzSV+qB+1gouUgvF6IUw8zIv3Xtz5UeuDhmdkKue4hw0xFEBZMIGV4UjqI0s27O NvzPHADni9u5hsfYprajePWigy3t/rzZjMm3oWdknIOehj60SHk4eSjgFo0xrrz9Be2PVNWGMyOp+ 7swECDE8fqJynkEf1ToJzkEllgHgWPnm5FbJDI/Gv83kLtB41xlJeRAv9xnyYVzn+4FFjdvfKb98d JXyqDp3GgXf+idh0kkJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnk-00BkPN-2s; Fri, 19 Nov 2021 22:56:12 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnW-00BkGN-Po for linux-riscv@lists.infradead.org; Fri, 19 Nov 2021 22:56:01 +0000 Received: by mail-pj1-x1031.google.com with SMTP id np6-20020a17090b4c4600b001a90b011e06so9959577pjb.5 for ; Fri, 19 Nov 2021 14:55:58 -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=go7zSbrsyOXEBuyqNxrQ/6jUwWHjYoKG+LWKw1i+E6U=; b=HvySC0K0umDm1DXDhvxM0rFxkVZQ3r6tKjYqA4AODO+c/I+dNu/ylBZ6HhsfUQ8skI 6l+8+9Dbun5XLdwj3hllMbiHGv27VixY8RArOWhg9s9hR668K3J7MOwb0xxFHGvaVuEC saWIgChXSoFBSIT7pKfZQr5wuxwsgwrd2JE6SVsEYAcIiY3QkKimO3Vq8/gj3+RA4aje iBb3uXUBtzN0sMOFSPojLFinT0BxZfLZnpq5o7PpJlQksbQ5nt+G7VLdmffGkYPaHZh/ r71f8v786+EBD1JfUD4BzoWwooi43CgJZqvdffINn9wonbjrYDgpZ4QR7nFsOiDlYTpP 7Ylw== 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=go7zSbrsyOXEBuyqNxrQ/6jUwWHjYoKG+LWKw1i+E6U=; b=p6vRDxnSg4zpajwgvAjl57osvsAWmzgqwIPXcKem5zYTVizrGQ+C0S25Ts37KTmPPq 3r/6PLpVktwa9X9OKYxRfc9eWDmOUlqpADk1ocVifo/BPighSCUELdD21JMeywAejKXs ic9/WnnH5WEtF0yimaDGSN5P3Y+0LkbRg08tlgXOyiWi4aWYxEgJcMefb+Duuzm2sYMP QiUhk4Fa53NUPJtbR0ukHabbk/IERI4NeaRN+p/6mtWRfoSBcEia3fMjLHT4EHH7NCfc TbmX/04zfxeI0YE2oCcUUNXAJpm0/+5jZCkQK6OtRuOFTJb/MAbsj03QQXa55fuwapO5 IISA== X-Gm-Message-State: AOAM531GLMrVSLymw/vgaYrdmaP7uPSiHBmJ5txI22+LkFnqzb8iiMV6 QCOm+v9Hu2yYTpYYO1y2WEE= X-Google-Smtp-Source: ABdhPJzfOFU+bbHnZYLAdodVh2WkXT0FYb8ZQD/CVcLrJQd+C6mRVwmI8oPDelKD809eFdbkLowMjQ== X-Received: by 2002:a17:90b:1c87:: with SMTP id oo7mr4046103pjb.159.1637362557779; Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from localhost.lan (p4857108-ipngn27301marunouchi.tokyo.ocn.ne.jp. [114.164.215.108]) by smtp.gmail.com with ESMTPSA id ep15sm8713349pjb.3.2021.11.19.14.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 14:55:57 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 488B8900959; Fri, 19 Nov 2021 22:55:55 +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 v3 5/6] riscv: dts: sifive unmatched: Fix regulator for board rev3 Date: Fri, 19 Nov 2021 22:55:41 +0000 Message-Id: <537742e7af4a21baf79429469ba7c30947ddca7a.1637362542.git.plr.vincent@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> References: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_145558_897259_95125DAA X-CRM114-Status: GOOD ( 11.54 ) 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 v2: - Fix end-of-commit-message separator so change lists do not end up in them. 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 Fri Nov 19 22:55: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: 12629687 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 8CF3AC433F5 for ; Fri, 19 Nov 2021 22:56:15 +0000 (UTC) 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=PhqJbDNnXVH2IxqsM2oPc2RXRbczkw/bNK2GzpagV8w=; b=m4sJXVHB3YZSM+ 5JPXD+/HTrSLafJawhY9PNp67nVJvjwbhz+ct/L65VGEMbTaWEZlaykk3ZeMZs58MZVeGMeBdxigS AlSeS2mTWBDB5U9l/7VCv18br5sW33Yf+Ptxz/Gj8dDnUjv6dw1lVg90+j/XN0HgJ5Im7SPXqy2/U R42+4TYabTq3uiApYNnSB7BeDaBRNZZATr9lFdPqL0+6avtrndtUT5nHd38PSwL7Sbrgp2zMOyw1e ufegI3LHMems/p8ibnmIF0+t3eWP8fU//7PsnJy6UBd//VAgoQUn0U3g+cr+ZGu6hyajqyn81AW5F 4IGTsnhKWwHiqY/QO70Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnf-00BkML-L5; Fri, 19 Nov 2021 22:56:07 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1moCnY-00BkHh-BW for linux-riscv@lists.infradead.org; Fri, 19 Nov 2021 22:56:01 +0000 Received: by mail-pl1-x636.google.com with SMTP id b13so9259083plg.2 for ; Fri, 19 Nov 2021 14:55:59 -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=3BXgwHgh3BDP05DRd5pJFiIUkk6+CLM31HGyYQMwJeY=; b=Frx4VYaifZTS407fnv9NG7briSWAEXoIsCXA9ENvCEqMaX0ZTMhazuAkaxifJxxgVx vm7xLygR5mqdhHbiGVD8wViQpplby8ewlZI135LLHGmw2RNBt5+WsUXEFfIaoqA9aScT e/NweSQjKMky1du7UAowfrUd6p6KuqddMwTkLWgEpgK1RdDowsI8tIp1fh99Zs92iWnP 2VhTd9PMH6VVAtEZca2CH2hF/HSwSngnIjSaf3iWTjmlMpVrvEvwAu6jE/2L+f629FQ2 ldfcL74m+rPEqnUU/BLsNZUGNPyIYyVFL0lkDAchfYK6vFlSB2Ib7q3aZl/lJB6nwYF2 /jJw== 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=3BXgwHgh3BDP05DRd5pJFiIUkk6+CLM31HGyYQMwJeY=; b=qhTs50p5duDjKZjlmAU7XGrRC3tR2+8/S1vfreIbdPgAukcpP7JHBxOumMIUUfBeXA dJW0ORt8pD0t/3caHhGAPfpbNSH4Ls4+PYl+VgJ79Vngi+hNmoBdd+7e5rnHVSYyBTlA LdwmZHx2ncdT6bXvrqx14Sx6W/+K96DrbQ/Wv14a0ppvyyVmII5YRdU4b7XYKn0BKShu rskliiOdUnpxuIVotGEpzDb7rquJMfYVBb3lJG16vKwvRGg+xTdf5mPnI4rMbIMuXP2R ktyI4zflcb5rsGfJ6Cta2T7GUXCbiVYT0wJXZtBRZweBjVgRDssZDW9C1b7fQZNbGeAu 5vPA== X-Gm-Message-State: AOAM5305YF/lv/RxrWc29FIkuYPQTmZvULCncXbo/vw4T+VEMVYpRzr9 aZwj+HYjZ0AKTamiVDqe4dg= X-Google-Smtp-Source: ABdhPJw+3CUVUTeqDwOdVHAf6zdS5P4LubnNUoQnigVZtPY3y0YVcdgQXTlfSEZnf6ypStU1028gWw== X-Received: by 2002:a17:902:c202:b0:142:2441:aa25 with SMTP id 2-20020a170902c20200b001422441aa25mr81386651pll.68.1637362559338; Fri, 19 Nov 2021 14:55:59 -0800 (PST) Received: from localhost.lan ([2400:4070:175b:7500::7a7]) by smtp.gmail.com with ESMTPSA id s16sm672553pfu.109.2021.11.19.14.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 14:55:59 -0800 (PST) Received: from x2.lan (localhost [127.0.0.1]) by localhost.lan (Postfix) with ESMTPSA id 4C93290095A; Fri, 19 Nov 2021 22:55:55 +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 v3 6/6] riscv: dts: sifive unmatched: Link the tmp451 with its power supply Date: Fri, 19 Nov 2021 22:55:42 +0000 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> References: <378c64fb868b595430b0068a9af10fdbeceb8e12.1637362542.git.plr.vincent@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_145600_434946_7FA710FC X-CRM114-Status: GOOD ( 10.08 ) 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 Reviewed-by: Krzysztof Kozlowski --- Changes since v2: - Fix end-of-commit-message separator so change lists do not end up in them. 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>; };