Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp767249ybg; Fri, 18 Oct 2019 07:08:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGLFuO7Cj7NeyvzrcWsdpRgZcmgLeCN3ZQ2pZUFNt3+7o6yODg3WDo/m/neT2ER/FJMpBN X-Received: by 2002:a17:906:519:: with SMTP id j25mr8765524eja.65.1571407699950; Fri, 18 Oct 2019 07:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571407699; cv=none; d=google.com; s=arc-20160816; b=zG/vVp/efPyckftLe7XJZzWR7hV1uU1ODYaYzv9F7EznLfr7+Ts7CHqEmBzeoArinw OYTO1Bi3lyF91zHiI7KgJEPylgywJneV5lplT7AAreR2/O3c89Y/8g7ULj6GgPYDEosP JA9U2we4HLcJ1GaMWbQFmfhQ7rjUdrHKGyOTXtaIff9Oipmal1ZUsZZK9fWOVDnWMcX7 tNlCNMHca3X4JOZ2Yz7i10rpn6EZawQZMlVd/wk60feoePoGPfteqKbZM3lCEX5vgPlM iI5hJC9LdOtGlPnNVVBfi4HOb5t9CNsHpIyYBnpToXnQyqleS+DdVKk1K/RmpEomLLIw 8n8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=zwOlnVoiHkpkS1qISvZUE1+ZuYCNoayDt7eUAU8ghBI=; b=Dt2OnBWrjLT5syQjOgszYx6AKs66Su/M93NtqCV9t7J8GRW4CI4My09d7TB/UZy+Dr q4gljeJBPRBBbanelRZGDoUE113XpYdE8uk1l9c4fa2Z9oLzkCy9N642NtmKYQ6ELR/U yW/JbEG3InZ1U5hX5f4vhFeuV2WnLQqv23XBdYGx4dnhQcQhS6aej6truJHZAcfiK11o rfIob5IXmBY5HpcmoLvsF/Pv7J8K/vR1YbjTufIVmSWO4kMdbIEEKRtSV0KvyW1znGc3 04XswaSEvD4AQaXbURj0R6lPrc8CkEJOiGTYff0cKru86bcOupqPuzPr7kFdqm+uoj6k vdcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SpxaLWr7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay11si3793613edb.215.2019.10.18.07.07.55; Fri, 18 Oct 2019 07:08:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SpxaLWr7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408736AbfJQKFh (ORCPT + 99 others); Thu, 17 Oct 2019 06:05:37 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:33984 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408729AbfJQKFg (ORCPT ); Thu, 17 Oct 2019 06:05:36 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20191017100535euoutp010049041f5da1e01d9f3d83b237f676a6~OZyadoUYp0774307743euoutp01J for ; Thu, 17 Oct 2019 10:05:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191017100535euoutp010049041f5da1e01d9f3d83b237f676a6~OZyadoUYp0774307743euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1571306735; bh=zwOlnVoiHkpkS1qISvZUE1+ZuYCNoayDt7eUAU8ghBI=; h=From:To:Cc:Subject:Date:References:From; b=SpxaLWr7ZPq9NqzInHJTitFyGU+CEX3jviIsobqOFhxbg5aUAE5riSxU9pKIWgNq4 SSV/NE1lvAq7jBSfYWRzbqy9uZFHYTgsnEA+CMxM/jT8xaj3lVObc6pfyDuBov757q 12OXFShQ/GAr9OFE7oLc5vvAFr57KXqKkBO1qZ7I= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191017100534eucas1p29e0e07a46b5522b6a80033f7aa2d0627~OZyZ6eukv2843428434eucas1p2t; Thu, 17 Oct 2019 10:05:34 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id EA.8B.04309.EEC38AD5; Thu, 17 Oct 2019 11:05:34 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20191017100534eucas1p1407cf6ef5606d6bd6a4140502cc95984~OZyZmWJUv1060810608eucas1p1n; Thu, 17 Oct 2019 10:05:34 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191017100534eusmtrp12ed03787e55c280b2d54235283ed3e79~OZyZlku1J0854508545eusmtrp1C; Thu, 17 Oct 2019 10:05:34 +0000 (GMT) X-AuditID: cbfec7f4-afbff700000010d5-7a-5da83cee35ce Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9E.D2.04166.EEC38AD5; Thu, 17 Oct 2019 11:05:34 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20191017100534eusmtip284f84d249c6e0f6a2f1c1c21abe1f185~OZyZEXyQ41706717067eusmtip2c; Thu, 17 Oct 2019 10:05:34 +0000 (GMT) From: Marek Szyprowski To: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Mark Brown , Sylwester Nawrocki , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Maciej Falkowski Subject: [PATCH v2] dt-bindings: sound: Convert Samsung Exynos Odroid XU3/XU4 audio complex to dt-schema Date: Thu, 17 Oct 2019 12:05:29 +0200 Message-Id: <20191017100529.4183-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0WSfUhTYRTGe3c/dh1OblP0TUNhMMUgPyLqRhJmEQsKIwUpGbbyMq1tyq5b aVI2RW3NUYZNR8O+yLXQbbLEj5Caayu1zU1J/7EmVJQ4I5TIlMp5+/jv9zznnPc5B14CETRj iUS5sopWKaVyIc5D+zwrvu2LORZJlmeIoqYCLg7laLdhVNvce5zqdPswyu+3c6lvU80canLw Nk61+4c5VKi+B6e63bNc6tfTfi41stCE5UaL7UtaXDxgmuWKe61XcbHBaQXipd7kY9hJXk4p LS/X0KrMfad4ZT3eNm7laOaFuVAHqAN6kQ5EEZDcCY0zBo4O8AgBaQFwuuEdlxXLAF7zruKs WALwg6tjvUJsjMwYalm/C8DOCQP6b8L30IhF3sXJbKgL6/AIx5GX4OtxN4gwQgY50OmIinAs eRZ227+iEUZJEXStGDaYT+bAF75hnN0vBT62P0MiAZBcxWFw4T7GFg7CK4F7XJZj4bzX+Ye3 wrGbepQdqAdwztfNZYUewEltO2C79sIRbwCL3IOQ6dA2mMna++GrWx2APTMGzoQ3s0vHwNY+ I8LafNjcKGC7U6HJ2/Mv9vlEEGFZDE195g0WkBL4xNKEXgfJpv9ZdwCwggRazShkNLNDSZ/P YKQKRq2UZZyp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+17OWf4hT3yzMOv50Y IrAlZLV/XKZs7JkgJZbijERDLeai4kQA4gOHZnICAAA= X-CMS-MailID: 20191017100534eucas1p1407cf6ef5606d6bd6a4140502cc95984 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20191017100534eucas1p1407cf6ef5606d6bd6a4140502cc95984 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191017100534eucas1p1407cf6ef5606d6bd6a4140502cc95984 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maciej Falkowski Convert Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec to newer dt-schema format. 'clocks' property is unneeded in the bindings and is left undefined in 'properties'. 'samsung,audio-widgets' and 'samsung,audio-routing' are optional from driver perspective and they are set as unrequired. Signed-off-by: Maciej Falkowski [mszyprow: reordered non-standard properties] Signed-off-by: Marek Szyprowski --- .../bindings/sound/samsung,odroid.txt | 54 ----------- .../bindings/sound/samsung,odroid.yaml | 91 +++++++++++++++++++ 2 files changed, 91 insertions(+), 54 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/samsung,odroid.txt create mode 100644 Documentation/devicetree/bindings/sound/samsung,odroid.yaml diff --git a/Documentation/devicetree/bindings/sound/samsung,odroid.txt b/Documentation/devicetree/bindings/sound/samsung,odroid.txt deleted file mode 100644 index e9da2200e173..000000000000 --- a/Documentation/devicetree/bindings/sound/samsung,odroid.txt +++ /dev/null @@ -1,54 +0,0 @@ -Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec - -Required properties: - - - compatible - "hardkernel,odroid-xu3-audio" - for Odroid XU3 board, - "hardkernel,odroid-xu4-audio" - for Odroid XU4 board (deprecated), - "samsung,odroid-xu3-audio" - for Odroid XU3 board (deprecated), - "samsung,odroid-xu4-audio" - for Odroid XU4 board (deprecated) - - model - the user-visible name of this sound complex - - clocks - should contain entries matching clock names in the clock-names - property - - samsung,audio-widgets - this property specifies off-codec audio elements - like headphones or speakers, for details see widgets.txt - - samsung,audio-routing - a list of the connections between audio - components; each entry is a pair of strings, the first being the - connection's sink, the second being the connection's source; - valid names for sources and sinks are the MAX98090's pins (as - documented in its binding), and the jacks on the board - - For Odroid X2: - "Headphone Jack", "Mic Jack", "DMIC" - - For Odroid U3, XU3: - "Headphone Jack", "Speakers" - - For Odroid XU4: - no entries - -Required sub-nodes: - - - 'cpu' subnode with a 'sound-dai' property containing the phandle of the I2S - controller - - 'codec' subnode with a 'sound-dai' property containing list of phandles - to the CODEC nodes, first entry must be corresponding to the MAX98090 - CODEC and the second entry must be the phandle of the HDMI IP block node - -Example: - -sound { - compatible = "hardkernel,odroid-xu3-audio"; - model = "Odroid-XU3"; - samsung,audio-routing = - "Headphone Jack", "HPL", - "Headphone Jack", "HPR", - "IN1", "Mic Jack", - "Mic Jack", "MICBIAS"; - - cpu { - sound-dai = <&i2s0 0>; - }; - codec { - sound-dai = <&hdmi>, <&max98090>; - }; -}; diff --git a/Documentation/devicetree/bindings/sound/samsung,odroid.yaml b/Documentation/devicetree/bindings/sound/samsung,odroid.yaml new file mode 100644 index 000000000000..c6b244352d05 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,odroid.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,odroid.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +properties: + compatible: + oneOf: + - const: hardkernel,odroid-xu3-audio + + - const: hardkernel,odroid-xu4-audio + deprecated: true + + - const: samsung,odroid-xu3-audio + deprecated: true + + - const: samsung,odroid-xu4-audio + deprecated: true + + model: + $ref: /schemas/types.yaml#/definitions/string + description: The user-visible name of this sound complex. + + cpu: + type: object + properties: + sound-dai: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: phandles to the I2S controllers + + codec: + type: object + properties: + sound-dai: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + List of phandles to the CODEC nodes, + first entry must be corresponding to the MAX98090 CODEC and + the second entry must be the phandle of the HDMI IP block node. + + samsung,audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + List of the connections between audio + components; each entry is a pair of strings, the first being the + connection's sink, the second being the connection's source; + valid names for sources and sinks are the MAX98090's pins (as + documented in its binding), and the jacks on the board. + For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC" + For Odroid U3, XU3: "Headphone Jack", "Speakers" + For Odroid XU4: no entries + + samsung,audio-widgets: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + This property specifies off-codec audio elements + like headphones or speakers, for details see widgets.txt + +required: + - compatible + - model + - cpu + - codec + +examples: + - | + sound { + compatible = "hardkernel,odroid-xu3-audio"; + model = "Odroid-XU3"; + samsung,audio-routing = + "Headphone Jack", "HPL", + "Headphone Jack", "HPR", + "IN1", "Mic Jack", + "Mic Jack", "MICBIAS"; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&hdmi>, <&max98090>; + }; + }; + -- 2.17.1