From patchwork Sun May 20 01:12:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10413067 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4085602CB for ; Sun, 20 May 2018 01:13:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6F29285BA for ; Sun, 20 May 2018 01:13:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB05A286BD; Sun, 20 May 2018 01:13:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C9A9285BA for ; Sun, 20 May 2018 01:13:08 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 51E402673A6; Sun, 20 May 2018 03:13:07 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id DE5D82673A6; Sun, 20 May 2018 03:13:04 +0200 (CEST) Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by alsa0.perex.cz (Postfix) with ESMTP id 8ECC3267388 for ; Sun, 20 May 2018 03:13:00 +0200 (CEST) Received: by mail-qt0-f196.google.com with SMTP id d3-v6so14972925qtp.11 for ; Sat, 19 May 2018 18:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XbfupRbaL2aUDBEc6JrTLynaEK0Uxm/NfNEDEy5fz64=; b=YtAzRk27V/OBijkkXL5xTeoo8Y0C/99mrLTGl3xn+Y+2E+HKwab6xYnCsPFSXybVeg GsGJYUyNWGA9R4tl0Fwju6Ez3HmjfZiRphd1j1tTpRFNLAKM+9jb6U/RpTQ+XVvjq1p4 385qNaRubM2JFc3kKgOqo+JvPMIhbdo75cn+uNVGzYEkZ+5FyPQkZKwUMKURW0Yf2Gwz kY4qsuIKiC/r+Q6wcI6OMXkXg2vkkLHrjVuV41MXPVKsY35YgOIf1TKcb+xRfYLWxp4c nM/KhdpLCOxEntv+HsVpxUTeh10Grc/hibvD+ruJw/2fzC0v3JUXsb2+Qb0sQioy3eDr cesQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XbfupRbaL2aUDBEc6JrTLynaEK0Uxm/NfNEDEy5fz64=; b=F7P50IA6e7ilUgDBmRkRqqcRtdxjeXXCyHq5HigT3muPiHoHQiR2hTNIBkPrG1zPPQ BrSq3KnmhQiqiwL5byer3K5E02TMlOuCepG9VWJqoTUXx3WsyoSi1xlx8H8Ra5WS10aw pbrQ5SLMLKuG79gKo5JMPD/i7iJa9r3BvHJQjXB9tbUuidUn2W3znlP8Ln0/+UChjZOV um8Zoe8VOww/vGBfG3kh/2tFOVbpmt8Bgi6EAYmkGmvIgyiMkqEC4xh5AwdeNn8tEQ1s 6mg3f+L8So/6sqA7Oj/uyxB5DxNKduiYtywELCwtKw47MlKVUGu1k9hoT4AL//B0rO/E pFMw== X-Gm-Message-State: ALKqPwd6zVqhg/Itu51vKc9Ozw4agVJNtkMzAh22EZvcsnu9Q3/grsGX Wb1ZEtgQTkZDzEdN4B9ic7Y= X-Google-Smtp-Source: AB8JxZooHJn4TSd4EzjJ0n0Yw+YI1MfiwDdZZMX/9bVEnToaHWzjD6dtsvp5cE9Fj5jiGfm8n546ng== X-Received: by 2002:ac8:701e:: with SMTP id x30-v6mr14396400qtm.229.1526778778753; Sat, 19 May 2018 18:12:58 -0700 (PDT) Received: from localhost.localdomain ([2804:14d:90ae:4c9c:4103:c8d5:a203:30d0]) by smtp.gmail.com with ESMTPSA id u50-v6sm8798424qth.0.2018.05.19.18.12.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 May 2018 18:12:57 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Sat, 19 May 2018 22:12:52 -0300 Message-Id: <1526778772-6676-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, timur@tabi.org, nicoleotsuka@gmail.com, robh+dt@kernel.org, Fabio Estevam Subject: [alsa-devel] [PATCH] ASoC: fsl: Mark 'big-endian' property as optional X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Currently the 'big-endian' property is listed as required, which is not correct. i.MX SoCs do not need such property, so move it under 'Optional properties' entry instead. Also, fsl-sai.txt incorrectly referenced 'FTM_PWM registers', so change it to 'SAI registers', which is the intended description. Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/sound/fsl,asrc.txt | 10 ++++++---- Documentation/devicetree/bindings/sound/fsl,esai.txt | 2 ++ Documentation/devicetree/bindings/sound/fsl,spdif.txt | 2 ++ Documentation/devicetree/bindings/sound/fsl-sai.txt | 8 +++++--- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,asrc.txt b/Documentation/devicetree/bindings/sound/fsl,asrc.txt index f5a1411..1d4d9f9 100644 --- a/Documentation/devicetree/bindings/sound/fsl,asrc.txt +++ b/Documentation/devicetree/bindings/sound/fsl,asrc.txt @@ -31,14 +31,16 @@ Required properties: it. This property is optional depending on the SoC design. - - big-endian : If this property is absent, the little endian mode - will be in use as default. Otherwise, the big endian - mode will be in use for all the device registers. - - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends. - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends. +Optional properties: + + - big-endian : If this property is absent, the little endian mode + will be in use as default. Otherwise, the big endian + mode will be in use for all the device registers. + Example: asrc: asrc@2034000 { diff --git a/Documentation/devicetree/bindings/sound/fsl,esai.txt b/Documentation/devicetree/bindings/sound/fsl,esai.txt index cacd18b..5b99143 100644 --- a/Documentation/devicetree/bindings/sound/fsl,esai.txt +++ b/Documentation/devicetree/bindings/sound/fsl,esai.txt @@ -42,6 +42,8 @@ Required properties: means all the settings for Receiving would be duplicated from Transmition related registers. +Optional properties: + - big-endian : If this property is absent, the native endian mode will be in use as default, or the big endian mode will be in use for all the device registers. diff --git a/Documentation/devicetree/bindings/sound/fsl,spdif.txt b/Documentation/devicetree/bindings/sound/fsl,spdif.txt index 38cfa75..8b324f8 100644 --- a/Documentation/devicetree/bindings/sound/fsl,spdif.txt +++ b/Documentation/devicetree/bindings/sound/fsl,spdif.txt @@ -33,6 +33,8 @@ Required properties: it. This property is optional depending on the SoC design. +Optional properties: + - big-endian : If this property is absent, the native endian mode will be in use as default, or the big endian mode will be in use for all the device registers. diff --git a/Documentation/devicetree/bindings/sound/fsl-sai.txt b/Documentation/devicetree/bindings/sound/fsl-sai.txt index 740b467..dd9e597 100644 --- a/Documentation/devicetree/bindings/sound/fsl-sai.txt +++ b/Documentation/devicetree/bindings/sound/fsl-sai.txt @@ -28,9 +28,6 @@ Required properties: pinctrl-names. See ../pinctrl/pinctrl-bindings.txt for details of the property values. - - big-endian : Boolean property, required if all the FTM_PWM - registers are big-endian rather than little-endian. - - lsb-first : Configures whether the LSB or the MSB is transmitted first for the fifo data. If this property is absent, the MSB is transmitted first as default, or the LSB @@ -48,6 +45,11 @@ Required properties: receive data by following their own bit clocks and frame sync clocks separately. +Optional properties: + + - big-endian : Boolean property, required if all the SAI + registers are big-endian rather than little-endian. + Optional properties (for mx6ul): - fsl,sai-mclk-direction-output: This is a boolean property. If present,