Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6432194iob; Tue, 10 May 2022 19:21:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4DpXfZU4C3HvplsD5JD7U0NsmQjzzEWVkP4rOdvKTUEzSxLbZrn6h+k3XiLiLhoe9kxPq X-Received: by 2002:a17:907:a40e:b0:6fd:c29b:e0b3 with SMTP id sg14-20020a170907a40e00b006fdc29be0b3mr2848734ejc.542.1652235679370; Tue, 10 May 2022 19:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652235679; cv=none; d=google.com; s=arc-20160816; b=GrDXMPGmcG+WgJLWLfxvHx2aQ0NcEaCk4ANaHs8+UhvzVwjekfQ2qUHr2yFFG+edew zyV9v91SpstUza1gQXmkc/1oN4pX2GDwlwTJJOMQrOHT/zR0GTR5JqWYcomjdmigwGr8 NhTW6NhBqVDvuoj3xqZIR4Y3iG+ipiZMKSJDjrp68DT6L/eAMO9Z926fUXTY9wATWdLV 3qGawdQJ9gLz9MOTSPaYDHetlBSlQ1OVvf/f03eVqV/wZG+BgmBic16qM2LAddnRTIZj l/WH+j4ZBrSYIKgWkaCTAjl+9e3KXKZV0Cf8FbCZB9QXpWOQiLiQJXIo5r4lmPuwbvWk EdLQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/rWvKzwkcndU699uCK8+HpcopA807nPrEODSc7gQasM=; b=pQvKc2Nksc4wyac3cWw2q01PkmwGEgoNylsfV/MGtP1Nxx2tQ1QFrDTsKx73I5Ebcd 03q0xqFpuoz8f+iqTYpOP/QLTOBiQMy9blLhrcpsh00LKOw4UU7xO37b2L+ygq/UOqmr pfXxgMiyNvOINJQ1Y1wv+mzMXNZQc8cwF9zVeQOL3/gCFZBclHCYt6xgNpwxym0busi7 00O09vYUmU6sLOiyB+w7SUUf5bOdXEFgECul13lR3azqj+DSwJshkb/lsApmREpV2cQu f+cVZE7LmszLGuM6j2c5Bhx6ay3+yElX1Pd9z+t9HL/vCKWKXt3kxzviz51hywHKuuyu qA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HTOYyyyW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vp13-20020a17090712cd00b006df76385e53si986989ejb.755.2022.05.10.19.20.53; Tue, 10 May 2022 19:21:19 -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=@gmail.com header.s=20210112 header.b=HTOYyyyW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231725AbiEJUnb (ORCPT + 99 others); Tue, 10 May 2022 16:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiEJUn2 (ORCPT ); Tue, 10 May 2022 16:43:28 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A84128B681; Tue, 10 May 2022 13:43:27 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id p10so72243lfa.12; Tue, 10 May 2022 13:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/rWvKzwkcndU699uCK8+HpcopA807nPrEODSc7gQasM=; b=HTOYyyyWbn47Di2MCRUgKVqdYIejkpqttDdAdAKYwDx+UWtGg3DkxExTbc+nh6fqAt bXe4FID20SSEAK/vMDr1crEFzzqSWlHxokiHprsiNv2szybLpIkF6XMeznrds3giLQGK QZJhrb4cm0E6jJckF2c2fFx804okLr6hQLfY5aP2TF2O5p9fj/tyYhyysczekaHz4U6F xetKmxAKzMgSfqtHY99lnC5/oLcW5nmh/S5b7/pVu3WFkah5yB3qKMj0vlQu1B5Nb0+w PRnKf0YfrdhZHUGt0RVMV+pW9taAJlj9Q9ccZ5X+FYbrtE/57AHdifLdoY0YS3CC6iwR H58A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/rWvKzwkcndU699uCK8+HpcopA807nPrEODSc7gQasM=; b=j5/FF05cdUWR+QlyVDDEWENz9phadoRv+V/WvEKNg6NOJxn8w0+F4JlO10GMaVbEDq MKYsWCN+kqSXBpysZchyqPGl1Y8iZ6RlqdkxSoBPfY8+iGsUCxjBDyet7qeDPr7qjcxO +P6WylmKkPjWJzT4CLEI1h9wrnryiNq6NRDZ+e5uMatDw78uf1gpol4PIR1l/0kY5WLx ndeDcknRfyG3Xr7O3AF64zZXRuKerRRIInSgTZ7hHn0n47bcJcALsDzZV4s1TqnliDGz 2oPhzTyYwXcxLb56zCLrlwRkHN0SmkFb1gVE1Z7nCRYImrIhXrpITR1ZqMSF8VTtWxF+ z7xQ== X-Gm-Message-State: AOAM531m+TgXq7TYOruLpyRRXYVTXy66Ng4RltbZFX4da0n20CFboRA+ VfvjI3sy1dul6nrT8pI3y1BuVJ/KGj4= X-Received: by 2002:a19:7710:0:b0:472:3486:a49e with SMTP id s16-20020a197710000000b004723486a49emr17953979lfc.600.1652215405565; Tue, 10 May 2022 13:43:25 -0700 (PDT) Received: from nergzd-desktop.localdomain ([194.39.226.133]) by smtp.gmail.com with ESMTPSA id 10-20020ac25f4a000000b0047255d210f0sm12318lfz.31.2022.05.10.13.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 13:43:25 -0700 (PDT) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Markuss Broks , Konrad Dybcio , Marijn Suijten , AngeloGioacchino Del Regno , Song Qiang , Jonathan Cameron , 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: [PATCH 0/5] Add support for ToF sensor on Yoshino platform Date: Tue, 10 May 2022 23:42:51 +0300 Message-Id: <20220510204256.8874-1-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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 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(-) -- 2.35.1