Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1402481pxu; Sat, 12 Dec 2020 11:34:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIxwuE0aeLd4v8K0aK00a3aUgGQnNetd9j1HSaHW03B5SZvqcosFxNBs7sVnrfZGkhILQH X-Received: by 2002:a50:8741:: with SMTP id 1mr18078610edv.349.1607801666208; Sat, 12 Dec 2020 11:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607801666; cv=none; d=google.com; s=arc-20160816; b=Bu/hPc9XvEM16qkK4v1M2/CYtSO++7KIxosWZemE87BmKO6pVILpb37u7EPqI61qHP I5wDF8qmAz1k862AZSM8D5e7jKxgjd/eZ1O2BlMU2cw/OxLbpY4Th6+jDuMdVbj8JEMB 4kSuxqrwFGiVWHC0/mjow4DKFt0UycgW7mVIhCuT+4uPV5YjzXAqxzco6n56sgimug2g tvpMlJMbY79wBwZrddFNbjqFipODbpunGjrA3jhDaLAv6Ty8wr7Xux9cFiRpvuymFRvu /YELVlbiQV0OZdGQOd1kn2Qyz5RrneiSRMwZ6LcwJSv+S6XwdVtRxQpuJKn2bdepK2b8 tkHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=e6ooUHIBWtAm3UIq07HSxYs4FQkH1MMECJPgWu1xGQ8=; b=VlDK/c6GjheK8i+qXkh0DMQrkOQBo0ps73NG2Sw7L/6Cri1ZxrUm5GyXKSlvh2J2rA qESXgLN0FN1kx8dhhXaey4tgAbLzoQnGEsiqsjJP4Sga82NHd5aUX6DKSB+VCGLOhvhY 5ExthpcahDdWFCJb9tZjhYbUxB5svTL2TXDg2sJhokgWAwKQ0pjZx2AsV3hOAIx9bSkz NCJPANbt8tpJmTbkzAVG9ZCH8EI3R2NOddk+TZYrWnkFMjsKrIdxczrIkY7Lys6GtNH3 QvDEzaCDiofHIfhXH28Sh1QcNB5D2p/2vE0HMnk7J8DtAWhxWsOUcnSK3c4L1UJghiLj sdWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eXheUVTg; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si7225546edt.276.2020.12.12.11.34.02; Sat, 12 Dec 2020 11:34:26 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=eXheUVTg; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732389AbgLKQev (ORCPT + 99 others); Fri, 11 Dec 2020 11:34:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbgLKQel (ORCPT ); Fri, 11 Dec 2020 11:34:41 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D37BC061794; Fri, 11 Dec 2020 08:34:01 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id r4so4835281pls.11; Fri, 11 Dec 2020 08:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e6ooUHIBWtAm3UIq07HSxYs4FQkH1MMECJPgWu1xGQ8=; b=eXheUVTgbGUGETs9OXCgV6XxrcCtnY+eEa2Giq+CK720JdGxLctzEE11Vr9xKXHWO0 qO8x3Ek3wgC7LQdPTZhTS7EXgVjVXyfSpGjUTsrn3cCo5tD9KcEHlBzE67U45lE49wrn TiK01Fa2aOyCBwW4e/T6RPh2DW1P7qZJByUI0+c5zYrmmcbEFK9gSiXSrk60F8+htRZ5 65ikaBlANwvVCpNI0kfzF7cZ9q5fvAuP5gvaxRmbvEb9RAgdeIqbnMZi+17+oJA8Z3Ds +vkNJ1OGK/ra4nbIhEIjUCCqk77Czz+6yMKaQb/22oWD2K+d5qqFxuQ8IaYGe6X45qcM l+GA== 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; bh=e6ooUHIBWtAm3UIq07HSxYs4FQkH1MMECJPgWu1xGQ8=; b=ODCrm7UbuYtt6ZiFC68VxR65hvsw8bM0uQJlfNIpY5kTtT7YPHlMBVtMqcq+yC9e/4 AtEsXPXKBgpuvHyXFVG24wQGEYKhrJby2QmbParQk4I+q3RSjkJ50M+yKxg2DSIFd2Qu cKnzS86bgZSGgLAZcxJkxJzKeAaF8/aRM41mYtQCm2f6Eojb+IFxn6IWvoFpnLO2Dw5k XSw5EBtjtVXuCd5/rDOf4zdAW5bpplmIe6dbd7IJfikza8vR3x8t52p6eViASrBHQl7I 6Zm8hnEJdc17q3QEkep97q+RuQlhbgU1DoStFKtZzL3iIW3WhAeKOp3BoL8SOM2HJcJE kD+A== X-Gm-Message-State: AOAM531gsm4Wi3lzszOgQITQoeHcI1JEbhdh1DCh+NZJhg6TtPrpDXbY b+FSnQg3iQyrnuevZQH9GDg= X-Received: by 2002:a17:902:fe02:b029:db:c7fd:3c2c with SMTP id g2-20020a170902fe02b02900dbc7fd3c2cmr11740513plj.31.1607704440790; Fri, 11 Dec 2020 08:34:00 -0800 (PST) Received: from localhost.localdomain (1-171-10-206.dynamic-ip.hinet.net. [1.171.10.206]) by smtp.gmail.com with ESMTPSA id gm18sm7987947pjb.55.2020.12.11.08.33.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Dec 2020 08:34:00 -0800 (PST) From: cy_huang To: lee.jones@linaro.org, robh+dt@kernel.org Cc: cy_huang@richtek.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 3/3] mfd: rt4831: Adds DT binding document for Richtek RT4831 MFD core Date: Sat, 12 Dec 2020 00:33:44 +0800 Message-Id: <1607704424-16223-3-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607704424-16223-1-git-send-email-u0084500@gmail.com> References: <1607704424-16223-1-git-send-email-u0084500@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ChiYuan Huang Adds DT binding document for Richtek RT4831 MFD core. Signed-off-by: ChiYuan Huang --- This patch depends on "backlight: rt4831: Adds DT binding document for Richtek RT4831 backlight". since v4 - remove v3 regulator binding patch, directly merge it into mfd binding. since v3 - Move include/dt-bindings/leds/rt4831-backlight.h to patch 0002. - Add dual license tag in mfd binding document. since v2 - Add regulator-allow-bypass flag in DSVLCM. --- .../devicetree/bindings/mfd/richtek,rt4831.yaml | 108 +++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/richtek,rt4831.yaml diff --git a/Documentation/devicetree/bindings/mfd/richtek,rt4831.yaml b/Documentation/devicetree/bindings/mfd/richtek,rt4831.yaml new file mode 100644 index 00000000..9de7c4a --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/richtek,rt4831.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/richtek,rt4831.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT4831 DSV and Backlight Integrated IC + +maintainers: + - ChiYuan Huang + +description: | + RT4831 is a multifunctional device that can provide power to the LCD display + and LCD backlight. + + For Display Bias Voltage DSVP and DSVN, the output range is about 4V to 6.5V. + It's sufficient to meet the current LCD power requirement. + + DSVLCM is a boost regulator in IC internal as DSVP and DSVN input power. + Its voltage should be configured above 0.15V to 0.2V gap larger than the + voltage needed for DSVP and DSVN. Too much voltage gap could improve the + voltage drop from the heavy loading scenario. But it also make the power + efficiency worse. It's a trade-off. + + For the LCD backlight, it can provide four channel WLED driving capability. + Each channel driving current is up to 30mA + + Datasheet is available at + https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf + +properties: + compatible: + const: richtek,rt4831 + + reg: + description: I2C device address. + maxItems: 1 + + enable-gpios: + description: | + GPIO to enable/disable the chip. It is optional. + Some usage directly tied this pin to follow VIO 1.8V power on sequence. + maxItems: 1 + + regulators: + type: object + + patternProperties: + "^DSV(LCM|P|N)$": + type: object + $ref: /schemas/regulator/regulator.yaml# + + required: + - DSVLCM + - DSVP + - DSVN + + additionalProperties: false + + backlight: + $ref: ../leds/backlight/richtek,rt4831-backlight.yaml + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rt4831@11 { + compatible = "richtek,rt4831"; + reg = <0x11>; + + regulators { + DSVLCM { + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <7150000>; + regulator-allow-bypass; + }; + DSVP { + regulator-name = "rt4831-dsvp"; + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <6500000>; + regulator-boot-on; + }; + DSVN { + regulator-name = "rt4831-dsvn"; + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <6500000>; + regulator-boot-on; + }; + }; + + backlight { + compatible = "richtek,rt4831-backlight"; + default-brightness = <1024>; + max-brightness = <2048>; + richtek,bled-ovp-sel = /bits/ 8 ; + richtek,channel-use = /bits/ 8 ; + }; + }; + }; -- 2.7.4