From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B3DAC15501 for ; Thu, 4 Mar 2021 00:30:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 35D1F64EDF for ; Thu, 4 Mar 2021 00:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345989AbhCDAaG (ORCPT ); Wed, 3 Mar 2021 19:30:06 -0500 Received: from smtp2.macqel.be ([109.135.2.61]:12332 "EHLO smtp2.macqel.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbhCCPzf (ORCPT ); Wed, 3 Mar 2021 10:55:35 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp2.macqel.be (Postfix) with ESMTP id E2E8F130D36 for ; Wed, 3 Mar 2021 16:31:47 +0100 (CET) X-Virus-Scanned: amavisd-new at macqel.be Received: from smtp2.macqel.be ([127.0.0.1]) by localhost (mail.macqel.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NDOR0T-4xaNh for ; Wed, 3 Mar 2021 16:31:46 +0100 (CET) Received: from frolo.macqel.be (frolo.macqel [10.1.40.73]) by smtp2.macqel.be (Postfix) with ESMTP id 15465130CB5 for ; Wed, 3 Mar 2021 16:31:46 +0100 (CET) Received: by frolo.macqel.be (Postfix, from userid 1000) id EE3F0DF009D; Wed, 3 Mar 2021 16:31:45 +0100 (CET) Date: Wed, 3 Mar 2021 16:31:45 +0100 From: Philippe De Muyter To: linux-iio@vger.kernel.org Subject: invensense mpu9250 ak8963 and devicetree Message-ID: <20210303153145.GA30260@frolo.macqel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Hello, I am trying to use a mpu9250 imu, but I have trouble with the ak8963 part. Currently, ak8975_probe fails in this code : /* Fetch the regulators */ data->vdd = devm_regulator_get(&client->dev, "vdd"); if (IS_ERR(data->vdd)) return PTR_ERR(data->vdd); data->vid = devm_regulator_get(&client->dev, "vid"); if (IS_ERR(data->vid)) return PTR_ERR(data->vid); but Documentation/devicetree/bindings/iio/magnetometer/asahi-kasei,ak8975.yaml says : vdd-supply: description: | an optional regulator that needs to be on to provide VDD power to the sensor. I have no vdd or vdd-supply property in my ak8963 description. Is that unrelated ? What should I write in my dts file for this ak8963 embedded in a mpu9250 ? Thanks in advance Philippe -- Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles