From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B4C213A26F; Tue, 27 Feb 2024 14:10:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043044; cv=none; b=eR5XxPXUlgXyBqRvjsE9vM6l1DHHWWm6agFG/cDuG20b9utfxV318WVAGrkyc48QhxrWwk8tHW0XG0aNMQgyRaAKLeRvntd/zlD23OLXqRq/oSaDZOinYddPud/xqTEKIZJ14ehaS+b9ttJUNKYGk/80IfADy7OV2a4M56vU/fc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043044; c=relaxed/simple; bh=6adyS3NF2FE6Om2weYEx0/NZinQy4tajziot4hFCEAE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cNX1Sj1s/Z3/lNp0OCo0kTaXcl8rPgB+AECaHL6HKzZGxmU2JolPCk+37vu9KD7DvilUeyNvkpZYpbTRUXOebCU2JRiiqapBfvR3IEPalks+n7cObEL+wmm/8AA+fUh/2y7+TRQAOG2fwcx1paYCV3h7YAQGRxGgbFfEmGzME0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RsnrZWmU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RsnrZWmU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E153BC433C7; Tue, 27 Feb 2024 14:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709043044; bh=6adyS3NF2FE6Om2weYEx0/NZinQy4tajziot4hFCEAE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RsnrZWmUkI1AQxPMm5YgYcuvu8SyONnBlcq0pwSNJjLG4fe7tuV618wRzfstta9GE puOtQmhihZOwcVQfDkxrsbK+8Qh1BqEkGBwlWJMy8ck6vNDTYNZPQ0KO/67MLEieBW BBE3iTcjfJGeHNQngBbAgZaCGDusHiZexPhpN2SY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Bee , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.15 185/245] arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4 Date: Tue, 27 Feb 2024 14:26:13 +0100 Message-ID: <20240227131621.215839616@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131615.098467438@linuxfoundation.org> References: <20240227131615.098467438@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Bee [ Upstream commit 65bd2b8bdb3bddc37bea695789713916327e1c1f ] ROCK Pi 4 boards have the codec connected to i2s0 and it is accessible via i2c1 address 0x11. Add an audio-graph-card for it. Signed-off-by: Alex Bee Link: https://lore.kernel.org/r/20210618181256.27992-5-knaerzche@gmail.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- .../boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 203460d46f182..0af694540c1eb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -36,6 +36,12 @@ sdio_pwrseq: sdio-pwrseq { reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; }; + sound { + compatible = "audio-graph-card"; + label = "Analog"; + dais = <&i2s0_p0>; + }; + vcc12v_dcin: dc-12v { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -423,6 +429,20 @@ &i2c1 { i2c-scl-rising-time-ns = <300>; i2c-scl-falling-time-ns = <15>; status = "okay"; + + es8316: codec@11 { + compatible = "everest,es8316"; + reg = <0x11>; + clocks = <&cru SCLK_I2S_8CH_OUT>; + clock-names = "mclk"; + #sound-dai-cells = <0>; + + port { + es8316_p0_0: endpoint { + remote-endpoint = <&i2s0_p0_0>; + }; + }; + }; }; &i2c3 { @@ -442,6 +462,14 @@ &i2s0 { rockchip,capture-channels = <2>; rockchip,playback-channels = <2>; status = "okay"; + + i2s0_p0: port { + i2s0_p0_0: endpoint { + dai-format = "i2s"; + mclk-fs = <256>; + remote-endpoint = <&es8316_p0_0>; + }; + }; }; &i2s1 { -- 2.43.0