From patchwork Thu Jun 10 09:52:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 1490331 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gerhold.net header.i=@gerhold.net header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=CArtXx1t; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4G0zs269dsz9shn for ; Thu, 10 Jun 2021 19:56:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbhFJJ6a (ORCPT ); Thu, 10 Jun 2021 05:58:30 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:15075 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbhFJJ63 (ORCPT ); Thu, 10 Jun 2021 05:58:29 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1623318985; cv=none; d=strato.com; s=strato-dkim-0002; b=kL1jJXcE0xo6QWSo9ju02qX17Yja6qia0RHHSaDIPaePqE581EnCVbPLab1M/dr9MY BSVxYNH6Gwtzy6fvgAr1DFjPXIsahkBXVHuioozgvBLxfzND4uzyGewwtt8KNlgTiAMM fUiJR8yZsD50vf1IbE3hHugPiIQJo0veBWYemaPJIcOT3Sb1B9EqTh4vsCFqhSKoeQpn PxFaAlmBVn9CMkG0ggCTHm2fH1LrOayrlBj+g52l0+63+qiCp69n7XchGVOso7URMCvJ /aIy2hjwUfyZw8ZUihWkdUzXyxZurJSvfpzqyyEhaQ1PiZV6lUpCivQraZ6oPdoSBSMD aYNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1623318985; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=FwZnaZ8gRC2vRn8D/qw8fV39RZrjSrX/Xoxl+96C+g4=; b=CN5FOKVr8Brm4CDj7PvePzvTTIXEUU6UCeeIvMVP9BQnRESV61V8CQDNz83qwJWHW4 vEflBz4qq7gE9OrPwNb8Chjj0miHqua+IuDr6Y2EvLn2s6zDlExzeZsqVjoYZuq8qlwb LPT1Jk+DboDpIyldBYb6XiVZCeAEpLVfaVajjeHh9xiuxiQnWG4XJJrEDUEDgDfoq0fM UOew+Gw4CNuzDbu3zWHaYXM5hceUmkU4Gg1zDeXCEV/+Mfavek+OKFHZBQRWA9e2KjNn EyQdpSA5qETdoYx/dqFCWjlGblcLyF+pKuYrztdQltacGsG1CKNCgkpMIDgeH2QU1P3z Ewyg== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1623318985; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=FwZnaZ8gRC2vRn8D/qw8fV39RZrjSrX/Xoxl+96C+g4=; b=CArtXx1t0EXSp1IAED9rA14stamWxSdP3DsLHg9E6P4gDOpYQjFduTIsorOX9EWmZR Y7QPGnTKHWpt7eDljrwnukswnql4PtnKVlJd2ifBRV08dmZIe157RvK1iej/nuEv3xZj gqR8qDZ7pyS07/gngfFhw9Sb9p+HXGrdi5AA4PzY/wrmlpVzp2+yh/a79eQYlpAMZf6M QdT0n0qSyh/Zrmba5cydYEjr8Vk9pZVwSTTXlLFRt3sGI2guqpn1e8mX4DO26qvL0+5p s3QcnBswoSsIG35ed7BfwHMY86K+cmEzVeEI9UH19WzsItiFOcAUtcPz2nOZ1htxdVeC LNbg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxA626NTAM6" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.27.2 DYNA|AUTH) with ESMTPSA id y01375x5A9uOso0 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 10 Jun 2021 11:56:24 +0200 (CEST) From: Stephan Gerhold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Linus Walleij , Peter Meerwald , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Bastien Nocera , Laurentiu Palcu , Hans de Goede , Andy Shevchenko , Stephan Gerhold Subject: [PATCH 2/6] dt-bindings: iio: accel: bma255: Document bosch,bma253 Date: Thu, 10 Jun 2021 11:52:56 +0200 Message-Id: <20210610095300.3613-3-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210610095300.3613-1-stephan@gerhold.net> References: <20210610095300.3613-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org BMA253 is mostly like BMA255 that is already supported by the bmc150-accel driver. Document an extra bosch,bma253 compatible for it. Reviewed-by: Linus Walleij Signed-off-by: Stephan Gerhold --- Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml index c2efbb813ca2..8afb0fe8ef5c 100644 --- a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml @@ -18,6 +18,7 @@ properties: enum: - bosch,bmc150_accel - bosch,bmi055_accel + - bosch,bma253 - bosch,bma255 - bosch,bma250e - bosch,bma222 From patchwork Thu Jun 10 09:52:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 1490330 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gerhold.net header.i=@gerhold.net header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=lEHXrVIE; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4G0zs065jqz9sWX for ; Thu, 10 Jun 2021 19:56:36 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbhFJJ6a (ORCPT ); Thu, 10 Jun 2021 05:58:30 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.169]:24985 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbhFJJ63 (ORCPT ); Thu, 10 Jun 2021 05:58:29 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1623318986; cv=none; d=strato.com; s=strato-dkim-0002; b=TTLliUPITIGp9qJoCkRy9QEboMPfPULvED4DLCYnZ0krf4+/5P41izI9Rr2ju6/jH6 ZTPt7m9q1x3G5HvpSgvmKNnMQYrcyFmVWNt36K8Y2eqHPo0+vyeGPRJa19/a+KuV+DMy QWfh1an9z1NBN3YnCbzR7uBpecjS4WVJCrZ60M7sBK5SjoLd20KQaGFFxNmHD5Fib3uG BdYGpsN3DL3A7GdWAo7lmBDT+7o2s3+vf9KqcMuMixeQM41NnJjBAqVs2uiW/cFiA6q6 6jtDYBHqTbtNACc0QzLct0Osug5Y5kq3GVlm4vBdIJkb9BA+DxrVWI1CCSLj6w75e+Hf 9iUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1623318986; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Q3vxYG9DwGWTpHZF0muiHrGzUfeM8Kn9aAfnCoRgf8w=; b=lzfKLLYBvGaaShc/XWjIJRXh7frgqdLFFiweCrQkrPiQYGZllU/z6mUtzQxHFsgUdP 5HX3awpnm/7tDu5TYJaIYuFpeHuHn2bqG0sEkOl5vX+v955hY4QpFofNhAZtVaiOd+kA NQsstxFHz85XBs5i5rlUZj46ggYxDEsxuTt6YZO8qHWOGJJ8SfL6Rd74DLIALjeWVByn ZeMji+A958+E8zK0xE+nqpIRxoP2x2nqaZNkGanYDD65RsCiTbMAweS9LFF/ZuCqncqa uZl5JUx8Z2MAD82YB+kM4Ypwy6NEKCnOZMT3D3OMe/2I0IQjNBsUFInkuO1fSQW3C8vo wHAQ== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1623318986; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Q3vxYG9DwGWTpHZF0muiHrGzUfeM8Kn9aAfnCoRgf8w=; b=lEHXrVIEyRaH5tmEBLJTqhYBjpfmbOPV37r47sOxRSyTLGOwCPyw+IvYVg31HWk9vk J7HbpTaB1xn6vIrz76UJd0NxvbrzgKD5gW6FC2TZACfFGuhvXVIIcyIBMK2FHKrDUgAn CzNxY4vdPLwfVmaf5PdYwcc8hzDqJ+jCs7W2HL5yMiAnHmKAw11PXKMHLV+mo39/eLpy PA1/0SS+I/vITFKTCOyM2uAwAo8FRUcnN5HJnwJGTnYSELYTrj0AAVHVMhe8i5nwYwlj GAkNUsZJTIkTSUpFX954zjweBPB+tzzFUdY/dAnSub+iuB612ZgF1tcGHP8+n+l+DYmY mEhA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxA626NTAM6" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.27.2 DYNA|AUTH) with ESMTPSA id y01375x5A9uPso2 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 10 Jun 2021 11:56:25 +0200 (CEST) From: Stephan Gerhold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Linus Walleij , Peter Meerwald , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Bastien Nocera , Laurentiu Palcu , Hans de Goede , Andy Shevchenko , Stephan Gerhold Subject: [PATCH 4/6] dt-bindings: iio: bma255: Allow multiple interrupts Date: Thu, 10 Jun 2021 11:52:58 +0200 Message-Id: <20210610095300.3613-5-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210610095300.3613-1-stephan@gerhold.net> References: <20210610095300.3613-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org BMA253 has two interrupt pins (INT1 and INT2) that can be configured independently. At the moment the bmc150-accel driver does not make use of them but it might be able to in the future, so it's useful to already specify all available interrupts in the device tree. Set maxItems: 2 for interrupts to allow specifying a second one. This is necessary as preparation to move the bosch,bma254 compatible from bosch,bma180.yaml to bosch,bma255.yaml since bma180 allows two interrupts, but BMA254 is better supported by the bmc150-accel driver. Reviewed-by: Linus Walleij Signed-off-by: Stephan Gerhold --- .../devicetree/bindings/iio/accel/bosch,bma255.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml index 8afb0fe8ef5c..65b299a5619b 100644 --- a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml @@ -32,7 +32,12 @@ properties: vddio-supply: true interrupts: - maxItems: 1 + minItems: 1 + maxItems: 2 + description: | + The first interrupt listed must be the one connected to the INT1 pin, + the second (optional) interrupt listed must be the one connected to the + INT2 pin (if available). mount-matrix: description: an optional 3x3 mounting rotation matrix. From patchwork Thu Jun 10 09:52:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 1490332 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gerhold.net header.i=@gerhold.net header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=bo4Lhqu2; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4G0zs31tmDz9sjB for ; Thu, 10 Jun 2021 19:56:39 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbhFJJ6b (ORCPT ); Thu, 10 Jun 2021 05:58:31 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.171]:28525 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbhFJJ63 (ORCPT ); Thu, 10 Jun 2021 05:58:29 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1623318987; cv=none; d=strato.com; s=strato-dkim-0002; b=fxgXaoic9waSnvARpFd+Os3vVaEyzZ0wc1nVBXtaRvquoezsGFFIXauCRxRZeGtuy4 gfS4sfD6UjjvOP3KSoeUFJfBQb/94lkLrNimZ4nmTSaxxYcEsafsscx32Z33aOzBcG95 Oyija0NHOcfdlTMp5IBlA/Y2fVh39OOIT6fKMchWDfR9c6xTvdrQ7hQQs+tdWB+pKqhQ Lvl8TQDJl9UBGsxU8iuQEnO8eBRFZyJQmD1aKGbFDAakxYFDM6tnGW4oJ8SoN3JBkaVz 8K8ImBlg0iUBTC5Mou74C1Se82+8RvsYnBZT0MaKC3GsE936hIRgCWT6je9w7sKQXLh6 //aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1623318987; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AH2P9XfKb0PEYAd9xaBbRcSiO7z56XjX7li+ixOW9Ww=; b=pLuGvtHZkxoeE93rlX6PxRKULbl7OZm8so5SIGTZghbHdMzCYz4DP7/gNTkqeL72Kn YJOFYyb7f1BC/rVf9j0GXnohucGVdt2pjvePMdhiYq7QKqLoTE9TE1AJEgPSDdYwhJNi xTpCAoi+YYY9fRPHWBjmsu2POb6rQYj2vyvpROvzldkJFl0rV+vo/0mwhEfK6fmFoyKt gYHE1QSFR+H7AunCYhPCOVPgvf3phwFnDFXCd2yOVSZr0j0weEokvDU4xo8Ti7vtt24u Lk5NXvE5jezdJ2E1SzktUDwvqDxZ5d11h+yFkMpage9lFc0H7zoEJRyciRDjb1g6wEru b8+A== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1623318987; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AH2P9XfKb0PEYAd9xaBbRcSiO7z56XjX7li+ixOW9Ww=; b=bo4Lhqu2H7jnLd4cbaxhp0liYvO0DlJGA3YVlT6qj+ALwOGrche7LmnSpRhTq3AJOO k7CZ1UzpsDirNlCs3cgo950X4h+DrtSCjgs5nRHTDu/VUOvRDdGqR6PqSWpkyO3o8O51 RpCe+//i8r911cDHSs6aa1qJnrzY4FyC32Lrambtk9LeqKBpNa3Am5WTo6RHdzkncjy8 J+PjoWzqfXrCmDWYA8W5XvBe6aHF9UdJ5x7hEk+dKa2tG9kLhgHYO57Rm0SSNa8csLDG k9AVnkX7jy0CILPlbq64ltXwlRd5eJq/IpWIIbxRROk9pcAVy59KdQwb79+t3K08bfnd NmHg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxA626NTAM6" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.27.2 DYNA|AUTH) with ESMTPSA id y01375x5A9uQso3 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 10 Jun 2021 11:56:26 +0200 (CEST) From: Stephan Gerhold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Linus Walleij , Peter Meerwald , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Bastien Nocera , Laurentiu Palcu , Hans de Goede , Andy Shevchenko , Stephan Gerhold Subject: [PATCH 5/6] dt-bindings: iio: accel: bma180/bma255: Move bma254 to bma255 schema Date: Thu, 10 Jun 2021 11:52:59 +0200 Message-Id: <20210610095300.3613-6-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210610095300.3613-1-stephan@gerhold.net> References: <20210610095300.3613-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org BMA254 is very similar to BMA253/BMA255 which are both supported by the bmc150-accel driver. In general, there is quite some overlap between the bma180 and bmc150-accel driver, but the bmc150-accel driver has a few more features (e.g. motion trigger/interrupt). Let's move bma254 over to the bma255 schema (bmc150-accel driver). Reviewed-by: Linus Walleij Signed-off-by: Stephan Gerhold --- Documentation/devicetree/bindings/iio/accel/bosch,bma180.yaml | 3 +-- Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma180.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma180.yaml index 45b3abde298f..a7e84089cc3d 100644 --- a/Documentation/devicetree/bindings/iio/accel/bosch,bma180.yaml +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma180.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/iio/accel/bosch,bma180.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Bosch BMA023 / BMA150/ BMA180 / BMA25x / SMB380 triaxial accelerometers +title: Bosch BMA023 / BMA150/ BMA180 / BMA250 / SMB380 triaxial accelerometers maintainers: - Jonathan Cameron @@ -21,7 +21,6 @@ properties: - bosch,bma150 - bosch,bma180 - bosch,bma250 - - bosch,bma254 - bosch,smb380 reg: diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml index 65b299a5619b..e830d5295b92 100644 --- a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml @@ -19,6 +19,7 @@ properties: - bosch,bmc150_accel - bosch,bmi055_accel - bosch,bma253 + - bosch,bma254 - bosch,bma255 - bosch,bma250e - bosch,bma222