Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-max22007-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Analog Devices MAX22007
*
* Copyright (C) 2025 Analog Devices Inc.
*/

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>

&spi0 {
status = "okay";

max22007: max22007@0 {
compatible = "adi,max22007";
reg = <0>;
spi-max-frequency = <500000>;
spi-cpha;
spi-cpol;
status = "okay";
reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
#address-cells = <1>;
#size-cells = <0>;

channel@0 {
reg = <0>;
adi,type = "voltage";
};

channel@1 {
reg = <1>;
adi,type = "current";
};

channel@2 {
reg = <2>;
adi,type = "voltage";
};

channel@3 {
reg = <3>;
adi,type = "voltage";
};
};

Check warning on line 46 in arch/arm/boot/dts/overlays/rpi-max22007-overlay.dts

View workflow job for this annotation

GitHub Actions / build_gcc_arm / build

(avoid_default_addr_size): /fragment@0/__overlay__/max22007@0: Relying on default #size-cells value

Check warning on line 46 in arch/arm/boot/dts/overlays/rpi-max22007-overlay.dts

View workflow job for this annotation

GitHub Actions / build_gcc_arm / build

(avoid_default_addr_size): /fragment@0/__overlay__/max22007@0: Relying on default #address-cells value
};

&spidev0 {
status = "disabled";
};

&spidev1 {
status = "disabled";
};