Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2271437rdb; Wed, 21 Feb 2024 02:24:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVQ6tfzePiubmpb/aL4kwUcnkFBjr/8xQ0oN2qaoyTUaAZbU14ty2b79iqi01rwsFEFr/9S6t4gXRnlKSFOY7YC92Z/0YRSBGwTEiCYaw== X-Google-Smtp-Source: AGHT+IGB9E2jWdDuhz+Pxnch+iSQClLsxi0H2cyRwCKpiWuFpCWUHEFWJq34SB7tO+uWkK5i4teM X-Received: by 2002:a05:620a:56a:b0:787:4169:16e5 with SMTP id p10-20020a05620a056a00b00787416916e5mr14952296qkp.61.1708511089139; Wed, 21 Feb 2024 02:24:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708511089; cv=pass; d=google.com; s=arc-20160816; b=cSfS/JO84invj/DmogajJqwhQzKE+Eu/sOcYNrTb1YVBGLiM30+UlADej7eqc3F8xF HLp++cCNmgvvQZnfM5GJjzHbDzSsLXtn6PXVtFbGyXFetJTjD4UOTtD256MelQOjSt++ ygJ57+i21UqoLGRUwnoopQNkQ/r+PwOr+uo8y74c1tudPmDbGcCOU8lGbnnkXmHLwSr+ cEZeKwHhmAUaLnKfNIP4HYQ9JF2G8uSxZMUPNmADKZE9Zqd2SF++XQy/IwkzlIkIvWNa /93ni07D/UZky9BaFa7Dgwofyd53lGFeLJdz1y0PYX4/Tctz73Ja+RxQ3VAYbqQYy/xZ eKvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=rq+wybioC8LqyCl9R5OUbd29VCY4wio0dhlATjVMPPA=; fh=YBpXnBz4z5WTNuRpmEjjmJAYZAysFFiStO3A7cE8DhM=; b=paDxxZp6yUCLzI0hkTSuDZMO1rJzllEg62kygx2FtbHzZXefhIT7TDeg/QPTiYPneq PpHGFj3EW9M/shcqAL+NRyYTza404V5wVOJjiIU6CmCgzmma6FV4+2euKfNi/v5r6jSw 9UX82D8g0T44NENr4PYcVDMHLSbqcfjcMZ302cfFst3xA2gyjENo6PEdW/vTzY+JIWOY 1PWTIJAphzTZcibQldGVPmpvckb5T1gF7759vzBsE/j8QMDfG1st9UWvWg5w2+oiLcKf qG4jvICYlSKkJwifFaf7MHzb876nmunXn6wKmCRg1B6sAIu2SDalNMUMGGexJDKTvgBs LPbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oUycE2NW; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-74524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pe16-20020a05620a851000b0078724563d65si10466068qkn.127.2024.02.21.02.24.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 02:24:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oUycE2NW; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-74524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D93171C22D35 for ; Wed, 21 Feb 2024 10:24:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABC3C40BF5; Wed, 21 Feb 2024 10:23:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="oUycE2NW" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 DC44F3F9FD; Wed, 21 Feb 2024 10:23:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708511000; cv=none; b=cG7RQkcXxGBxt8MdixW/OKPHAAu6ZJwCvI8bNGU4iSKlhFuZgLBLchJIB6xK8xmJXrVcHfUAv1DPZxYgZg3K02AQ8DPx8llzqsZQrYwzBDGKY3FEiC74rtnMdwXg5OB+zOVLLrCPuHEPthlvm1c7pdngF9DzDeIhBdMlHCU5OEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708511000; c=relaxed/simple; bh=le3BALk+Oworr4tEt7cCYiWfOlR3LmiluAhEAP4F2ew=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kCWsprillTI2suZ/1nlAlLPdLJXmwHVI9EhPXknWmdm2cuvC9CF/8A1Ur5nJV4Kjdtk6ilOi3/zYR4SlwcwYviAny3YIcnvLzebuZnoWNUYNlViZat6kvvSmqHhPn8rsFE4+heQfqEJiOJYvKBpIQ6nPggtX+r+9FYUAZoNqwE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=oUycE2NW; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 1D51F240004; Wed, 21 Feb 2024 10:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708510997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rq+wybioC8LqyCl9R5OUbd29VCY4wio0dhlATjVMPPA=; b=oUycE2NWHhr9JKpRhvcQI/qQWVSEfDFzrJhUFpN1vSjWU6AyQn8imRa92hSo3TxEO0kEKx 8rz7RIMtA4OqxCLr4Kv2NabqEcl0leme9LfP8D1gdy9lOJg1N5r55IEj/tXQdJkCj7QW5w s4Wi+m8Nw9sPf4+XrNb7w9ptO7eo0MIWpUDYylPlmG0N/aCX2mNsgbr2A3+5+/Ksc/jTAP 2X02jS4CIFw+8y0eKzejrzdcTV6EKU5l7IkD5+t4vj3qeK/oT9nr9HGH+l7hV7juqO+VXK SiNNRFp7lKrPzNmt3vIVYHH4x+2Aw3e9fCkkCfZ/aeBusdC+fbyEEzQdLRIuNw== From: Luca Ceresoli Date: Wed, 21 Feb 2024 11:22:51 +0100 Subject: [PATCH v3 7/7] arm64: dts: rockchip: add the internal audio codec Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240221-rk3308-audio-codec-v3-7-dfa34abfcef6@bootlin.com> References: <20240221-rk3308-audio-codec-v3-0-dfa34abfcef6@bootlin.com> In-Reply-To: <20240221-rk3308-audio-codec-v3-0-dfa34abfcef6@bootlin.com> To: Nicolas Frattaroli , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel Cc: Thomas Petazzoni , linux-rockchip@lists.infradead.org, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.12.4 X-GND-Sasl: luca.ceresoli@bootlin.com The RK3308 has a built-in audio codec that connects internally to i2s_8ch_2 or i2s_8ch_3. Signed-off-by: Luca Ceresoli --- Changed in v3: nothing Changed in v2: - use generic node name --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index 662c55fe9b77..962ea893999b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -803,6 +803,20 @@ cru: clock-controller@ff500000 { assigned-clock-rates = <32768>; }; + codec: codec@ff560000 { + compatible = "rockchip,rk3308-codec"; + reg = <0x0 0xff560000 0x0 0x10000>; + rockchip,grf = <&grf>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + clocks = <&cru SCLK_I2S2_8CH_TX_OUT>, + <&cru SCLK_I2S2_8CH_RX_OUT>, + <&cru PCLK_ACODEC>; + reset-names = "codec-reset"; + resets = <&cru SRST_ACODEC_P>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + gic: interrupt-controller@ff580000 { compatible = "arm,gic-400"; reg = <0x0 0xff581000 0x0 0x1000>, -- 2.34.1