raspberry-pi/4/i2c1: factor out easy dts into helper, add i2c0

This commit is contained in:
M. Ian Graham
2021-12-11 08:34:25 +09:00
parent e81c9aed16
commit 41c4e294f4
4 changed files with 47 additions and 22 deletions

View File

@@ -0,0 +1,18 @@
{
simple-pi4-overlay = { target, status }: {
name = "${target}-${status}-overlay";
dtsText = ''
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2711";
fragment@0 {
target = <&${target}>;
__overlay__ {
status = "${status}";
};
};
};
'';
};
}