Skip to content

Instantly share code, notes, and snippets.

@chronopoulos
Created May 31, 2020 21:39
Show Gist options
  • Save chronopoulos/35cdd673b1fe0db945918b361b5c4e65 to your computer and use it in GitHub Desktop.
Save chronopoulos/35cdd673b1fe0db945918b361b5c4e65 to your computer and use it in GitHub Desktop.
"rpi-proto"-based overlay for the MikroElektronika 506 WM8731 dev board on the RockPi 4
// rockpi-mikroe-506-overlay.dts
/dts-v1/;
/plugin/;
/ {
compatible = "rockchip,rockpi","rockchip,rk3399";
fragment@0 {
target = <&i2s1>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&i2c7>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
wm8731@1a {
#sound-dai-cells = <0>;
compatible = "wlf,wm8731";
reg = <0x1a>;
status = "okay";
};
};
};
fragment@2 {
target-path = "/sound-ext-card";
__overlay__ {
compatible = "mikroe,506";
i2s-controller = <&i2s1>;
status = "okay";
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment