Message ID | 20230924222559.2038721-2-andreas@kemnade.info |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp864338vqu; Sun, 24 Sep 2023 15:28:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0c6BGYQOcu9dLzep048NLD4EcaUXKS3BjXFmelJEoOeGenUArIl4b1Vhd27Fs7x9G9zY5 X-Received: by 2002:a17:90a:5785:b0:274:8330:c7da with SMTP id g5-20020a17090a578500b002748330c7damr3181347pji.28.1695594503689; Sun, 24 Sep 2023 15:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695594503; cv=none; d=google.com; s=arc-20160816; b=b9bUXrXwqiUvQBX5LFLXUg3o6ln/5hEVXuP32l6gQn9TzVJ1g675GW1vojg4J8bUgm tgKtjFgxC/Yc3Bqp3fI7yQ8Ornj9elJ/fFW0mnQLK6mS7yFn2s+bdW5BdiBt/QJXNzCg Fpx2jDkMjzGEQP6amgGFtsF3QnHoik7b042ByuUXncHR6tXBgJG30MYOBOhgoS6g8S3z 9fNmI3QxFSnFu0xQI8d1dW6Smg0OHL2cVzMdkweesprn6Y4cYsNv/SQ11o2O5ABC6Pm5 zSrA0YEzffyZ/j41Fr/ovV3tg2WHTiv63difRIR7U0gMXBR/ega+9A69PILtWI3qNA1t QBuw== 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:to:from; bh=QASzTWvq0ynm0iKeu+pl/yHlNg8PSXwG0UZUGpJ6c/8=; fh=+Os7fJLYj/39z3ta/T2h7/7B0lHU/gUNeWnGcWhqI1Q=; b=dwTPjPZBzQ6/RlhZri5C6h5Gn9ykFRktaRSj7zb5WU2Px/R6G7nYBFmuU678+vq1tQ 7KE0psaptBrNk5PZSk5KXUIFlYL+J5QN6V9UkDTqxLRe45V1bgCSq+b8nKdqvxOdKcQt cOT3ai7owgzM5/FICdhdl1/pk4GQZu2AX17B7DUU/RBdI2SbyC+DG4vcgQMSiaDtxAia 5SW2V7tte+C7np/UHvVNg7Cjvk6NgBFQEVBdr/+g4JqplwkMBvb8APurvqjOqHnNS8UM g6g5HILgtmLHmyh98AfGhLH0k9N5trZNvnULgS08XLZIPwgjKIPCYTBXD+HQmt1YlDFb r8Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t12-20020a17090aba8c00b002774d978e19si1648073pjr.175.2023.09.24.15.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 15:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C4B7D806141E; Sun, 24 Sep 2023 15:26:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjIXW02 (ORCPT <rfc822;pusanteemu@gmail.com> + 29 others); Sun, 24 Sep 2023 18:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjIXW01 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 24 Sep 2023 18:26:27 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8201EE; Sun, 24 Sep 2023 15:26:19 -0700 (PDT) Received: from p200300ccff1ebc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff1e:bc00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <andreas@kemnade.info>) id 1qkXYA-00492C-QR; Mon, 25 Sep 2023 00:26:02 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from <andreas@kemnade.info>) id 1qkXY9-008YMy-2Z; Mon, 25 Sep 2023 00:26:01 +0200 From: Andreas Kemnade <andreas@kemnade.info> To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, jean-baptiste.maneyrol@tdk.com, chenhuiz@axis.com, andreas@kemnade.info, andy.shevchenko@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: iio: imu: mpu6050: Add level shifter Date: Mon, 25 Sep 2023 00:25:57 +0200 Message-Id: <20230924222559.2038721-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230924222559.2038721-1-andreas@kemnade.info> References: <20230924222559.2038721-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 24 Sep 2023 15:26:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777959702033319342 X-GMAIL-MSGID: 1777959702033319342 |
Series |
ARM: omap: omap4-embt2ws: Add IMU on control unit
|
|
Commit Message
Andreas Kemnade
Sept. 24, 2023, 10:25 p.m. UTC
Found in ancient platform data struct:
level_shifter: 0: VLogic, 1: VDD
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
.../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++
1 file changed, 2 insertions(+)
Comments
On Mon, 25 Sep 2023 00:25:57 +0200, Andreas Kemnade wrote: > Found in ancient platform data struct: > level_shifter: 0: VLogic, 1: VDD > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > --- > .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++ > 1 file changed, 2 insertions(+) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml: properties:invensense,level-shifter: True is not of type 'object' hint: Vendor specific properties must have a type and description unless they have a defined, common suffix. from schema $id: http://devicetree.org/meta-schemas/vendor-props.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml: properties:invensense,level-shifter: More than one condition true in oneOf schema: {'description': 'Vendor specific properties must have a type and ' 'description unless they have a defined, common ' 'suffix.', 'oneOf': [{'additionalProperties': False, 'description': 'A vendor boolean property can use "type: ' 'boolean"', 'properties': {'deprecated': True, 'description': True, 'type': {'const': 'boolean'}}, 'required': ['type', 'description']}, {'additionalProperties': False, 'description': 'A vendor string property with exact values ' 'has an implicit type', 'oneOf': [{'required': ['enum']}, {'required': ['const']}], 'properties': {'const': {'type': 'string'}, 'deprecated': True, 'description': True, 'enum': {'items': {'type': 'string'}}}, 'required': ['description']}, {'description': 'A vendor property needs a $ref to ' 'types.yaml', 'oneOf': [{'required': ['$ref']}, {'required': ['allOf']}], 'properties': {'$ref': {'pattern': 'types.yaml#/definitions/'}, 'allOf': {'items': [{'properties': {'$ref': {'pattern': 'types.yaml#/definitions/'}}, 'required': ['$ref']}]}}, 'required': ['description']}, {'description': 'A vendor property can have a $ref to a a ' '$defs schema', 'properties': {'$ref': {'pattern': '^#/(definitions|\\$defs)/'}}, 'required': ['$ref']}], 'type': 'object'} hint: Vendor specific properties must have a type and description unless they have a defined, common suffix. from schema $id: http://devicetree.org/meta-schemas/vendor-props.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230924222559.2038721-2-andreas@kemnade.info The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Hi Andreas, kernel test robot noticed the following build warnings: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on robh/for-next linus/master v6.6-rc3 next-20230921] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andreas-Kemnade/dt-bindings-iio-imu-mpu6050-Add-level-shifter/20230925-062804 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20230924222559.2038721-2-andreas%40kemnade.info patch subject: [PATCH 1/3] dt-bindings: iio: imu: mpu6050: Add level shifter compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230925/202309250753.7v7FAzek-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202309250753.7v7FAzek-lkp@intel.com/ dtcheck warnings: (new ones prefixed by >>) >> Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml: properties:invensense,level-shifter: True is not of type 'object' hint: Vendor specific properties must have a type and description unless they have a defined, common suffix. from schema $id: http://devicetree.org/meta-schemas/vendor-props.yaml# >> Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml: properties:invensense,level-shifter: More than one condition true in oneOf schema: {'description': 'Vendor specific properties must have a type and ' 'description unless they have a defined, common ' 'suffix.', 'oneOf': [{'additionalProperties': False, 'description': 'A vendor boolean property can use "type: ' 'boolean"', 'properties': {'deprecated': True, 'description': True, 'type': {'const': 'boolean'}}, 'required': ['type', 'description']},
On 25/09/2023 00:25, Andreas Kemnade wrote: > Found in ancient platform data struct: > level_shifter: 0: VLogic, 1: VDD > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > --- > .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > index 1db6952ddca5e..6aae2272fa15c 100644 > --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > @@ -48,6 +48,8 @@ properties: > > mount-matrix: true > > + invensense,level-shifter: true It does not look like you tested the bindings, at least after quick look. Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). Maybe you need to update your dtschema and yamllint. Best regards, Krzysztof
On Mon, 25 Sep 2023 11:28:52 +0100 Jonathan Cameron <Jonathan.Cameron@Huawei.com> wrote: > On Mon, 25 Sep 2023 08:54:08 +0200 > Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > > On 25/09/2023 00:25, Andreas Kemnade wrote: > > > Found in ancient platform data struct: > > > level_shifter: 0: VLogic, 1: VDD > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > --- > > > .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > > > index 1db6952ddca5e..6aae2272fa15c 100644 > > > --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > > > +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > > > @@ -48,6 +48,8 @@ properties: > > > > > > mount-matrix: true > > > > > > + invensense,level-shifter: true > > > > It does not look like you tested the bindings, at least after quick > > look. Please run `make dt_binding_check` (see > > Documentation/devicetree/bindings/writing-schema.rst for instructions). > > Maybe you need to update your dtschema and yamllint. > > > > Best regards, > > Krzysztof > > > > > > Also this one isn't obvious - give it a description in the binding doc. > > I'm not sure of the arguement for calling it level shift in general. > I have no more descrption than the old source (see the citation from there) https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9150-Register-Map.pdf does not list it. But that bit is needed to get things to work what also does the vendor kernel do. What could be a better descrption? Regards, Andreas
On 25/09/2023 13:02, Andreas Kemnade wrote: > On Mon, 25 Sep 2023 11:28:52 +0100 > Jonathan Cameron <Jonathan.Cameron@Huawei.com> wrote: > >> On Mon, 25 Sep 2023 08:54:08 +0200 >> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: >> >>> On 25/09/2023 00:25, Andreas Kemnade wrote: >>>> Found in ancient platform data struct: >>>> level_shifter: 0: VLogic, 1: VDD >>>> >>>> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> >>>> --- >>>> .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++ >>>> 1 file changed, 2 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml >>>> index 1db6952ddca5e..6aae2272fa15c 100644 >>>> --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml >>>> +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml >>>> @@ -48,6 +48,8 @@ properties: >>>> >>>> mount-matrix: true >>>> >>>> + invensense,level-shifter: true >>> >>> It does not look like you tested the bindings, at least after quick >>> look. Please run `make dt_binding_check` (see >>> Documentation/devicetree/bindings/writing-schema.rst for instructions). >>> Maybe you need to update your dtschema and yamllint. >>> >>> Best regards, >>> Krzysztof >>> >>> >> >> Also this one isn't obvious - give it a description in the binding doc. >> >> I'm not sure of the arguement for calling it level shift in general. >> > I have no more descrption than the old source (see the citation from there) > https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9150-Register-Map.pdf I could not find any reference to level shift in this manual. To which page and part do you refer? > > does not list it. But that bit is needed to get things to work what also does the > vendor kernel do. > > What could be a better descrption? I don't know, but something reasonable to you should be put there. Best regards, Krzysztof
Hello, these are very old unsupported chips, thus this is not something that can be easily found. Even after doing some archaeology. But when looking at register maps, it should only be used with MPU-9150 and not MPU-9250. I would feel much more comfortable to restrict this fix to MPU-9150 only (by testing chip_type against INV_MPU9150). Thanks, JB From: Jonathan Cameron <Jonathan.Cameron@Huawei.com> Sent: Monday, September 25, 2023 15:21 To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Cc: Andreas Kemnade <andreas@kemnade.info>; jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; robh+dt@kernel.org <robh+dt@kernel.org>; krzysztof.kozlowski+dt@linaro.org <krzysztof.kozlowski+dt@linaro.org>; conor+dt@kernel.org <conor+dt@kernel.org>; bcousson@baylibre.com <bcousson@baylibre.com>; tony@atomide.com <tony@atomide.com>; Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com>; chenhuiz@axis.com <chenhuiz@axis.com>; andy.shevchenko@gmail.com <andy.shevchenko@gmail.com>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; devicetree@vger.kernel.org <devicetree@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; linux-omap@vger.kernel.org <linux-omap@vger.kernel.org> Subject: Re: [PATCH 1/3] dt-bindings: iio: imu: mpu6050: Add level shifter On Mon, 25 Sep 2023 14: 24: 32 +0200 Krzysztof Kozlowski <krzysztof. kozlowski@ linaro. org> wrote: > On 25/09/2023 13: 02, Andreas Kemnade wrote: > > On Mon, 25 Sep 2023 11: 28: 52 +0100 > > Jonathan Cameron <Jonathan. Cameron@ Huawei. com> ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd On Mon, 25 Sep 2023 14:24:32 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 25/09/2023 13:02, Andreas Kemnade wrote: > > On Mon, 25 Sep 2023 11:28:52 +0100 > > Jonathan Cameron <Jonathan.Cameron@Huawei.com> wrote: > > > >> On Mon, 25 Sep 2023 08:54:08 +0200 > >> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > >> > >>> On 25/09/2023 00:25, Andreas Kemnade wrote: > >>>> Found in ancient platform data struct: > >>>> level_shifter: 0: VLogic, 1: VDD > >>>> > >>>> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > >>>> --- > >>>> .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++ > >>>> 1 file changed, 2 insertions(+) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > >>>> index 1db6952ddca5e..6aae2272fa15c 100644 > >>>> --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > >>>> +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > >>>> @@ -48,6 +48,8 @@ properties: > >>>> > >>>> mount-matrix: true > >>>> > >>>> + invensense,level-shifter: true > >>> > >>> It does not look like you tested the bindings, at least after quick > >>> look. Please run `make dt_binding_check` (see > >>> Documentation/devicetree/bindings/writing-schema.rst for instructions). > >>> Maybe you need to update your dtschema and yamllint. > >>> > >>> Best regards, > >>> Krzysztof > >>> > >>> > >> > >> Also this one isn't obvious - give it a description in the binding doc. > >> > >> I'm not sure of the arguement for calling it level shift in general. > >> > > I have no more descrption than the old source (see the citation from there) > > https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9150-Register-Map.pdf > > I could not find any reference to level shift in this manual. To which > page and part do you refer? > > > > > does not list it. But that bit is needed to get things to work what also does the > > vendor kernel do. > > > > What could be a better descrption? > > I don't know, but something reasonable to you should be put there. The text you have in the commit log seems better than nothing. I suspect it's internally wiring VDD to VDDIO. Normally people just connect both power supplies to same supply if they want to do that, but maybe there was a chip variant that didn't have enough pins? If you have the device, can you see it actually matches the packaging types in the manual? Jonathan > > Best regards, > Krzysztof > >
On Mon, 25 Sep 2023 14:21:57 +0100 Jonathan Cameron <Jonathan.Cameron@Huawei.com> wrote: > On Mon, 25 Sep 2023 14:24:32 +0200 > Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > > On 25/09/2023 13:02, Andreas Kemnade wrote: > > > On Mon, 25 Sep 2023 11:28:52 +0100 > > > Jonathan Cameron <Jonathan.Cameron@Huawei.com> wrote: > > > > > >> On Mon, 25 Sep 2023 08:54:08 +0200 > > >> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > >> > > >>> On 25/09/2023 00:25, Andreas Kemnade wrote: > > >>>> Found in ancient platform data struct: > > >>>> level_shifter: 0: VLogic, 1: VDD > > >>>> > > >>>> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > >>>> --- > > >>>> .../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 2 ++ > > >>>> 1 file changed, 2 insertions(+) > > >>>> > > >>>> diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > > >>>> index 1db6952ddca5e..6aae2272fa15c 100644 > > >>>> --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > > >>>> +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml > > >>>> @@ -48,6 +48,8 @@ properties: > > >>>> > > >>>> mount-matrix: true > > >>>> > > >>>> + invensense,level-shifter: true > > >>> > > >>> It does not look like you tested the bindings, at least after quick > > >>> look. Please run `make dt_binding_check` (see > > >>> Documentation/devicetree/bindings/writing-schema.rst for instructions). > > >>> Maybe you need to update your dtschema and yamllint. > > >>> > > >>> Best regards, > > >>> Krzysztof > > >>> > > >>> > > >> > > >> Also this one isn't obvious - give it a description in the binding doc. > > >> > > >> I'm not sure of the arguement for calling it level shift in general. > > >> > > > I have no more descrption than the old source (see the citation from there) citation = line from ancient pdata struct comment cited in the commit message. > > > https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9150-Register-Map.pdf > > > > I could not find any reference to level shift in this manual. To which > > page and part do you refer? > > > > > > > > does not list it. But that bit is needed to get things to work what also does the > > > vendor kernel do. > > > > > > What could be a better descrption? > > > > I don't know, but something reasonable to you should be put there. > > The text you have in the commit log seems better than nothing. > I suspect it's internally wiring VDD to VDDIO. Normally people just > connect both power supplies to same supply if they want to do that, > but maybe there was a chip variant that didn't have enough pins? > > If you have the device, can you see it actually matches the packaging > types in the manual? > packaging matches. It is just as usual. I think VLogic (=VDDIO) would be 1.8V while VDD needs to be something higher, so I guess here it might be 3.3V. There are some slight hints about level shifting here: https://product.tdk.com/system/files/dam/doc/product/sensor/mortion-inertial/imu/data_sheet/mpu-9150-datasheet.pdf page 37. The aux i2c bus seem to run at levels till VDD. But here, there seems to be nothing at the aux i2c bus besides that internal magnetometer. Regards, Andreas
diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml index 1db6952ddca5e..6aae2272fa15c 100644 --- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml +++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml @@ -48,6 +48,8 @@ properties: mount-matrix: true + invensense,level-shifter: true + i2c-gate: $ref: /schemas/i2c/i2c-controller.yaml unevaluatedProperties: false