Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp773955pxv; Fri, 9 Jul 2021 08:41:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPtFHMRTd3VP9FVh0Cz0Kth3Tu+qwz3PvRkbshSQFgw/Wtn6x65oP3FDbJSaLXoIlIHzY6 X-Received: by 2002:a92:6b06:: with SMTP id g6mr27332277ilc.270.1625845299200; Fri, 09 Jul 2021 08:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625845299; cv=none; d=google.com; s=arc-20160816; b=GwGLF0V2WZCDUSKZ/F7dbHMRTMc7dbPzqGQfdEdnOaBi8emP7DB1zlGJPynB1MqBwm aw8TvmCTFjqXMd0F6xH0adupzkah4ekD69mD8sRBHq6k7W2i2U3LyuEysRhRbWS49ShN uApcdkZmk6mO34//Dj5eYg+R8KrLLcXYOxznt022ZAohh5kZWESwJMtwnO5i4BpFuvVI yppRAAVgAvAAlheRSv4JY+V/9HHqjVcJu9HpC/5pNnXtr8rjOR2Dl8yYdNr7+CMQkICV NbYf+/FqQkMjeTkYuk8lpNiIm7gzlaqsdX6ThIh/XwPsABJkhsz4+ebNAUbrrebDw9sv X0MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=K6Ra4499Mv5TDI0Yujb+kPloT8dTaxT+C+3Nfx0tGRU=; b=yHsdYlrrFhDsm9zdLBrvd+6MNO8CBU3akvZZ/Fz6PI4GVlsFabXt4Dp7zm4vc18CdS S2JAUoms8WvNzJB4V11qtqiEdkSNPhAIUGu1CXwsUpTKV3fYHukHLPSSnq6sfZZbkX9I fHdWe6RbAuylxakruyqpAztCbAioXkNkTrteWPwmSISxOKeqjw4UJgLfo8F/JSqhWV4m DYC1KLzppJkiOHVzMYsdNA7ZUf+RSKHK+NEgpQjQvGq27qz8AyPv57zPTYEJ4zhHjSqc ce9B+A36TDVl1ys6VL68pztvGljX3Z4skQMEEqkhAhITby//Qs57CQQjok2qw+FYU6/1 LNEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tZ+kgNVX; 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 n6si7049542ilj.66.2021.07.09.08.41.27; Fri, 09 Jul 2021 08:41:39 -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=@gmail.com header.s=20161025 header.b=tZ+kgNVX; 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 S232416AbhGIPng (ORCPT + 99 others); Fri, 9 Jul 2021 11:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbhGIPng (ORCPT ); Fri, 9 Jul 2021 11:43:36 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD165C0613DD; Fri, 9 Jul 2021 08:40:52 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 37so10373449pgq.0; Fri, 09 Jul 2021 08:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=K6Ra4499Mv5TDI0Yujb+kPloT8dTaxT+C+3Nfx0tGRU=; b=tZ+kgNVX7F9xWyl4VsETCatrus1w1gcL488iCXEx0a2VYpTgBFvQJHW3vahlwYPkvT KFIqrH2ngtXXR/+FbjU8iKEtbuhcry1OxKRlsAhdJvc9FL5mz6HJKw7yzvz/8JrCJw26 1h+0DONBygf+cK4VC27HER4ItJyNgupGwdd4RkRZMTJ5BPh8YFlZRh21knqjKrUgbu9p wzrCCiCJGxSU8IoB5UX8BrOcZFlAK5xT3FUqBj9E6nZ+BIa5KkSv1ftABVdIuSOnBCi4 3ZeqlbeZS8/bN/h1vWoQ3BnIj6nnyyry8SDzA3ZIpRTZIM9XzJZeFdXsAmoKSghuT3Jf VvuQ== 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; bh=K6Ra4499Mv5TDI0Yujb+kPloT8dTaxT+C+3Nfx0tGRU=; b=d21Hmrr6QikyoXSN2BsaaYMiyD5Q8McUQs963OiZxRvIagKDpI5zKEMQAtgW6s4XsV URdC8tIu3xyzJpdP5j5XEuYILKjp8miv+hyKfVe50ROmddAmUafCKBE3uarptzbGbD4q NvobQDgW4ZDMJpFptCNHE5ZgspSHlZFjqfC1V8CNh9Ky9UTgdLeg+Tl/lokIQ+XPXtc2 PQtBPgDDK7uYIZ3oJtOWBk4nZDzmpHRgbuNFimy33jlNCubY1/MwzKtcGPHLW65tPpf1 TahOJu2/ZxO11snhEaThpBT9TKO+DGsGT+81aiBfMqo6fa7dnlbP9yfEs8m+FdX5ceNC 81IA== X-Gm-Message-State: AOAM5321SbdAiserO9nqsA2aVl/Egcf3F1XE7HzOuJRYt1u1JU/ModWr Auy6uf3+O3nL96u6IhLRV6w= X-Received: by 2002:a63:3383:: with SMTP id z125mr38677501pgz.26.1625845252227; Fri, 09 Jul 2021 08:40:52 -0700 (PDT) Received: from localhost.localdomain (1-171-0-5.dynamic-ip.hinet.net. [1.171.0.5]) by smtp.gmail.com with ESMTPSA id g11sm8314703pgj.3.2021.07.09.08.40.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jul 2021 08:40:50 -0700 (PDT) From: cy_huang To: broonie@kernel.org, robh+dt@kernel.org Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org, cy_huang@richtek.com, devicetree@vger.kernel.org Subject: [PATCH 1/2] regulator: rtq6752: Add binding document for Richtek RTQ6752 Date: Fri, 9 Jul 2021 23:40:35 +0800 Message-Id: <1625845236-30285-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ChiYuan Huang Add binding document for Richtek RTQ6752. Signed-off-by: ChiYuan Huang --- .../regulator/richtek,rtq6752-regulator.yaml | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rtq6752-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/richtek,rtq6752-regulator.yaml b/Documentation/devicetree/bindings/regulator/richtek,rtq6752-regulator.yaml new file mode 100644 index 00000000..641840e --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/richtek,rtq6752-regulator.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/richtek,rtq6752-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RTQ6752 TFT LCD Voltage Regulator + +maintainers: + - ChiYuan Huang + +description: | + The RTQ6752 is an I2C interface pgorammable power management IC. It includes + two synchronous boost converter for PAVDD, and one synchronous NAVDD + buck-boost. The device is suitable for automotive TFT-LCD panel. + +properties: + compatible: + enum: + - richtek,rtq6752 + + reg: + maxItems: 1 + + enable-gpios: + description: | + A connection of the chip 'enable' gpio line. If not provided, treat it as + external pull up. + maxItems: 1 + + regulators: + type: object + $ref: regulator.yaml# + + patternProperties: + "^(p|n)avdd$": + type: object + $ref: regulator.yaml# + description: | + regulator description for pavdd and navdd. + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtq6752@6b { + compatible = "richtek,rtq6752"; + status = "okay"; + reg = <0x6b>; + enable-gpios = <&gpio26 2 0>; + + regulators { + pavdd { + regulator-name = "rtq6752-pavdd"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <7300000>; + regulator-boot-on; + }; + navdd { + regulator-name = "rtq6752-navdd"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <7300000>; + regulator-boot-on; + }; + }; + }; + }; -- 2.7.4