Linux IIO development
 help / color / mirror / Atom feed
* invensense mpu9250 ak8963 and devicetree
@ 2021-03-03 15:31 Philippe De Muyter
  2021-03-04  9:12 ` Jean-Baptiste Maneyrol
       [not found] ` <BL0PR12MB501190F3812AA541BDBEF625C4979@BL0PR12MB5011.namprd12.prod.outlook.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Philippe De Muyter @ 2021-03-03 15:31 UTC (permalink / raw)
  To: linux-iio

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-09 11:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-03 15:31 invensense mpu9250 ak8963 and devicetree Philippe De Muyter
2021-03-04  9:12 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox