Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp233313rwb; Wed, 18 Jan 2023 16:58:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvRQ+L0yPQNPAEIlPbUx11kmZ7eb3GlWAr5ZcVBdb2KT5rxtlCmaWxnuWVWKD4s+POctbva X-Received: by 2002:a05:6a20:b70f:b0:9d:efbf:48bf with SMTP id fg15-20020a056a20b70f00b0009defbf48bfmr8663199pzb.3.1674089916843; Wed, 18 Jan 2023 16:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674089916; cv=none; d=google.com; s=arc-20160816; b=los3UrA93fVNer3FsjLvxLbbbNzOWpHhvRdCMx3GPJ1NT4goDQjg4gRKm/FkI1THQW G2mhf2poHk+QqyXQErklERTYnpfPIvNzSTYje/lBWBA4H6sL8wSDSVED/sAgmoG0kYxs 07qYNIXu2za5xak5Lr2Yf0JCJjMFUN45IoDS7Ncpw0ywpF3wXSOeC4+qcEEPYFKR6zHi 2YpLEz25DsvLVJp6iu/7fnDifkUcD/NSRgVyec+Xq5hQgZZ7neVdoI6Epuat8lReEZO1 DHQL2uJiZ5k0mK+S8CZkxKq+5ToM8ldLQrn3Yn/CF9cirlUszyieV1q5ONJCyhbAGm4i ahsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sxR9skmG1No3f0woqL12RnMe/+Q+0vtmbVnHscKdsl8=; b=PwkOJO43OgJuPKe7fs5a8lVUWh/l05onm/IUrRGrBJi+LIuSDBiDeHoga5m+oywDYc RXhr8UUaLLgn3xJrB3QI23BKi0F1yr3ocIGeJpHF57Yy2IAYaEXZrXpSh8JCnBE6JrRi snaHlwDFTOaHTJ+I8A6HraBPSdx/4Rc/vqYRY0VuIXZb2sc2e0sIIobs8EcAuTaitHoJ qdGENfsmyB2CVF/hQAtOkQES8NG1AGrYJ+o9sbDTPHvtgqJ3IzlYBaYvpVV06XHg0E4N d8uiMaiMm/BjpkUs6nmY29LX+7JTKHINf0bdeCwtmyp6uXJ35lcDwI6e8EP4yZb26qLf SP7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a65590f000000b00473c36e3b75si17884589pgu.608.2023.01.18.16.58.30; Wed, 18 Jan 2023 16:58:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbjARXxO (ORCPT + 44 others); Wed, 18 Jan 2023 18:53:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbjARXww (ORCPT ); Wed, 18 Jan 2023 18:52:52 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52A7C4AA7E; Wed, 18 Jan 2023 15:52:07 -0800 (PST) Received: from fedori.lan (c3e47541.dsl.pool.telekom.hu [::ffff:195.228.117.65]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000068C0C.0000000063C884ED.0028DB17; Thu, 19 Jan 2023 00:46:53 +0100 From: Gergo Koteles To: Dmitry Torokhov , Jonathan Corbet , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly , Gergo Koteles Subject: [PATCH 1/3] Input: gpio-keys - add support for linux,input-value dts property Date: Thu, 19 Jan 2023 00:46:36 +0100 Message-Id: <20230118234638.189098-2-soyer@irl.hu> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118234638.189098-1-soyer@irl.hu> References: <20230118234638.189098-1-soyer@irl.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allows setting the value of EV_ABS events from dts. This property is included in the gpio-keys.yaml scheme, but was only implemented for gpio-keys-polled. Signed-off-by: Gergo Koteles --- drivers/input/keyboard/gpio_keys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 5496482a38c1..c42f86ad0766 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -770,6 +770,9 @@ gpio_keys_get_devtree_pdata(struct device *dev) &button->type)) button->type = EV_KEY; + fwnode_property_read_u32(child, "linux,input-value", + (u32 *)&button->value); + button->wakeup = fwnode_property_read_bool(child, "wakeup-source") || /* legacy name */ -- 2.39.0