From patchwork Mon May 15 13:04:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 94124 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6904342vqo; Mon, 15 May 2023 06:05:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42FQq/rRhdgFX6o8fYv2/xd20wywUGaotySGkkaP2l+drjdckW8XJGdUOQcnqDj/M62zsZ X-Received: by 2002:a05:6a20:9144:b0:104:41a0:c51a with SMTP id x4-20020a056a20914400b0010441a0c51amr15226795pzc.38.1684155953348; Mon, 15 May 2023 06:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684155953; cv=none; d=google.com; s=arc-20160816; b=iK774TqiLHd5oeKEc/gdOogFsH3PLJuH9yW6cuQWe+ABqv1nncwvqT1TMsndvGsODS YtIOcuuNP6rJ1oTfBoWu2k0YWrFoKJPy4FIiRXpPrO7q99KxSu43NmwmvTtRkbfyJC/a il7yhYFwbgrV5rUQ/um8qXmqVd2tbEUIjVnh3hB0ULWR4dvgmA6uNPdteW37N6eQnogK 4Tlc8vlPatnXtqe1ljzcRAk1BjnX1cevrNLzECgT28H3kKdxtqLQiCMjJ3yciusGM5CW Qhg3nwfYaH0+6MHwFir4Pe5h6VxwQB05F6O+e83GmOCCQgvw+LVMylPaJ5hGH//mUtpH DyFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=froMVBkhiao5KfF7Z0DAyeGNQcRj1djapSOzel/BeiI=; b=QLXSNQBYbMLEX89nQ1pKwg8W87zPesANabfLOxioiNmKQjx0gdby6aj9kP55kRr29B cTud5qEDh57Hxwzc/MD3eJ2yGLbidWuMeouHOm3c2bSXP9PxA0DP2p7soTqnCsJurIIL s3PVKk3vc53xdJqT5oPEu/SBgswub8m7x5ZlYB3Oo9Tb4Sj6bVXTxrysSWWguVePx5Bj l5a97L47DsRj5AFJUctceE8q0/iOPQqAij3xXqnKDIb3MmmOhfSbzIRwp6j+agMF64VO HpdN83JBW9sw3je6WCbCkXcTL1RnKwWfShpCiGKHTFlqEooF0Uq/swjDGBgvRI6MceJl HpHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTgfb+pN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi16-20020a17090b1e5000b00252b824d13esi8845833pjb.30.2023.05.15.06.05.35; Mon, 15 May 2023 06:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTgfb+pN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242122AbjEONEg (ORCPT + 99 others); Mon, 15 May 2023 09:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242093AbjEONEb (ORCPT ); Mon, 15 May 2023 09:04:31 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E91B419BA for ; Mon, 15 May 2023 06:04:28 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f24ddf514eso10890282e87.0 for ; Mon, 15 May 2023 06:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155867; x=1686747867; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=froMVBkhiao5KfF7Z0DAyeGNQcRj1djapSOzel/BeiI=; b=UTgfb+pN1vt2XTPKYjGSrjBbDflYC9SLePW4nNvYfLJCzF6uZ8flJ2KKHpWKdnHi3J yN3xR5/r5I6DYLkJynIa0zTX10FTivNY0BkqtacNzD7/tZkZo5q13+kU+NHIQf6GxXNO r2nkdy7957B4LlEpd9J+vC/o2oZU0NH/5AS/jHvJl5nmJ3YcNfbp35VJNdXf4PMcPbt/ 5nsGYfnioYKEq246b8oCIKEoYV6HACcXbNkmsQYFY8T57mYYnqWuXLMv43LBdPBiGmDO eJ88ElaRiRtMb6wtIxngm+wpZNzh9thia3TI59MUhB2dmclof/I28vDHpHYoJXG4CXSL 0uqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155867; x=1686747867; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=froMVBkhiao5KfF7Z0DAyeGNQcRj1djapSOzel/BeiI=; b=gXG5gyGTw6TjzYv1bBgpi8ddK/lU7033SMKRubOs0v/2QcDyavEAlG6VuMEK9eX08X bW70Cvs9Ak7puEwE2TD4pAA6IVHLVkIpiG8t0TqNknqWsumHr0x8c6wZHTS/G0gtX15Q tZhjhwrEu9DLuLKfHeYBFAe0Ui7mwjni0JMigewFUPN59GDs1ArZ7dIJcKu1qSNOyKmD ikkNCgqs0afYBSjj8+T++ga94iwnwckvW7H4KQ8g5i5NYrlchGJlSF3OyyBsVdK57ow3 L2e7eWYGrCTNknlZH9d+L4xl3QsOgcwpopdvE+2y+fi9Ne/Bevih7tcAKpNHJPWTT9Gm 6Bsg== X-Gm-Message-State: AC+VfDygn/Mceskac676hKamyGLBFhBT3vdBhNFZ4C3dKwZcMYTxW8WH ZbZsUtk9wL217E0GKB5vqc51Gw== X-Received: by 2002:a05:6512:2181:b0:4e8:4a21:9c92 with SMTP id b1-20020a056512218100b004e84a219c92mr6447193lft.4.1684155867126; Mon, 15 May 2023 06:04:27 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:26 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:12 +0200 Subject: [PATCH 1/5] arm64: dts: qcom: qrb4210-rb2: Describe fixed regulators MIME-Version: 1.0 Message-Id: <20230515-topic-rb2-bits-v1-1-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684155864; l=3058; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=GScLO8rtCKVnaqomkuQBjV5ndf+TerTFxlAHtwKZGT8=; b=m+UhjhC7gCcc0/ESEOtUDg6b5jWWuamr9Tb+sNQJh99qnPLNYchXIFGZPeIXYRBYja0LEUJho 1dcF7U1ce5nDtpp8ka/lfEj+ibRfbf019F/5wF5fXaK4gq3AcYoHQeT X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765965512942566734?= X-GMAIL-MSGID: =?utf-8?q?1765965512942566734?= The board hosts a whole lot of fixed regulators. Describe them. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 77 +++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 7843495b0076..80c6b59c8ff6 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -19,11 +19,86 @@ chosen { stdout-path = "serial0:115200n8"; }; - vph_pwr: vph-pwr-regulator { + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { + compatible = "regulator-fixed"; + regulator-name = "VREG_HDMI_OUT_1P2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + vin-supply = <&vdc_1v2>; + regulator-always-on; + regulator-boot-on; + }; + + lt9611_3v3: regulator-lt9611-3v3 { + compatible = "regulator-fixed"; + regulator-name = "LT9611_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vdc_3v3>; + regulator-always-on; + regulator-boot-on; + }; + + /* Main barrel jack input */ + vdc_12v: regulator-vdc-12v { + compatible = "regulator-fixed"; + regulator-name = "DC_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-always-on; + regulator-boot-on; + }; + + /* 1.2V supply stepped down from the barrel jack input */ + vdc_1v2: regulator-vdc-1v2 { + compatible = "regulator-fixed"; + regulator-name = "VDC_1V2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + vin-supply = <&vdc_12v>; + regulator-always-on; + regulator-boot-on; + }; + + /* 3.3V supply stepped down from the barrel jack input */ + vdc_3v3: regulator-vdc-3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDC_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vdc_12v>; + regulator-always-on; + regulator-boot-on; + }; + + /* 5V supply stepped down from the barrel jack input */ + vdc_5v: regulator-vdc-5v { + compatible = "regulator-fixed"; + regulator-name = "VDC_5V"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + /* "Battery" voltage for the SoM, stepped down from the barrel jack input */ + vdc_vbat_som: regulator-vdc-vbat { + compatible = "regulator-fixed"; + regulator-name = "VBAT_SOM"; + regulator-min-microvolt = <4200000>; + regulator-max-microvolt = <4200000>; + regulator-always-on; + regulator-boot-on; + }; + + /* PMI632 charger out, supplied by VBAT */ + vph_pwr: regulator-vph-pwr { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; regulator-min-microvolt = <3700000>; regulator-max-microvolt = <3700000>; + vin-supply = <&vdc_vbat_som>; regulator-always-on; regulator-boot-on;