Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5910119ybe; Tue, 17 Sep 2019 15:55:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi0wLEbXgpphNcXFPhrh8iFPH5DKlELbaqyECghaNWVx7HLjBrBweE9xP8mZm1FcdjhSlL X-Received: by 2002:a17:906:a954:: with SMTP id hh20mr7051711ejb.196.1568760930867; Tue, 17 Sep 2019 15:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568760930; cv=none; d=google.com; s=arc-20160816; b=SNgaATFoma7KZB4z+CLx0EfbjdrTDnXRF4JwxFI/SFhxEgmSNE/LVm7ZEpLIM5Yzzj oQIkjtUx5fWE2B/CC1ibX12xwXDxLDrdj7YCoIO/8vUNfJ/Hf3celGmSj1TVfhPxgDNj VaK9vFD6NdhCL2m5nEOxjMC66N9QD2KvPGfxLdLtjrjBnEyGlOhSlzENlWG03UNyEIHu 9qeQodT1elQwfdymBpD4lky1PlGru4I1OF3NQsQhZw9wXQt/FVj3jkyN+cHfCgX7PcsE MGDL66puH0fXMb25e0w3QWIexUw0GoDaCyFUfhz6a8LbyRDBvdo9M/kcinIczsVEYUQ7 HA6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ly8uFW+4STiq0DYWNEdOrshcQp57y3vtwrnZRrAnpXo=; b=IC+lcV9a3PpwlxbQZd+Zo/tNiZ2BXoOLd5lHeq1LPdP/5B3v7PrH1Xtxit6MNrtjdX GyYrteEQ8esAgaiS6Uog7zHdVyc4QNL5virWsINozyf16tcqBisyCIyty+F7v5nxziTn d856JbKuykrsopCMHXLeeh7yXtCKjfrG05c2ifP1dbJCAJ5rXIsjmbTjDhWN92Kr4gJ5 yJlo6YozMDLQUBCRy5MnW39QfQZW1H+9ByuVhsQ0LGlitkiUNuHGn5JmUPIYIfjp3PzH T0yL8MegpamIJOBzmOz3LSzJ1wQT4DbW+MP9z2eG7jSL6QFB/2ACAM+gmFOQFbsbmtv+ eVFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y0AjA5Ai; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si2230177eda.213.2019.09.17.15.55.03; Tue, 17 Sep 2019 15:55:30 -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=@kernel.org header.s=default header.b=Y0AjA5Ai; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbfIQNFx (ORCPT + 99 others); Tue, 17 Sep 2019 09:05:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:51674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfIQNFw (ORCPT ); Tue, 17 Sep 2019 09:05:52 -0400 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACE5521897; Tue, 17 Sep 2019 13:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568725551; bh=6dx+pGYbMKZYGufowQPf+5IJvdiHtWxdf/mNfFBW+XI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Y0AjA5Ai77LxzbSqLfZnFwbvFq6nGMeUSrnIqextmcWyJY8IFhnKTk4DKegpGcAPF 51sMV/v90zXf9r53PWp/Vk/jglOBRJq8FJ6r9zkFw22al9veV1fET0kW6MLWU4jjHN FDBB7NtqwpDA0Pikh9YORVSDrIiqi1HFHDB5FgXw= Received: by mail-qk1-f181.google.com with SMTP id s18so3898903qkj.3; Tue, 17 Sep 2019 06:05:51 -0700 (PDT) X-Gm-Message-State: APjAAAXakWmkwrS00yehNpyet9X+drlZ7x8oR1/1Z7yMCYdsDoY9K1UY IoDkLaGTF4KrlNTcecsTqoRHeWYuG/UfKXYOJg== X-Received: by 2002:a37:be87:: with SMTP id o129mr3695035qkf.254.1568725550865; Tue, 17 Sep 2019 06:05:50 -0700 (PDT) MIME-Version: 1.0 References: <20190917111413.22711-1-m.falkowski@samsung.com> <20190917120452.28135-1-m.falkowski@samsung.com> In-Reply-To: <20190917120452.28135-1-m.falkowski@samsung.com> From: Rob Herring Date: Tue, 17 Sep 2019 08:05:38 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: sound: Convert Samsung I2S controller to dt-schema To: Maciej Falkowski Cc: Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-samsung-soc , Krzysztof Kozlowski , Sangbeom Kim , Sylwester Nawrocki , Liam Girdwood , Mark Brown , Mark Rutland , Andrzej Hajda , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 7:05 AM Maciej Falkowski wrote: > > Convert Samsung I2S controller to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- > v2: > - Added missing Signed-off-by certificate > --- > .../devicetree/bindings/sound/samsung-i2s.txt | 84 ------------- > .../bindings/sound/samsung-i2s.yaml | 119 ++++++++++++++++++ > 2 files changed, 119 insertions(+), 84 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/samsung-i2s.txt > create mode 100644 Documentation/devicetree/bindings/sound/samsung-i2s.yaml > diff --git a/Documentation/devicetree/bindings/sound/samsung-i2s.yaml b/Documentation/devicetree/bindings/sound/samsung-i2s.yaml > new file mode 100644 > index 000000000000..59dc76035cb4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/samsung-i2s.yaml > @@ -0,0 +1,119 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/samsung-i2s.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung SoC I2S controller > + > +maintainers: > + - Krzysztof Kozlowski > + - Sangbeom Kim > + - 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 > + secondary fifo, s/w reset control and internal mux for root clk src. > + > + samsung,exynos5420-i2s: for 8/16/24bit multichannel(5.1) I2S for > + playback, stereo channel capture, secondary fifo using internal > + or external dma, s/w reset control, internal mux for root clk src > + 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. > + > + exynos7 I2S has 7.1 channel TDM support for capture, secondary fifo > + with only external dma and more no.of root clk sampling frequencies. > + > + samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports > + stereo channels. exynos7 i2s1 upgraded to 5.1 multichannel with > + slightly modified bit offsets. > + enum: > + - "samsung,s3c6410-i2s" > + - "samsung,s5pv210-i2s" > + - "samsung,exynos5420-i2s" > + - "samsung,exynos7-i2s" > + - "samsung,exynos7-i2s1" No need for quotes here. > + > + reg: > + maxItems: 1 > + > + dmas: > + description: list of DMA controller phandle and DMA request line ordered pairs. How many? > + > + dma-names: > + description: | > + identifier string for each DMA request line in the dmas property. > + These strings correspond 1:1 with the ordered pairs in dmas. > + > + clocks: > + minItems: 1 > + maxItems: 3 > + > + clock-names: > + oneOf: > + - items: > + - const: iis > + - items: > + - const: iis > + - const: i2s_opclk0 > + - items: > + - const: iis > + - const: i2s_opclk0 > + - const: i2s_opclk1 > + description: | > + "iis" is the i2s bus clock. > + For i2s1 and i2s2 - "iis", "i2s_opclk0" > + For i2s0 - "iis", "i2s_opclk0", "i2s_opclk1" > + > + "#clock-cells": > + const: 1 > + > + 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). > + > + pinctrl-0: > + description: Should specify pin control groups used for this controller. > + > + pinctrl-names: > + const: default > + > + "#sound-dai-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - dmas > + - dma-names > + - clocks > + - clock-names > + > +examples: > + - | > + i2s0: i2s@3830000 { > + compatible = "samsung,s5pv210-i2s"; > + reg = <0x03830000 0x100>; > + dmas = <&pdma0 10 > + &pdma0 9 > + &pdma0 8>; > + dma-names = "tx", "rx", "tx-sec"; > + clocks = <&clock_audss 0>, // EXYNOS_I2S_BUS > + <&clock_audss 0>, // EXYNOS_I2S_BUS > + <&clock_audss 0>; // EXYNOS_SCLK_I2S > + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; > + #clock-cells = <1>; > + samsung,idma-addr = <0x03000000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&i2s0_bus>; > + #sound-dai-cells = <1>; > + }; > + > -- > 2.17.1 >