From patchwork Fri Nov 13 11:34: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: 11903147 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 32695921 for ; Fri, 13 Nov 2020 12:04:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 043822224F for ; Fri, 13 Nov 2020 12:04:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ExxYNYn4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbgKMMEm (ORCPT ); Fri, 13 Nov 2020 07:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbgKMLf5 (ORCPT ); Fri, 13 Nov 2020 06:35:57 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71DFC0613D1; Fri, 13 Nov 2020 03:35:25 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id e21so6854478pgr.11; Fri, 13 Nov 2020 03:35:25 -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:mime-version :content-transfer-encoding; bh=6y9vmXX7zOZnbMhZlEt5kl1rihnQFMA8OGUNF1w170o=; b=ExxYNYn4bS8T3lfeAF+IPQa5cW7AVatx2zBE3dl+uz9uTy75DhXEPavEj0Y7B6z1HU bKUqVCWjueZg08Rlz+LSfNTgL5i94RRx+iQX0Pg5Yh2bzBTKElhhpMoD+eIpDcbK9CDb w9QWe6TA7aGA3mKyJ0tuYg0NbF1OlSB4e4hAaqm8NRs84Wm4fiz+eSgMGuox9NLWF4SI sIKuDwr/Kr+CM42Z6RNwyczuvnRU0JB6UQcF3VJu07MRq9NBt66Ehe1Q9HTH1VZN15kL 1FF326ytVKTb84+KpVHlsXGHa+B71bXwkSDgMz9XE9DZB+/8dGYjJMQj72Fj6+GPI3Wu PftA== 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:mime-version :content-transfer-encoding; bh=6y9vmXX7zOZnbMhZlEt5kl1rihnQFMA8OGUNF1w170o=; b=EfZgROrGAH4CZtJhngari/6YmW0O+GkHcd0xRngQ07H7nE2zSFN2qs5e8x1tj0XlWI UNkibuBa7LFps9AUlIaG6xdcfFHkKMlj94KhmQ8YkCCHxw00reY6eg/y1GAs/HQGEDxf Gr9zasfJBxd7+NsCLwUMzKaKRP1DHfkqAbjlT62S8DHiwoA51LOm35hakAGQEWt7sGbG ot+1rYU7YQizdhg+/DDCkbQm4j7e+63Mpmpvu6lvXb0ya8f14efhhBcenoFxjFf/yq2T sU/sLjKo69cfwrC5Qjr1xmLkiKn951wkZBwvms7oea/Jb91U1C9RVproxHA8M+NiJ6dg XNMg== X-Gm-Message-State: AOAM530KFjR1u/SWHlYS8vXae4676UeJ8jkEFEdDhSKR4zqGI8Sc/SUx MP09aX37oMghh3L7QSCwfWE= X-Google-Smtp-Source: ABdhPJzilGohfkU3iBVtu8k8vDDQosc/HCCcporPbIbzkusXUEjyDz2S+bdyNTn04yyguWa4kRdlYA== X-Received: by 2002:a17:90a:448a:: with SMTP id t10mr2478521pjg.38.1605267325436; Fri, 13 Nov 2020 03:35:25 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id q12sm9900987pfc.84.2020.11.13.03.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 03:35:24 -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 1/3] input: sc27xx: Add support for sc2730 and sc2721 Date: Fri, 13 Nov 2020 19:34:49 +0800 Message-Id: <20201113113451.52355-1-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.25.1 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 Fri Nov 13 11:34:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 11903151 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3216F14C0 for ; Fri, 13 Nov 2020 12:05:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 160792224C for ; Fri, 13 Nov 2020 12:05:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lQPPE2S8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbgKMMEx (ORCPT ); Fri, 13 Nov 2020 07:04:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbgKMLf5 (ORCPT ); Fri, 13 Nov 2020 06:35:57 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4727DC061A04; Fri, 13 Nov 2020 03:35:29 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id q10so7425135pfn.0; Fri, 13 Nov 2020 03:35:29 -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=cwblAwrthFP5iML4nReKbhHlCULpAolx+4p+cyi0LBY=; b=lQPPE2S8KfvQzoJ8PWBkVO+bHS1tTS6japw8QhtSmNyBHBrX1l8fZNWJH2gBLWBPHW SneiGkvF0dfzFdj/kHqeHHwkFYn36KCA2YK1MsEW7NzSfcYHeFXVK4FQos9vyu2Mr3AR C9FlBu3tBkHVtHQKNW9DhW0ahav/ygiEJ3u9K5AqS841JjedsyJaJHg8CQoWABW79Q+m +fuv0XpThogS5kpqP05BsuA9i7kJrb8TaH/PY1YifzTTvSDyBcSw+uxHaGQnwxlagy/Q 8Jg4qJN5MK96C6x2eGHSurftcLwIMqafl6/vdcCIhHPVJOP+VaypLfSFJNClZPGxkZZ2 Xl6g== 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=cwblAwrthFP5iML4nReKbhHlCULpAolx+4p+cyi0LBY=; b=nMJMMvGjJO8Z1ef8zB+aczKJBM6/t2X6uxZhKupU9XOybNlc3DvPeoCXR9annGb3rW 9HySnKVC+hm7ssP1o9QZy39kj2jVmFgX7fwGbHFrU4TZft7bHa60LTvPfzLgHQeDxu1L GY1V5CXHuU3S55CPL8FA+ldkJ1jWVy4T8f3pNhaHEbEklANEXOxSHKvhhkN5Wzeos+tX hAyGyc2x7k4AmHYmssw00Ri3R3EEMI3kkr9DJvyvrXmkdEq1E2QS4abIbVbYxONYahy4 /NRZR7AY1Csr5A6TCGYMpHLktj/sAuUlGnC+/4Xw5C5y6kwIoeM86fL/UeDBwVJMj+A6 njtg== X-Gm-Message-State: AOAM532KaTLxFaiEqqqTj9BvzyO8DBRrXUlVpZIaKcPloe/EevHyxrrW RO7LoHOJn5WHEBvBjtovrgZiOwMQocWmuA== X-Google-Smtp-Source: ABdhPJy7NZ9Xvw13+N4Ka68ovy/Qu3Gz/fesV3cynxVEgdrKookoNhRd7NauefMpJzNL56AL+IIbRQ== X-Received: by 2002:a63:34c:: with SMTP id 73mr1720930pgd.172.1605267328838; Fri, 13 Nov 2020 03:35:28 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id q12sm9900987pfc.84.2020.11.13.03.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 03:35:28 -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 2/3] dt-bindings: input: Convert sc27xx-vibra.txt to json-schema Date: Fri, 13 Nov 2020 19:34:50 +0800 Message-Id: <20201113113451.52355-2-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113113451.52355-1-zhang.lyra@gmail.com> References: <20201113113451.52355-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 --- .../bindings/input/sprd,sc27xx-vibra.txt | 23 ---------- .../bindings/input/sprd,sc27xx-vibrator.yaml | 44 +++++++++++++++++++ 2 files changed, 44 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..abdf459d9141 --- /dev/null +++ b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibrator.yaml @@ -0,0 +1,44 @@ +# 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 + +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 Fri Nov 13 11:34:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 11903149 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C97F514C0 for ; Fri, 13 Nov 2020 12:04:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD04822250 for ; Fri, 13 Nov 2020 12:04:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LU7DmusL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbgKMMEl (ORCPT ); Fri, 13 Nov 2020 07:04:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726794AbgKMLf5 (ORCPT ); Fri, 13 Nov 2020 06:35:57 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFFAC061A47; Fri, 13 Nov 2020 03:35:33 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id r186so6900995pgr.0; Fri, 13 Nov 2020 03:35:33 -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=o7NqOob2SuaSO2soq39g6gS3UOakZc15B2k6LvdQYo4=; b=LU7DmusLCBEXzffTzVZwGfbz68qGkourJBpHflRtpLpaTPL1LVjxRXAELwN5NLSx9q e1wPMrebGTxid8xWK5kk/6vhauXWwn/nBQQNdiIWxZeaSgWVOyJPd5dhclfTOqpoKh+t ZSA0M0dkkfdYtdq28jcBnBBLerGg/O7bESZEPUzCQSzZ9UGDChrCQubvZl1HH30+Nf5k 6X34RR9tnNvzc3FAQgztPwb1HCHyRH/K/NGsHk5SFXrlO0Hi1MZPsw261QZiaAdvSsQd kof+MyaFDJ7WPg9+7cfxMGxtiI0bZ1+iMxi4DFM/Z7v+YBk2cjmv9Jbf2Q/d6sMEoCuX ZiiQ== 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=o7NqOob2SuaSO2soq39g6gS3UOakZc15B2k6LvdQYo4=; b=c+eEBk9DMP79KZt/pdzZN6TFs9P7yo1hP3fZetXoh831PZO/2I6EuZX352mRB05eed 1D2U4sZOSsOfFUQUtUc9BjaUq/GcleJ4hxa7STlcWq9JGQozU5+BfKghJ1yZ1kZiVdS6 GMHLcvdxuATPvYOC49XIAhANUcSKP1kKrIJrVYFYHh/xoX5S3PgQM2r2qIjTYQ6Sx1H/ AmQjtadiY1hpGxY5bjFAes/2RvKq76VaVbDTtdy4reltoy16/buc7E9jbvdQGqbCx/5l TGRMgZNQHJtjtkyccFri23sVI9aePIviW4jknsuazqoixmkTE5pgMhXGC2PjgHrRK2FW xocQ== X-Gm-Message-State: AOAM5323Y3K+NyyCK9z9qH6SxP/Di/WrvGXgbv4ICGm8PM4u44KPt8Du H9+axeXLf5kkl/85BG7rypU= X-Google-Smtp-Source: ABdhPJyQtmbkHam/d3XIwzXLPa0QF5WRO0ziS6GpXMdrdR38XUXD1y9WSYtJeAh6ZoGZRzRe0qHrWQ== X-Received: by 2002:a17:90b:512:: with SMTP id r18mr2574045pjz.149.1605267332853; Fri, 13 Nov 2020 03:35:32 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id q12sm9900987pfc.84.2020.11.13.03.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 03:35:32 -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 3/3] dt-bindings: input: Add compatible string for SC2721 and SC2730 Date: Fri, 13 Nov 2020 19:34:51 +0800 Message-Id: <20201113113451.52355-3-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113113451.52355-1-zhang.lyra@gmail.com> References: <20201113113451.52355-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 --- .../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 abdf459d9141..a94c4b790487 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: