From patchwork Wed Aug 14 17:51:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13763791 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012005.outbound.protection.outlook.com [52.101.66.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBA8D566A; Wed, 14 Aug 2024 17:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.5 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723657907; cv=fail; b=axp5gey3IUBW9oHwO2L66VbxeerCJb78xIn62i73lI/ThN8a0Xh55mCAbESlRSUOWpoqNuD5jNLEpMYouUzYYcZc43V73y1hdaf+fLl3334iyMBYMZU2YM9mHXaCK+9we4RmHWD4gIa8ARZq6t6E6E2ArOTezOmAN130RFdeG/k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723657907; c=relaxed/simple; bh=0eW5/0A54rZn827gGRoCFpuivp868uxQfv5GOuTdBJo=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=Xftb1My7+PtKcUX3jzCu25mzAbgKg5rdc+/Fuzm3SGFyp2H8C8gxK3tcSUK61iTQh9JuLVYnEQIv0+RDQYJwBhgou0kpuQBaaNN34ShDdLOeZcHsY/V4JcB+32xvl+7/ZmBSLmmbzWJQuzPvtB2jKg8tO211mcQ7nJzGTCP6kdI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=JzSkSj8r; arc=fail smtp.client-ip=52.101.66.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="JzSkSj8r" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=M043JeuD9Qp2S7Qf4fqVoUZk4vnsh8sk4JaO0yjRTkQidS+DY5YckAWZiSFKG9ixbWHPeaD0+6lFh17Z7sIdCZpqT6YBcOXtn0ZGKjqwdPL3E55mKVpVEYYEzsLg6eSex5NUK90Jy/ZBsrOcqyIshvpYYYf2ntjGJcDEIIlYqrgsC5e1dgayFtNrcGqe4m32q1Ls9p1hnwInNsXG0ddfywznBnNN6bJLM+h/EYR4M9/6YD2YeNqataCCU3yJQEgD9XZlpf/yX/WAv+1Sf0e7h1r2oyTJqMDSCw8xmKeh1Y6tB75GewT3cRrjAYfALzKvLN4X0zkhiCZbbj3Pmh8hqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H5JXNjpzd7XUMHS+yGJOaSyc0oXZz1i3uhuD7A95bAQ=; b=mjG3bp9qvceeHalwViM231YX50fqxFSs3etHzEAIF5nlKApZdJVgs9ObDHBt94ea2DMeKLK7Lpx/eUIDMugZ70AhUPf2uBDAaJiLiN4m3LMLM1yOHCKL/VaWejWX7aW6a8fG4LNUOZfoPlNTDIH0AktiJGWmWHKfZCijeuS1aoiEoslze51Ig9Qar1M/Xjwd5HDUfs4fBIq15HOQGzCno/Wn8Yz2WcJCnZg2/+9BYyQvmVIO09w6bqviWxMjMvu7l9qQ3dck2HZrG3TBsjr/nfGMUFM6Jl4cD38m2cHEU+oIvVoLtzbWaaaOqxE6fgyVPZaVaVp9eQtbqkMgK3G+eA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H5JXNjpzd7XUMHS+yGJOaSyc0oXZz1i3uhuD7A95bAQ=; b=JzSkSj8rlGAaa71/HDdUCRDcdLKYLoFCCGp0aG0TuxCQeDPOMBExHgkaxX22BDzoAEmNweExmJ94FKXbmNgIXv2MPuG38RlzKVrGeRKa5UcQ47e+SXu4JJf9Ti6rM8E4fP4Lv9ZIJU6drxrFD8jui+No40lmxZoC5bvYr+2ZGEBwq257aB8qRO1qtRWkYDMMJRvo+8o0LEoWDEBJBVzPGyJD4nhL3mkN2e+OQTNck1dlKBd9pJ0scOGiCQdzVDIoTyHpyyGpLWfesaaKA9oUhxrJP7B1GTmzxiIJFi0qfocSCcuAd6Tcd7q04uk6QpZVCAMpg9Ja9XeKEKDQKh0adg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA1PR04MB10961.eurprd04.prod.outlook.com (2603:10a6:102:492::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.17; Wed, 14 Aug 2024 17:51:43 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%3]) with mapi id 15.20.7875.016; Wed, 14 Aug 2024 17:51:42 +0000 From: Frank Li To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shenghao Ding , Kevin Lu , Baojun Xu , Sebastian Reichel , linux-sound@vger.kernel.org (open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), alsa-devel@alsa-project.org (moderated list:TEXAS INSTRUMENTS AUDIO (ASoC/HDA) DRIVERS) Cc: imx@lists.linux.dev Subject: [PATCH 1/1] ASoC: dt-bindings: Convert tpa6130a2.txt to yaml Date: Wed, 14 Aug 2024 13:51:28 -0400 Message-Id: <20240814175129.4027097-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR13CA0105.namprd13.prod.outlook.com (2603:10b6:a03:2c5::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA1PR04MB10961:EE_ X-MS-Office365-Filtering-Correlation-Id: 598a665a-f7ad-46c2-f03c-08dcbc89c1d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: lgJsk9VglvT799jQlVSa6aEwL5KkX+yK4V7J0AyG1v9NkZ9cXvRGl105lvFy30F/VtxuoRY0PrMCV0heprF/ts1nDoXgpNzat/qsCOcBKQvjCsZuspc3Kpue7i1+e2yYgHqXoONFkRJNt+6hiIiBuTMwNu6mrrhkdC2/fd468SpZClJfYyaUrOo6p5gU/yIqNPpBPJXfftYmz9ixXibaTuPgqQCKc7iOFVEHyfiXFgHYIcBoeU63fxcrvEKbAm17ONlbjUzbycWLtxUgwNBAtExsrcOfIdUJd/4csINVe+2O0ZzKSxeKgOJQ0PAQVNv1VH7+xWCylB+oIKF5DRBt8w1qUv353CG9y8z0FkvNVJqzqBa7CUtOq4cL+6JGXMTSeliqbH0wQ27LXa8/BPVxYD92bFUWSlGX3/vkIwBGX/bIjF1KHDWx0NuBoH8SuhOFXDEAe4D0/AZc++scdokOU+rHSoowhHqfvBy7S5RytEF2kQHnBhPE4ebiU8hJZQC1ayhIdoQF7aFcmEncD3MXkC3GKeh7AIiKw0z6lM4nOeRbc1kSoeklUbwux7wmel0jGf9CU6VOZlHhS1a/9C8w4nsbg5Eltm3/5mINvZ507tAFZnPfLmGXFcO5snFwQy7+UmlS/jel8hSV3zbCHHAbx4fOJbZZyLwOTsdXsHkg7Cj6Vl4rqw+YXqC157OaoSOj X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(7416014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CB6s+kxSnEqdf/w5d8IEA1iWKxtoFDvUZLsNhQC2thVNR6Rm4HUfWTfIvta6sSLy22yrqZh/Mftqu/nFzfU2plJxy0IgJFepNfe1PNzQQ7wUncZkRuOrnxD9IcaAlplYDBJLwWvHC36IRts9FW87OZGD/yX5rhyvBl9/01qLs1rGl/aoQnN+FaCk2TmLVUKLZCsRNbaKQYgItHOI/b7YVVWsRF+muNOid+7XaL72UAnW8R/M8PPrNi+kc8ENXPWxBzGDfo3ctKhrk/9Itw6jBi88wgrv834sPk17VLihQf8WY8eP0VRhZPXijbBFICl1R1903uhftf/xysqM339iUlBpDd/2AgtGoTOHKjQ4o7j9mRgVaGyA/zu1OMujdty3P17J7pqxfBh4fjwf/sxMccDWpY1QJPWxRKqOa0rDQOBeinHTrZSePZZ0/JJr+VFbFbSsyC5KThF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Q5AuYy7JLQibRbJxatc+t6xL97i/YSHEHOOkZvFH0cmBkQsNLCknha X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 598a665a-f7ad-46c2-f03c-08dcbc89c1d0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2024 17:51:42.9345 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GFwV1MceCqQ/4SrLtgDfGc4gNaLxkdH86WJrDMLw2PZergursN5QxqclO+/vWOOwHoJtwoUVovO8FdQIOjwozA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10961 Convert binding doc tpa6130a2.txt to yaml format. Additional change: - add ref to dai-common.yaml - add i2c node in example Fix below warning: arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-rmb3.dtb: /soc@0/bus@30800000/i2c@30a20000/amp@60: failed to match any schema with compatible: ['ti,tpa6130a2'] Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- .../bindings/sound/ti,tpa6130a2.yaml | 55 +++++++++++++++++++ .../devicetree/bindings/sound/tpa6130a2.txt | 27 --------- 2 files changed, 55 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/ti,tpa6130a2.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tpa6130a2.txt diff --git a/Documentation/devicetree/bindings/sound/ti,tpa6130a2.yaml b/Documentation/devicetree/bindings/sound/ti,tpa6130a2.yaml new file mode 100644 index 0000000000000..a42bf9bde6940 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tpa6130a2.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tpa6130a2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments - tpa6130a2 Codec module + +maintainers: + - Sebastian Reichel + +description: + Stereo, analog input headphone amplifier + +properties: + compatible: + enum: + - ti,tpa6130a2 + - ti,tpa6140a2 + + reg: + maxItems: 1 + + Vdd-supply: + description: power supply regulator + + power-gpio: + description: gpio pin to power the device + +required: + - compatible + - reg + - Vdd-supply + +allOf: + - $ref: dai-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + amplifier@60 { + compatible = "ti,tpa6130a2"; + reg = <0x60>; + Vdd-supply = <&vmmc2>; + power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; + }; + }; + diff --git a/Documentation/devicetree/bindings/sound/tpa6130a2.txt b/Documentation/devicetree/bindings/sound/tpa6130a2.txt deleted file mode 100644 index 6dfa740e4b2d8..0000000000000 --- a/Documentation/devicetree/bindings/sound/tpa6130a2.txt +++ /dev/null @@ -1,27 +0,0 @@ -Texas Instruments - tpa6130a2 Codec module - -The tpa6130a2 serial control bus communicates through I2C protocols - -Required properties: - -- compatible - "string" - One of: - "ti,tpa6130a2" - TPA6130A2 - "ti,tpa6140a2" - TPA6140A2 - - -- reg - - I2C slave address - -- Vdd-supply - - power supply regulator - -Optional properties: - -- power-gpio - gpio pin to power the device - -Example: - -tpa6130a2: tpa6130a2@60 { - compatible = "ti,tpa6130a2"; - reg = <0x60>; - Vdd-supply = <&vmmc2>; - power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; -};