Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3241750rdb; Wed, 13 Sep 2023 06:34:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3Uy0INOyKeHkC9fwVkbTI+6VRb0ycFaZoRDkzv9TLwq4rLNOyT5PRoa1/YZqFmD+w0S0y X-Received: by 2002:a17:902:daca:b0:1b6:a37a:65b7 with SMTP id q10-20020a170902daca00b001b6a37a65b7mr7893013plx.23.1694612054795; Wed, 13 Sep 2023 06:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694612054; cv=none; d=google.com; s=arc-20160816; b=GGA79p4bxIwY/fFxdor2VlF9ukFMwDkK9X5vfX7zM40MfyZPfxV5G4KY2yw+tvHdr+ /btk8SJWKrNYY44cfTwViAb9cYYxzyujNXm6QvoWFqpGyQCEXfqEatOd4LvVS4gjgEiP 5FSEYTf0zaTfB9Z9htItDs4G6MY81aMTDo2aPS3GneNdrtFIIq+p8Ux2X6TksQu9rTQ2 j7DthTU/0jqxQWhaJIo2QXJcdVRflrpK/oFduU8nwgI5ngOrmSe6KgVd4S0XX6DiDMlh 5xJSJyLVZJ0OgV/2RilAoHfkitv8Wnv8CtsKZs5P/enzOdPAmZSsh80sCFbhL8fvY3Dc I2ww== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Fmv+Vq9O4hXwTu7w7+aDs70zSlTsq1mhjzn706AuHTQ=; fh=07bTE8bs/+7NuM8BwMhOsc9ajNYUYKWgUOFo00FKlFM=; b=isEfzfnQGPRuaOzyN1Bhm5cA0fJZM12hHJ9F+346h86DMlD98kFDosdzsz8/8jH5GL U7DocCPHfqMQXGL8t1Ve6jNY6f+3wirbzZA7cONb7nM6IyN1Inas/5MAtGlgASmFTyiR ZYawslYYLOGdtnqqCxpLNEUgHO5cwB0taPoaILpTkDwHIl2pfSNDKJYBs2lpkRfEmHS7 s9wTxcQh9sRjEhMflCGw+srFjgR6Hasi79BpIQKBbMhY9aNKBHG2bsoulDwA6FbYupiK wl2B7vbfSQAmmY3W5jFkiAMSN5Pf93ImULHMTHKV/pUnYFfsvIn6e6hf/bSvZeVD5VfZ eeSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QCIu2r1s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bc7-20020a170902930700b001c3bf27a480si4862405plb.155.2023.09.13.06.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 06:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QCIu2r1s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 1C6DA81B93DC; Wed, 13 Sep 2023 01:45:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239061AbjIMIpL (ORCPT + 99 others); Wed, 13 Sep 2023 04:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239043AbjIMIpK (ORCPT ); Wed, 13 Sep 2023 04:45:10 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 466301996 for ; Wed, 13 Sep 2023 01:45:06 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1bf57366ccdso5173285ad.1 for ; Wed, 13 Sep 2023 01:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1694594706; x=1695199506; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Fmv+Vq9O4hXwTu7w7+aDs70zSlTsq1mhjzn706AuHTQ=; b=QCIu2r1souu0AYvTviONV5pbNEMpx1sBK2Kjgx9HIvjr0TZpVty4NhPcJpYSQ8nf/y l46dEyQ/j4aoxsw0EIVFbYCVzKEgJt/emQEp2auZdL8jXUgE+7DIeIa2xO0LzJiub/rm hxnzQKv6khzyUhBof1TwqLCLMqfeqSspsAK/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694594706; x=1695199506; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fmv+Vq9O4hXwTu7w7+aDs70zSlTsq1mhjzn706AuHTQ=; b=kAVke6bFvu1fBf/Rr/2nQwvQBcGn+z8ww0FsHGnjs6+ucTphKBp+EnrgsBtAvZsJHz nH8aCxfM8D2kZEbbdh6nNKdvOyCBpoKh1eeRZ2rnwz0S3WCcl4CqbXzAodR6yRYhyZ+n X/qgQzHvaht8Cw3EpTgInlahjMVaIeG98JM+nXFS9bxCQxM+FoG+1N7XA/rKuA7tINz5 B1//B0BxCxx9FyxIfDL5mz+c/zRmV2HPPRPE1mfO8h/5e/ZbpciPHhkQPAixOHOKAFDP OM1CvhUzmJ+s1tBiPTM0TYPX9FFYsU5xJ8okuuRtLY2stLh0T62ou27BXnFau7mGNLYR kWlA== X-Gm-Message-State: AOJu0YxzxcFFxWMI5OrKSSRylDiSmpYQdz0d77KyuZhoifAOYfCtzbCs dwcXikSI0B6MtXhuCLFxvAZlnF9GVQpKolGPaec= X-Received: by 2002:a17:90b:1e10:b0:26f:6f2a:a11 with SMTP id pg16-20020a17090b1e1000b0026f6f2a0a11mr3049931pjb.12.1694594705782; Wed, 13 Sep 2023 01:45:05 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:b24c:3be4:d952:d3b1]) by smtp.gmail.com with ESMTPSA id p8-20020a17090a74c800b0027360359b70sm937099pjl.48.2023.09.13.01.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:45:05 -0700 (PDT) From: Chen-Yu Tsai To: Matthias Brugger Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno Subject: [PATCH v3] arm64: dts: mediatek: mt6358: Merge ldo_vcn33_* regulators Date: Wed, 13 Sep 2023 16:44:56 +0800 Message-ID: <20230913084457.1638690-1-wenst@chromium.org> X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:45:10 -0700 (PDT) The ldo_vcn33_bt and ldo_vcn33_wifi regulators are actually the same regulator, having the same voltage setting and output pin. There are simply two enable bits that are ORed together to enable the regulator. Having two regulators representing the same output pin is misleading from a design matching standpoint, and also error-prone in driver implementations. Now that the bindings have these two merged, merge them in the device tree as well. Neither vcn33 regulators are referenced in upstream device trees. As far as hardware designs go, none of the Chromebooks using MT8183 w/ MT6358 use this output. Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno --- This was part of the series "regulator: mt6358: Remove bogus regulators and improvements". Since the driver parts related to this patch have all been picked up, so I'm sending this separately. arch/arm64/boot/dts/mediatek/mt6358.dtsi | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6358.dtsi b/arch/arm64/boot/dts/mediatek/mt6358.dtsi index 96ba8490b629..ad5e4022e06d 100644 --- a/arch/arm64/boot/dts/mediatek/mt6358.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6358.dtsi @@ -292,15 +292,8 @@ mt6358_vrf18_reg: ldo_vrf18 { regulator-enable-ramp-delay = <120>; }; - mt6358_vcn33_bt_reg: ldo_vcn33_bt { - regulator-name = "vcn33_bt"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3500000>; - regulator-enable-ramp-delay = <270>; - }; - - mt6358_vcn33_wifi_reg: ldo_vcn33_wifi { - regulator-name = "vcn33_wifi"; + mt6358_vcn33_reg: ldo_vcn33 { + regulator-name = "vcn33"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3500000>; regulator-enable-ramp-delay = <270>; -- 2.42.0.283.g2d96d420d3-goog