From patchwork Wed Mar 15 11:47:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70171 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2280039wrd; Wed, 15 Mar 2023 04:51:00 -0700 (PDT) X-Google-Smtp-Source: AK7set/UM4VG492hAVmoqxKtZZBJ301xxhvrPyBF1DKiHQ9I5ordi7HEDvQYSUo5/GR6/G6OUaaq X-Received: by 2002:a17:903:6c8:b0:19e:711b:83c with SMTP id kj8-20020a17090306c800b0019e711b083cmr1890107plb.39.1678881060157; Wed, 15 Mar 2023 04:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881060; cv=none; d=google.com; s=arc-20160816; b=SsAcqVdLO5Fyly6e6fuUUEN9my3D92oRTwohVPlhoao6aCs2HoPncUzvY/rPRQtXiE UVWZwn440LxZVKyZIZ62Io6nFZS7E53gWXiM7nV35Id/Vh59mtK0zdgSJAQEOatsIpQP ySoqJwTQmByf34LXxUin2Vnf3cvTcbNLDW9k6DCFimhCVLkRnXLKU3V5Vf3zq4pgk3Ja KKupsMLPpcsBYbGyxpm6dgQBsFnaQzvuFoFkg6Rxr7GAbCtrgoaBFO4pONGXZOGK9XiF IYo/VMVtQXUGmZ6sxABaaqVHAyUvYE8LP+wBtGUcHh3mTGqvuwuXv4KBIexMnqxR+5Wk RgGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T1jYmC9DqwMhBDA/JxUXBZXYrjq8B+gF+ICU+/lIBzc=; b=Jl1B6+Qyb4mFyZZvxtO1MXibYliKnqi3PKQrkNKfCeFjVpTIFzWpwaV8AdTqMQ3KMX NTaphez5r9EtH9SVcbPVo5AsNkxeHOvgdHInhR/iKnVZwMJr6Knz/2rdn+JYwxnQCwqX EqXsNTXnDvW+0bGRG+2yzqenlrN8i2gmIzJYBQKGCG1Al63MOtO/3CiddRQZBR1M+I/M hXi8g3C+cGkiWMbufblDRfdQhdcEKGqZx99hfxaBlkDtqMLQpcYfLILGF56sOVkNxd5M NrW7xJ3KaSvvG5T2RxJNzESvE+rsj9daCQSxSP3y9LstMEotwsxgs+WUnVaSYMyysv+n rSUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HCNZxmYd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik18-20020a170902ab1200b0019b521f4b07si4805195plb.52.2023.03.15.04.50.47; Wed, 15 Mar 2023 04:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HCNZxmYd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231668AbjCOLsX (ORCPT + 99 others); Wed, 15 Mar 2023 07:48:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbjCOLsR (ORCPT ); Wed, 15 Mar 2023 07:48:17 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EAFE1C5AC; Wed, 15 Mar 2023 04:48:16 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 366496603056; Wed, 15 Mar 2023 11:48:15 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880895; bh=33Dl4++lH2paqP+E34n30hxUALKXJWejZRw6a5N0108=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HCNZxmYd7Rk0fF2LXGnK5jUM8+WvdGbJ1/NIbtWczIWZsLTe0DuVImLuU783oGdnB 9MgSeJidV8hn6HPZM++7HUy3sXUZrkaeQbaAO8SetTyoixcptmM/FMussRM/6ALQev qTce1dWZHlFBn9T7ZwNr6fRhFRshrcBmWEasojVTt2v83vUO6Bg618LUuG61r5Tnxj 57jwTbsNaLZA8Yn1g1GWa1uhzdXktVk1kVGEdpHA1st3WVMGAvC3DgiBoNS4sgHZ4/ MFsmFrwUaYPfSWvnglvF0eEski/0pojYpbepZshIvy4ZUcJrJrjRVr8WwJBoj6DMlg UKR3/uvf1PnSQ== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 01/11] dt-bindings: firmware: arm,scmi: Document assigned-clocks and assigned-clock-rates Date: Wed, 15 Mar 2023 13:47:56 +0200 Message-Id: <20230315114806.3819515-2-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434386466964843?= X-GMAIL-MSGID: =?utf-8?q?1760434386466964843?= Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict protocol child node properties") the following dtbs_check warning is shown: rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected) Add the missing properties. Signed-off-by: Cristian Ciocaltea --- Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 2f7c51c75e85..10cc7ee46893 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -246,6 +246,9 @@ $defs: Channel specifier required when using OP-TEE transport and protocol has a dedicated communication channel. + assigned-clocks: true + assigned-clock-rates: true + required: - reg From patchwork Wed Mar 15 11:47:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2280085wrd; Wed, 15 Mar 2023 04:51:08 -0700 (PDT) X-Google-Smtp-Source: AK7set/HYgp+90zWzYCK8I5XFGpzXGp+WVZk17TcWK2+BuzBltV5o13l5M93hkyUqTcCbL0BQo+C X-Received: by 2002:a17:90b:4a48:b0:23e:2b3c:d4a7 with SMTP id lb8-20020a17090b4a4800b0023e2b3cd4a7mr2086625pjb.35.1678881068478; Wed, 15 Mar 2023 04:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881068; cv=none; d=google.com; s=arc-20160816; b=f9QCB89wMsaruRHav+EtB6diriyiGpu2EvQ87VnkR8xAopmGAOqA94OfzIzeAwb/GK QiimugaaeOEdcCobtSQ7g6axQsj5HqdlAdzoxtMHAsBFM7V/n+Z9qC8q845e/Mu6fLdR X7QJMFa8tDoZ0ZNd9YnC9ALNaAndBDzEZaKvla30qdYaMsaGcy4rHQ06tSIVcP4Bkgya Wea9cm9ficng8V3ShzoZ3lmmjXlt1rYtkCf4WTyUgcOJT5za2T2MMUDjnF9FIJudWXmK /E2M+vvRBBxgibfDBbR5piJ9Ps+9anj7KG5C8XO3n4xuSqmWLcrc9vLoEVv5jg1qf/4k vkYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1QmDIc3RNkWnKufEycK3co8No0MjXufOd8NXdSv/2QA=; b=jerrSEfbIE2tBw8pZZJ3xQBHVzPZq3+0U79u0onppqrpyeVbDE5JFOR84MLFAp6CVT rnEY0hYkA143OKhXo0dwxqfDX3yqbsAJ0xmugqhzeIxuPv6JaiSHxzpXWK9s9Hkl1lDU fv4mbjOr1ByQelEI+D8xzh9vOB1t4krtVZvMi1DOFp24v9LWJ21LhaKJM2LJgGaDCUwM /y1KVryv+K0oS5uRhGHIANuNWcPC0bnEdH4YPBIqTs7U4COTj4wGFjcgnKFDrsAS5UAu C/8H5xe8Tegyd7wvjQLBMOHvEm+zk/9s9U+8Gn9YKqU/cvoxS1/c95tTlXj1um+5Jp3O vL8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=X58SfGRM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a63e247000000b005077dda0491si4787288pgj.523.2023.03.15.04.50.56; Wed, 15 Mar 2023 04:51:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=X58SfGRM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231652AbjCOLs2 (ORCPT + 99 others); Wed, 15 Mar 2023 07:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbjCOLsV (ORCPT ); Wed, 15 Mar 2023 07:48:21 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D77DC55505; Wed, 15 Mar 2023 04:48:19 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 57B026603058; Wed, 15 Mar 2023 11:48:18 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880898; bh=C+CkBCBIxEIFOAjzgyNm1268qn0Q1m0JZg82+SgLbSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X58SfGRMKG9NMnROtcQIsHKPqTiN3hEwxxvjMK1CBZAuNkvJZzsUYX46U7ZK9w6S6 dF4cWgtlSfBpB8jUa/4djaWG13TVCtFcT45OS/83t3Yw6fakhmegMNTgKGABCsilX/ wHS2lvwEUTbpSNOotY3XW9z1pVo7f5vlTrQWiLpSupOFiyAOoNrA8OYMPLMmr5TPyN JcBcMmqRoAFaPZMBUMUwP7t2IyoYiSr8EtaBYoSFn2xK3I5BULLPfOYbfOu6Wk2QXq wcRNhblusYn5BaeQW5QYIAVEuJsdJVOaqvBKDSUpfN1l8nBSghvjXURdUp51ZFH4+v PCS7fq1RtkfSA== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 02/11] dt-bindings: serial: snps-dw-apb-uart: Relax dma-names order constraint Date: Wed, 15 Mar 2023 13:47:57 +0200 Message-Id: <20230315114806.3819515-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434395149395834?= X-GMAIL-MSGID: =?utf-8?q?1760434395149395834?= Commit 370f696e4474 ("dt-bindings: serial: snps-dw-apb-uart: add dma & dma-names properties") documented dma-names property to handle Allwiner D1 dtbs_check warnings, but relies on a strict rx->tx ordering, which is the reverse of what a different board expects: rk3326-odroid-go2.dtb: serial@ff030000: dma-names:0: 'rx' was expected A quick and incomplete check shows the inconsistency is present in many other DT files: $ git grep -A10 snps,dw-apb-uart | grep dma-names | sort -u arch/arm64/boot/dts/rockchip/px30.dtsi- dma-names = "tx", "rx"; arch/arm64/boot/dts/rockchip/rk3328.dtsi- dma-names = "tx", "rx"; arch/arm64/boot/dts/rockchip/rk3588s.dtsi- dma-names = "tx", "rx"; arch/arm/boot/dts/rk3066a.dtsi- dma-names = "tx", "rx"; arch/arm/boot/dts/rk3128.dtsi- dma-names = "tx", "rx"; arch/arm/boot/dts/rk3288.dtsi- dma-names = "tx", "rx"; arch/arm/boot/dts/rv1126.dtsi- dma-names = "tx", "rx"; arch/arm/boot/dts/socfpga.dtsi- dma-names = "tx", "rx"; arch/arm/boot/dts/sun6i-a31.dtsi- dma-names = "rx", "tx"; arch/arm/boot/dts/sun8i-a23-a33.dtsi- dma-names = "rx", "tx"; arch/arm/boot/dts/sun8i-v3s.dtsi- dma-names = "rx", "tx"; arch/arm/boot/dts/sunxi-h3-h5.dtsi- dma-names = "rx", "tx"; arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi- dma-names = "rx", "tx"; Do not enforce the order of the dma-names items. Signed-off-by: Cristian Ciocaltea --- .../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index 2becdfab4f15..d374844a61a5 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -71,9 +71,13 @@ properties: minItems: 2 dma-names: - items: - - const: rx - - const: tx + oneOf: + - items: + - const: tx + - const: rx + - items: + - const: rx + - const: tx snps,uart-16550-compatible: description: reflects the value of UART_16550_COMPATIBLE configuration From patchwork Wed Mar 15 11:47:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2280126wrd; Wed, 15 Mar 2023 04:51:14 -0700 (PDT) X-Google-Smtp-Source: AK7set/8UyYQsDxbWZhdiY3ulsDaa2qHgIPvFUFt5cIjW2WKfvDqVDGLBjqHG5OmbfS5dy6lmrCX X-Received: by 2002:a17:903:2303:b0:19e:e39b:6da3 with SMTP id d3-20020a170903230300b0019ee39b6da3mr2580495plh.16.1678881074422; Wed, 15 Mar 2023 04:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881074; cv=none; d=google.com; s=arc-20160816; b=hEuYHW/qDG/fdfKc8GL1p/YgfdCp+bhqtFGdBjwRLgjwcKNWQ+Paz4HK3NZvgAojJx a0uO7u7WPJY8m9A151GwLC/yrkbRXYRbVRUK0H+UfUcDQqXwER4dXKWXDn8pbmWJT7US iADOKOq13SHGGY642p3HOSQUlUaH5bJ5h9nwKEHKzHuWQsTNG90FcSkDVlg8qYkNtE6k apBFq5asbPInvf98/Wmi6pQj3O98HnqCeqGrqzG7qiL/UCE4ba8EwwiteLSpUd8UG/oJ jevVrojkB/26H3GYloS9+pYYuraYgDLbB0HrEScz9oEeV0bt0I8q7ZMwpTbYILvCLfX/ iqDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zFTdhwn5Jz8CvTo9VCsYD+XBfGFJQMqj/IWPjIK7cWs=; b=nOQxbm7FI+FlMNF1orXC4kj7Uc1q3wjA5At3dQjocRXeFzsVpq7/WgmYASKjfBRMGo blYON0cp49YcpbLA+tv1WlJoFON3XRzPTCni16xTeR46999k3e/wQE38m+R+C/GlSSVO HzphtP8ZbFmM4j9j7YMjT9mNFIoxq6fIw7dKLtb1BQjszmtLH4klmnu8whrWkCOzjUD4 iCEXAuy5/GrJznAhQmpq4oasyLG4VHzZYwbQkMZEZyZSngvVHEMwpmSATuKK26u8xKIZ aUYlnEBn9NTCHPrAEPI2O1meIwIfAS1mx0+IwoTy2ho2kmerYkPs8k30lcEetyH1YGFJ 1Jeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QnqfcjIp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lh15-20020a170903290f00b0019afac78059si4876868plb.603.2023.03.15.04.51.02; Wed, 15 Mar 2023 04:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QnqfcjIp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbjCOLsd (ORCPT + 99 others); Wed, 15 Mar 2023 07:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231706AbjCOLsZ (ORCPT ); Wed, 15 Mar 2023 07:48:25 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC3DF509A6; Wed, 15 Mar 2023 04:48:22 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2435D660305A; Wed, 15 Mar 2023 11:48:21 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880901; bh=ZuudVlc08qJkqAcQq3C5hE5Igxbt5HAMhYKp817ykE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QnqfcjIpg5gttJFa+xtfCRjgiVBae3/YzdOmBS16b1OuDD46PK8oVxkSaACkGJBkk klYXjhs5023D3QNkXny0M6lJuOwWsNPun8rClZlYAdehPDXHxPvdlylk+okNUiD4jt VonMl5KJLV4eHNeiAeDOyl8S2jbBFcBcLZ31s8LtByhkGkzSsG8+vcHHyHIgb0euJE Ca0t2/7YsZJ2dzSAUcIOy0EDddNaCpnfSI/7lrXovZOsMqsZEo7uE9B1UuAj/APL+Z zuvAQ+GUXLkWOWrRzq8l5cEpPfnYqRXer+uUnUTOD2uryVHe9qzwLoFn6SwidkBm2u NlxzqTnfY4y0w== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 03/11] ASoC: dt-bindings: everest,es8316: Document audio graph port Date: Wed, 15 Mar 2023 13:47:58 +0200 Message-Id: <20230315114806.3819515-4-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434401721001493?= X-GMAIL-MSGID: =?utf-8?q?1760434401721001493?= The ES8316 codec is currently used in conjunction with audio-graph-card to provide an endpoint for binding with the other side of the audio link. This is achieved via the 'port' property, which is not allowed: rk3399-rockpro64.dtb: codec@11: Unevaluated properties are not allowed ('port' was unexpected) Fix the issue by documenting the missing property. Signed-off-by: Cristian Ciocaltea Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/everest,es8316.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/everest,es8316.yaml b/Documentation/devicetree/bindings/sound/everest,es8316.yaml index d9f8f0c7f6bb..80cd81ecae6f 100644 --- a/Documentation/devicetree/bindings/sound/everest,es8316.yaml +++ b/Documentation/devicetree/bindings/sound/everest,es8316.yaml @@ -28,6 +28,10 @@ properties: items: - const: mclk + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + "#sound-dai-cells": const: 0 From patchwork Wed Mar 15 11:47:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2279771wrd; Wed, 15 Mar 2023 04:50:17 -0700 (PDT) X-Google-Smtp-Source: AK7set8bah05fjHB86Z453Q/gB1WHx2rC31CEqphRuWb02AwY4F9+SYp7RsPTqwRcZCqf2Ids1c2 X-Received: by 2002:a17:90a:2dcd:b0:23d:1dd2:fdc2 with SMTP id q13-20020a17090a2dcd00b0023d1dd2fdc2mr7900772pjm.26.1678881017398; Wed, 15 Mar 2023 04:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881017; cv=none; d=google.com; s=arc-20160816; b=UR+ikBzJyam/6bI37VxZhNOQjdkSEt4wE6zmS0ZQvu7gHgv6SOUg8j+zkbT2Kg/fug jXTKNy79Ru+tvv6UBRio5AVk7+8O1McmCK+Om63um8L92QXDNWuE/6oqDapLJUlD599n ngaUsiHTrUEA4GWOVFDDiBrLAvdMK0gH7+z0jgyBygBXLu/5XK5d+XrB3WYsFLR7BfW/ GVdfPjjuIOwVlRICUbmnDULDoTTFIOdKNetAw2k+dXtBYsDYSEwXjWzq2vtRRTDWjdPb TmqhgM31m22MvRGbWwCWkW8+D0fTk8h0OBtanVNoBbGzNP84Y3BIla+fNge8Zl/Ti3xw 7aFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GHUCEK/lj4TJRJRvN7BhNZpOMFKCDj+YitsrWQKeDS4=; b=Mn2cScgwogJwgE9GZGmhs3JjAazQ9HztxnkQ1e1mG89Maquu22qCKCippbDrePgmgl n7I+6khWCP2WHMJpodkM4sdyYeLE6kQHSF9PYSqjf6fM4iWN55brK+WtmWx974XAwsSx 4f7TS9R0zLfbuNRizrWhM7u1rT9B4ryACs1cW0mAKArDv8qo3HDvOsDYudJtz/Z26sRW 9JvJK5BucnWctCtpZfKhW6rWhOLQZWJEJHeyXbVgYAy1anChO0hC5VMLCEtmgIV36vvn Hf2GOEGph73EB1IoxLuv/gLbNWQDF9TaMaqhTRGTBOZf6XpXcP/2xJchT3ssmNxFFakr LzwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Qropq4Q+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om6-20020a17090b3a8600b0023d2d9e0483si1454739pjb.109.2023.03.15.04.50.04; Wed, 15 Mar 2023 04:50:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Qropq4Q+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231664AbjCOLtY (ORCPT + 99 others); Wed, 15 Mar 2023 07:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjCOLsb (ORCPT ); Wed, 15 Mar 2023 07:48:31 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E04618B9; Wed, 15 Mar 2023 04:48:25 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id E48736603096; Wed, 15 Mar 2023 11:48:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880904; bh=YwZI6+CLTozcM4IgrIwS1wTY3wwS+KWhUpPNYpE/v00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qropq4Q+2KIPDKb8oulyDdLLdKidkeIaxE6cEqGDobvYvZJSicrbKSejWC57Akq4y 3+C3mUOFhLb/hZFq7zC9h9SwXbMmdqcsaPmDbwW9JLebFmfIuAfUSFYbQwQReRJIsB QdvFJ/y+TS6DpMqpCcY9QN/0Lg044+VLJJ7WoXieurU7FgmQrCoMzSihT2iajfCVot NZyozTqz3IZgUnlD7E4A/oC+5MctDSwbb61qrUD3EY/8nBtRRaSRX7unMhT+lXZQ9e z2ebjHd5Ps8s2HejE1/GHliq+XQ3IAhJeR79AAgou2IuqxasHfsl/6zMRMAo+b2YWg Df9+S2Tn/U4tA== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 04/11] ASoC: dt-bindings: rockchip: Document audio graph port Date: Wed, 15 Mar 2023 13:47:59 +0200 Message-Id: <20230315114806.3819515-5-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434341663813286?= X-GMAIL-MSGID: =?utf-8?q?1760434341663813286?= The Rockchip I2S controller is currently used in conjunction with audio-graph-card to provide an endpoint for binding with the other side of the audio link. This is achieved via the 'port' property, which is not allowed: rk3399-rockpro64.dtb: i2s@ff890000: Unevaluated properties are not allowed ('port' was unexpected) Fix the issue by documenting the missing property. Signed-off-by: Cristian Ciocaltea Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/rockchip-i2s.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml b/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml index 1cb4da300607..c32b4750651c 100644 --- a/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml +++ b/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml @@ -82,6 +82,10 @@ properties: resets: maxItems: 2 + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + rockchip,capture-channels: $ref: /schemas/types.yaml#/definitions/uint32 default: 2 From patchwork Wed Mar 15 11:48:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70176 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2283610wrd; Wed, 15 Mar 2023 05:00:29 -0700 (PDT) X-Google-Smtp-Source: AK7set8TCBHlf4+L6XGbxotGLATrOqTrGdd2kHRHD4Miq6nVIwLkINEkBZ9OSrJ8B8ZOOPhpsY95 X-Received: by 2002:a17:903:1c1:b0:1a1:7b8d:670a with SMTP id e1-20020a17090301c100b001a17b8d670amr1484891plh.21.1678881629326; Wed, 15 Mar 2023 05:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881629; cv=none; d=google.com; s=arc-20160816; b=WZEvzAIlOs7L//4jpYO2DZyYeEEaEwSJeAFuw2R+2IbZK6+tlpulVVKSpCgpvBu1+a o5C5xQUv6q56RZZJsqRpaVqtugG7U2YdzLxKdmupBcgFoELr0RnkRLx/mbi3B8G/TrGU ZYtCZqCGSYlE1xYTKyHoF+SEOwHf/msTv24IAx4RLSNPJZisRTYylDZzsamQyYgZIIe6 vvIugR2T6xw3PLnNbZmJONun1eUEaaQmaFWtFFNiPKgX8glruTusPvd8yFfyu2/37xCV jmWDY0R/tMMOQ5/BfVPGsJc0SloWG9PaGI7zIbb9L+WMva/qwUucYG0LBcAXQfoLZqA1 Fp6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PGrQqYKtI11IOF+98B/2Ji7ExlFzcIu0yA31mEVlTr8=; b=mk3phh7p62QhdoanyS9ljybjP4E50sUttwPpSIK6bUrWmLq+p+J1ntIO33IomdauJQ cDtx/QJMcP5qEdg47DX7iE4qWLmi7+xbEIC2dnBcaRPDPfzC6SwPjwUcgh5yUIUUVJUd hk+7NZf3+5jJ/eMJ8DIGQ1xhCy5SSheFYnIXlmuAxkLB1CnaSg2p5zQcocotRodVACcY eebYgSwMXeIOe42iDfcY1iJM9bbT2cu/3/5/Rl55cirLr16XZaL59gG6RaPTM2oj56He 1RFGdJQ5xbna6XuuYMBmVX00HRXNQ1/+u/XE62WskUJAQXpZKOTNxrVymDM6XIcNoL2e JDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M9RJ6PAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id li12-20020a170903294c00b00198fca8211bsi3106006plb.57.2023.03.15.05.00.13; Wed, 15 Mar 2023 05:00:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M9RJ6PAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231800AbjCOLt3 (ORCPT + 99 others); Wed, 15 Mar 2023 07:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231774AbjCOLtA (ORCPT ); Wed, 15 Mar 2023 07:49:00 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2F07B4A4; Wed, 15 Mar 2023 04:48:28 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 31F936603097; Wed, 15 Mar 2023 11:48:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880907; bh=WmlYIXlwpuzhwVps27jROqCbyY1XeyxnNcY6/AOT2zA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M9RJ6PAceWIS/F096ZRjHDj6oq/zdzauVQqUYqZFKTB41xuqK+bIYLQCdzTH7R6vj EpRExyRFTXNKOIejNh0gMkOrd6TXyIGI3nrGofgMH4W6sdkyO7APNWQPnc5/cNsaA7 G86qX2OLQOv2jgP/mjvNUOg1a87Dd/fJXDazjiZLpvt4Gt4l7WKY/eUrvHAykmFDGi fhUhlaqtnz7kT/OnyzLZvesOhgPIoG4l/T7TsCmX/oIRv/Qc5HTqPxkfAiXiTL0DOo zrPAIVTNOTAP3oaZPO1vDSO36JpG19cT+BlQg7MLvsWyAvAGDx/RfTBPXHSSyQHsYH WnhWObIAbXJsw== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 05/11] ASoC: dt-bindings: rockchip: i2s-tdm: Document audio graph port Date: Wed, 15 Mar 2023 13:48:00 +0200 Message-Id: <20230315114806.3819515-6-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434983552528474?= X-GMAIL-MSGID: =?utf-8?q?1760434983552528474?= Document the 'port' property to allow the Rockchip I2S TDM controller to be used in conjunction with the audio-graph-card. The property will be used to provide an endpoint for binding to the other side of the audio link. Signed-off-by: Cristian Ciocaltea Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml index 4c95895de75e..7d2c2991c566 100644 --- a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml +++ b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml @@ -86,6 +86,10 @@ properties: - tx-m - rx-m + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + rockchip,grf: $ref: /schemas/types.yaml#/definitions/phandle description: From patchwork Wed Mar 15 11:48:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2286520wrd; Wed, 15 Mar 2023 05:05:00 -0700 (PDT) X-Google-Smtp-Source: AK7set/4owOTiqXDR3fbaFk6IN0FwyB+Jxs5docbbmCupMx+KSHSbHDtxU0vn57ox2xVp+KmICoP X-Received: by 2002:a92:c08f:0:b0:323:891:6f27 with SMTP id h15-20020a92c08f000000b0032308916f27mr4323344ile.9.1678881900193; Wed, 15 Mar 2023 05:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881900; cv=none; d=google.com; s=arc-20160816; b=DtDBNeYLOm4gusHLUQBxY3onv9TlwgrF8GbBaTfJOT9mK7e/aYu3ZsZrxGtddlZ6qi MHPpSgCabVq1dV+u0cc9EJb7k1Tqpz/zEurIeNtocIbkz6BU7dkgmrh4KpPmZBO16Z5X 7BJQozdstlYvMSd3DSWJTl7HMICilfdVHNaHPcp+Jg/IoTTYQZFtvz5q/bmnWqpOsKMI lcqwN7aXfjjY2xR/BQWfDOQv8IfMfHCj+wL666lfjxl5KU4VSzll+i7Qz5b1nFOrrcLR 8W+uQNR11t4UfBZT+ak1SnWNulutaquKLEsobWpCoqMfTQcMLus1vbP9BRei7ll2tawf Dj3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hSho/YpfBTHQopXtiVmxtILiN9qBxR9mXZdz91+W5VU=; b=wD6Ar90yb8DFd+y2/NUfu0xqeDmn1rUADijEODV2Y79XEy4SppMqlJaq2mq/XIf1ay gx95gMHpbY/t4CVWzBrWu62zyIRUrfXVYva/zrU7Rg6O5jPkWLPJ5mUkyQi9Q+u+pR0J Ucrg8U4UdW26BctygK4zb17lbhx+2KL5g9Bh9HmAf8WecIPBjRwxWez9Q62p3s+2rQoJ 5YRnxCvBGP33xCGQimOrGeqS2RskgqKlxwZAIlK8EV2G6jveZr3wjW1WrxybQz9eGtQa //inXpaEur3Ap0ih93yxY6y311wBxvFn+jqlN4RnJFDTCKpwUM39OtF6LlU1zQCyIrQO EBbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="N56Z7F/R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a056638060400b003f6e320176csi4616436jar.55.2023.03.15.05.04.45; Wed, 15 Mar 2023 05:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="N56Z7F/R"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231810AbjCOLtc (ORCPT + 99 others); Wed, 15 Mar 2023 07:49:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbjCOLtE (ORCPT ); Wed, 15 Mar 2023 07:49:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E03380E21; Wed, 15 Mar 2023 04:48:32 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 71AE4660309A; Wed, 15 Mar 2023 11:48:30 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880910; bh=3l0zp/LdlFnTwLt41JW6CjdpLY/f1X0Kh6X7WBAo4Io=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N56Z7F/RiBVINWzpvvoYirrVad1A9TUpyGEm7i+NfJFWoOj/Y5/10vl16VmApQlZj mt23A5ERQqmO1IGGjT1NToReDjp4GWWU9vUYzrEC1NLSoehqJJhMfXnPk9oP11Zh7g aGwFYnvJoa66clln1b9BYoGU3Hi7/k8n37Tr03oglxOnldZDUxrghaTlXZdomDxUEe rlb8jYcAdxQuN9TVVoXFhZTCExbraq/To06LEjW/ZTu0PF0yw3k/Hwbpa7om9bYKim 7dipKtAqfH4bq2Fh0ZHqk1RLw81xtkZZuhAt6/ziE/36QokkSQX5+XWUayU5dHqtir G7wTjX307s9cA== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 06/11] ASoC: dt-bindings: rockchip: i2s-tdm: Document power-domains Date: Wed, 15 Mar 2023 13:48:01 +0200 Message-Id: <20230315114806.3819515-7-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760435267671455482?= X-GMAIL-MSGID: =?utf-8?q?1760435267671455482?= The binding document is missing the power-domains property. Add it. Signed-off-by: Cristian Ciocaltea Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml index 7d2c2991c566..7bb6c5dff786 100644 --- a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml +++ b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml @@ -90,6 +90,9 @@ properties: $ref: audio-graph-port.yaml# unevaluatedProperties: false + power-domains: + maxItems: 1 + rockchip,grf: $ref: /schemas/types.yaml#/definitions/phandle description: From patchwork Wed Mar 15 11:48:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2279879wrd; Wed, 15 Mar 2023 04:50:34 -0700 (PDT) X-Google-Smtp-Source: AK7set8oaYyGxOL7ysgcplJlPjXRCnAZjcssCCjkRCOkeF20t57dooWvdwoHjz1MVZ/bF7BwSRzf X-Received: by 2002:a17:90a:cd:b0:234:b35b:f8e7 with SMTP id v13-20020a17090a00cd00b00234b35bf8e7mr40206703pjd.7.1678881034548; Wed, 15 Mar 2023 04:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881034; cv=none; d=google.com; s=arc-20160816; b=vsF3Zy3zrARFURPklsXySbdaCnxYPm/OEN9+12WsE6siu079pBBw6PqipXVdboHpd3 K49iC73NCj2noi+I4sj6ZtuBAjYN/UrtFwZFHymr8RcFpO55ljmUfWosQQHkIQrYqm5B VAEiiKeIMStZGfkmU0HJTGkiMCQABU/Ek7EejotqrxJYFyy/EeGvQDx5EeQ3DlILcVfR +BazRUe9IUGGr8/nKSjqIhaIQtEawgqXi1MfZtHRqwfPcrfKT2MtDT4HwiXjLfUgGMaU jO5AQqjQAD1DgPS1rRUths9/slaVjwCC2GRr+7BRvAA9LnxYXg/toJE8RbgHbXpIsX+z 9EjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tzrUiKotGwGZA/YYHsYq1iWTQyGAJQVc05gBmK2ENnw=; b=dhKxB08JUaoTBtRQCYEgnoXjK1hyTygGEepTu9WE2fspmqttoA743SNDwEmCAPvVp2 J00LIH36zacbhn3Az3iHQm6uBFHnEY+z/ti36RhUG82tIsLeFYdGEZRIWUegBVZ8pDQ2 maluvw8tJg2mjS6eu53vKqyE+7MuYrt84+HvIS6GemIOp5fBpoj1K9uSvT2OaXc1vWve oqpOVHWKBoWq9FUOqdeD2rORAtRi6vHMVWwjDWn0uOclkFUTwcJomBe0wqP9DQ1uVSYr qPvGFEIrF3Z421JWj9uLR6rQ9KIakTsNvFsob2H90LOCPgTlAkfsvLO30WwHevDckv8n l6+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nRxoi833; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020a635017000000b0050bcb8e2ff1si4461773pgb.229.2023.03.15.04.50.21; Wed, 15 Mar 2023 04:50:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nRxoi833; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231847AbjCOLtk (ORCPT + 99 others); Wed, 15 Mar 2023 07:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbjCOLtF (ORCPT ); Wed, 15 Mar 2023 07:49:05 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FC5A769FC; Wed, 15 Mar 2023 04:48:34 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 17C46660309C; Wed, 15 Mar 2023 11:48:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880913; bh=6pqu3NDjc0PwaN3joTu3NO3Kk2EBCYyro6X+vJLjVkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nRxoi833KkHvxVBXpNgcE/nS0/8dGbO3nBJ1IW/z5FNo1SJUwG+vus1+H9vEOJSWR c30iR6HQuU20JCegfmmid5Vwu1+VP9YV2r7xHB6N6gBbuzvmgRQxWLOGSHG1BIlYeE q+tLxUmBNQ4OAX22lPfe2iFe9l0oNOaQRW0mkS9hqhF6lle1KJVwJ6iiacicEAFlyS kBdWP1tzt8uV77fJygdITAP1zwd5nm+ZAR56EN0yBrB54CtHR79N+Xl6YJTv6hZ8Eu lw6Jl5zngqKffcmJR7cMu8MIANEFmMOolsdOneIae0gOjw5M6DYahzZHMYUVS+5h5M G5R32UMTS8d3Q== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 07/11] ASoC: dt-bindings: rockchip: Add compatible for RK3588 Date: Wed, 15 Mar 2023 13:48:02 +0200 Message-Id: <20230315114806.3819515-8-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434359804071960?= X-GMAIL-MSGID: =?utf-8?q?1760434359804071960?= Add new compatible string for the Rockchip I2S/PCM controller found on RK3588 and RK3588S SoCs. Signed-off-by: Cristian Ciocaltea Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/rockchip-i2s.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml b/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml index c32b4750651c..fcb01abffa97 100644 --- a/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml +++ b/Documentation/devicetree/bindings/sound/rockchip-i2s.yaml @@ -34,6 +34,7 @@ properties: - rockchip,rk3366-i2s - rockchip,rk3368-i2s - rockchip,rk3399-i2s + - rockchip,rk3588-i2s - rockchip,rv1126-i2s - const: rockchip,rk3066-i2s From patchwork Wed Mar 15 11:48:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2286285wrd; Wed, 15 Mar 2023 05:04:39 -0700 (PDT) X-Google-Smtp-Source: AK7set8YHXid9d2RYBYyZiPi6FLLGdh3Qw95E7wqLCVgDrhvcskCjXu/Ux0ZojXsFlM6VNoVI3P6 X-Received: by 2002:a05:6e02:19cc:b0:317:9768:fbb4 with SMTP id r12-20020a056e0219cc00b003179768fbb4mr6671334ill.31.1678881879412; Wed, 15 Mar 2023 05:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881879; cv=none; d=google.com; s=arc-20160816; b=Q3WB4ret7f8HSQ7VEtg7Gf3b62svzIyelm8TVar855zU2KgODeioNnjRW9JwuUSaCd NdaxdRUbw2MublpS0GzbYwyW/vMauW+7VhNyKdna+6qcEvNgkVe3X4/1uQs594/84kIO b+uT4Pod3k//OM23U3699R/1F18+v3Xk9FPFamR8UIiQNUb8psRPidISfqgw+7aUQi8m GNSYz4uMpNtFflMCwwSSG/Zw1hIcvWj69i2MnzuC9h2Xm4mL6kGjl+T4bisqwRwMJFFI 3fuQxuFESD0vkueBVEJctOvtPAC8Jzb/4CvkqjmAXUgFKMN1j6Mx6SeirAU+FTGB4HAM FZYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nc9l6uvcN1WRKz23ybtKeqiaWuoWrwL08OiyB4jH6OY=; b=P3TZcWQ63xN6CIZfC+rv3mgop5wWv8mgAtq3wEmIXYYHrL3WoVmUPMl8YilxOozPYR LeP/T6mtWUQyYww0SkRolzexgCJwHBDSfwmf8DJsMRpaM48EsgaMiBiWRTmSUWJORT2A Gv3nLKVb+ruleOX7dyt2i/5YF0DIuE6C3mlM4q3qljes8Himw041zL79Iis3QIqZ/fhi sR1++oHyF6J+fpX7UmGN86YVfJKvSpe0VIkpv702UqiD4RhLK7WSWzRrJpVgZqjVzCaE H4bRBAICS5uRxOOPRB1rDBAEOaZEkpcNrGDj6cfFjR9iWKdCw1aKuMpZzzPmOYlDFvje X6VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YDPrRCZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t23-20020a02ab97000000b00404b6332f8fsi5106173jan.118.2023.03.15.05.04.08; Wed, 15 Mar 2023 05:04:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YDPrRCZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbjCOLto (ORCPT + 99 others); Wed, 15 Mar 2023 07:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231974AbjCOLtH (ORCPT ); Wed, 15 Mar 2023 07:49:07 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B86E85A55; Wed, 15 Mar 2023 04:48:38 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 247F5660309E; Wed, 15 Mar 2023 11:48:36 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880916; bh=8ybPDR8xtX9t6uUcpa4UINGux8SedQXEu+GJ7EQBGX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YDPrRCZUdG4hj8fpBOvt0eQFDAyrIdw9ujRofF0plHYlE14mJQGnoeA9UjOkXspNZ cycgqJmTSZDf/nKyZbA4PNITrx+z18+8OOttvwiJ9ZyJc+bFd3fsOKj8dyyUGU47Ol LIFEZlYkTPFEp47ic+/P7N8pSDgmCgW5LVuBtE/5xza9uUFwmWfeaLH3qjK+E93ZEX TOoxqaVabUehbrnWBScz9s/6xvYLkfF64R4n+5KHwl/mIbd3LChHFM3R/q+jj/gffo sppae26uX+iIgqeD9Mnfkck21bR1cBTKilXWAB1qWdWhHEF33uHJGmr8X//QNxcnb8 n96f9753RDe/Q== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 08/11] ASoC: rockchip: i2s: Add compatible for RK3588 Date: Wed, 15 Mar 2023 13:48:03 +0200 Message-Id: <20230315114806.3819515-9-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760435245438522809?= X-GMAIL-MSGID: =?utf-8?q?1760435245438522809?= The Rockchip I2S driver supports the RK3588/RK3588S SoCs, hence add the corresponding compatible string. Signed-off-by: Cristian Ciocaltea --- sound/soc/rockchip/rockchip_i2s.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index a8758ad68442..2e24cc0570eb 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -659,6 +659,7 @@ static const struct of_device_id rockchip_i2s_match[] __maybe_unused = { { .compatible = "rockchip,rk3366-i2s", }, { .compatible = "rockchip,rk3368-i2s", }, { .compatible = "rockchip,rk3399-i2s", .data = &rk3399_i2s_pins }, + { .compatible = "rockchip,rk3588-i2s", }, { .compatible = "rockchip,rv1126-i2s", }, {}, }; From patchwork Wed Mar 15 11:48:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70179 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2286625wrd; Wed, 15 Mar 2023 05:05:10 -0700 (PDT) X-Google-Smtp-Source: AK7set+ebJDgD6jrCar5GRQpDmI5zYHzrVKOFPE9XLyugLFkFeG08kBFsC3KEv6dGIHlPlv0qbn/ X-Received: by 2002:a05:6808:158f:b0:386:a87b:ec2d with SMTP id t15-20020a056808158f00b00386a87bec2dmr591000oiw.49.1678881910583; Wed, 15 Mar 2023 05:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881910; cv=none; d=google.com; s=arc-20160816; b=0VszFCiua25S2azk7scw3jrxOS29L0HscM+GxFohF8v3EQX6cFHLws7gby0v0WUC/x VqN4Kgky4cXdAtHVi6+Tgx0Nw/x3EuhXvSCtoRw5HRPsqUVy1pLO7F+9iceMlEo8r48X +plLhZGkh/3ba4rEl5/3W/JNvniCvHVQy8q1bL5NUD3v7r/9huaYSr1CjDnXoQksAWIg wW/wsGyc5MYoCatkPfLqOaCNDK8qZp2XK6QVpVhW0lwgpB/ATfC2YnRSeAET+3O7NQez 2VQ9UyfAFd41nZ2uGqQPX5RVTqJRiL0u/DMyA0hUJLvS1DVOGS4ppjGxQjd7+KtryScy XHLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1pQt39Ut4xpAvy/VSFekTPuKNfJEACBa6Vts/Ln10zA=; b=Ez29NRlWRMz8TBWa6VVRo7KVZynFgSc6npkmr9Mb0yDYSObxykYyfWW7vbA3m6hbrA 9YzQP4yaiP9zajlV15f1NUq1XhenG9H6fWs1MiwvMamc/ZGb/kwB6p0TdswdJzhRjCiT AoIrpUXy6QkRRePr7WlQF+QBKXfHDNWh5sbZiF/SuL9HRHLaHCyRIJOxsnbhmwsQHcR9 m32WFCNv1zXFdqpfPntbGNxIfGQOKeq8eWmzaJOG1qZeW5OqLP1GXNN01VN1o43R0b6y oUcQBjng1sxQwjgU5Gn/z7OjBHkiU42VIe+T+Rdk7AAAkPtec0SN0jYUTnPW898IQcYk C1GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=P3rF+enR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020aca3206000000b00386b10c1756si166826oiy.299.2023.03.15.05.04.56; Wed, 15 Mar 2023 05:05:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=P3rF+enR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231928AbjCOLtt (ORCPT + 99 others); Wed, 15 Mar 2023 07:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjCOLtL (ORCPT ); Wed, 15 Mar 2023 07:49:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED6E30D3; Wed, 15 Mar 2023 04:48:40 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id C982766030A0; Wed, 15 Mar 2023 11:48:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880918; bh=k/FRJRGvTyGdarAsogRNZp731ApvQsx6xU0AYFlr704=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P3rF+enRW7f+4WvC+3VmjfJWpniQPsGoxe46O7GoXu3M+DddaKAmXjNopZf+ss43d 1p+wT7bv66tZdCuaTx92PRnIVIklHSOIwN9dwv2lek92Mcjtzw6ONi/cb5WAb//rpD BtFpyKQMlxpXIkcfQsn8rjykq9w5WSQhyevFqcgpcHcLgH/7rlaKYMcRga1syEfSEr cson7+7rMw5ufAXiS7ExOiL8bmM0jmhGkVBgCY4Cyauz7+03qyaTKM1CV1ewf4/Lk+ 4tAGNA/FbcSHxU/o3eMPcMvCcFeZGxrfyMCKTIFIPIiZcYQPtiulPyCBjxX3EZFlG7 ixm93qrKoD00Q== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 09/11] arm64: dts: rockchip: rk3588s: Add I2S nodes Date: Wed, 15 Mar 2023 13:48:04 +0200 Message-Id: <20230315114806.3819515-10-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760435278239119811?= X-GMAIL-MSGID: =?utf-8?q?1760435278239119811?= There are five I2S/PCM/TDM controllers and two I2S/PCM controllers embedded in the RK3588 and RK3588S SoCs. Add the DT nodes corresponding to the above mentioned Rockchip controllers. Also note RK3588 SoC contains four additional I2S/PCM/TDM controllers, which are handled via a separate patch. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 148 ++++++++++++++++++++++ 1 file changed, 148 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 005cde61b4b2..a137e3450bd6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -810,6 +810,57 @@ power-domain@RK3588_PD_SDMMC { }; }; + i2s4_8ch: i2s@fddc0000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfddc0000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S4_8CH_TX>, <&cru MCLK_I2S4_8CH_TX>, <&cru HCLK_I2S4_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S4_8CH_TX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 0>; + dma-names = "tx"; + power-domains = <&power RK3588_PD_VO0>; + resets = <&cru SRST_M_I2S4_8CH_TX>; + reset-names = "tx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s5_8ch: i2s@fddf0000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfddf0000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S5_8CH_TX>, <&cru MCLK_I2S5_8CH_TX>, <&cru HCLK_I2S5_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S5_8CH_TX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 2>; + dma-names = "tx"; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_M_I2S5_8CH_TX>; + reset-names = "tx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s9_8ch: i2s@fddfc000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfddfc000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S9_8CH_RX>, <&cru MCLK_I2S9_8CH_RX>, <&cru HCLK_I2S9_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S9_8CH_RX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 23>; + dma-names = "rx"; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_M_I2S9_8CH_RX>; + reset-names = "rx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + qos_gpu_m0: qos@fdf35000 { compatible = "rockchip,rk3588-qos", "syscon"; reg = <0x0 0xfdf35000 0x0 0x20>; @@ -1117,6 +1168,103 @@ sdhci: mmc@fe2e0000 { status = "disabled"; }; + i2s0_8ch: i2s@fe470000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfe470000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S0_8CH_TX>, <&cru MCLK_I2S0_8CH_RX>, <&cru HCLK_I2S0_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S0_8CH_TX_SRC>, <&cru CLK_I2S0_8CH_RX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>, <&cru PLL_AUPLL>; + dmas = <&dmac0 0>, <&dmac0 1>; + dma-names = "tx", "rx"; + power-domains = <&power RK3588_PD_AUDIO>; + resets = <&cru SRST_M_I2S0_8CH_TX>, <&cru SRST_M_I2S0_8CH_RX>; + reset-names = "tx-m", "rx-m"; + rockchip,trcm-sync-tx-only; + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_lrck + &i2s0_sclk + &i2s0_sdi0 + &i2s0_sdi1 + &i2s0_sdi2 + &i2s0_sdi3 + &i2s0_sdo0 + &i2s0_sdo1 + &i2s0_sdo2 + &i2s0_sdo3>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s1_8ch: i2s@fe480000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfe480000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S1_8CH_TX>, <&cru MCLK_I2S1_8CH_RX>, <&cru HCLK_I2S1_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + dmas = <&dmac0 2>, <&dmac0 3>; + dma-names = "tx", "rx"; + resets = <&cru SRST_M_I2S1_8CH_TX>, <&cru SRST_M_I2S1_8CH_RX>; + reset-names = "tx-m", "rx-m"; + rockchip,trcm-sync-tx-only; + pinctrl-names = "default"; + pinctrl-0 = <&i2s1m0_lrck + &i2s1m0_sclk + &i2s1m0_sdi0 + &i2s1m0_sdi1 + &i2s1m0_sdi2 + &i2s1m0_sdi3 + &i2s1m0_sdo0 + &i2s1m0_sdo1 + &i2s1m0_sdo2 + &i2s1m0_sdo3>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s2_2ch: i2s@fe490000 { + compatible = "rockchip,rk3588-i2s", "rockchip,rk3066-i2s"; + reg = <0x0 0xfe490000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S2_2CH>, <&cru HCLK_I2S2_2CH>; + clock-names = "i2s_clk", "i2s_hclk"; + assigned-clocks = <&cru CLK_I2S2_2CH_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac1 0>, <&dmac1 1>; + dma-names = "tx", "rx"; + power-domains = <&power RK3588_PD_AUDIO>; + rockchip,trcm-sync-tx-only; + pinctrl-names = "default"; + pinctrl-0 = <&i2s2m1_lrck + &i2s2m1_sclk + &i2s2m1_sdi + &i2s2m1_sdo>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s3_2ch: i2s@fe4a0000 { + compatible = "rockchip,rk3588-i2s", "rockchip,rk3066-i2s"; + reg = <0x0 0xfe4a0000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S3_2CH>, <&cru HCLK_I2S3_2CH>; + clock-names = "i2s_clk", "i2s_hclk"; + assigned-clocks = <&cru CLK_I2S3_2CH_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac1 2>, <&dmac1 3>; + dma-names = "tx", "rx"; + power-domains = <&power RK3588_PD_AUDIO>; + rockchip,trcm-sync-tx-only; + pinctrl-names = "default"; + pinctrl-0 = <&i2s3_lrck + &i2s3_sclk + &i2s3_sdi + &i2s3_sdo>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + gic: interrupt-controller@fe600000 { compatible = "arm,gic-v3"; reg = <0x0 0xfe600000 0 0x10000>, /* GICD */ From patchwork Wed Mar 15 11:48:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2281928wrd; Wed, 15 Mar 2023 04:55:56 -0700 (PDT) X-Google-Smtp-Source: AK7set/r8vITfX9JLf1I0fs0Wo2TpsajRvpToFTvY1uPvNVOBgaMYUNjBZey88jmUv2Uty2aA1Vf X-Received: by 2002:a17:90b:4c89:b0:234:bff5:97d6 with SMTP id my9-20020a17090b4c8900b00234bff597d6mr40835473pjb.46.1678881355827; Wed, 15 Mar 2023 04:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881355; cv=none; d=google.com; s=arc-20160816; b=0HP1Z5vPkZ40D26JpjBQQOLp99hv0aEtIZyA/AwXjSNKVhTeQck9AzLCAg0qW8ngek qrEVevMOJyR1e+BeQNpA18FTe6/WdPsnxFDgRI8hT1ROLlXJPSzmGEoyZ26ofcw8XTzg WSZseZfNBEhxUUx20IuElaPEIcm83J2WNKrQY0Coi1U3eZR/7KC4tWjoq0nzbJqpYTu+ ATSP+Y6y1Tnd3a+yS8rlqVgkAW92EayZzRst+tVFwkNnWG8TLqUQVFL9xJqwoOxL8zQt cNEnYYER0ycbv9fhYWh37f1h5HE70behbnRKnfpO/R73n5Fw769ETWgFSh5QihBV+ok8 L3Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9a2dTiWLG+cHqvsutXsqfTYZIq2HCsh5MAAKD9u1Z4o=; b=IrOFtn0QbAwh0QKy0ICN8nozyYp7r1ATGICpo+iGR/DQ1voAC2Pgr94vbR7zR+wxa6 tkMNV19oDIdsuI2HU+6EZsy7AehmlE81dS733CYM+HDRT98XzQAqm8CcfYCODywxdcTa jlZMDMcGjfi+hfnlXpKehuu37wdDJuuzLhI0gQ0214wKI9rJGKyGrioNzRGJ4FTjNRLP 7Lz3v4E1Bap5l/HAvXfM0gzaIgDyOfnTx2kCwjm2HLoDDhhTgg0T5V7jKXFC1DJj+07h G2pf8ZD/7mE6tJlghjRMtHRwsayuBf4d2riTzh14Lb/BjHqc+sYbj5X0CXYV4pAbkDCe 7cIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GEmnuHjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be8-20020a170902aa0800b0019caa0b9701si4882666plb.170.2023.03.15.04.55.41; Wed, 15 Mar 2023 04:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GEmnuHjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjCOLuV (ORCPT + 99 others); Wed, 15 Mar 2023 07:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjCOLtX (ORCPT ); Wed, 15 Mar 2023 07:49:23 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB6F88ED7; Wed, 15 Mar 2023 04:48:46 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id BB7D566030A2; Wed, 15 Mar 2023 11:48:41 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880921; bh=eQCXYgqHtoDoPnQr1Kh/+2JsPmWvR1YeKeDsSCDErl8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GEmnuHjtbURflUVDzcV7yWFrZAElkBCTYnUz7DjpcHovetAonO7zGPQbIan3IJAnA UcWvdUkCYQRVUVdg/tRiemEFSwjmU6kgtTqQ6nQ72p4Awe5tITzpVCMlDO18IqDn6p LGQ/Te6j5l+jy9QJlAoGUuP+us4oKwMY/bOvoHYZb6xqMFyXylDknNrbA6wB00F19Y IlVbHwUESru03GjNGeYxVyTMIpgSfRmDytfGtq8kHPS6LhWvkwVNzQRwiXjSsRUKKV wAWS7lj/+FSxwhR25bOE1IzXeHAAQakigOoSDzbw3Pk3hcn5o804pvTrZjx/P046EN KmBRFysr3KyCw== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 10/11] arm64: dts: rockchip: rk3588: Add I2S nodes Date: Wed, 15 Mar 2023 13:48:05 +0200 Message-Id: <20230315114806.3819515-11-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434697011645678?= X-GMAIL-MSGID: =?utf-8?q?1760434697011645678?= In addition to the five I2S/PCM/TDM controllers and the two I2S/PCM controllers shared between the RK3588 and RK3588S SoCs, RK3588 contains another four I2S/PCM/TDM controllers. Add the DT nodes corresponding to the additional controllers. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588.dtsi | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588.dtsi b/arch/arm64/boot/dts/rockchip/rk3588.dtsi index d085e57fbc4c..8be75556af8f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588.dtsi @@ -7,6 +7,74 @@ #include "rk3588-pinctrl.dtsi" / { + i2s8_8ch: i2s@fddc8000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfddc8000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S8_8CH_TX>, <&cru MCLK_I2S8_8CH_TX>, <&cru HCLK_I2S8_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S8_8CH_TX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 22>; + dma-names = "tx"; + power-domains = <&power RK3588_PD_VO0>; + resets = <&cru SRST_M_I2S8_8CH_TX>; + reset-names = "tx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s6_8ch: i2s@fddf4000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfddf4000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S6_8CH_TX>, <&cru MCLK_I2S6_8CH_TX>, <&cru HCLK_I2S6_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S6_8CH_TX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 4>; + dma-names = "tx"; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_M_I2S6_8CH_TX>; + reset-names = "tx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s7_8ch: i2s@fddf8000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfddf8000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S7_8CH_RX>, <&cru MCLK_I2S7_8CH_RX>, <&cru HCLK_I2S7_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S7_8CH_RX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 21>; + dma-names = "rx"; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_M_I2S7_8CH_RX>; + reset-names = "rx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + i2s10_8ch: i2s@fde00000 { + compatible = "rockchip,rk3588-i2s-tdm"; + reg = <0x0 0xfde00000 0x0 0x1000>; + interrupts = ; + clocks = <&cru MCLK_I2S10_8CH_RX>, <&cru MCLK_I2S10_8CH_RX>, <&cru HCLK_I2S10_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + assigned-clocks = <&cru CLK_I2S10_8CH_RX_SRC>; + assigned-clock-parents = <&cru PLL_AUPLL>; + dmas = <&dmac2 24>; + dma-names = "rx"; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_M_I2S10_8CH_RX>; + reset-names = "rx-m"; + #sound-dai-cells = <0>; + status = "disabled"; + }; + gmac0: ethernet@fe1b0000 { compatible = "rockchip,rk3588-gmac", "snps,dwmac-4.20a"; reg = <0x0 0xfe1b0000 0x0 0x10000>; From patchwork Wed Mar 15 11:48:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 70175 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2281989wrd; Wed, 15 Mar 2023 04:56:05 -0700 (PDT) X-Google-Smtp-Source: AK7set8BgAws33OCUPOMKtGcIOeHvLAdtBS4Ed3pV/74jEbxeSdIa6LSxkTMVOwRddK2WADulNGT X-Received: by 2002:a17:902:ea11:b0:19a:9890:eac6 with SMTP id s17-20020a170902ea1100b0019a9890eac6mr2776934plg.24.1678881364994; Wed, 15 Mar 2023 04:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881364; cv=none; d=google.com; s=arc-20160816; b=mOe3x8Ow/At3A3PR0R9E0khVWCxDX9dfJZA4cUTA63STCPdYosL+JKYDKHrmW/b0wU gZ072Zxc9VgzqPgeyN0oq7B1dgtSx4S0KiKjnX3aSVijYInca2ym428XNxx/cNl+Kiwy 7oWdaveLwLplWwJMyeZ1m8BX7ff0cKjRX502ataOzL6fgrJf3easK7cPjXKASFcy+tNs 6lw8RSpARroMHyP3MszwlE7GZbLsaDiEJn4KXXA1XML05mqffG1qlWYKUOD6OAPw7zB4 bM8/dLJQLHooP2iBBfwTWiVPMXemH/lAApEC3+YDQvz0hS61OrUsa0/3vG7Yrs3l1MzF F4Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VdXW/blxz6lnRo6vOGM1iEw7TXbmfMvoyGaFwizjgUE=; b=QbzrdlfTuYhfFOkFbxiiKgQP5Jjkdoyw+AeqWcNDQzh1krNSc7Gm3/XaX9KIGDqEqF eXssGlLX85I/hUV/jX92A52jB9wouhP4ngZHYZ12tu85JTv5E+hDbhM0nvFkurwBzqDT HMNYKu9ZsgYah+5VfI3MskE2qY0JWsFc/8FV4o1PHl8hILHX3VUsFIVkipNiWNdmZWaF aUsbqx/t6iavR/iYwsX6TMJpqxhWFDavrZ72Ps2TPzcBkGMsgbqVkYywDUj4wPB5XVl7 IbLADaAzeyk4p/WDCj/HtTr+AnktipQIuUqBrTYfyEm82hcbzuQ8VomzVksociEa3r74 Vpkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZrvzslQ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a170902b48f00b001a04202f782si4951227plr.122.2023.03.15.04.55.49; Wed, 15 Mar 2023 04:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZrvzslQ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231974AbjCOLuT (ORCPT + 99 others); Wed, 15 Mar 2023 07:50:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbjCOLtV (ORCPT ); Wed, 15 Mar 2023 07:49:21 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 612178B056; Wed, 15 Mar 2023 04:48:52 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8E64B66030A4; Wed, 15 Mar 2023 11:48:45 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880925; bh=wrYnFVXqR4x5khiXgk8aZhgK1Ok1W3waRicWpzY70j8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZrvzslQ6t0mFJsIwODjyUCMWcpCpX1Vh23/fY9DiS244etRA6/j8uUGzt9boQqdHR un7yCiajQCFimFeAnyWCWEQt/VlvijltG0Re4JcHTuRpEPCmNpAh52TzCyRVEkBP4X /k8E38z9SYh6otb6ywMwVqL7D45K+5BNNHDFnhYcLDJmjgCz5Oc+AHlHjXc/Cu44Cz ZWAXtj3HPzBXpAm9DKg7AzFRghmCUYfQ9eqOG5tzAqbhh+qM/s/8W23Fm+/lxJN/XQ KXjOpVNlnG2HqsYyconlqfCeFpDXa3ccz0l68nOqb0b1ftJsmWW6vbrbLHoxLb2I2u mJq1Zp4hoW99g== From: Cristian Ciocaltea To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Nicolas Frattaroli , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Drake , Katsuhiro Suzuki Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 11/11] arm64: dts: rockchip: rk3588-rock-5b: Add analog audio Date: Wed, 15 Mar 2023 13:48:06 +0200 Message-Id: <20230315114806.3819515-12-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760434706093010763?= X-GMAIL-MSGID: =?utf-8?q?1760434706093010763?= Add the necessary DT nodes for the Rock 5B board to enable the analog audio support provided by the Everest Semi ES8316 codec. Signed-off-by: Cristian Ciocaltea --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 95805cb0adfa..945eac304766 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -2,6 +2,7 @@ /dts-v1/; +#include #include "rk3588.dtsi" / { @@ -25,6 +26,59 @@ vcc5v0_sys: vcc5v0-sys-regulator { regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; + + sound { + compatible = "audio-graph-card"; + label = "Analog"; + + widgets = "Microphone", "Mic Jack", + "Headphone", "Headphones"; + + routing = "MIC2", "Mic Jack", + "Headphones", "HPOL", + "Headphones", "HPOR"; + + dais = <&i2s0_8ch_p0>; + hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&hp_detect>; + }; +}; + +&i2c7 { + status = "okay"; + + es8316: es8316@11 { + compatible = "everest,es8316"; + reg = <0x11>; + clocks = <&cru I2S0_8CH_MCLKOUT>; + clock-names = "mclk"; + #sound-dai-cells = <0>; + + port { + es8316_p0_0: endpoint { + remote-endpoint = <&i2s0_8ch_p0_0>; + }; + }; + }; +}; + +&i2s0_8ch { + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_lrck + &i2s0_mclk + &i2s0_sclk + &i2s0_sdi0 + &i2s0_sdo0>; + status = "okay"; + + i2s0_8ch_p0: port { + i2s0_8ch_p0_0: endpoint { + dai-format = "i2s"; + mclk-fs = <256>; + remote-endpoint = <&es8316_p0_0>; + }; + }; }; &sdhci { @@ -42,3 +96,11 @@ &uart2 { pinctrl-0 = <&uart2m0_xfer>; status = "okay"; }; + +&pinctrl { + sound { + hp_detect: hp-detect { + rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +};