Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1911664ybn; Thu, 26 Sep 2019 04:11:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMPQH3/ihrxWcse8jHTinhTfiLQZ4z4LH+bqhyalvzIT+km42y3UolEf5DJimtWOJOxxkF X-Received: by 2002:a17:906:4d08:: with SMTP id r8mr2483971eju.283.1569496293336; Thu, 26 Sep 2019 04:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569496293; cv=none; d=google.com; s=arc-20160816; b=KzhZqOa/zEOsGwKfrjBkrkuMNmrx/UQx91YLMpv9VAw8upALoQeNfSF+blLerV8pgR OAsh9l/qS00nzz9fppvmMDZbV4z+50Nd3n8kL1xVEMx435jxxNG8/1HivnO9pYnmrOjl zZerLKHwCbkyCtwPd2J1UTf07u8h8CWfwvpyGfEoOA8JbsQNp1X0CZ2j18hGhvvialqs gmPR+kZg8lO5/S1yfFtZUT1xLBjkMziRLqtt9Mc63659wGRkQn4GOxI6CqvEfa4e0417 tEAWzX0sKJq8ZE8VpcIyYxFEF6PLqfzn02WBz3iMeqwwB2PAfN4Lgm6Fx88FFVJOVOOO o/7w== 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 :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=t547sFoMYSh3rF1TJyqouCAdi6aeTm+YjgEN5h8tXSs=; b=hpiS+HHB031CcIibiU6G1rSo3oDNYtKPFiJBQ8K3//CVF/sTDg2IyO7ljKCyoWGE71 2iwDc/UsgF3vKutAquKMR6SK9OGRl1tSeTFzgQOthuTHWlfLPShJcKZXHOTFo8CkT+wl 6of7RlDzd5jwyeqnujGFzmIIvL3sFXY3Riod3Le4TY/Ys8yEiuZne0bY+7XkaNZcbQmA V1HG7li1M5gFbk+ytpM1Q/UH5gKKfzNBHaeFfk4mz1IBNgOEp3RmhRn6SZHi7JAFsbqt y42Ai4OmUUsGlDCK98nCcM0kLiZ4egIVJxnBJwpJGcukvLgyycnh+Hw6BZo//53S3M1H ZYtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=s1J462yc; 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 g21si1110727edg.339.2019.09.26.04.11.09; Thu, 26 Sep 2019 04:11:33 -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=s1J462yc; 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 S1726020AbfIZLI3 (ORCPT + 99 others); Thu, 26 Sep 2019 07:08:29 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45517 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfIZLI3 (ORCPT ); Thu, 26 Sep 2019 07:08:29 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190926110827euoutp02b0ea268cecd6ff8448ec899d3904de3e~H_GT9BeRR0823808238euoutp02g for ; Thu, 26 Sep 2019 11:08:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190926110827euoutp02b0ea268cecd6ff8448ec899d3904de3e~H_GT9BeRR0823808238euoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569496107; bh=t547sFoMYSh3rF1TJyqouCAdi6aeTm+YjgEN5h8tXSs=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=s1J462yctmdFl4NmMXfrhqWWGjOK6jX059vVDGoze3kh3TFlVuVQWbuHxI+UtLDjR EQTinOnfB0xs8oR4GKAaBLFtw/PY2hURWPy3129XTELV5ugnSiLByL8N6PaR7GWtBb bE70iSSyxxQ2gHDqjUsj0221RKd9BdDTk24pkT24= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190926110827eucas1p244095caa51f742344e53a011d2512ddc~H_GTpJ6Q61806418064eucas1p2q; Thu, 26 Sep 2019 11:08:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F6.FA.04469.B2C9C8D5; Thu, 26 Sep 2019 12:08:27 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190926110826eucas1p2bd8e9944dee1226d7bf8546426e40692~H_GTNi9-p0436404364eucas1p2V; Thu, 26 Sep 2019 11:08:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190926110826eusmtrp159e3a7e876e342621a29906bc74e7a2f~H_GTIBEzc0172501725eusmtrp1E; Thu, 26 Sep 2019 11:08:26 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-b7-5d8c9c2bb451 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id AF.E1.04117.A2C9C8D5; Thu, 26 Sep 2019 12:08:26 +0100 (BST) Received: from [106.120.51.75] (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190926110826eusmtip2b40f71e4a930d833f910b7d6da772915~H_GSTlzCe2490724907eusmtip2X; Thu, 26 Sep 2019 11:08:25 +0000 (GMT) Subject: Re: [alsa-devel] [PATCH v5] dt-bindings: sound: Convert Samsung I2S controller to dt-schema To: Marek Szyprowski , Maciej Falkowski Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Mark Rutland , Liam Girdwood , Rob Herring , Mark Brown , Krzysztof Kozlowski From: Sylwester Nawrocki Message-ID: Date: Thu, 26 Sep 2019 13:08:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190925132628.31858-1-m.szyprowski@samsung.com> Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SbyyUcRz3e57nnntcnT2O8h3KujKL8qd68Ww1I724F9VaM6W65coTFsfu OYpehCPiMkXJ7VasmtIRl0kUduiqwyFFNWExamFDYlZyHi3vPt/Pn30/3+1L4ZI2gSsVo1Sz KqUiVkqKiNpXC507ffRaub/GAkxvtwljbg6PkMzd1k4BY7VWCZm53myMeVevJ5nb1kaMGdJU kkxF64CQedDXjTGZL1uFQetkVTPppMxwx4Bkz3UDQpmx/Copy6spR7IZ4+Yj5AnRvkg2NiaJ VfkFRoiis+YNeEK7x8Xm3+NEKsqDHGRPAb0HKtqeYjlIREnohwhMDV8JfphFUFowhfhhBkFR Yb/wX8SaacJ5oQxBz1whsgkSegJBn/moDTvR5+B1hgmzYWdaDsW3UoW2AE7XYZC1NLUikHQA XGvLWwmL6UBYGOsQ2DBBe0LZ/eukDW+gj8P0UIuA9zjCm+IRwobtl/1pi40rjXDaBdJnHwl4 7AHPJvQr7YD+JIThqqXV2gegoPIbyWMn+G6uWeXdwVKgJfiABoG24bOQH/IRDJpL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+kT2xQrwpiZVVqUX58UWlOanFhxhN gZ6byCwlmpwPTCF5JfGGpobmFpaG5sbmxmYWSuK8HQIHY4QE0hNLUrNTUwtSi2D6mDg4pRoY q8JkZm6LXZCx8vuuRyfn5u068jiqfNM+9oo7d3+am+kesbR89PF7o7wdv7Oy5K67Dve2dbR8 KvG4dSS1J/Lav8tfjsmdP8JYINPpt7DFe7p+4hZ1C1GTzvjwXU1as5UfSjS+sSvZw1l9JKL+ 9RefVUbzr6/qU62wLF7PGH1L+9phBkMpL9EWJZbijERDLeai4kQAePYsO+kCAAA= X-CMS-MailID: 20190926110826eucas1p2bd8e9944dee1226d7bf8546426e40692 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190925132644eucas1p2716a805d184f9bbc4ad7a94cc9cca633 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190925132644eucas1p2716a805d184f9bbc4ad7a94cc9cca633 References: <20190925132628.31858-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/25/19 15:26, Marek Szyprowski wrote: > From: Maciej Falkowski > > Convert Samsung I2S controller to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- Thanks Maciej, it looks good to me, I just think it might make sense to improve the comments a little while we are doing such a conversion. Please see my comments below. With those corrections made: Reviewed-by: Sylwester Nawrocki > .../devicetree/bindings/sound/samsung-i2s.txt | 84 ----------- > .../bindings/sound/samsung-i2s.yaml | 136 ++++++++++++++++++ > 2 files changed, 136 insertions(+), 84 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/samsung-i2s.txt > create mode 100644 Documentation/devicetree/bindings/sound/samsung-i2s.yaml > +++ b/Documentation/devicetree/bindings/sound/samsung-i2s.yaml > @@ -0,0 +1,136 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: https://protect2.fireeye.com/url?k=9b0307ba8b0d1f39.9b028cf5-9870da798974f201&u=http://devicetree.org/schemas/sound/samsung-i2s.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung SoC I2S controller > + > +maintainers: > + - Krzysztof Kozlowski > + - Sylwester Nawrocki > + > +properties: > + compatible: > + description: | > + samsung,s3c6410-i2s: for 8/16/24bit stereo I2S. > + > + samsung,s5pv210-i2s: for 8/16/24bit multichannel(5.1) I2S with space before "(5.1)" ? > + secondary fifo, s/w reset control and internal mux for root clk src. s/fifo/FIFO ? s/clk src/clock source ? > + samsung,exynos5420-i2s: for 8/16/24bit multichannel(5.1) I2S for space before "(5.1)" ? > + playback, stereo channel capture, secondary fifo using internal s/fifo/FIFO > + or external dma, s/w reset control, internal mux for root clk src s/dma/DMA ? s/clk src/clock source ? > + and 7.1 channel TDM support for playback. TDM (Time division multiplexing) > + is to allow transfer of multiple channel audio data on single data line. > + > + samsung,exynos7-i2s: with all the available features of exynos5 i2s. s/exynos5 i2s/ exynos5 I2S ? > + exynos7 I2S has 7.1 channel TDM support for capture, secondary fifo s/fifo/FIFO ? > + with only external dma and more no.of root clk sampling frequencies. s/dma/DMA ? s/no.of/number of ? > + samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports > + stereo channels. exynos7 i2s1 upgraded to 5.1 multichannel with s/i2s1/I2S1 ? It would be good to convert all i2s0, i2s1, i2s2 occurrences in comments/descriptions into either upper or lower case for consistency. > + clock-names: > + oneOf: > + - items: > + - const: iis > + - items: # for i2s0 > + - const: iis > + - const: i2s_opclk0 > + - const: i2s_opclk1 > + - items: # for i2s1 and i2s2 > + - const: iis > + - const: i2s_opclk0 > + description: | > + "iis" is the i2s bus clock and i2s_opclk0, i2s_opclk1 are sources > + of the root clk. i2s0 has internal mux to select the source > + of root clk and i2s1 and i2s2 doesn't have any such mux. > + clock-output-names: > + deprecated: true > + oneOf: > + - items: # for i2s0 > + - const: i2s_cdclk0 > + - items: # for i2s1> + - const: i2s_cdclk1 > + - items: # for i2s2 > + - const: i2s_cdclk2 > + description: Names of the CDCLK I2S output clocks. > + samsung,idma-addr: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Internal DMA register base address of the audio > + sub system(used in secondary sound source). s/sub system(used/subsystem (used ? -- Thanks, Sylwester