Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7982963ioo; Fri, 3 Jun 2022 18:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpurk/nwNfoUF1L2eQ5vZ3FhSaCerZ03JzpLLUb22GI7Wpgah2VixMYTNXSIehPDX1+O/O X-Received: by 2002:a17:907:a420:b0:6ff:7864:994 with SMTP id sg32-20020a170907a42000b006ff78640994mr11238472ejc.626.1654307802545; Fri, 03 Jun 2022 18:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654307802; cv=none; d=google.com; s=arc-20160816; b=GF48KqWkmqvVChrvBu+F76eWZ5DZhKtWZc3klHOyQqMobPbVgYWhg2CzviFpnZbsWl VGhxwtETgMpDlv6LTfibEVSmkVxkoAX+jiivlzkaS0qTRLOZbhgIJr5CdWkWoGIupQjy gFvIelaSdjuVB+ozHdC1FMIi5ljVA8b0DfqNSzt82xtTUG7fhP65J2Gi1sVwFv5/q9tC Ccds9kUf2K85zyYOGaPXsIakxTaY9gHVeMb/6QF7BOf6GHVPTplXBEfHUCOfCpZ1vW3S uQ8k8JunOEJkq8TEw/vrnfUl7oU+M5ZDm3JTmqDXQHNTmLPD3R+BCMIBkh97WiXHUdIk 5mbg== 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:subject:cc:to:from:date :dkim-signature; bh=MXvesNg1L5wJjhb7hx2YOGaaxOPtLurofoi8gF36DCI=; b=g11g4+d/xzDlpL4me2SJ3bcD0j2oKwhWyncMxl3jH+Na42HvaU1ciU8bY66Eb4myhH 1oqbJyDZyY7jysrPr6cpWw8S6zsyKGe2cIlZh52/7etUSngTs1ZN0zWhCggwvDKcOCl4 P8+Ik/QFFR1xFRrcYaKuFk7HsHHcg4SYtTJ/HilsMaQuRkl1sT9CPE/pjyJqF6i8S2wO 8qQ1hRrWxVSAyS2qV+nB3QkA0sBQZj1pcFSikBGHrPfoYyriDogpIGDoMmqLNxD8GM2w Zu7HPeYhY9wUNX1W30jqw3InZqTMtlWpLDMEG6uRyLBGxlPu78lcfIl+0yyWoQaEVwJ8 DPGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GOfyERoz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji17-20020a170907981100b006e866549c5esi1942803ejc.702.2022.06.03.18.56.18; Fri, 03 Jun 2022 18:56:42 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GOfyERoz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245413AbiFCPPC (ORCPT + 99 others); Fri, 3 Jun 2022 11:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245403AbiFCPO4 (ORCPT ); Fri, 3 Jun 2022 11:14:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB16506C1; Fri, 3 Jun 2022 08:14:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E0FE66186D; Fri, 3 Jun 2022 15:14:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBD19C385B8; Fri, 3 Jun 2022 15:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654269294; bh=kCDqKxgSBW1zW4hSfO+3ZljVtjIYIRBqdB6IPefPA2g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GOfyERozHdsiH3+V20TajRS8VF+rK3pLspYPXYlV/wXnoOuBYCgvA5j6gRtfucZz5 5KNnZLXdh/CkU9CySG++EblXbebLNNLKOV8exqcXG1s6dMYhCEG9A3Ym6FJZKcBsMd ElTzgdH7DMmopE0HAyhuGmyl3tHBlggJ0sZtmemeDT4vt0E/wfTSr1uX3Uq5P6a1Pi qaygK9qyntxv2KPdHyxmTThxj+h/0sQQHfWoE1/Oqev1rDSgI3l2X3JBatFKiA9ZqZ L5C6thelnCEVAdfrDUf6RbqMeByJEU5C6Ot9yLL2JekOf/GWf+7X++aM+YoXh1t07g Hm2Dq9kp3Fnqg== Date: Fri, 3 Jun 2022 16:23:51 +0100 From: Jonathan Cameron To: Markuss Broks Cc: linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Konrad Dybcio , Marijn Suijten , AngeloGioacchino Del Regno , Song Qiang , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v5 0/5] Add support for ToF sensor on Yoshino platform Message-ID: <20220603162351.69056bdf@jic23-huawei> In-Reply-To: <20220523175344.5845-1-markuss.broks@gmail.com> References: <20220523175344.5845-1-markuss.broks@gmail.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, 23 May 2022 20:53:39 +0300 Markuss Broks wrote: > This series adds support for the ToF proximity sensor installed on > Yoshino devices. As part of this series, support handling the reset > GPIO and VDD supply by the VL53L0X driver. Also stop hardcoding the > interrupt type, since on Yoshino devices it seems that edge triggering > doesn't work properly. > > Tested on Sony Xperia XZ1 (poplar). > > Cc: Konrad Dybcio > Cc: Marijn Suijten > Cc: AngeloGioacchino Del Regno Patches 1-4 applied to the togreg branch of iio.git. Note I plan to rebase that tree after the char-misc (and hence IIO tree) has been merged with mainline, so for now it is only pushed out as testing so that 0-day can see if it can find anything we missed. Thanks, Jonathan > > v2: > - Fix a nasty issue: turns out grouping the pinctrl makes it not apply, > which was the main cause of edge interrupts not working correctly and > having to use level interrupts, which caused a large amount of false > detections. > - handle the irq type more gracefully: if it's not provided, default > to falling edge, but if it's provided, then use the provided one. > v3: > - add irq.h header (forgot to commit) > - reword commit message (already initialized -> pre-initialized) > v4: > - reorder powering on and power off action (Jonathan) > - sort pinctrls by GPIO number (Konrad) > v5: > - "This patch adds..." -> "Add ..." (Krzysztof) > > Markuss Broks (5): > dt-bindings: proximity: vl53l0x: Document optional supply and GPIO > properties > proximity: vl53l0x: Get interrupt type from DT > proximity: vl53l0x: Handle the VDD regulator > proximity: vl53l0x: Handle the reset GPIO > arm64: dts: qcom: msm8998-xperia: Introduce ToF sensor support > > .../bindings/iio/proximity/st,vl53l0x.yaml | 5 ++ > .../dts/qcom/msm8998-sony-xperia-yoshino.dtsi | 34 +++++++++++++ > drivers/iio/proximity/vl53l0x-i2c.c | 50 ++++++++++++++++++- > 3 files changed, 88 insertions(+), 1 deletion(-) >