Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp173094ybg; Thu, 11 Jun 2020 21:07:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjmD5xphWIIOIa9l+TYLw2894BO5//l+ul88w3CdidUlou2MqyZb5Iy/DThF9WU0c+qmMD X-Received: by 2002:aa7:d613:: with SMTP id c19mr9725419edr.321.1591934877262; Thu, 11 Jun 2020 21:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591934877; cv=none; d=google.com; s=arc-20160816; b=pWLieiPH2afH04MaOSck1zd4M2EqI8WUNSbFDP2oUuV87nvDEz+/rx7w9PLV7ATXEe 8588aKE/lUsdJs66gaQMEvxMsMCxXjFgwpwLMEAtUP7EQ60oHl2C0L0JVUaPhkDRyIV/ 5QRPNprHnqy9ALuWg8E4goWRnUWkyyuY3PzaY5T+4SHk0K67M4NM0TJ5ofZA0vebB/Xh Y31eZz2Cbq5c7QPRlycfMG7LV1uwLUjMU0qJsHCx090wRncDxkknhJPuEyjJOYM20ciP 1tHUrs8hEJxCNSAvoVFZj0C8PUPSHvdAtQbqenL/YWWMays3mAuDcDba5iVNqUP8+Hwk 1Mvw== 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=iNfpgONIX6TRQlY7VCVFuaZAaeCFmiBcxeh3q+Q9Emc=; b=ZG+agAsivgi9m7LYUzhqMA5zZ5qAAJX3ZEjCQrm9RHOnINNG3fRuwbEiBOvF3iO+GU I3MRp117mhtcbvNFhxWSfPycews6oi+Z16DLA8aYV1OlubSbhSOcuRmgNYsr5plW3NbE SUxSGSmYEe44sp7kxkWUF8BNmKGMPlG96AyNmPYE6uSc5FTey3JN3M9BVAFyznmLySML Thsglkp3A3ntJee8JuogBC/+yphXxRlhdTxcMGpF9zRlBYezLh/6NtYIy2bJnAxHPwLk OhrBaAYJxN8DK/cRK13sprG36ShDP7v1i+hRylPaUnEnXK2eCZncXFmmdMd2nVH1yh2U RaSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=mQ9C4Aw7; 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 n25si3256235ejc.60.2020.06.11.21.07.31; Thu, 11 Jun 2020 21:07:57 -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=mQ9C4Aw7; 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 S1726405AbgFLEFl (ORCPT + 99 others); Fri, 12 Jun 2020 00:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgFLEFi (ORCPT ); Fri, 12 Jun 2020 00:05:38 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3437CC03E96F for ; Thu, 11 Jun 2020 21:05:38 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id b5so2569424pgm.8 for ; Thu, 11 Jun 2020 21:05:38 -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=iNfpgONIX6TRQlY7VCVFuaZAaeCFmiBcxeh3q+Q9Emc=; b=mQ9C4Aw7UnLy8MGjbM2OH+sYJjoMshBz0UObVOleGhuXtYJKLHLkDe4CS64GHsAzzf qFBNAYjYV108HaXThdR2E1c1lUCTsjwairMoiRkIKp4PnaLs2fRPuGdM97LHIBX+jQi/ PPQi1BwP8ENk3T37NSGb4nw6ZIrVVN3ZcpVJs= 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=iNfpgONIX6TRQlY7VCVFuaZAaeCFmiBcxeh3q+Q9Emc=; b=fXfLLkPidD41i7uB6qNKIVK4GAK+Y79EBcvhEj3h0pKT9Gc9nZaxk/JiOsVnNs5E9A Pz+iWsMmXZpHEg4dlEgFmqM/51KDdqdO+DHy3JtfLtOswCd3o1E88mrp79yLxkP6NRw+ 7ppeOYNMlZwgyHbz1hDhA1E3lb6tNHwKwYOMLa1EULeTk8rKNjU9v5RJO96/2zwCHRGl CxVBNp9bNeclNY6hooOQ4xClvNAwVrnMfQwwghTgKsf6y56i5UAb016x0eGbTz0NU+Ys 8yOhiJXthRWI0mQiYiHWagfThPmkmr5kW/oqKlo/t01Bloo+/pk4oYqGYrFGc2iCRvk0 lIvw== X-Gm-Message-State: AOAM530m/J6FjbWcprA/EDUVS3H3bh66IYjB6MFdj/Bqg4i5x314AJgO t943/A6dbZI5jFrZ3hbX1kd9Kw== X-Received: by 2002:a65:508c:: with SMTP id r12mr9391678pgp.233.1591934737734; Thu, 11 Jun 2020 21:05:37 -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 u7sm4686983pfu.162.2020.06.11.21.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 21:05:36 -0700 (PDT) From: Pi-Hsun Shih Cc: Pi-Hsun Shih , Nicolas Boichat , Enric Balletbo i Serra , Liam Girdwood , Mark Brown , Rob Herring , Benson Leung , 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 v6 1/3] dt-bindings: regulator: Add DT binding for cros-ec-regulator Date: Fri, 12 Jun 2020 12:05:18 +0800 Message-Id: <20200612040526.192878-2-pihsun@chromium.org> X-Mailer: git-send-email 2.27.0.290.gba653c62da-goog In-Reply-To: <20200612040526.192878-1-pihsun@chromium.org> References: <20200612040526.192878-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 Reviewed-by: Enric Balletbo i Serra --- Changes from v5: * No change Changes from v4: * Change compatible name from regulator-cros-ec to cros-ec-regulator. Changes from v3: * Fix dt bindings file name. * Add full example. 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. --- .../regulator/google,cros-ec-regulator.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml b/Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml new file mode 100644 index 000000000000..c9453d7ce227 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/google,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,cros-ec-regulator + + reg: + maxItems: 1 + description: Identifier for the voltage regulator to ChromeOS EC. + +required: + - compatible + - reg + +examples: + - | + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + cros_ec: ec@0 { + compatible = "google,cros-ec-spi"; + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + regulator@0 { + compatible = "google,cros-ec-regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + reg = <0>; + }; + }; + }; +... -- 2.27.0.290.gba653c62da-goog