Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1134509ybt; Wed, 1 Jul 2020 20:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxugmv1z5EByMGY3IQFL/xFuAMJQDikHmFMY2/Miq1EKbVvQ6L11rFyAKkuBcVQ5jo8E7B0 X-Received: by 2002:a17:906:144b:: with SMTP id q11mr14036727ejc.511.1593659784015; Wed, 01 Jul 2020 20:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593659784; cv=none; d=google.com; s=arc-20160816; b=Y2ITkE7p02U40dYqXfTWQNLv4RDeL7rKjBIDlosWmAumTN94iYv/F0wF465mqBU19l 8KYDTSO5QkdVCQIvxlJeu6IT08YtwXeTf5MoVCIU5VlaTofFK4DDOSHhOJYu1/r727DL mP0fw4SECvmcGx+1rc0LlVzLJEvHxbfAt2lm5F/+vIKvmZsv5H9UvBkQvUBni2Uk7wFd UDVpDykqDskcRCaEDEuyi7Um4+j7wBWpAuBWsVQ3vo4WF6RunmTvmTtG8eyfkn2d4r4t RThJiMZVjVoZj1pc7EYJJRDjD72aFIo3KQ+g1mxJ3fwRRd0ObJeOehpVTbeF/vd4VbNP 3iUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=lgjLNEI2c702nruZIf8/qVC3N2Yvj7eOc3xFcCXk4qE=; b=bWZYYTk6Hj23zri01iP8eBoKihOUgcwgP0iMxUzudKvfteDNSpBuK+ExcNsGC7C7Eb aHbPjLTENcyodv0LftrS9dV6CD8olaEBEYfyXdel0YQLgckqAbCsLQVRj4O9IDeYWIzo vrdt7JSONeMFvpflLncNHbQBxkZZ8udjFO1ArNAIlkq5jU2HQpuRQaTqrCStQwUgxhiE V8vSvZjy/yn4DpCfQKX7PROCL1QaBw99SFB+ddy+Myw0QXI21SoB3+uyBnq0t51qT7i1 0YahqfueHy8A9pWVuN5SYA/IGPoR6To3dHljG+fta2Cas4J4lkMnHc0WZuQgUmLVNy3+ dvdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=V4qGOuIm; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e14si5117731edr.380.2020.07.01.20.16.00; Wed, 01 Jul 2020 20:16: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=pass header.i=@google.com header.s=20161025 header.b=V4qGOuIm; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbgGBDPq (ORCPT + 99 others); Wed, 1 Jul 2020 23:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgGBDPq (ORCPT ); Wed, 1 Jul 2020 23:15:46 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9423BC08C5DB for ; Wed, 1 Jul 2020 20:15:45 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id h10so3146797ybk.19 for ; Wed, 01 Jul 2020 20:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=lgjLNEI2c702nruZIf8/qVC3N2Yvj7eOc3xFcCXk4qE=; b=V4qGOuImI1av0lSmyLMJk52j2TEqAgPFSpa2IGTBg3P335rupJ/XJFDEVy6u3Y3nsa RxGOc5CrUOcD0Hx1SSX6EsLwS/YkM3rm9xE7r0RMJomNXcFqqngBD9LKQ8sdqsSMBuqt foksl0EJRlKlIsuDBk/TgVcq3AHjtf2S0T+hEssU9vC+kvaffGNehyx0mKdLema/9UQw 76RivxWXQWWYbxnExz2m43fP0sc2RHIrz4bpQR6k8ck94uD8U3TW8qjdcGeItG3XDGWq 8Lujvxr2kTUxQd9xNXkHoQ6fZKN3quOY96H0T651b5HMoiiTWgJvhDIqQoH5h8TlH97H 1F3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=lgjLNEI2c702nruZIf8/qVC3N2Yvj7eOc3xFcCXk4qE=; b=SH4B8zQ1zvtU3rxTCCQ3JvfUHuWOAUpm+OmHHwQpyTaxoW2ZlokZmIcCkWx0/ZRsxa VhWKFTukbhZDNF2rjFW+6xEE6HXT4WvyOBUGYye7+7bpiwySFL1uweREmFH09gaya3YY E+ezv64BPZWBZ3U8USLQd+PrNib3gOwDaCVHKlU49VBUFQaGBUWgicJNmauPVRLRaWhS cJ6EgRx3GIjxhvrj2SdF2C06o1NlFiwDkZSe7NQ7YyG1NhYimjU+sBQJ3aN25p0oUuXL rNpaedMFwykzDhyjO57CSuoof2NRrxxdjjP1c/lOjin2ynCzAZyOWNCUPw00l0PcKWH5 3cBA== X-Gm-Message-State: AOAM530i0ZY6yEqHUp8l/FMsnlYXZbHG99IvvPo2QhYj1iV9DquLXHlM sPIK7szTJNWx+NG7gI93cewIZAnyMnC4 X-Received: by 2002:a25:84cc:: with SMTP id x12mr43165655ybm.454.1593659744675; Wed, 01 Jul 2020 20:15:44 -0700 (PDT) Date: Thu, 2 Jul 2020 13:15:21 +1000 Message-Id: <20200702031525.2662441-1-amistry@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH 0/4] regulator: da9211: support changing modes From: Anand K Mistry To: linux-mediatek@lists.infradead.org Cc: hsinyi@chromium.org, drinkcat@chromium.org, Anand K Mistry , Liam Girdwood , Mark Brown , Matthias Brugger , Rob Herring , Support Opensource , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for being able to change regulator modes for the da9211 regulator. This is needed to allow the voltage scaling support in the MT8173 SoC to be used in the elm (Acer Chromebook R13) and hana (several Lenovo Chromebooks) devices. Anand K Mistry (4): regulator: da9211: Move buck modes into header file dt-bindings: regulator: da9211: Document allowed modes regulator: da9211: Implement of_map_mode arm64: dts: mediatek: Update allowed regulator modes for elm boards .../devicetree/bindings/regulator/da9211.txt | 4 +++ arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 ++- drivers/regulator/da9211-regulator.c | 30 +++++++++++++++---- .../regulator/dlg,da9211-regulator.h | 16 ++++++++++ 4 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 include/dt-bindings/regulator/dlg,da9211-regulator.h -- 2.27.0.212.ge8ba1cc988-goog