From patchwork Tue Sep 19 10:43:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 141889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3380861vqi; Tue, 19 Sep 2023 06:21:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVh6jZTrHEXhtuuT/6lxr1ANSw0yBGrWRWfcRcgKfnJUiU04tK4PVPCfAEgrSCtWcPNEsr X-Received: by 2002:a17:90b:128a:b0:268:b66b:d9f6 with SMTP id fw10-20020a17090b128a00b00268b66bd9f6mr8537912pjb.18.1695129676188; Tue, 19 Sep 2023 06:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695129676; cv=none; d=google.com; s=arc-20160816; b=efOpL5nS94x1U1magDy3RKoPcZI7z1sYGOpgGlwqdUy2s4NoZI3zhVa/C50ulU3XF5 XWFJ1Y37z/JR+tU0mgZ9ZNCL2iMWvf6rhNIxGpFJPtFhJLebDZDwE6jtRDBvhq5zdTya nUC8UrAOJdoD4tMBboGnIa8+mgR9fdXQJUi4ZroJeSyUOWttIyPTOsgbGtYPm0P+gp60 dXj0uu84LZjR6ZeBGLDTnydv0iD7H8kIQw+/JAhyngWdi37HfPWGpZZQiuuAh1DSvTiJ eqOW3O8HGntFXzW0Lp3MWdxGV2YCywKBwoyjAHjntZAIjAdQNuDfa8lX6zSAmvpss3MS y0yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O1tYjsJDu+C5E5OW4y5pouEu7mxQQfBFwdkXqrO1cX8=; fh=V9OHkENDB80hqt4mznI/iuUuuKxIjmAW9KtwlmjCzec=; b=CjGSsgjC2vu6vTQOPFU9Hg5NDkKeSaXNtSSySysYvWNCQUzDbUby+OkVpfhpWSHR0B +8Y2cpQ+G1O+i3TAFSD+ZteJi+Ma/vKtxYXdDxUy3OLPVF59J5Jfb7rHuXl393MNnuyL ImDYJHS/elJNj1ljzEzwJTl/Jk4fVcQ/5soTeRYRpr6jyxQ62Av3emcW20NtNMfahYk6 mfq1AI7ctQIbnTiVcCL5lo/uhyfI4or1NZiGdVhIaWG9aV0/nF9zlNhgsqVhuoH5mmUY 3+NzgjHq3vJV6vppBDE8pGEZ8H+WOYi7eAQntWj+27rG3Ekm5lkgzu5KFuMknZb6nnYU uSsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bK4R9Mcx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id v14-20020a17090abb8e00b002766354b7b2si3554885pjr.153.2023.09.19.06.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 06:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bK4R9Mcx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 100EC80BEB2B; Tue, 19 Sep 2023 03:48:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232049AbjISKso (ORCPT + 26 others); Tue, 19 Sep 2023 06:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231908AbjISKsO (ORCPT ); Tue, 19 Sep 2023 06:48:14 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39095CE9 for ; Tue, 19 Sep 2023 03:47:56 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1bf5c314a57so39923665ad.1 for ; Tue, 19 Sep 2023 03:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695120475; x=1695725275; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O1tYjsJDu+C5E5OW4y5pouEu7mxQQfBFwdkXqrO1cX8=; b=bK4R9McxLmMeTD1ojNdkPrYJrn8DuWzXbffMB9CMzt7GisT6/YjP72764tRLRufV/e RmAKkZPNz/SA1dUPk6RGjXpGdtdWulooWLADmpHDw/PokDkpEKCMKUzZi24HmMRzPRd8 RrT6eS0aUY3Y44wWF+pZd23UyELTrHDlHApEc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695120475; x=1695725275; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O1tYjsJDu+C5E5OW4y5pouEu7mxQQfBFwdkXqrO1cX8=; b=rVMbKTtM8JC4S9hHUHe+1aX0DD+08NabJsoLsy8N22r2GzXZS2B994yLAxe/ZjEzcI OkUpLJN1DfzjamS1mhXKCpDHYZNBaKmuCkvqabIbgIjUy6xnHKsnjgrXMRcnTLPhT1Mb GNqO74d+at7aLW4ydkI0zmBibiD0hVNtWC8k7WFY0XJEKWrncK4hosm4aUyTURZK7fb5 uz1SVogjYo7t84AlK3agyuGudzmHutCkIK4v0PFpM5E3spCQFKyq0AcWaCqBHjZKsDDR L3TbnX6ElsTKeqn7WXDAz1xmzGuNiHJdUILSIlYC5TtUerklyURdVvjObn8ivqYcQJeW o0Ug== X-Gm-Message-State: AOJu0YyFDEsIuVrUYvCzSLuSQVs2fphaIauWTg6qD7I6Sk/QLkh3Z2zA zlDNoOq8kuPR0/PIiZX7ZdlHPg== X-Received: by 2002:a17:902:ecc5:b0:1bf:13a7:d3ef with SMTP id a5-20020a170902ecc500b001bf13a7d3efmr11054107plh.66.1695120475653; Tue, 19 Sep 2023 03:47:55 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:40a:900d:e731:5a43]) by smtp.gmail.com with ESMTPSA id c10-20020a170902d48a00b001bc445e249asm6719578plg.124.2023.09.19.03.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 03:47:55 -0700 (PDT) From: Chen-Yu Tsai To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Mark Brown Cc: Chen-Yu Tsai , Zhiyong Tao , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 12/12] arm64: dts: mediatek: mt8183-kukui: Add PMIC regulator supplies Date: Tue, 19 Sep 2023 18:43:55 +0800 Message-ID: <20230919104357.3971512-13-wenst@chromium.org> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog In-Reply-To: <20230919104357.3971512-1-wenst@chromium.org> References: <20230919104357.3971512-1-wenst@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:48:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777472295384746195 X-GMAIL-MSGID: 1777472295384746195 The PMIC regulator node is missing regulator supplies. Now that the binding supports them, add all the power rail supplies. Most of them are fed from a system-wide semi-regulated power rail. A couple LDOs are fed from the PMIC's own buck regulator outputs. Signed-off-by: Chen-Yu Tsai --- .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index 6ce16a265e05..d48c66cc8c18 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -103,6 +103,14 @@ pp3300_alw: regulator6 { regulator-max-microvolt = <3300000>; }; + /* system wide semi-regulated power rail from charger */ + reg_vsys: regulator-vsys { + compatible = "regulator-fixed"; + regulator-name = "vsys"; + regulator-always-on; + regulator-boot-on; + }; + reserved_memory: reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -404,6 +412,26 @@ &mt6358codec { Avdd-supply = <&mt6358_vaud28_reg>; }; +&mt6358regulator { + vsys-ldo1-supply = <®_vsys>; + vsys-ldo2-supply = <®_vsys>; + vsys-ldo3-supply = <®_vsys>; + vsys-vcore-supply = <®_vsys>; + vsys-vdram1-supply = <®_vsys>; + vsys-vgpu-supply = <®_vsys>; + vsys-vmodem-supply = <®_vsys>; + vsys-vpa-supply = <®_vsys>; + vsys-vproc11-supply = <®_vsys>; + vsys-vproc12-supply = <®_vsys>; + vsys-vs1-supply = <®_vsys>; + vsys-vs2-supply = <®_vsys>; + vs1-ldo1-supply = <&mt6358_vs1_reg>; + vs2-ldo1-supply = <&mt6358_vdram1_reg>; + vs2-ldo2-supply = <&mt6358_vs2_reg>; + vs2-ldo3-supply = <&mt6358_vs2_reg>; + vs2-ldo4-supply = <&mt6358_vs2_reg>; +}; + &mt6358_vgpu_reg { regulator-min-microvolt = <625000>; regulator-max-microvolt = <900000>;