From nobody Mon Apr 6 16:23:50 2026 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 8AC3B31ED68 for ; Thu, 19 Mar 2026 03:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773889763; cv=none; b=ItQ1wom/xqmERXdrNSB7cQ35v1D+j0jzaGjfBe2EfHAc9OoFSivcHnzZ6s0nGU40RRsH3wdmP7oKXdMtyspHCDz0BMWnmTqYWurc1UgR+2Lmk1evWiguLUaAeADaKzchFhpEPLf74KDSRot7dxVuBilP22MwHs2f+dbcO5+lsrA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773889763; c=relaxed/simple; bh=VKUZN6Dn+MNBZmbMp8LKYUzCDVr8JKHldS7jXtj9P/E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gHHlynEiOAL2Lm9/b44L8nYkJBdwl32fI9fegkzJX1d/vSAr0jZPlrTwOUSq7445yexwx13hjbmVrybvpB3q1Q+nKtIW4Lz0aQeVdNA++JPLk/a2/AzLozZrIA07inf8DCtfJrHniE3SLsX2d3gdx1aj/o4pjiZK6BZwqAYPmos= 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=FQAwmkrd; arc=none smtp.client-ip=209.85.210.176 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="FQAwmkrd" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-8297e0b27e5so353688b3a.1 for ; Wed, 18 Mar 2026 20:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773889761; x=1774494561; 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=zo4omf2aXz5d4OsApGKGaUmtbTmmR9r/c/VeF2cAJKU=; b=FQAwmkrduZah2X/tSiRaCntA3d+LEkZC30iLEzmMIW6YAUnqcXBbsh7lw1+Sb1VVQm cLYO1eOxhgrzObBChbv+GID+M8ThZ2otlZm2JFoBPFQr65yIgkCJsl9+c487KUdHUwNB nLp7mIqEXODDq6B7RpgjdylexMowTDMSxX8PgczTyRQeQDF7ecWKTV7NQ7X9D6ei80KI 8HI/K74KnWGu/baq+KJFa95UOvrIA+WcqLUjGvspei3qM9bYX/M8yQudUWm/H6vmPOaa 94/3I+fvra/cx1n835gffKd2SAx0WO3cqu7gVDcZUS6aTILI3yaXOWurtcnSIjZNW9DK NPmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773889761; x=1774494561; 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=zo4omf2aXz5d4OsApGKGaUmtbTmmR9r/c/VeF2cAJKU=; b=pT2UQbPfN/PqR4YkKX0kEfmA3H5Lj9iN4orjZWAx9vjTdxZ7J0T/RQrdRguN2wy4T5 u+K2B/sKuWhG0gjqWbxBAwLkKShtApoMjdL28uAPfE0/HaO/rx/qInD2FNc6rK1vaAKQ h8Pvx0M+0p0+Wsnu8lJY8PUDlCAlzbBnBPTiNRu18Jjo0QDXXCnOR4m0gAUgptfn6eau r/FNOV3tkEyxo6iBs46nQvkKg2hWEVxpmgYkYUBKdrZkic1JbkeSIaLk2xZAY0qom5SQ ca4cbwDJ0fIN9lSpp07vRVq6VZGQRn3qg2XICKl+2JLEgXwxnZFCUuRRsdy9kwsci0dZ x/eQ== X-Forwarded-Encrypted: i=1; AJvYcCVE9QA1MbzeSjYWa9w42GETEtE2S97nU4rsJZ/PRV+eBpoXljtN6juIqRrrYaIXNG4UweqKklCC4GPeE9Y=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2h8B9j6WCy+UqzzYB73bVD0lubPPxeCr6gwbYTrY/xtqYX12I 85AWtr93cZqKjM2vTaOOMwpskBdeKu6qqkKX0b93nyHxoXOQUMyZLA5R X-Gm-Gg: ATEYQzzzift4wbx3nHUii33UVggFbcAFzrYDOt/kwDrkNz0nEAc2Vvz2fMpR/wreLai 9X20uRGPGnEPlMh/z5lAc6GcZitGVvC2navtPg6EvSWsr9nAeczpcKMvt2Ih/S1bh+YmedGsm7O ruANF8pfQrQhhhB4qDhy3znbkdkDlWy4SmsixGgj+bHO7rK+ZSoRyTxS8pkciH6mgsKBSPCtc9H DFf+Slh/o8E9KXz+DH4J5fAik8IW/wkI/7PHDUwVrHIJ4jGszPSnjWKk8QNciqCxb6lPfs5WcTu PGCGg5X0czPLVoRNZsCZkMBpYcFDcffaNPle9WS/RuIJkoc7OQLpC1POSIukSaBuDMCvdQf1pxV QUtZjws9a85x7dUmxpB6Bf/1nQUgKcjmsTYyAYs0ylDJMjZYKWsqV9eauVGlRfg5V3KnrMyK4G2 2MXeg34/lTShGpeLizwOcfZ3OmWAp/i/JikOFQQ0z8LvRi4QfIpJMDrjrthzSB6H2LonyqqJlB X-Received: by 2002:a05:6a00:3395:b0:81f:5238:5560 with SMTP id d2e1a72fcca58-82a6ac8a7bbmr5037317b3a.13.1773889760886; Wed, 18 Mar 2026 20:09:20 -0700 (PDT) Received: from chaitanya-virtualbox.. ([103.249.241.54]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82a6bbb2802sm4248271b3a.31.2026.03.18.20.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 20:09:20 -0700 (PDT) From: Chaitanya Sabnis To: lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chaitanya Sabnis Subject: [PATCH v2] ASoC: dt-bindings: hisilicon: Convert hi6210 I2S to dt-schema Date: Thu, 19 Mar 2026 08:38:26 +0530 Message-ID: <20260319030826.4792-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. 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..8b76e973312a --- /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: + - Chaitanya Sabnis + +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: rx + - const: tx + + 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" + +additionalProperties: 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 15>, <&dma0 14>; + dma-names =3D "rx", "tx"; + hisilicon,sysctrl-syscon =3D <&sys_ctrl>; + #sound-dai-cells =3D <1>; + }; --=20 2.43.0