// Definitions for audiosense add on soundcard /dts-v1/; /plugin/; #include #include / { compatible = "brcm,bcm2835"; fragment@0 { target = <&i2s>; __overlay__ { status = "okay"; }; }; fragment@1 { target-path = "/"; __overlay__ { codec_reg_1v8: codec-reg-1v8 { compatible = "regulator-fixed"; regulator-name = "tlv320aic3204_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; }; /* audio external oscillator */ codec_osc: codec_osc { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <12000000>; /* 12 MHz */ }; }; }; fragment@2 { target = <&gpio>; __overlay__ { codec_rst: codec-rst { brcm,pins = <26>; brcm,function = ; }; }; }; fragment@3 { target = <&i2c1>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; codec: tlv320aic32x4@18 { #sound-dai-cells = <0>; compatible = "ti,tlv320aic32x4"; reg = <0x18>; clocks = <&codec_osc>; clock-names = "mclk"; iov-supply = <&vdd_3v3_reg>; ldoin-supply = <&vdd_3v3_reg>; gpio-controller; #gpio-cells = <2>; reset-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; status = "okay"; }; }; }; fragment@4 { target = <&sound>; __overlay__ { compatible = "as,audiosense-pi"; i2s-controller = <&i2s>; status = "okay"; }; }; };