Commit 7f62af80 authored by Padmanabhan Rajanbabu's avatar Padmanabhan Rajanbabu Committed by Krzysztof Kozlowski
Browse files

arm64: dts: fsd: Add I2S DAI node for Tesla FSD



Add device tree node for I2S0 and I2S1 CPU DAI instances for Tesla
FSD platform.

FSD SoC has 2 I2S instances driving stereo channel I2S audio playback
and capture with external DMA support.

Signed-off-by: default avatarPadmanabhan Rajanbabu <p.rajanbabu@samsung.com>
Link: https://lore.kernel.org/r/20230116103823.90757-4-p.rajanbabu@samsung.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 91d89306
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -34,6 +34,14 @@ &fin_pll {
	clock-frequency = <24000000>;
};

&i2s_0 {
	status = "okay";
};

&i2s_1 {
	status = "okay";
};

&m_can0 {
	status = "okay";
};
+14 −0
Original line number Diff line number Diff line
@@ -367,6 +367,20 @@ m_can3_bus: m-can3-bus-pins {
		samsung,pin-pud = <FSD_PIN_PULL_UP>;
		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
	};

	i2s0_bus: i2s0-bus-pins {
		samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2", "gpd1-3", "gpd1-4";
		samsung,pin-function = <FSD_PIN_FUNC_2>;
		samsung,pin-pud = <FSD_PIN_PULL_DOWN>;
		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
	};

	i2s1_bus: i2s1-bus-pins {
		samsung,pins = "gpd2-0", "gpd2-1", "gpd2-2", "gpd2-3", "gpd2-4";
		samsung,pin-function = <FSD_PIN_FUNC_2>;
		samsung,pin-pud = <FSD_PIN_PULL_DOWN>;
		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
	};
};

&pinctrl_pmu {
+34 −0
Original line number Diff line number Diff line
@@ -760,6 +760,40 @@ hsi2c_7: i2c@14270000 {
			status = "disabled";
		};

		i2s_0: i2s@140e0000 {
			compatible = "tesla,fsd-i2s";
			reg = <0x0 0x140e0000 0x0 0x100>;
			interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
			dmas = <&pdma1 14>, <&pdma1 13>, <&pdma1 12>;
			dma-names = "tx", "rx", "tx-sec";
			#clock-cells = <1>;
			clocks = <&clock_peric PERIC_PCLK_TDM0>,
				 <&clock_peric PERIC_HCLK_TDM0>,
				 <&clock_peric PERIC_HCLK_TDM0>;
			clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
			pinctrl-names = "default";
			pinctrl-0 = <&i2s0_bus>;
			#sound-dai-cells = <1>;
			status = "disabled";
		};

		i2s_1: i2s@140f0000 {
			compatible = "tesla,fsd-i2s";
			reg = <0x0 0x140f0000 0x0 0x100>;
			interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>;
			dmas = <&pdma1 17>, <&pdma1 16>, <&pdma1 15>;
			dma-names = "tx", "rx", "tx-sec";
			#clock-cells = <1>;
			clocks = <&clock_peric PERIC_PCLK_TDM1>,
				 <&clock_peric PERIC_HCLK_TDM1>,
				 <&clock_peric PERIC_HCLK_TDM1>;
			clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
			pinctrl-names = "default";
			pinctrl-0 = <&i2s1_bus>;
			#sound-dai-cells = <1>;
			status = "disabled";
		};

		pinctrl_pmu: pinctrl@114f0000 {
			compatible = "tesla,fsd-pinctrl";
			reg = <0x0 0x114f0000 0x0 0x1000>;