Commit c37bab0b authored by Matt Flax's avatar Matt Flax Committed by Phil Elwell
Browse files

Audioinjector addons dts : add reset and regulators for the Octo product.

This patch adds a reset GPIO for the AudioInjector.net octo sound card.
This patch adds missing regulators for the cs42448 codec.
parent cd6413a8
Loading
Loading
Loading
Loading
+26 −1
Original line number Diff line number Diff line
@@ -13,6 +13,26 @@
	};

	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>;
@@ -25,6 +45,10 @@
				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";
			};

@@ -36,12 +60,13 @@
		};
	};

	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";