From patchwork Mon May 6 15:51:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 787BDC10F16 for ; Mon, 6 May 2024 15:51:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EqnrQRn01Qp9tx6V44ualyy83+xdjmhzMJq581XgjBA=; b=lu5D7+V47Xcavq kDxvvPAjxDlDQM+ysAc68TnxmEvJBZDG2IY6pJeDkv+5QvujGgS5Xid+6wxZe8Fgb//YyRa7gRaWz XGvSUd/3EYjuzrfzt9w9e8SWi76yeN4gHbcWCwqYtA7beOpyJ5KRF6ty+gUVUHBWcPVTW2G1q2QDD WefE2q4vRieVB9DyIbC4OqixLMhPCVcpbTKW8N6jx8VujQwq5ZIH4fb0RXkoZ7bmqPr3g5PEBms9l gaveeAqjNSef4mKChpNkZqycATeyd0gIV404wDLVhQWT0b9HPV/xyyPoJw9/nLA4cF0YgRaj5nWA7 9TC5Bzlh97YWt9Jn4V5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s40cc-00000007vWW-2rpc; Mon, 06 May 2024 15:51:22 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s40cY-00000007vUE-2GNi; Mon, 06 May 2024 15:51:20 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a59b58fe083so264241766b.0; Mon, 06 May 2024 08:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715010674; x=1715615474; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r6WL+utsI5ALbgqCnqncesAytLi3m+WaTzt+MUlSYpc=; b=nYSocjnwUIkFU8HZy0v+u11X+ftDipHn1rQzk1tUftJ6p9YqNmyJ7p4qZHY+XHBN6d GtNFF1gFaamoM2ojq+ncFY86hyOU4ubJNHJNpVGVeA9Pmh2YUypsSPG18svAPe0a5ZEI ebg0KLa3C+s4Dw4VvPhGCmwft/rWK8vF/jCr4VBQKEmAjgMwr1kvDe2/9Bt6fWBzFERS YJEhAK9GOpuEjgmKagicIISRjjVg4hjuISBFnA445NCc4O3+hRINgiSPNFbo/RNCspbV +IPRGZ27GKJxc/M+BEeI8YlyaycD9Gant//YJ7ERsntlV3jYW3s5U7oECPKRUVXEdGDJ UPig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715010674; x=1715615474; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r6WL+utsI5ALbgqCnqncesAytLi3m+WaTzt+MUlSYpc=; b=L/F/rGzyXZEiLgc1PAETnSSXyoBbAEsNSdlFC0IfefnwtqcCYaMtRaRJ0KPchbx1ZS EzyiYKOSt1UnKniZrc4B8aUxn6Pxu6edUdSzKW5NIPF9M1D1V7c7/tGryRB8wUVMW+Yx 6kbVCpYF9j8SG40CzOL9TCCQqBuPEnQP7hngvE+YXkmxPORpyMnkHJzZTtwjqg9uaul0 5rFsYXv5JapxP3XQ/VQrvXuCqdwh4OkgJ89DrMKzk/olgmJA8u9AcDW4KioZjEle7g88 s7xaUvmiDnXQrxvs+tujooA1iMrVDDpNQ0QH4gxmJu8CwRUBvbJH1eouWZ9m2r21RCQb yqpw== X-Forwarded-Encrypted: i=1; AJvYcCXW9FK2uqITdsgsvLDQSA4gLwa7XsKLeXXbV+PTR0hT39zKpt8IsK3aXDe7tAtRanM9CASMkMjM1CZ1T0gnsKpwLRcToAOEVvrGzURguZ3rL0pgf3EbMcg3AD17L4rH3lyOS3ElY8Jocb2vu0ue2vq4TSCpLehxjqI= X-Gm-Message-State: AOJu0Yxl3qsc9w3YJ8gDU7KlUcNBPufOYAkhrtOu609e0f0Zm1WXoPz+ hp/xw66Jqi7se9MBeVJARUwGmG7m4/cpjHvTb/LE6oqHKEl9/qo= X-Google-Smtp-Source: AGHT+IHhmPeJC0I0evCo/zPiqGgGGWlw4mGMDbzXZO590N8dUNiAb2cYXbXPNJmb8x7X0qmUdBjj5g== X-Received: by 2002:a17:906:787:b0:a59:9e01:e784 with SMTP id l7-20020a170906078700b00a599e01e784mr4665005ejc.5.1715010673882; Mon, 06 May 2024 08:51:13 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id y24-20020a170906071800b00a59cec38bf3sm1356230ejb.52.2024.05.06.08.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:51:13 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 1/2] ARM: dts: rockchip: Add i2s nodes for RK3128 Date: Mon, 6 May 2024 17:51:02 +0200 Message-ID: <20240506155103.206592-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506155103.206592-1-knaerzche@gmail.com> References: <20240506155103.206592-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_085118_637156_0879CC4F X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org RK3128 SoCs have two i2s controllers. i2s_8ch has 8 tx and 2 rx channels and is internally hard-wired to the hdmi-controller respectivly the SoC's analog codec. i2s_2ch has 2 tx and 2 rx channels and can also be used externally as it's pins are exposed though pinctrl. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fb98873fd94e..d0d1d7c2ab2f 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -360,6 +360,18 @@ usb_host_ohci: usb@101e0000 { status = "disabled"; }; + i2s_8ch: i2s@10200000 { + compatible = "rockchip,rk3128-i2s", "rockchip,rk3066-i2s"; + reg = <0x10200000 0x1000>; + interrupts = ; + clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S_8CH>; + clock-names = "i2s_clk", "i2s_hclk"; + dmas = <&pdma 14>, <&pdma 15>; + dma-names = "tx", "rx"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + sdmmc: mmc@10214000 { compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x10214000 0x4000>; @@ -408,6 +420,21 @@ emmc: mmc@1021c000 { status = "disabled"; }; + i2s_2ch: i2s@10220000 { + compatible = "rockchip,rk3128-i2s", "rockchip,rk3066-i2s"; + reg = <0x10220000 0x1000>; + interrupts = ; + clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S_2CH>; + clock-names = "i2s_clk", "i2s_hclk"; + dmas = <&pdma 0>, <&pdma 1>; + dma-names = "tx", "rx"; + rockchip,playback-channels = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s_bus>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + nfc: nand-controller@10500000 { compatible = "rockchip,rk3128-nfc", "rockchip,rk2928-nfc"; reg = <0x10500000 0x4000>; From patchwork Mon May 6 15:51:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0415BC25B4F for ; Mon, 6 May 2024 15:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KC5BnuIMniLalbfdLPZKtN7epLIbow7HW1yMfJhGmyc=; b=UtFNgO4P633FSg tRDbmbfbTP40/I0ajWWcpYIXhVcC1QsvXh7soJCni5r4xXbceig6g/psaNK8Lry8BguO8J4CdQnKV L1R3DFvDWlqJ1kkmUPx64/3o1PJcJ3n9UoHML715D/rdi8lNSCNcyMExsWtO8n890AgLVpe9Vyrem sQxXJlDDYPdWc/FadGha4k5Iy7WnGdEgBIUz/Qt6Yljm99SKFDOcC/UGOnlXNDtEHVu3vS9H56r8s U+S6sxQ8QnrPpgNXheEsBZf6+/3IpV4bORj2aauucmNK+jcaPbfJNR7LGg4rZdp0qtfEfINw/c20N A5TXsnp2+qtMoAnPguNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s40cf-00000007vYr-1zTn; Mon, 06 May 2024 15:51:25 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s40cZ-00000007vUI-0e4w; Mon, 06 May 2024 15:51:21 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a52223e004dso432271766b.2; Mon, 06 May 2024 08:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715010675; x=1715615475; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8I21WtsUZcdgpZuf38No+IlnE5W2vGDappaz3+ciLm0=; b=InvnENNe1kKVXnRvPYw8zdQPXBVJlXWOKA3+BTHvSq9Z17aUfUZqjsUCjPcWe3v2h3 ymCeLXAK1wHAhGf/EVRIZecoXKvD3RsDWUQl0YjpkdSIDbiELTjAKOPL8DwZqAgw38mz VXkRNSsIvZXpZS8PsQVM2DebBQXQdZvZ5LQRd3IX80ZewchPsg9dn2jNicWlimUSjW3/ diENZH7JEP4nFQMVMqY1NYpWBCWA5Q+OisiNYVIjJGTUATOVPJOcb18XHB03PJUtzUBb nPhW8EXncr6jPaLsUOdybtsCc207eZa6BeJXEKSxXVbMBK+T2lwgh1RfBbKrxEjGq+kG bEUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715010675; x=1715615475; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8I21WtsUZcdgpZuf38No+IlnE5W2vGDappaz3+ciLm0=; b=Ooe9PEYOIpEDk1jJMrj0GSWN/Ht0bfdYXQs1WiWji6pZ153d2CCij313yCBenDW/CY iac1B6FjXXqovRXubvg3H0Np34JV+Oz5D4MCFTtbXxybos89DEJYqbYxtijgShWDB2ou /Utvo+p6ist4HZwAdXMKsNhHltjqe50SBKqYLo0IPf4PDxc6VTiL5quErE5G4z90ropp H4+zPyyi1krTZOdl27MhZMNECgYYRCjtPZMWnixpoBkZdTSWhElw/0r+LWpbllN4fsLo LpYLunItLbMWBwC0h0mN/O0ptFRZy4qqeCpwfTmGxJimgY6ufAq78U+H/KKbY1a4x3iV jbJA== X-Forwarded-Encrypted: i=1; AJvYcCXVgDTaMO/dv70mcq4mQ2J0fCtiD0jOMFJ3J1sarQAA+KdX2BxcTxMX1vTXWl3tptLxgssAsBNPehdtQuOPuxfNKkCfrN8s16++AUvXnpXfR2/hJKM/XtnHTVmQlsbYUt+xO9pWRXxSrG1cU3fEnxYuW/25yrh4FEs= X-Gm-Message-State: AOJu0Ywc1uDiHOkOiyikkGhXOcQ5gK3WJeUUty+74OUCn1sZcYDo6lqw VDQGY8lSP991EQRlJu4HOfy9Yk0E7kIjk4t1kK8oZDVhmZ31Awo= X-Google-Smtp-Source: AGHT+IGUXcRYajK3MdV54mEIKa/3JOK3wciOaMvhxvgKosMw2KgO/7txS4O4aJlUGlkK5fzdsMOW2Q== X-Received: by 2002:a17:907:7e97:b0:a59:b1cf:fea0 with SMTP id qb23-20020a1709077e9700b00a59b1cffea0mr6357081ejc.19.1715010674674; Mon, 06 May 2024 08:51:14 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id y24-20020a170906071800b00a59cec38bf3sm1356230ejb.52.2024.05.06.08.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:51:14 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 2/2] ARM: dts: rockchip: Add spdif node for RK3128 Date: Mon, 6 May 2024 17:51:03 +0200 Message-ID: <20240506155103.206592-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506155103.206592-1-knaerzche@gmail.com> References: <20240506155103.206592-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_085119_215509_782678B5 X-CRM114-Status: GOOD ( 10.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SoC has a S/PDIF TX controller which is fully compatible with older generation Rockchip SoCs. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index d0d1d7c2ab2f..bf6e05503141 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -372,6 +372,20 @@ i2s_8ch: i2s@10200000 { status = "disabled"; }; + spdif: spdif@10204000 { + compatible = "rockchip,rk3128-spdif", "rockchip,rk3066-spdif"; + reg = <0x10204000 0x1000>; + interrupts = ; + clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF>; + clock-names = "mclk", "hclk"; + dmas = <&pdma 13>; + dma-names = "tx"; + pinctrl-names = "default"; + pinctrl-0 = <&spdif_tx>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + sdmmc: mmc@10214000 { compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x10214000 0x4000>;