Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1128992ybg; Thu, 11 Jun 2020 01:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNGFfwJ+U+qJID4iZoNi5SA6NSctdbI/VphzWI+3eKKB12BH+hsMKsQiNKgnX72urKncSU X-Received: by 2002:a05:6402:7d4:: with SMTP id u20mr5905107edy.30.1591864215623; Thu, 11 Jun 2020 01:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591864215; cv=none; d=google.com; s=arc-20160816; b=UZ7aVARjOTvhLrZ1O7JyTFNkHFSj2xLLAWyoBRIMM34y/WWQz5NRkC8Y4LHXv6VNhE hdg/ZAq6+pPpxfmadLR9p92hc55rCCkHEgVwlGvQlvmNHO6tVGlNZuFl6luHoI97yqP3 Vdr1UeLxsU9OenDyr307hZEIb8Mku5ha6RhFkuE5G/GIpltWW9n6AlUsN57j11s4+4jY e6inHK6aLOdxOn/g1bV1Xv5fV/xdnwFmHoxKHcHk/9ZuggAiQbJBHdjgniFgtmzDn67t AbPAVUmCl/6f9kn8a8TtZ+FUvFn3DkDul32IAzVFBNFF2cMx41+Njmgk6mHAIAE3Ph3S aAsg== 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=VrWixJX8R1433fFot6r+tW/CcLgNTOmGLsok7BHH+kg=; b=DTNVgXfJfAatcVr8UNW8pTamLE2/+XnyWxtTs3K8yeziTHTPDzgtRlHacn4NNw376f gcAFdFYVKvxRgn6NWgV2UmvsXNJKSv6tsOy5ajkcnkCxv5xU2Ga5w0W2dfkTLkabMPia BVFh8TT3Cn1OTeMAU4QsQl6b+Kt4+s43ifPnW0m0mrQCGwVQHeVKHNy0c6ABjvDOpD03 KZA78UX7gEdn1Rs2NsgZEA3IGV5tfJTw87iAYcs9Kg7e3Awd0awopNZIjTONxiiuLsLi XV1YJ0IVI0Nwwf+R3KwSAPM4PA8Ct8t0ZymdZXDU7Zi0oz0f1FxAQRJJkTAVBaaXkI1q 5J/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=a1MHK6W6; 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 lr6si1583171ejb.699.2020.06.11.01.29.52; Thu, 11 Jun 2020 01:30:15 -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=a1MHK6W6; 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 S1726824AbgFKIZ6 (ORCPT + 99 others); Thu, 11 Jun 2020 04:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbgFKIZ6 (ORCPT ); Thu, 11 Jun 2020 04:25:58 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84B26C08C5C1 for ; Thu, 11 Jun 2020 01:25:57 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id bh7so2051138plb.11 for ; Thu, 11 Jun 2020 01:25:57 -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=VrWixJX8R1433fFot6r+tW/CcLgNTOmGLsok7BHH+kg=; b=a1MHK6W6uUyOckqwulCRSQKaR6rgF8BvKNrcYhb49/DPn96bVqlS1Bl5hUvfhmxvck aEYkWIqXCM1GXijNrCS8g7b3coDMpVkOzlhaky8RWiOOC21upfn2pIqrifd5bUM4WwzA DI0JoArULFir3KSN6YKAJZIukJNd52HJAA8ag= 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=VrWixJX8R1433fFot6r+tW/CcLgNTOmGLsok7BHH+kg=; b=YWsRogOarXR9aa+PzofGH48vnApCIBXRAoM0v7KApFPLBVH5uDMeYCfp9RCn7DlYm2 6mm/UnXY32AD5IQj1/PBFyWtAyZr5x9YjtQtCvpJQd1n42titDgsYds3UoqVLI+jITZ6 JXtcq36ukq+yemp01KF7Ee9+avth078y3jszxVb2hO+GWLDOL/9vL1U0lIzL3piczPi+ SFFKKlRC4UvImGXumv3pPQJwme8ZzRMwUnO3DQ9kAGRCerdaT8tWoO5dbyUQS/05QuEL 6bObbJPJF5SS5Srkjhr1i9CDnZVehX7K3sZw07qhZXmHtoqGFBMYtN7n8VtPbH5BNoy/ Wadg== X-Gm-Message-State: AOAM532YySkLBwTUJFWns87wPRzinEPx+3g7NV8EXo9ZZHWKiSnez4Xy ACnbXvsvlb0qyJmc13On7eo0BA== X-Received: by 2002:a17:90a:8d11:: with SMTP id c17mr6990504pjo.201.1591863957043; Thu, 11 Jun 2020 01:25:57 -0700 (PDT) Received: from pihsun-glaptop.roam.corp.google.com (2001-b400-e256-fea4-a6c2-ff17-248d-0f67.emome-ip6.hinet.net. [2001:b400:e256:fea4:a6c2:ff17:248d:f67]) by smtp.googlemail.com with ESMTPSA id m5sm1994749pga.3.2020.06.11.01.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 01:25:56 -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 v5 1/2] dt-bindings: regulator: Add DT binding for cros-ec-regulator Date: Thu, 11 Jun 2020 16:25:36 +0800 Message-Id: <20200611082542.219516-2-pihsun@chromium.org> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog In-Reply-To: <20200611082542.219516-1-pihsun@chromium.org> References: <20200611082542.219516-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 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.278.ge193c7cf3a9-goog