Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3836388ybb; Mon, 6 Apr 2020 17:10:01 -0700 (PDT) X-Google-Smtp-Source: APiQypL4ESCxcNhQvYWrVRLLiq+H1HJqVNyzBLhgxF8rrf3l4wArWPH2uKbuAdgtGYhiFqKtkkEX X-Received: by 2002:a9d:6a12:: with SMTP id g18mr19203836otn.19.1586218201061; Mon, 06 Apr 2020 17:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586218201; cv=none; d=google.com; s=arc-20160816; b=x42NoySiIKbCt122eyvCGtuOAcQ8Y7df6DpJlEvQgwsCjteFYXKH5CzxeZiirqu5Nl hVYS+izUWdTquYab/I0+hfQ/f7z5TnCWuCCOjbRxuslzEdzWEHL9bZbnSkWZ/0yvheGR sA/Kw12fSnXFh9hY3A0WBaLRQ+0MysePSKkK9lOFj8Bv8k4Aqt7S+1E86PJnrgQfPIFi ZlsfCi3u6efuOEe21HOfAAi0jOfnOhWLsQzX8/b4b7DKdfAcoTP6wqPZWPDYXOhWUpHD bpiU1Z2yVWUPum1WGcqCCOriBLKO6I1aU58zDpyKz6jTmhUfo5Kj/AaDDOIzCuB059nk fW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rPK7eYZJjQ/FYUqBd8JFzy39VXDra+Lgghsy3LUQvGg=; b=F5sKdp/GrqTyj67VhKltwsg98h8C5Whw/EIRu1nVlMyUUCmHwWlll/qlR8ENh9PIiG 19vdEx+Sj3N8QQY6FM8rgxJ0KN8AKs46hO0XCNR5XB8Zl04loFU8X7C7RO1WKSnWzXtn RcX55m7RbIvVyX6aVhBYoov58cx8QXo/V8KvMEqaYtxBO2Kp53rRnc/cZUEdy/AjqDE1 2YUvnLMgAa4FJh3lnZZ/g4jo5py/eXHBO4J68m5PrUQGjanhA6DX1/3bJlUos9003KOq C98EJqt6HPRLmr1WJN7tgQFmvPRHWeicJtTakXO9rR0o9rMnV50eGRDi2/0C9Zz7arW3 PD0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j7vjnn88; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si412092oia.55.2020.04.06.17.09.48; Mon, 06 Apr 2020 17:10:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j7vjnn88; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgDGAJV (ORCPT + 99 others); Mon, 6 Apr 2020 20:09:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:33828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbgDGABN (ORCPT ); Mon, 6 Apr 2020 20:01:13 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 792E120768; Tue, 7 Apr 2020 00:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586217673; bh=lmDFwSRJINaEuNcm0imgBOH7qPo597f26/3MDbu0cUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j7vjnn88a06IFpTQDiNr8n6aYbqBBUfvK0etQFjsST2RGyB2KANGk1F3svjoENEp+ og+fNLumAtQs9y6DcEpygtWpEF8ighP3mUwYseKcjeUb4NcOMVZZ1eviYyZ16pxr5C soNYNVyqV7vzAmZU/0Xgq4sBOW0C6bw869AZGXXY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nick Reitemeyer , Dmitry Torokhov , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 11/35] Input: tm2-touchkey - add support for Coreriver TC360 variant Date: Mon, 6 Apr 2020 20:00:33 -0400 Message-Id: <20200407000058.16423-11-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200407000058.16423-1-sashal@kernel.org> References: <20200407000058.16423-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Reitemeyer [ Upstream commit da3289044833769188c0da945d2cec90af35e87e ] The Coreriver TouchCore 360 is like the midas board touchkey, but it is using a fixed regulator. Signed-off-by: Nick Reitemeyer Link: https://lore.kernel.org/r/20200121141525.3404-3-nick.reitemeyer@web.de Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/keyboard/tm2-touchkey.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c index 14b55bacdd0f1..fb078e049413f 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -75,6 +75,14 @@ static struct touchkey_variant aries_touchkey_variant = { .cmd_led_off = ARIES_TOUCHKEY_CMD_LED_OFF, }; +static const struct touchkey_variant tc360_touchkey_variant = { + .keycode_reg = 0x00, + .base_reg = 0x00, + .fixed_regulator = true, + .cmd_led_on = TM2_TOUCHKEY_CMD_LED_ON, + .cmd_led_off = TM2_TOUCHKEY_CMD_LED_OFF, +}; + static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, enum led_brightness brightness) { @@ -327,6 +335,9 @@ static const struct of_device_id tm2_touchkey_of_match[] = { }, { .compatible = "cypress,aries-touchkey", .data = &aries_touchkey_variant, + }, { + .compatible = "coreriver,tc360-touchkey", + .data = &tc360_touchkey_variant, }, { }, }; -- 2.20.1