Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp562573ybg; Wed, 10 Jun 2020 07:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLNIRfAw3+fB0KMErkaq5ntuPX/7xXfEhKBbb5yulTe1Ll3ma8uX5qVhhcxbKEE+qSd9to X-Received: by 2002:a50:ee8f:: with SMTP id f15mr2828778edr.168.1591800850268; Wed, 10 Jun 2020 07:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591800850; cv=none; d=google.com; s=arc-20160816; b=DIMhHNEE/Yx7mKmNrAozgMedNsOUbBGsJb7cLaEhWNck8H7mctuv/OwEZFLKJDJmmD 48ji2cpheG06x69OK1U20f7Mbl2kH8JNLyZzr1IG5Pdbp6oxGTrGzKwAzizWmohlO+Wt oLIfbkRPYxhvRgQmtC5iPjO6rmE4uTdBsqQR39qih+ltFvZs6l8L7PclSWfW9e8JScHh JSnX0WFpnTkEBnzXSAzN3DWJd9fil4EJWgts/aX7wR4xb2NJw7qe3i5JZCWYpb6DtYqY R4NlNb3l/MI1jl/IIQQNttGJraeCCZUb9Dah0EeTCp29iA+gkXB9O+PPhbpYWPQOXyhL acFA== 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=p1mRFejFl89lPDHG+sPS3d5EYKkxaIVplPzKnLzNtEs=; b=REKIc6PzdjFm2iabpVz7qw1WEoe5khYw39U1OFkDvbGrQy46b09onRhB53/Jc7zRnc 7VnTDtR4c2Xr7V9QwCjBV98fGF+E2BHLgby7G/7f92gjlYMNNEZX4C7zwzMiGozlzQwN WK1mSvTmWaxdU9VZkYqQXMJtVhCIb7MUr0WJdSwZChUuQRhZ09Pg/J6ARooeq6wpg2XV 03rlA4rgyvZ/Qa36ZyHrqedDSgOQLj0bLvalhQLUdwKHor4rSm0mCrwrZoPZRwZhAROW HjxsaMsZb+d5Vc98vDRJP7fXgW7PIp5K7+HhoNcpb17P5t+YAhyIJ94m4D1uc0c5Vtra 8uKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=FhIU6nVz; 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 f7si138885ejr.406.2020.06.10.07.53.47; Wed, 10 Jun 2020 07:54:10 -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=FhIU6nVz; 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 S1727097AbgFJJID (ORCPT + 99 others); Wed, 10 Jun 2020 05:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbgFJJIC (ORCPT ); Wed, 10 Jun 2020 05:08:02 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 261F3C03E96B for ; Wed, 10 Jun 2020 02:08:02 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id k2so604820pjs.2 for ; Wed, 10 Jun 2020 02:08:02 -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=p1mRFejFl89lPDHG+sPS3d5EYKkxaIVplPzKnLzNtEs=; b=FhIU6nVzTsiUQ3FntBqklKswFB24fk9s3IpiVmY1XL/9uobHQlpn3n2xs2uW/Ly3va EReVFW2iYbix9LRHQsZ9Cuv2GQiLSVt6BEms8u8mNk08o/TFBRQjyBG0mMqJliofggnj rhDdF/A3Uj41075ZlUnv2aOXtT7JfC0HcSy00= 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=p1mRFejFl89lPDHG+sPS3d5EYKkxaIVplPzKnLzNtEs=; b=TcM4q+gkKa/thr3+CdWWmro97Zv8JmY6I9OmK8pLumZrKc05jomnclEcw/Lq7ml1bn 5ivdMGpaR2A51oCyZCCR+6nojqeNDP/k/SjGKmRRmq6sV2tYlaST12KAAF1hCUqWgnfw UXtD3X3B+hqNhUTvOmvd4BkdwZxRTugqbUxThQeSbUMpfpA8lKnaAS2Mz7OkQ4Mv2PqX b2/w6k7hjVW9q2PGE9G5PnH0jnONU+itmkyhBsfwnPD/SvXv8F2HzmizkYzZL3ZqbMRg SYYbXEp9hSY0ZXW64nusS8PDQYosac4Dw8hh0WjvHWhgIQ28KLuQjPNENnQ3n5uyjb2Q R8xA== X-Gm-Message-State: AOAM5325OqUmYDypYqYk7wMhC/VWcBKBs+XxarzuUr/RZIiJ/fNngXGI y39h0EE4vqWTRMTt3ORwc9a0pA== X-Received: by 2002:a17:90a:8089:: with SMTP id c9mr2180054pjn.126.1591780081651; Wed, 10 Jun 2020 02:08:01 -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 j17sm10607644pgk.66.2020.06.10.02.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 02:08:00 -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 v3 1/2] dt-bindings: regulator: Add DT binding for cros-ec-regulator Date: Wed, 10 Jun 2020 17:07:39 +0800 Message-Id: <20200610090748.45908-2-pihsun@chromium.org> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog In-Reply-To: <20200610090748.45908-1-pihsun@chromium.org> References: <20200610090748.45908-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. Signed-off-by: Pi-Hsun Shih --- Changes from v2: * No change 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. --- .../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