From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E06E94EE843 for ; Thu, 8 Oct 2026 15:57:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791475068; cv=none; b=h58VSmMFRzOpvcH5jVSfCxy6smVOE/qoSXvUtXFeuN2EYj4+nEspasFlC9T0bVh0u0M+8icXeVaBaHSlLr2wHkYI8LXIOELAHwAEgzdrZWW7QUXa4gntm3P10bnyDKahyDmbX1cRPNnX97NhoD4ABaDVdiy419F0J1Idt2oBhIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791475068; c=relaxed/simple; bh=sgMW6iuE9hLczn9U09tlFx56RGfrBjeSN6MEvAo+Xkk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bunbRwX0aLJZ8p3gxes4f0vFAbTpGA3YQW1MDUxBgTLCdl1rY7ELlBtrBmVPDLnfbeFfTRJvS4tYLBr9A8Pd73RPjR6I7dMCOeX6vhaHxQuMKYsIdBXezk56RitViUQrI+nrwpqjzBHsK5eG2qPvs8rWYerbapVNuBUPwTzCs88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O8UwU9G6; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O8UwU9G6" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-381b831d535so5444029a91.0 for ; Thu, 08 Oct 2026 08:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791475064; x=1792079864; 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:content-type; bh=+7xs14ys+LRyire5ztufFZS8Bw/b8qvOT1NT4ptoOa4=; b=O8UwU9G6rju8hwDj25dWw/hCPCT2v/E0AZzVLMPQZBx9Hqd0XLJ6prx+5Xoh5LTZfx 1Y7yQ2YabMu/J2H11rXAtyP32neowmtt3rzmjKgbINYSIGMPDUJD+XXXcjGBzqkce8R2 PT4thXYPsunDYr3R2MDZpBGW1DbpDVHB97XjCHewWpVtstPgdof2+IyZFYw+xREF+R4Y ePWb66H4wjmXXMa2PpcOYFJyKM5jLV/HHaYyQEwBQsAtChf19sVzFrgZK6pXHDGEOUCr a/eTBJLDyAE1kHBqxg/u+mX7PPOK9JTAgO71obQxsFZ+kkSvaDxdlTf94B4/ppsaBp/J zA4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791475064; x=1792079864; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+7xs14ys+LRyire5ztufFZS8Bw/b8qvOT1NT4ptoOa4=; b=g/Um+0CUoBgxHZsn/Abr5IUkP0Hvm9oRfayEsxvVB05frMPJGWHw5dj/S6R6rczjj4 hs2SToncrm73gR0m8bHFBXoF9UWvcH0+DyIBHtD0MEKUz8SYse4mN6qaZMdBE7ZOVXPf lbXNG8pbyqY5ICuFKJlvcvpKEKy7rEC66LZaZTdF+UgxwC6G/ZwJjr3g34huABUPykzT uzLkDs1vr5LiAIk47ychwzvXUT83iJHoUKe0xb14/jMKEBFtkFaS8agVn9x9B+fQ9kTZ b1eN1fl4+kZi+ZD4I+g7gC/WC7305kCS96korTak6I/Amoys1dyHbptuGeZm6YwoJWIh tKJA== X-Forwarded-Encrypted: i=1; AKwUvBwib4GnKEqV2GkMF/F1/blexmcD081iyYWcJaHS45rdVjS6YBPaodmZ5GmcvnfpNqHa3VTNiq24IEgy@vger.kernel.org X-Gm-Message-State: AFq9FYLBhHNj7Qx/PrW1M0NYCUji7br+yvMIzHIU3+50ad7EXIBQw21H 7DBkpbXGlMgAw7WMv6+fYFVZ35j5Z2PCY9edW6IEzFakj5vJF1HmmECs X-Gm-Gg: AYBFou1h2jgEM2NJusp932zMHgdXY0n4uI2mvlR9bRtmRDh2jJojrNBU/cNH4jcuGEp 5TikSNW04YlOMiMfK01g/W4N3yd096sVRDmaw91YNK+Q99Koiz9M/4/xYhVbX6HPqKLgcI6a9CI GJuci/xsnbzJ9A2RfC6W8I5/VyN8FkFyJfczbpgm66AbamruhgkAj3gTHNQI584MFKYRbGde5hy /8cPO6gLDTkp4mx9y9WtLsyYwrHYeXV+5Ajsdqq0xO8g1CWUtt668iXgYGyy/3nzAmVoavHbrgf lbgmkU5g1Trzmmk7VdpxGUwxLEf/LfQNwZWK/TSBZ6ta63CQbQkEgTDxBs4XR0SJEFPvnTbINnP PUhCCObljFgNSAHl4dWF5dGFD41wpxZa2JfzIJNQBMrZ+wlag8c21beKyCxQNUoZ3c9LQsUMF/k 2H5Ka/UKRP8fCLjsyx5vipwOwMqsmGjLHj/gRsMkc/4ARjo1CdhzMMzybJwVlCu2ztiCw50CTrV 9dD7XvWSc8p5jIeX4QfwwJBog== X-Received: by 2002:a17:90b:2ccc:b0:3a8:211b:6c7b with SMTP id 98e67ed59e1d1-3a8a04ba0f4mr5235029a91.4.1791475059178; Thu, 08 Oct 2026 08:57:39 -0700 (PDT) Received: from d.home.yangfl.dn42 ([2a09:bac5:661c:1246::1d2:d1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e6046fe0aesm27694045ad.28.2026.10.08.08.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 08:57:38 -0700 (PDT) From: David Yang To: Liam Girdwood , Mark Brown Cc: David Yang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: regulator: add HiSilicon STB voltage regulator Date: Thu, 8 Oct 2026 23:57:24 +0800 Message-ID: <20261008155727.3801095-2-mmyangfl@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261008155727.3801095-1-mmyangfl@gmail.com> References: <20261008155727.3801095-1-mmyangfl@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The PMOC block of the HiSilicon STB SoCs drives an external converter with a PWM signal. Document the binding. Signed-off-by: David Yang --- .../regulator/hisilicon,histb-volt.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml diff --git a/Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml b/Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml new file mode 100644 index 000000000000..34deee17d034 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/hisilicon,histb-volt.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/hisilicon,histb-volt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon STB voltage regulator + +maintainers: + - David Yang + +description: | + HiSilicon STB SoCs provide PWM outputs in the PMOC block which drive an + external converter. The signal is filtered into a DC level between 0 V and + 3.3 V which is summed into the feedback input of the converter, so a rail + follows the average level of the PWM signal and its voltage is set by the duty + cycle. + + Where the duty cycle maps to in volts is a property of the board, not of the + SoC: the endpoints come from the resistors of the filter and from the + reference voltage of the converter. The datasheets therefore tabulate a + different pair of endpoints for each converter of their reference designs + (0.65 V to 1.15 V for the Hi3798cv200, 0.7 V to 1.25 V for the Hi3798mv200), + and a board built to its own schematic has to describe its own. + regulator-min-microvolt and regulator-max-microvolt are those endpoints of + the linear range, and the regulator has no other source of calibration. + +properties: + compatible: + enum: + - hisilicon,hi3798cv200-volt + - hisilicon,hi3798mv100-volt + - hisilicon,hi3798mv200-volt + + reg: + maxItems: 1 + +required: + - compatible + - reg + - regulator-min-microvolt + - regulator-max-microvolt + +allOf: + - $ref: regulator.yaml# + +unevaluatedProperties: false + +examples: + - | + vddcpu: regulator@8a23018 { + compatible = "hisilicon,hi3798mv200-volt"; + reg = <0x8a23018 0x4>; + regulator-name = "vdd-cpu"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + }; -- 2.53.0