From nobody Mon Apr 6 16:47:31 2026 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 00C95363C60 for ; Wed, 18 Mar 2026 18:14:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773857658; cv=none; b=OTggpwWc/nrxu4J7zvLuFmIMAu64vaUrzhxVv6oRoal0bc3v4Nd05PQKGcV7pi48yG2/PGPiO/ozVWlxtVhFLFtXpKl/58LCKrdBMUARnrreuy9izeJvh7K1r+JQJdhxvUrPnTrSE5KVkhmealbLnAcwADvI9bGb23SEuhKtlQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773857658; c=relaxed/simple; bh=igC4GtGcZsVAZDSM5+M30pXkTVcmavnjQO89/dgMWsM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C6DD6zSmRm6NzcZGo2e77KCCknx/zjWPMjvdo77AdxrJVSz0sOoLjSk87PxQUQhZq4IRnuuh64ssUqAk5v+hfuqoLt7s1ZGbk70rYijeUDepumnksuU5/8o6SIrbQ2FBrJCypfe/l9Y+oiz8vKjM5OU31Bthnd5Zfw/mi8lcH4s= 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=P9VzqLKX; arc=none smtp.client-ip=209.85.214.180 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="P9VzqLKX" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2aecefc7503so641345ad.1 for ; Wed, 18 Mar 2026 11:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773857656; x=1774462456; 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=7pQsVn9jrlP82x/zoMf5r2Nw6PzXMQncCNeTmBbiDt4=; b=P9VzqLKX0YqDtLZkBRPD0IRK+h6KqqeYbBNeBMGA8E/snLVNCVWXfjqK8PhYE4k1JN 2cc5oe1L/u6Salxrfgf7tXMyvJoCP7E1xLrlaiubhIf2vWfqVvNf3r2EdFFEeLN6gybH iT6juVFplHz8MGiUYFy5EQeyCRvpVzxkX2FpqK6Pl8Oq7aVYcPlfDn2996CkT842PAav YLKWc5ue33MidAner8D0NbUNWeSU4znIACUeEefVNJr383ux5o32yhzdRwRQUyBiA9ze hXj/lCwH1UsieoWCLehFBNMZewTcGuqNn0OOhYR3V6uVo0o5WNeZcAuuo9f1BVh78YI3 XG2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773857656; x=1774462456; 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=7pQsVn9jrlP82x/zoMf5r2Nw6PzXMQncCNeTmBbiDt4=; b=qhCkY/Klw/90AbytV9nZsdfM8xvbeC2G+hVah03QsjOkYsllsOiTqiyY7B6XcEZX9a xQnJmDTRnOUDLyf8ztnYZKGWQ9iUqdZmQ6SS7nwTeBLOlay5LA/rfOkeKuycf2X0zzta Oh1jlIWivt2kUGP4g60pvDhzi95HRjevcOwm4OatpoWms7nADqTTQEh33QsUL4TuyXil jd88KyRHH2mhkMP2f6hYMW1LaAr28bXqV/LWNqH62ip0ZMwnW7WjetvjYY7mK5Ro723S sdQuUWqWsJnB89qLG36DR5gdZ/zWFWmfuAjh6PdT89vLFCvphccxUFFHS94UXkflqwTg qY1g== X-Forwarded-Encrypted: i=1; AJvYcCW/2r+sEbLxLiRVHXFz9XSNRY2d6PRu5f+jdQuNOS8SVmRw8CIjEjGgdOZD0ancespXzDdprjedJT74Gi0=@vger.kernel.org X-Gm-Message-State: AOJu0YzG9nEXccwDSpyXbV+zo8m87lt628bsgLT5qh3z75VWsQN27uP1 EDI9Jmo9RT6O2bh8ksbCj7J9j4G/e6SSjHuoihX4OtYZZivezPC2N/EN X-Gm-Gg: ATEYQzzKmJYN2O0f0/oTH7QtitoOgLTH2fNq4pjM1vDpNEWelVJPeig2OzW+i/txxZ7 3h9l/dak2qkstU1BaDYtf7t1qoBpLMBC8x9IjPKzk6A+d5JlaSukh880PvWQcW7ldQc7WjTMq6G mCQ7Lvgt39q1DE6sQFEW7mJfi9BuNnh3+1VrgsSBS816nLT/51JaCENUN0nePXqDJXqKmcrPY/m HQF6w/7zp9b/auO/ED8Ashexa9Q9vpVs/f6TS0mQyFQhWpMJZSeAAbwCLMYwODpmTKoxRJBPlWo 2O8lHKFmW9yk0L2cr4Xas0CjR8YQ1qNrpBmFw3n5HWlwCJaOyECBNgBWcJQfSoS+v4LDoHvxEYl RMvOEbhuG7FxMIhFEcEm9GsXMjCxw0hz0+KhQmYItAJ8d8nM62vbPVGtEI5odFjAUsu96GROHqu Imb3qx8RYnn2TX67VQhQaPa9ozDnMafvcnm9RMLx50wjMFO03/Y6N8XF9zb9XNJAuN7g1PupFJ X-Received: by 2002:a17:903:b8f:b0:29f:301a:f6cf with SMTP id d9443c01a7336-2b06e4073ecmr43361215ad.35.1773857656176; Wed, 18 Mar 2026 11:14:16 -0700 (PDT) Received: from chaitanya-virtualbox.. ([103.249.241.54]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b06e41927bsm44617185ad.10.2026.03.18.11.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 11:14:15 -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] dt-bindings: sound: Convert Hisilicon hi6210 I2S to dt-schema Date: Wed, 18 Mar 2026 23:43:03 +0530 Message-ID: <20260318181303.5262-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 | 77 +++++++++++++++++++ 2 files changed, 77 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..ba740ebfc2f9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.yaml @@ -0,0 +1,77 @@ +# 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 + +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