Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp846341pxb; Fri, 22 Apr 2022 12:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdGupsPrYGF0B8qCOl1XyO65SwxxWcOH3XAgkrVBCFw4LUj7iGhGXT4HlLNfIrT/QU9Ya1 X-Received: by 2002:a63:4a48:0:b0:3a9:21ea:458d with SMTP id j8-20020a634a48000000b003a921ea458dmr5129998pgl.557.1650655656836; Fri, 22 Apr 2022 12:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650655656; cv=none; d=google.com; s=arc-20160816; b=0R4NH1t0tczn1d1YZcq9u07ExYHggDJYE+Hx2zmep8NJuFJz/4hVSLVSdZDUfS/x3L FucPD6Mz4hHVEX07E7KDc+COxPBRs4D23UdZ/7O7CcVAYY1SbrEOBqf4lalOB8mm5SxC aup38Uh43PFHlYY+azZcL3HI2kTOIoALItjaNNSekzQkzGnpRZ41NaarIegQQBn82I47 56LOE6HVoI+dvN2j3q8fxTRf4IhvqaNGwkFNqWeK8P1hTDeLufypkDPx/vLgU6uUMUG6 2Od8X6qjyen0D8AVhT++ItFwW4sYcM/4uRYQEaniKYqztupQrzsfWkwCllxdrGotMcQ7 mk1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mt7uVgc54YUjQtx9Wdev1B+Wcl8E6zcRnvUq+Ap7mpU=; b=RGZma6HUBEmtXqqykEUgfnNkxWIsS291GgJ/x3um5+Mj7V+SHtA8sgFnyB9yZG1D8/ 3oC0pLNRwVM+y6TagysK7/gadjQzBcGbyloJhfcS2eTfWp6Vt6i21WXJp8Qf+I5kOg+3 vE1HRGbNa6CET9UqrtBnxWNzQWWwmYuxoZGUkGMB96qoha28ff9PlZKpWUk+NEeVOdzM Rx6OHsJxvLrFAN1VN4rFbO3hKOwW42I0jbjpZlqiDW0igyfWdUu+VofKvi9e8XCCeEgx hc01KSjXQCIR1+9RWDSYiX7zGQb2MZcEUftl28pwr5gdFnmo97iXoPbkheXzK2P41Ke8 5D3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u24-20020a63f658000000b003aa22119cdbsi9170125pgj.569.2022.04.22.12.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:27:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 13EE7B6E64; Fri, 22 Apr 2022 11:38:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346122AbiDSOEb (ORCPT + 99 others); Tue, 19 Apr 2022 10:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346063AbiDSOE3 (ORCPT ); Tue, 19 Apr 2022 10:04:29 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3E083969B; Tue, 19 Apr 2022 07:01:46 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id r8so18201319oib.5; Tue, 19 Apr 2022 07:01:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mt7uVgc54YUjQtx9Wdev1B+Wcl8E6zcRnvUq+Ap7mpU=; b=SjlQ9VQb8gD6Cgv065x1WauoydmJUgJyfsbxAWrnzPwn+bb54wn6Pg8aNIBu+wuX2O keu6XEiPR4tDKLTzifNqAxfBfVAHzMGD6qk8OhcNnU++FLEaVbUb4AsIqJxMKTYq4DrJ 1p++ptkstr49xLvioWfBaNJ0CXUzeExtAiKY/tOlwWsP57ibHFkHe85oHp1y9ICDb/YY fRTl+/XVO8AXij7izT5EVsW/KyXYfY5M/PaaNvQaA2Se7ZTvtR9k2aAevNJGpFelQWC0 O/MnCX0giMAk4uiBldD5MyM5cn4E0d642+85Gt+puRUgiBSBc5a8Ea2Df/LyoUUr47jh GSKg== X-Gm-Message-State: AOAM530CNk4PM8D19Y+W3QO9lBdz5dROJCg2sHzzoyc2meA9wakleVlj jnBIA4Vehd/Gi/Hh4fFSWQ== X-Received: by 2002:a05:6808:1911:b0:322:c4ec:85e5 with SMTP id bf17-20020a056808191100b00322c4ec85e5mr932540oib.12.1650376906225; Tue, 19 Apr 2022 07:01:46 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id hc3-20020a056870788300b000e5dfc7d6b9sm2222231oab.14.2022.04.19.07.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 07:01:45 -0700 (PDT) Received: (nullmailer pid 2460010 invoked by uid 1000); Tue, 19 Apr 2022 14:01:45 -0000 Date: Tue, 19 Apr 2022 09:01:45 -0500 From: Rob Herring To: Markuss Broks Cc: linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Lee Jones , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org Subject: Re: [PATCH v3 2/4] dt-bindings: mfd: Add bindings for Silicon Mitus SM5703 MFD Message-ID: References: <20220415164356.25165-1-markuss.broks@gmail.com> <20220415164356.25165-3-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220415164356.25165-3-markuss.broks@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 15, 2022 at 07:43:53PM +0300, Markuss Broks wrote: > This patch adds device-tree bindings for the Silicon Mitus > SM5703 MFD. > > Signed-off-by: Markuss Broks > --- > .../bindings/mfd/siliconmitus,sm5703.yaml | 95 +++++++++++++++++++ > 1 file changed, 95 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml > > diff --git a/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml b/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml > new file mode 100644 > index 000000000000..aa676967593d > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml > @@ -0,0 +1,95 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/siliconmitus,sm5703.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Silicon Mitus SM5703 multi-function device bindings > + > +maintainers: > + - Markuss Broks > + > +description: | > + Silicon Mitus SM5703 is a multi-function device, that consists of several > + modules, designed for a mobile phone use. It consists of > + LDO, Buck, USBLDO and VBUS regulators, a flash LED driver, a MUIC unit, > + a fuel gauge and a battery charger circuit. The MUIC and Fuel-Gauge units > + are separate from the main MFD, having their own i2c lines, while the > + LED driver, regulators and charger are sharing the main i2c bus of the MFD. > + > +properties: > + compatible: > + const: siliconmitus,sm5703-mfd '-mfd' is redundant. Drop. > + > + reg: > + description: > + I2C slave address. > + maxItems: 1 > + > + regulators: > + $ref: ../regulator/siliconmitus,sm5703-regulator.yaml /schemas/regulator/... > + description: > + List of child nodes that specify the regulators. > + > + reset-gpio: '-gpios' is the preferred form even with 1. Are the MUIC and Fuel-Gauge units independent from this reset? > + description: > + GPIO which is connected to the MRSTB pin. > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - regulators > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + mfd@49 { 'pmic' is the standard name. > + compatible = "siliconmitus,sm5703-mfd"; > + reg = <0x49>; > + > + reset-gpio = <&msmgpio 24 GPIO_ACTIVE_HIGH>; > + pinctrl-0 = <&mrstb_default>; > + > + regulator { > + compatible = "siliconmitus,sm5703-regulator"; > + > + regulators { > + sm5703_ldo1: ldo1 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + }; > + > + sm5703_ldo2: ldo2 { > + regulator-min-microvolt = <1500000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + sm5703_ldo3: ldo3 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + sm5703_usbldo1: usbldo1 { > + regulator-min-microvolt = <4800000>; > + regulator-max-microvolt = <4800000>; > + }; > + > + sm5703_usbldo2: usbldo2 { > + regulator-min-microvolt = <4800000>; > + regulator-max-microvolt = <4800000>; > + }; > + > + sm5703_vbus: vbus { > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + }; > + }; > + }; > + }; > + }; > +... > -- > 2.35.1 > >