Skip to content

There are problems with connecting the compass sensor on khadas-edge2-android12 #146

Open
@denbon

Description

@denbon

Hello.
There are problems with connecting the compass sensor on khadas-edge2-android12. I tried to connect the following compasses via the I2C bus: ak8963, ak8975 and ak09911 - and they do not transmit any data. There are problems with these sensors in the source code. Who can find the reason?
Connected like this:
Added to the device tree:

ak09911_compass: ak09911_compass@c {
		compatible = "ak09911";
		status = "okay";
		reg = <0x0c>;
		irq_enable = <0>;
		poll_delay_ms = <30>;
		type = <SENSOR_TYPE_COMPASS>;
		layout = <0>;
	};

BoardConfig.mk

BOARD_SENSOR_ST ?= true
BOARD_SENSOR_COMPASS_AK09911 ?= true
CONFIG_COMPASS_DEVICE=y

Kernel config

CONFIG_COMPASS_DEVICE=y
CONFIG_COMPASS_AK09911=y

I am building Android, but the compass does not transmit data, help me solve this problem in the source code for khadas-edge2-android12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions