All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe De Muyter <phdm@macq.eu>
To: linux-iio@vger.kernel.org
Subject: invensense mpu9250 ak8963 and devicetree
Date: Wed, 3 Mar 2021 16:31:45 +0100	[thread overview]
Message-ID: <20210303153145.GA30260@frolo.macqel> (raw)

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

             reply	other threads:[~2021-03-04  0:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03 15:31 Philippe De Muyter [this message]
2021-03-04  9:12 ` invensense mpu9250 ak8963 and devicetree Jean-Baptiste Maneyrol
2021-03-04  9:31   ` Philippe De Muyter
     [not found] ` <BL0PR12MB501190F3812AA541BDBEF625C4979@BL0PR12MB5011.namprd12.prod.outlook.com>
2021-03-08 13:06   ` Philippe De Muyter
2021-03-08 17:24     ` Jonathan Cameron
2021-03-09 10:11       ` Philippe De Muyter
2021-03-09 10:46         ` Lars-Peter Clausen
2021-03-09 10:59           ` Philippe De Muyter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210303153145.GA30260@frolo.macqel \
    --to=phdm@macq.eu \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.