Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) Freescale i.MX audio complex with ES8328 codec
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) - compatible       : "fsl,imx-audio-es8328"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) - model            : The user-visible name of this sound complex
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) - ssi-controller   : The phandle of the i.MX SSI controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) - jack-gpio        : Optional GPIO for headphone jack
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) - audio-amp-supply : Power regulator for speaker amps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) - audio-codec      : The phandle of the ES8328 audio codec
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - audio-routing    : A list of the connections between audio components.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)                      Each entry is a pair of strings, the first being the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 		     connection's sink, the second being the connection's
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 		     source. Valid names could be power supplies, ES8328
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 		     pins, and the jacks on the board:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 			Power supplies:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 			   * audio-amp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 			ES8328 pins:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 			   * LOUT1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 			   * LOUT2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 			   * ROUT1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 			   * ROUT2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 			   * LINPUT1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 			   * LINPUT2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 			   * RINPUT1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 			   * RINPUT2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 			   * Mic PGA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 			Board connectors:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 			   * Headphone
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 			   * Speaker
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 			   * Mic Jack
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) - mux-int-port     : The internal port of the i.MX audio muxer (AUDMUX)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) - mux-ext-port     : The external port of the i.MX audio muxer (AUDMIX)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Note: The AUDMUX port numbering should start at 1, which is consistent with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) hardware manual.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) sound {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	compatible = "fsl,imx-audio-es8328";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	model = "imx-audio-es8328";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	ssi-controller = <&ssi1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	audio-codec = <&codec>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	jack-gpio = <&gpio5 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	audio-amp-supply = <&reg_audio_amp>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	audio-routing =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 		"Speaker", "LOUT2",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 		"Speaker", "ROUT2",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 		"Speaker", "audio-amp",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 		"Headphone", "ROUT1",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 		"Headphone", "LOUT1",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 		"LINPUT1", "Mic Jack",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 		"RINPUT1", "Mic Jack",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 		"Mic Jack", "Mic Bias";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	mux-int-port = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	mux-ext-port = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) };