Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp304058ybg; Wed, 10 Jun 2020 00:59:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj9srBW9kRhOh4IT0ZvQQLDIjkPE+cKhSh01H+iZiKVF0aniGQxoTIIrdn0LElAJiGu4Hd X-Received: by 2002:a17:906:2b81:: with SMTP id m1mr2110471ejg.488.1591775963288; Wed, 10 Jun 2020 00:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591775963; cv=none; d=google.com; s=arc-20160816; b=H/bUg1vZWMZIvc4XPkzt9bxAmDB0w2cZgsvT3wz+uo6Srow8j1E/6OFP6XLBhxLzt5 gCwv6yWZ3zlbubA6hxMqT4zWrreZgZaZGDp+kAz/JeF1N0CRyBApm46vb/c8fvVyYx9G UMaCDrxD8mOftbRyCO7mvjMMxc7ijPT+pM0+UNzrf+ic2pArIAJ2CPEBisQp9wMp41O7 ugvhsBZ0+6Q/kx+lb+ombP/Ci7G+RSWMuwRuvBBsVkXtZLETxqcCEZt2pXajfDuuzx66 wbdZ2g0B6lGUen5jx1eoBDom4CfTyjH+R2Cke1QHC22sFkVCtZntec6SiuVbGp0ex//E NC8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=nepAZtogo26DJ5bnJNOqagPxZ153pFUZT84gVur7i1g=; b=AvnHZgoyjqWWO7bV5+qbimdPzZiqSjVlzh7RCEbEkxKiZn48T+2LpddFYe/zrG50xE ejl7r6hSUkbv66ZncMqktEfsxYUiJcoN/Zj9IayeigheeeVpApVfFbRsWhLimucoEewW elv+NovUUvbb8BJOJwi/5tDC1Mp5EuDek6/EC8WHCuIr8LKTllwxtwtCmk6O/DbwhEob lwtBQS7sRvTpk0BiqDd8e6oO0x0cZxhuopzPfG/vVHrR5C94nX4UQYaqrDQY/SV2Qv3/ xUH8fq5VXh7VkmhfMONlzHOaqBSV7U9lIFKpl7m0L0fkXGvq2KajOzRmddTygaaSQgab UzsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=l7UaQVMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si12469390edv.590.2020.06.10.00.59.00; Wed, 10 Jun 2020 00:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=l7UaQVMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726679AbgFJH5I (ORCPT + 99 others); Wed, 10 Jun 2020 03:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726558AbgFJH5H (ORCPT ); Wed, 10 Jun 2020 03:57:07 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 387E3C03E96F for ; Wed, 10 Jun 2020 00:57:07 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id 23so749409pfw.10 for ; Wed, 10 Jun 2020 00:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nepAZtogo26DJ5bnJNOqagPxZ153pFUZT84gVur7i1g=; b=l7UaQVMnylYytayhT9Eb+iavCxbX/5f95oxWdpZ8MB/cBgS3UEVlUx3AJCX3joPyoz +7IQB7Dv/vu2CkigmKkgIhOpaZkp3z6bpNcaqNmgyVeOty8Qsvb9g/z9nDz7o3yJZjor QRQk6XHP4jCZujdPeHhoMb9MuJD8df1h5zvls= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nepAZtogo26DJ5bnJNOqagPxZ153pFUZT84gVur7i1g=; b=tyTqGMgHj+oD0T2PY9S+7Fo5d48Z9e+JM8gzXA13ihydDbsRl7WXesCog5KczuEGus 2vE5VfRlJOWPNa70NNqm6vcfiAsvaTBHrjofKQnaxAyRHBI2YMJ0Gs0N0w+FCAZ2kKlK XOeWX6Fk7IAqsKP++NROEHlBp8Z7AAZqvkpp4rpH+mLAR38d2QYZo04MOc5QFUst+AxO +2lR74n3fzf/+AAjgIR1Hgl4qFpI29l69rORvrFOkIgyBml+zmqZdMVK3MRTu74/mLBs TDT4TxJCeFeSWLGK1JQitHvzD7eUohGaQPuhX7R8NHcjkoZb9LHKD9Yv53fcXN40Dplp nTWQ== X-Gm-Message-State: AOAM533kSQdc2kMWVLAL3sbHG/hSssgTQklGrEeoB84+TViE0AmEGO+f 3GCkdIxnkPFdbIXkuzh6YSf5VA== X-Received: by 2002:a65:640c:: with SMTP id a12mr1624521pgv.408.1591775826624; Wed, 10 Jun 2020 00:57:06 -0700 (PDT) Received: from pihsun-glaptop.lan (180-176-97-18.dynamic.kbronet.com.tw. [180.176.97.18]) by smtp.googlemail.com with ESMTPSA id y26sm12035850pff.26.2020.06.10.00.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 00:57:05 -0700 (PDT) From: Pi-Hsun Shih Cc: Pi-Hsun Shih , Nicolas Boichat , Liam Girdwood , Mark Brown , Rob Herring , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , linux-kernel@vger.kernel.org (open list:VOLTAGE AND CURRENT REGULATOR FRAMEWORK), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v2 1/2] dt-bindings: regulator: Add DT binding for cros-ec-regulator Date: Wed, 10 Jun 2020 15:56:43 +0800 Message-Id: <20200610075649.209852-2-pihsun@chromium.org> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog In-Reply-To: <20200610075649.209852-1-pihsun@chromium.org> References: <20200610075649.209852-1-pihsun@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT binding documentation for cros-ec-regulator, a voltage regulator controlled by ChromeOS EC. Changes from v1: * Change compatible string to google,regulator-cros-ec. * Use reg property in device tree. * Change license for dt binding according to checkpatch.pl. Signed-off-by: Pi-Hsun Shih --- .../bindings/regulator/cros-ec-regulator.yaml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/cros-ec-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/cros-ec-regulator.yaml b/Documentation/devicetree/bindings/regulator/cros-ec-regulator.yaml new file mode 100644 index 000000000000..e677614dcdf9 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/cros-ec-regulator.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/cros-ec-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChromeOS EC controlled voltage regulators + +maintainers: + - Pi-Hsun Shih + +description: + Any property defined as part of the core regulator binding, defined in + regulator.yaml, can also be used. + +allOf: + - $ref: "regulator.yaml#" + +properties: + compatible: + const: google,regulator-cros-ec + + reg: + maxItems: 1 + description: Identifier for the voltage regulator to ChromeOS EC. + +required: + - compatible + - reg + +examples: + - | + cros-ec { + #address-cells = <1>; + #size-cells = <0>; + regulator@0 { + compatible = "regulator-cros-ec"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + reg = <0>; + }; + }; +... -- 2.27.0.278.ge193c7cf3a9-goog