From patchwork Tue Jan 19 07:16:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 12029293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7858C433E0 for ; Tue, 19 Jan 2021 07:19:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A9FB2312D for ; Tue, 19 Jan 2021 07:19:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728641AbhASHTS (ORCPT ); Tue, 19 Jan 2021 02:19:18 -0500 Received: from mail-lj1-f169.google.com ([209.85.208.169]:35814 "EHLO mail-lj1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbhASHSp (ORCPT ); Tue, 19 Jan 2021 02:18:45 -0500 Received: by mail-lj1-f169.google.com with SMTP id p13so20799454ljg.2; Mon, 18 Jan 2021 23:16:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=njM+r5739maNvAMaKSZAfi4YYRGmoIe8sXQDSd2vGS4=; b=uKga2ZXxqkalWeNW4vbpGBGz75EaZrsj9aMHOCIVmLivGzeIGAMtIE95nGKuk3QVJV 4YjBohuyBNxNX9KGoqkA19AEeT0Ghza4ZFJVFrvv2dcNP0Q7n5lV4skLMwM8er2Qmt/1 bI+90KLeveUc50BoLnPjjYMvhS7mT8IRoYGcby9POGPzTu7YQjaW/T8lYNXtqi2ACtzg JVciD9IUs+KlTf/McKa8LwtZUJq8YJ32ddGntZLvkHNm41HiQaJ8cWQGdutD5tpgHxaK qpN94Wac2vZk2eJHD/6CfBwK8DuUfCJBhzxvEcEUdY8cY8hy7kPqwm2jdgzPRv1LvJV6 nWXg== X-Gm-Message-State: AOAM530e3ESplm8UYEjiBAZVLUbyxkPwbIoV0T6nVgKVF3DvllGM352T aD3NNwoLMnmlxTeBol2+a1AAvh7PCDRZcA== X-Google-Smtp-Source: ABdhPJy6dq3rM1KjpzibXsd4DeX1TwQyRyHiDjzLDbSr+zMoko/U/s74yXSrbXaNAeNc12+r18vy5g== X-Received: by 2002:a2e:9f52:: with SMTP id v18mr1344525ljk.510.1611040591332; Mon, 18 Jan 2021 23:16:31 -0800 (PST) Received: from localhost.localdomain (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id s20sm2193138lfc.26.2021.01.18.23.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 23:16:30 -0800 (PST) Date: Tue, 19 Jan 2021 09:16:23 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Lee Jones , Rob Herring , Liam Girdwood , Mark Brown , Matti Vaittinen , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Alessandro Zummo , Alexandre Belloni , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-power@fi.rohmeurope.com, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: [PATCH v2 05/17] dt_bindings: bd71828: Add clock output mode Message-ID: <1b6077ad08f7eacdac6604439d0921778d6046db.1611037866.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The BD71828 allows configuring the clk32kout pin mode to CMOS or open-drain. Add device-tree property for specifying the preferred mode. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- Changes from v1: switched clk-mode property from string type to tristated one as suggested by Rob. .../devicetree/bindings/mfd/rohm,bd71828-pmic.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml index 3a6a1a26e2b3..8380166d176c 100644 --- a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml @@ -44,6 +44,12 @@ properties: clock-output-names: const: bd71828-32k-out + rohm,clkout-open-drain: + description: clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos". + $ref: "/schemas/types.yaml#/definitions/uint32" + minimum: 0 + maximum: 1 + rohm,charger-sense-resistor-ohms: minimum: 10000000 maximum: 50000000