Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp54695lqb; Tue, 16 Apr 2024 08:39:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYJlM+/n0oVB9gaFZr/DhZ8TPLJP28jdBC/qtmSUORXq4ryFpv+LD5WaZEN+d5weG9iXT9ubNwDw6+X6QvgQi64/X4kpchpi4HN1q0LA== X-Google-Smtp-Source: AGHT+IHkjDpQjje9aOeVmkYhSN0hrXkOKjQi2oZXOQWrkBioNbz+Va+lnB7cMu9CasfeRGFChY6V X-Received: by 2002:a05:6808:1821:b0:3c7:2030:9820 with SMTP id bh33-20020a056808182100b003c720309820mr3933762oib.33.1713281941446; Tue, 16 Apr 2024 08:39:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713281941; cv=pass; d=google.com; s=arc-20160816; b=0JkYjF02DZfisexOfW4TLiQ/nk3CKZRR+VZNEKXA7fRn8J+VXhHFJsHQJUcC5Nr17e L+SQMHpiku0wb9d23hUXW+n2WGghuCELRYXwQkpfsvmeB9YjhQoyQk5g3loVuE/pAPC7 rzQ6OCCV8jgWHTV1pmyFSsDXZ7Xv9bkOcUC+1Dp5k6d+YuXsr/0TGn4OYfdh98DEo+nz xtndtWzURhuU/WkpC96Gi528Zzsf3JneWXNZZ32yEWrHJOtVH1VNjJJX/p1DeuHtfP9K DkT+sRhVKS+OTtPKbrz7VoE/tRICiOf2y5TW1AQYBYh8AP99I2m29wqDiIbsPiFwh4gl jsjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HPOK9CxMhc/He2oNalCUHBD1tH2pPDYpqEcGOFiCv2k=; fh=6vVbg1oy9ZYq1MXwOGMMFhribCwVPwV59XseO9BPFU8=; b=RZbm0l+2GThFGJhxo1NhBNT7EYR98TbDpi8Em31Fz67pzVbVg8h3QQzXYZNGf5XwzK CMqDgKGlgesrZwoELT4KHupDujeUj1JSKTol17c4gHYcwtXLatnEfCgnTJrMxFa6C6jY v0AAkPMX9z45OpYtYJ26nBqedFLOyMqQRY7aTYVjAhig0UF25zD8eoYEhrWIf7a6w4AO mfwjIGm2vAoggSXAZQWI/Dxrb7jUCNslSqDJg61AkIN/dMhhddnOG8YRf1dvF/cznI0B Fywgoe9Ora903TPpXdiIX9T+PuyVO6gjc1e5MpXD4NKXPpy9ih2gtIfPTZdjao1rLr44 bOCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=b0BtlntJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-147136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a8-20020a05622a064800b004366ea7c506si12541493qtb.29.2024.04.16.08.39.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 08:39:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=b0BtlntJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-147136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 070E41C20BC3 for ; Tue, 16 Apr 2024 15:39:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C66539FCE; Tue, 16 Apr 2024 15:38:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="b0BtlntJ" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36BE4131746; Tue, 16 Apr 2024 15:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713281895; cv=none; b=i+5s9GOxFCLmKVHQfp/d355mQ0XvVt4SDZjxfRLc895sHcIAYRpaF/fJfmNVt8Ca04LC0zHToBHps0i3BzaSU2u64NDIFUkjEjKGiDO+no0UutOa1Ml5GUocReC5rW4utNqMZVR2Dx71OkgxSk5facQxGqY8t8a0EBkDX6I0jA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713281895; c=relaxed/simple; bh=eUguFybIDGAPoGMi8HJFCUVTUbSzbIBgnMV+xhfg7N0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bfnhk5GQLi/MNWAAXjSHMoTi3xTMnU5OMo08fdy2wZ3dFqR5LQMraiok5NCIVqtlCwbOYZQo034ip9o3R0ghf5DYlh77vJ/fNWoy0wHNENwP4BR1lf244xkfjBALSgQxLs5+yJYp8c7sCOalfIlNvfF9x/4pKxC6DlB+zB3whnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=b0BtlntJ; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713281892; bh=eUguFybIDGAPoGMi8HJFCUVTUbSzbIBgnMV+xhfg7N0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b0BtlntJJCGCfWAoj1S+JwRKqLPdBd+/UyjncG7Jn36YY+/C8Uz2UuhNT/H6qUf2A sD1PjnT2HcPu/j0mVDvHaVrwtUupe7QC4AOfq4Cuj1/yMXn31GpTcSTLTevEyaDyku mugiHqO/r0Vrpv+GHE5Vj/PLh48GqK8+oVvcK9lfh6TL2nZvtVlmL1CW41YOHzCTaW h75BnE2elw7S+JyV3GwU0XyuSgoZKUcDByh3IsNCeDk5D1l1HdVnXGJPsJ2NAafqBW YDFI+1JbpfOd3IlDRKDh/dV9muO6wueu2rQHAgeYOHUNAzftbyvaVRNhdGlSo1gKSD yXisg+qvuRdfg== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 825D03782142; Tue, 16 Apr 2024 15:38:11 +0000 (UTC) From: AngeloGioacchino Del Regno To: djakov@kernel.org Cc: robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lgirdwood@gmail.com, broonie@kernel.org, keescook@chromium.org, gustavoars@kernel.org, henryc.chen@mediatek.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, wenst@chromium.org, amergnat@baylibre.com Subject: [PATCH v1 3/6] dt-bindings: regulator: Add bindings for MediaTek DVFSRC Regulators Date: Tue, 16 Apr 2024 17:38:02 +0200 Message-ID: <20240416153805.431118-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416153805.431118-1-angelogioacchino.delregno@collabora.com> References: <20240416153805.431118-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Dynamic Voltage and Frequency Scaling Resource Collector Regulators are controlled with votes to the DVFSRC hardware. This adds support for the regulators found in MT6873, MT8183, MT8192 and MT8195 SoCs. Signed-off-by: AngeloGioacchino Del Regno --- .../mediatek,mt6873-dvfsrc-regulator.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt6873-dvfsrc-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6873-dvfsrc-regulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6873-dvfsrc-regulator.yaml new file mode 100644 index 000000000000..17961c430fd3 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6873-dvfsrc-regulator.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/mediatek/mediatek,mt6873-dvfsrc-regulator.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek DVFSRC-controlled Regulators + +description: + The Dynamic Voltage and Frequency Scaling Resource Collector Regulators + are controlled with votes to the DVFSRC hardware. + +maintainers: + - AngeloGioacchino Del Regno + +properties: + compatible: + enum: + - mediatek,mt6873-dvfsrc-regulator + - mediatek,mt8183-dvfsrc-regulator + - mediatek,mt8192-dvfsrc-regulator + - mediatek,mt8195-dvfsrc-regulator + + reg: + maxItems: 1 + + dvfsrc-vcore: + description: DVFSRC-controlled SoC Vcore regulator + $ref: regulator.yaml# + + dvfsrc-vscp: + description: DVFSRC-controlled System Control Processor regulator + $ref: regulator.yaml# + +required: + - compatible + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + dvfsrc@10012000 { + compatible = "mediatek,mt8195-dvfsrc"; + reg = <0 0x10012000 0 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + regulators@0 { + compatible = "mediatek,mt8195-dvfsrc-regulator"; + reg = <0>; + + dvfsrc_vcore: dvfsrc-vcore { + regulator-name = "dvfsrc-vcore"; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <750000>; + regulator-always-on; + }; + + dvfsrc_vscp: dvfsrc-vscp { + regulator-name = "dvfsrc-vscp"; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <750000>; + regulator-always-on; + }; + }; + }; + }; -- 2.44.0