Audioinjector addons dts : add reset and regulators for the Octo product.
authorMatt Flax <flatmax@flatmax.org>
Mon, 27 Mar 2017 11:26:49 +0000 (22:26 +1100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:07:20 +0000 (01:07 +0000)
This patch adds a reset GPIO for the AudioInjector.net octo sound card.
This patch adds missing regulators for the cs42448 codec.

arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts

index dbf2f3cacc2e6bf5b7116fbadd97f2781580a79c..a36fa85a61f7eaab35ca481ed1dac621e2342e6d 100644 (file)
        };
 
        fragment@1 {
+               target = <&soc>;
+                       __overlay__ {
+                               reg_digital: reg_digital@0 {
+                                 compatible = "regulator-fixed";
+                                 regulator-name = "cs42448_dig_supply";
+                                 regulator-min-microvolt = <3300000>;
+                                 regulator-max-microvolt = <3300000>;
+                                 regulator-always-on;
+                       };
+                               reg_analogue: reg_analogue@0 {
+                                 compatible = "regulator-fixed";
+                                 regulator-name = "cs42448_ana_supply";
+                                 regulator-min-microvolt = <5000000>;
+                                 regulator-max-microvolt = <5000000>;
+                                 regulator-always-on;
+                       };
+               };
+       };
+
+       fragment@2 {
                target = <&i2c1>;
                __overlay__ {
                        #address-cells = <1>;
                                reg = <0x48>;
                                clocks = <&cs42448_mclk>;
                                clock-names = "mclk";
+                               VA-supply = <&reg_analogue>;
+                               VD-supply = <&reg_digital>;
+                               VLS-supply = <&reg_digital>;
+                               VLC-supply = <&reg_digital>;
                                status = "okay";
                        };
 
                };
        };
 
-       fragment@2 {
+       fragment@3 {
                target = <&sound>;
                __overlay__ {
                        compatible = "ai,audioinjector-octo-soundcard";
                        mult-gpios = <&gpio 27 0>, <&gpio 22 0>, <&gpio 23 0>,
                                     <&gpio 24 0>;
+                       reset-gpios = <&gpio 5 0>;
                        i2s-controller = <&i2s>;
                        codec = <&cs42448>;
                        status = "okay";