From nobody Thu Apr 2 17:16:42 2026 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8481035AC2F for ; Fri, 27 Mar 2026 09:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774603349; cv=none; b=jAw3XdM08yhNNq56xCkXMe5jIUite460mxwyI+evxB4hPJiZfYDjInmMXU0YWLm+JW5v+Ziv52I33nz7anGp2CoOxD0Aae0G9LqLaXl6g8jhrjY+tChTjX9agIyxD8PS5UzAUX8NhTzl9Dr+HvEuV9nd2Kgczf3eUiRuAlVBbSQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774603349; c=relaxed/simple; bh=77ziGXDJHCVtyxYDOLAAtXsexr+EvNb/qjtKrFRyQuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rrvKH+ue0m4SKMvhm4FeiAaC8y/OEwVkzQfQfEN3bC1THTlF916PwCmLwXB6RwmdyU6Vleh1Ae9tmURuP6n1PFrgeGeO8O5fryfCm/JnwuANnckWOWRADvkKCrpddvkbVdXT0WTnTjJw5j1aoiC3MsJ1WFjV1YLDeagqeNcNwlw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=esYyOkWZ; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="esYyOkWZ" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2b06c43e6a7so9661845ad.2 for ; Fri, 27 Mar 2026 02:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774603343; x=1775208143; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TKrsFAgsd9tGqXibhrnXaG9cuXcQbnK4a4OD2FtF8S0=; b=esYyOkWZdofvtU/E2Lx2kqBe4weEKdMt0bIzzUvgsbyjXFR6zEwBBd6ewBXf7C33/c Ie+biSvTlXzsXZ9E6t+6R29A18aZTiqX2k2D2ebf+eStG2CiGkNzJIAP7nBinKrLp8Ya iNVZi93Y0HT3VmwcA8KDhoANzFGN009D90LRCkz+jb2O1ZZJ2YFRbO5uli2Q84dw37dA 9n+rqYpUqEubJBG2e9FCrqnsTxMAzI9GsiUpDmXaq+gujE7kaw5IjOaWhHRQKwDiz2x6 nzpAMbMcOGuuY+Bj5SbsWpLO0kKtMKYQ6A2M6vK/FKptOrTMEtvk1QWsfBikguLEQEdz u+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774603343; x=1775208143; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TKrsFAgsd9tGqXibhrnXaG9cuXcQbnK4a4OD2FtF8S0=; b=ZoCrw86eKyIQnD5QU8/pMQpg73kAmuCj/AzQKw3hgFRKIMxeyga0SuOYiSqTzClHPm viRGwk9RUfLsOQ+L2Fu86AnP82F73EFAcI52eSiYIPksAoFgKbq1PMzZ4Qmd0UZHwJGu oRmWz4NgqfSdtZwAGn9S2KbId4jZtXX/dwrIILnB45zQB7YS6whZJ8QR6WbqxcergoTM JBk/RzST7vpMMU0zaFPxVCIQf2noupT1fYpBR9mhkHToWhcjQYzTTL8PiBedlz42ERpf smh6rEp+7AfRn8Lv3TC1fzAYX5YVMENyk8QMdd+0iq0smUveNUrd4Mv/l0s0vRQ6MP8j EUQA== X-Forwarded-Encrypted: i=1; AJvYcCVFhBXQsKjBoua86jXhaGzKkEKEq+7MPGRoX6cy5/vXdDIzDsWKt39izUGL813rBftKQUp2f+UuJ0bPl7g=@vger.kernel.org X-Gm-Message-State: AOJu0YzE4yun8RpK8XW0baJfsdjrTK/Ewe0HOhw69OS6b0KVLzM88UG+ OJ+oB/+qt3nFGv3IAvWQF9eV2NjK8MmpqtwHwsP9Zz9LXAgnluzfrmxx X-Gm-Gg: ATEYQzwv98sbGupauRC8iV7JqM643deD26WYsWNDXiowb0GXhyyrIJBDkEpn5bC09o7 3VlISrU6So/dxTs0tGLLRqlZntjfx8Ez2FyxjoNlWeVT2LxvtD0IPcMdxsKlnfgvhJDO3RCgBP1 3WiGHiw8xYqkuY3BsY9oAcNFIJshKwgPXJjIMCEcHJMrJqyNORloaMH4u4CyZNQ5knQsAidhpno a/5Krm4kbl6GgiCKtuigZ+Tg6vKOzmA58/p6ZCIVJJYa85Sy8UASUreWur77HA7t2XydndRhqyc 1Or8TrKiJtN8CKIb+RfL+ib84L8TMq3QyIc/Y0QTeEQ+17N6Fm7p8M85eS2s05+t/Gq6SC7Nr2r +QMFivfpx6tUZY4dEXE0kliCMAzt2U0NC2jKBfJnTHcHYa9F//SS79zNtk1c5CxcQRaG4PT/yUp RI0fJfpHrXD6vvjjo5DijVvvkzD+YtTgqmR1vw5gxowkWhQKTQmivMD4pot64iFx7WgMkLHkvQ X-Received: by 2002:a17:902:ecd0:b0:2b0:606b:6fd3 with SMTP id d9443c01a7336-2b0cdc1026fmr20438765ad.5.1774603343419; Fri, 27 Mar 2026 02:22:23 -0700 (PDT) Received: from chaitanya-virtualbox.. ([103.249.241.54]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b0bc68914bsm57749095ad.0.2026.03.27.02.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 02:22:22 -0700 (PDT) From: Chaitanya Sabnis To: lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: john.stultz@linaro.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chaitanya Sabnis Subject: [PATCH v3] ASoC: dt-bindings: hisilicon: Convert hi6210 I2S to dt-schema Date: Fri, 27 Mar 2026 14:51:06 +0530 Message-ID: <20260327092106.4233-1-chaitanya.msabnis@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert the Hisilicon hi6210 I2S controller hardware binding from legacy plain text to modern YAML dt-schema format. During the conversion, the order of the dma-names properties in the example was corrected to "tx", "rx" to match the official property description, resolving a contradiction in the original text binding. Signed-off-by: Chaitanya Sabnis --- .../bindings/sound/hisilicon,hi6210-i2s.txt | 42 ---------- .../bindings/sound/hisilicon,hi6210-i2s.yaml | 80 +++++++++++++++++++ 2 files changed, 80 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/hisilicon,hi621= 0-i2s.txt create mode 100644 Documentation/devicetree/bindings/sound/hisilicon,hi621= 0-i2s.yaml diff --git a/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.t= xt b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt deleted file mode 100644 index 7a296784eb37..000000000000 --- a/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt +++ /dev/null @@ -1,42 +0,0 @@ -* Hisilicon 6210 i2s controller - -Required properties: - -- compatible: should be one of the following: - - "hisilicon,hi6210-i2s" -- reg: physical base address of the i2s controller unit and length of - memory mapped region. -- interrupts: should contain the i2s interrupt. -- clocks: a list of phandle + clock-specifier pairs, one for each entry - in clock-names. -- clock-names: should contain following: - - "dacodec" - - "i2s-base" -- dmas: DMA specifiers for tx dma. See the DMA client binding, - Documentation/devicetree/bindings/dma/dma.txt -- dma-names: should be "tx" and "rx" -- hisilicon,sysctrl-syscon: phandle to sysctrl syscon -- #sound-dai-cells: Should be set to 1 (for multi-dai) - - The dai cell indexes reference the following interfaces: - 0: S2 interface - (Currently that is the only one available, but more may be - supported in the future) - -Example for the hi6210 i2s controller: - -i2s0: i2s@f7118000{ - compatible =3D "hisilicon,hi6210-i2s"; - reg =3D <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */ - interrupts =3D ; /* 155 "DigACodec_intr"= -32 */ - clocks =3D <&sys_ctrl HI6220_DACODEC_PCLK>, - <&sys_ctrl HI6220_BBPPLL0_DIV>; - clock-names =3D "dacodec", "i2s-base"; - dmas =3D <&dma0 15 &dma0 14>; - dma-names =3D "rx", "tx"; - hisilicon,sysctrl-syscon =3D <&sys_ctrl>; - #sound-dai-cells =3D <1>; -}; - -Then when referencing the i2s controller: - sound-dai =3D <&i2s0 0>; /* index 0 =3D> S2 interface */ - diff --git a/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.y= aml b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.yaml new file mode 100644 index 000000000000..5171f984630b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/hisilicon,hi6210-i2s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon hi6210 I2S controller + +maintainers: + - John Stultz + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: hisilicon,hi6210-i2s + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: dacodec + - const: i2s-base + + dmas: + maxItems: 2 + + dma-names: + items: + - const: tx + - const: rx + + hisilicon,sysctrl-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to sysctrl syscon + + "#sound-dai-cells": + const: 1 + description: | + The dai cell indexes reference the following interfaces: + 0: S2 interface + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - dmas + - dma-names + - hisilicon,sysctrl-syscon + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2s@f7118000 { + compatible =3D "hisilicon,hi6210-i2s"; + reg =3D <0xf7118000 0x8000>; + interrupts =3D ; + clocks =3D <&sys_ctrl HI6220_DACODEC_PCLK>, + <&sys_ctrl HI6220_BBPPLL0_DIV>; + clock-names =3D "dacodec", "i2s-base"; + dmas =3D <&dma0 14>, <&dma0 15>; + dma-names =3D "tx", "rx"; + hisilicon,sysctrl-syscon =3D <&sys_ctrl>; + #sound-dai-cells =3D <1>; + }; --=20 2.43.0