From patchwork Tue Nov 17 03:49:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 11911553 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=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 72F96C2D0E4 for ; Tue, 17 Nov 2020 03:50:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F3722465B for ; Tue, 17 Nov 2020 03:50:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VnDzkq9E" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727057AbgKQDuH (ORCPT ); Mon, 16 Nov 2020 22:50:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgKQDuH (ORCPT ); Mon, 16 Nov 2020 22:50:07 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A779C0613CF; Mon, 16 Nov 2020 19:50:07 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id d17so7983125plr.5; Mon, 16 Nov 2020 19:50:07 -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 :mime-version:content-transfer-encoding; bh=6y9vmXX7zOZnbMhZlEt5kl1rihnQFMA8OGUNF1w170o=; b=VnDzkq9EPhMii4WLayehvnPlSOC8mHZsSlMDWf6XsiVUHW2hc1QzLP/Vd2YJLqObF/ iCxDa/tSm/XDBgve3COpprK5X3PRLGZ52FdevkOMFUHmsisskhtaIFxib+llPKSjgiuL xiiTaM6SThUQ9pGI3vp1xm1CK7RO5bmbKe3kTAgvJ/VTnvM19R7lXDdYtmrc61mQ/Lqi SY4Dd4UCPKqYMFOfiqcQdFhohoS5uhmSpiT/oem3i083Rej/mKt4pwVwbEvrag5x4eZ9 yFREj1pku/lTA7aJdlrLyF5evzi2RC6G9WlPIayEkLYxKVjoEV8Pabd3plGMzX1J/r9X c5vw== 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:mime-version:content-transfer-encoding; bh=6y9vmXX7zOZnbMhZlEt5kl1rihnQFMA8OGUNF1w170o=; b=jAW1aluxzSxo/603tRPQfL0uxjV8cc9ggWqX5/LIwGdkq1gaVsDNDwZoZN7ikYCCy6 yAqRhSs05joSN7UnVm8p8dnzOMGFxGob4UtOUte+Ct+37iJF4laglvSsVB7UsILRIQe/ Ttwhx9j6a4yF2K2U+7aab+UZDStkMpQrQqJq/SKfsITFUCZcxLwoFy1IyvjcUzKynBWu rlActXnn6LhD0dj5bk3Wgl18b/C/7c7+tUYypL6BqJFJaciPi/fk8VItKwuSh9CXtjeb nw/aDiz+fxVthNk9gyR64+8/sZx1eKLFX0k/ON5lbq5aEiqzCBbC2I/Vz3YyuIqsQqY9 MnAQ== X-Gm-Message-State: AOAM532jyCrJiLDceGINlTWKLRintxBwzgzpys+WHZ3aRVcxs0NsWxhb qWiMVuCXGdcU3Lh4CCjkS94= X-Google-Smtp-Source: ABdhPJyo5PL7S0l1hTPflZQQ+rKlEhG9MYA5Wx38/5zVI8c5wrrHGYESHmt1b3kORXgUCefs2uASpg== X-Received: by 2002:a17:902:bd4c:b029:d8:fd6a:6ca2 with SMTP id b12-20020a170902bd4cb02900d8fd6a6ca2mr964072plx.53.1605585007174; Mon, 16 Nov 2020 19:50:07 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id u24sm19602329pfm.51.2020.11.16.19.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 19:50:06 -0800 (PST) From: Chunyan Zhang To: Dmitry Torokhov , Rob Herring Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang , Nemo Han Subject: [PATCH v2 1/3] input: sc27xx: Add support for sc2730 and sc2721 Date: Tue, 17 Nov 2020 11:49:47 +0800 Message-Id: <20201117034949.47877-2-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201117034949.47877-1-zhang.lyra@gmail.com> References: <20201117034949.47877-1-zhang.lyra@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Nemo Han Add new compatible strings and match data to support sc2730 and sc2721 which are two varieties of SC27XX family. Signed-off-by: Nemo Han Signed-off-by: Chunyan Zhang --- drivers/input/misc/sc27xx-vibra.c | 64 ++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 10 deletions(-) diff --git a/drivers/input/misc/sc27xx-vibra.c b/drivers/input/misc/sc27xx-vibra.c index 295251abbdac..b4adb826db56 100644 --- a/drivers/input/misc/sc27xx-vibra.c +++ b/drivers/input/misc/sc27xx-vibra.c @@ -5,43 +5,77 @@ #include #include +#include #include #include #include #include -#define CUR_DRV_CAL_SEL GENMASK(13, 12) -#define SLP_LDOVIBR_PD_EN BIT(9) -#define LDO_VIBR_PD BIT(8) +#define CUR_DRV_CAL_SEL GENMASK(13, 12) +#define SLP_LDOVIBR_PD_EN BIT(9) +#define LDO_VIBR_PD BIT(8) +#define SC2730_CUR_DRV_CAL_SEL 0 +#define SC2730_SLP_LDOVIBR_PD_EN BIT(14) +#define SC2730_LDO_VIBR_PD BIT(13) + +struct sc27xx_vibra_data { + u32 cur_drv_cal_sel; + u32 slp_pd_en; + u32 ldo_pd; +}; struct vibra_info { struct input_dev *input_dev; struct work_struct play_work; struct regmap *regmap; + const struct sc27xx_vibra_data *data; u32 base; u32 strength; bool enabled; }; +static const struct sc27xx_vibra_data sc2731_data = { + .cur_drv_cal_sel = CUR_DRV_CAL_SEL, + .slp_pd_en = SLP_LDOVIBR_PD_EN, + .ldo_pd = LDO_VIBR_PD, +}; + +static const struct sc27xx_vibra_data sc2730_data = { + .cur_drv_cal_sel = SC2730_CUR_DRV_CAL_SEL, + .slp_pd_en = SC2730_SLP_LDOVIBR_PD_EN, + .ldo_pd = SC2730_LDO_VIBR_PD, +}; + +static const struct sc27xx_vibra_data sc2721_data = { + .cur_drv_cal_sel = CUR_DRV_CAL_SEL, + .slp_pd_en = SLP_LDOVIBR_PD_EN, + .ldo_pd = LDO_VIBR_PD, +}; + static void sc27xx_vibra_set(struct vibra_info *info, bool on) { + const struct sc27xx_vibra_data *data = info->data; if (on) { - regmap_update_bits(info->regmap, info->base, LDO_VIBR_PD, 0); + regmap_update_bits(info->regmap, info->base, data->ldo_pd, 0); regmap_update_bits(info->regmap, info->base, - SLP_LDOVIBR_PD_EN, 0); + data->slp_pd_en, 0); info->enabled = true; } else { - regmap_update_bits(info->regmap, info->base, LDO_VIBR_PD, - LDO_VIBR_PD); + regmap_update_bits(info->regmap, info->base, data->ldo_pd, + data->ldo_pd); regmap_update_bits(info->regmap, info->base, - SLP_LDOVIBR_PD_EN, SLP_LDOVIBR_PD_EN); + data->slp_pd_en, data->slp_pd_en); info->enabled = false; } } static int sc27xx_vibra_hw_init(struct vibra_info *info) { - return regmap_update_bits(info->regmap, info->base, CUR_DRV_CAL_SEL, 0); + const struct sc27xx_vibra_data *data = info->data; + + if (!data->cur_drv_cal_sel) + return 0; + return regmap_update_bits(info->regmap, info->base, data->cur_drv_cal_sel, 0); } static void sc27xx_vibra_play_work(struct work_struct *work) @@ -78,8 +112,15 @@ static void sc27xx_vibra_close(struct input_dev *input) static int sc27xx_vibra_probe(struct platform_device *pdev) { struct vibra_info *info; + const struct sc27xx_vibra_data *data; int error; + data = of_device_get_match_data(&pdev->dev); + if (!data) { + dev_err(&pdev->dev, "no matching driver data found\n"); + return -EINVAL; + } + info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); if (!info) return -ENOMEM; @@ -105,6 +146,7 @@ static int sc27xx_vibra_probe(struct platform_device *pdev) info->input_dev->name = "sc27xx:vibrator"; info->input_dev->id.version = 0; info->input_dev->close = sc27xx_vibra_close; + info->data = data; input_set_drvdata(info->input_dev, info); input_set_capability(info->input_dev, EV_FF, FF_RUMBLE); @@ -134,7 +176,9 @@ static int sc27xx_vibra_probe(struct platform_device *pdev) } static const struct of_device_id sc27xx_vibra_of_match[] = { - { .compatible = "sprd,sc2731-vibrator", }, + { .compatible = "sprd,sc2721-vibrator", .data = &sc2721_data }, + { .compatible = "sprd,sc2730-vibrator", .data = &sc2730_data }, + { .compatible = "sprd,sc2731-vibrator", .data = &sc2731_data }, {} }; MODULE_DEVICE_TABLE(of, sc27xx_vibra_of_match); From patchwork Tue Nov 17 03:49:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 11911555 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=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 F113FC6379D for ; Tue, 17 Nov 2020 03:50:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C117A246B0 for ; Tue, 17 Nov 2020 03:50:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="vIFevC2X" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727196AbgKQDuL (ORCPT ); Mon, 16 Nov 2020 22:50:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgKQDuL (ORCPT ); Mon, 16 Nov 2020 22:50:11 -0500 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6745BC0613CF; Mon, 16 Nov 2020 19:50:11 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id b3so9477338pls.11; Mon, 16 Nov 2020 19:50:11 -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 :mime-version:content-transfer-encoding; bh=QXJeoQa4s7g1MwyfhCZli50VoayCAnEhKM+qcbalg9Y=; b=vIFevC2XO06qkIlTI4jqdKDJMDA+zD5XAc8YosFdAXrIPbe5/Uy2spKHVWINk/cGWa BtnV3fP1UeedDTStrTJTKVfzcjeS8smbIqDD6qZQmx3haTjwq8xgAfRYuZ1J9Lrkouuf 63KGKVo8Xo2lKNjHpN5zvxgs8R2tP0aLuCa/506KlvJPF7LL27Lo5NPNzLcy5ytn58gz h4sxPYq3q5xa5Qffh7MIstKjo0YleKw5TlVnnR3QvNnBEmGZFgxgn+tfOU0zOPhqkmbK 4hSfiin0OURCgJsn3EVf2ihC+oKz1HEm5ouGYe0Vs/rcbB5A+zPhA7rUOEUzQ8kTb4sO nzhg== 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:mime-version:content-transfer-encoding; bh=QXJeoQa4s7g1MwyfhCZli50VoayCAnEhKM+qcbalg9Y=; b=C3aI8/BY2dFFgozE/xZX5VCLS6Po2DLdfUiAMACW8vV7F5bRFgAxe4McXVaow7nIOR MTxrC5fMx845Yr7WyvJC/xKcLLV3Sl1uq2h5lXo6Xyisf/a8KAOGNSuP04G2bWkMtZNE 6kIz2cE6iYRqtwrBWI9RXKOKE0bojS8SnARvf/SXBBbTAGJuJOnqJS58Ju1hqp435I+s E1EV5wQ09rjqzLk8SKGHdNxdYcN0pj9XLgr0K+9+mqceIZZRnDv3dPSqxhFjVH7vuxTQ 0ZDjrG5eLYSpunLT4VJ+lhSeh2bl7QRYMXzOrdC/GPIgvLs5+92lsu/vxTFZiYoZa9/1 TWFw== X-Gm-Message-State: AOAM532YuIPoANHv2a0F5DIUeo10s9OsDwlkRg23bbdU4YlaDUrAR3p0 p43elqvpDFcMJ9XyTCDw2Qg= X-Google-Smtp-Source: ABdhPJywn79/YJbJTwkzO5o4Cxm1e/CRrHtpplCWgXL4IRq4V8k6GGM6M359Ogoe/jr0IbyDDybRTQ== X-Received: by 2002:a17:902:8685:b029:d7:bb:aa2 with SMTP id g5-20020a1709028685b02900d700bb0aa2mr15479119plo.13.1605585011006; Mon, 16 Nov 2020 19:50:11 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id u24sm19602329pfm.51.2020.11.16.19.50.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 19:50:10 -0800 (PST) From: Chunyan Zhang To: Dmitry Torokhov , Rob Herring Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang , Nemo Han Subject: [PATCH v2 2/3] dt-bindings: input: Convert sc27xx-vibra.txt to json-schema Date: Tue, 17 Nov 2020 11:49:48 +0800 Message-Id: <20201117034949.47877-3-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201117034949.47877-1-zhang.lyra@gmail.com> References: <20201117034949.47877-1-zhang.lyra@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Chunyan Zhang Convert the sprd sc27xx vibrator binding to DT schema using json-schema. Signed-off-by: Chunyan Zhang Reviewed-by: Rob Herring --- .../bindings/input/sprd,sc27xx-vibra.txt | 23 ---------- .../bindings/input/sprd,sc27xx-vibrator.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt create mode 100644 Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml diff --git a/Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt deleted file mode 100644 index f2ec0d4f2dff..000000000000 --- a/Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt +++ /dev/null @@ -1,23 +0,0 @@ -Spreadtrum SC27xx PMIC Vibrator - -Required properties: -- compatible: should be "sprd,sc2731-vibrator". -- reg: address of vibrator control register. - -Example : - - sc2731_pmic: pmic@0 { - compatible = "sprd,sc2731"; - reg = <0>; - spi-max-frequency = <26000000>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <2>; - #address-cells = <1>; - #size-cells = <0>; - - vibrator@eb4 { - compatible = "sprd,sc2731-vibrator"; - reg = <0xeb4>; - }; - }; diff --git a/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml new file mode 100644 index 000000000000..b8a3f23ee3dd --- /dev/null +++ b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2020 Unisoc Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spreadtrum SC27xx PMIC Vibrator Device Tree Bindings + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +properties: + compatible: + enum: + - sprd,sc2731-vibrator + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + sc2731_pmic: pmic@0 { + compatible = "sprd,sc2731"; + reg = <0 0>; + spi-max-frequency = <26000000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + vibrator@eb4 { + compatible = "sprd,sc2731-vibrator"; + reg = <0xeb4>; + }; + }; From patchwork Tue Nov 17 03:49:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 11911557 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=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 972B1C64E69 for ; Tue, 17 Nov 2020 03:50:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C2B3246BE for ; Tue, 17 Nov 2020 03:50:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aeuBm54M" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727342AbgKQDuP (ORCPT ); Mon, 16 Nov 2020 22:50:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgKQDuP (ORCPT ); Mon, 16 Nov 2020 22:50:15 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DFAFC0613CF; Mon, 16 Nov 2020 19:50:15 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id k7so9516986plk.3; Mon, 16 Nov 2020 19:50:15 -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 :mime-version:content-transfer-encoding; bh=O/kWm3Dkd2STDm+LsQ3zyZK4EutUpyL4Yg9Ub+0dX+8=; b=aeuBm54MVbfPhkalpTCqWszSKOyZjk7yqkv3eLCh6lgj4JEThoDtP9l9eeJ8J7SChr zHehSUmxC8jC0+ypeCCxqOXI1hz/7V8e4GZdregDdItv7suctn9SVkWkcwmRbAf+SLhs BPeeZVqvRj4NBT9Roj4cMhsL7vbgJpqQVN0+aLNoOO1qMsYmCa/N+JNWwYrolmdEl8h+ rjrHITJ6fFWFMF9HSCMa48m8ABdewDZA8NLtVetETfMnCdM3soHoZSexH2xeGi+Rufqj qnL53sAWlu4e6mx+XtA5JsjvzRwtY3zk0/1rQxdqwSFY4ToHhFsqOuG8NBIy/gPbYt6v m5ng== 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:mime-version:content-transfer-encoding; bh=O/kWm3Dkd2STDm+LsQ3zyZK4EutUpyL4Yg9Ub+0dX+8=; b=rKK2D2d+sRzNTiPDO7Ak2bxDbItcn3UzTe2xttkD5W0hdGuSmoJwri8ZVFtrVr0D6X ckCSMsygyo0NJSb6QTj2mNSbPCBHuPPqVx5KtMVGejUUucOVMrWGQP3uQpS08m1sqtmI 96JtT9t+DgA++V94nmq6gk90kpZjbkJ3DQATX+UWF4TDTTHOw2e07qPI7yMbQznDNsfD GqDRbpfoBkQCkNUJpjZfmFn1G6ZVlCEx9Et2gPh+f/RYmN6t65TIce51NRCNeGgQ3y1o x+j5FFC3cXu72daaLxLVMk0NYCW+bynb90d3fbJ4bVQyx1e+JJP58rZzHdv7sk5z98SO vcog== X-Gm-Message-State: AOAM531U2hznhi7dVJyGjrA8mjIZvX0SMAtRVnXuHaUbqfYliW0fmnGt KxvatGC2PxN+gTJBeRUKzup0cjzJ+AmAcA== X-Google-Smtp-Source: ABdhPJw/YgdOpMlt6WDYoWdVMVeEqFZIXgEY4KizmZcCJG24mEXKfFFKvEPqWpvj0ydwskClPxfs+w== X-Received: by 2002:a17:902:d211:b029:d7:cd5e:2857 with SMTP id t17-20020a170902d211b02900d7cd5e2857mr15475441ply.45.1605585014871; Mon, 16 Nov 2020 19:50:14 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id u24sm19602329pfm.51.2020.11.16.19.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 19:50:14 -0800 (PST) From: Chunyan Zhang To: Dmitry Torokhov , Rob Herring Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang , Nemo Han Subject: [PATCH v2 3/3] dt-bindings: input: Add compatible string for SC2721 and SC2730 Date: Tue, 17 Nov 2020 11:49:49 +0800 Message-Id: <20201117034949.47877-4-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201117034949.47877-1-zhang.lyra@gmail.com> References: <20201117034949.47877-1-zhang.lyra@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Chunyan Zhang Add new compatible strings to support sc2730 and sc2721 which are two varieties of SC27XX family. Signed-off-by: Chunyan Zhang Reviewed-by: Rob Herring --- .../devicetree/bindings/input/sprd,sc27xx-vibrator.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml index b8a3f23ee3dd..5d67fc8ebc18 100644 --- a/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml +++ b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml @@ -15,6 +15,8 @@ maintainers: properties: compatible: enum: + - sprd,sc2721-vibrator + - sprd,sc2730-vibrator - sprd,sc2731-vibrator reg: