Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4227444ybh; Tue, 6 Aug 2019 08:15:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAzRAgDMTA8IJA/PYiQaGObNeZFxmyIAcQsHKOWco7aXINXQdcgeIoISR+YXHZUigjd4qg X-Received: by 2002:a17:90a:db52:: with SMTP id u18mr3735559pjx.107.1565104510330; Tue, 06 Aug 2019 08:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565104510; cv=none; d=google.com; s=arc-20160816; b=Qjqw5h9zUV5k4b2tftIWmVU7zbD5LB/Tqc/GH10sW4Agasw5UgJPRdhP3NB47pPenn +awV3OmJX6Rgt3UyTzQWlGSoC0pJEcheFslE9sIdKfYfGtymZa+9LjH7Yz9ICGP7AhUW b9Utv2pMa0gnYoE8A3VEOYtDsNSLylG8nDOwxb/nBffg3irTCo5MqNmABZHvDU+Du92o ExUmHAyL6sbnlBCpcPb/JNp0A7l2lYoNmbpmhdTuXbuSNK08sSwovCTLrWEA5O2h65cf drIpf5f/g8/xfa37BsEp30hwb8PsUZuutDs/JwR6YH0DiKNVDJGvym1XISonnC9TW7Bu I8lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=en2TCtQYRVfEPKW0CGizKzj1NP+aq91Mq5mmert2Bmo=; b=juDeHZDOBvehkuzQrtOpCwe3u+NIk0DVnE3ULOAEQ5ZeTUqG/bKdnlD7OmbZueNCMR o+RsoyD0YjIkqWVxhVhhUQzm87TEBDh5KiRybFC3l12R1kOPrrtQDEXTYSaM+6PX0GLn vL/OaLkKsb9XC6UYamAI+H3S969hS4jmf6fGM4EehpPOoYQr2c9VqXrKzSAkwLvwX6cF s2cNR3Y8Az21fCRfd7yWTNglfs208lYBhkHEnpdIVmpdW7hqVKAOTeob1tXsMSFBAqxf XKIZtCwV95ItjHBkWLJHNMlt4oMcUjdLwNr0jncDzU/aGxRwdHgYUIUdzoGsLV1GPeA1 tpcA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e20si16743695pgn.181.2019.08.06.08.14.54; Tue, 06 Aug 2019 08:15:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732333AbfHFPMd (ORCPT + 99 others); Tue, 6 Aug 2019 11:12:33 -0400 Received: from inva020.nxp.com ([92.121.34.13]:55616 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfHFPMd (ORCPT ); Tue, 6 Aug 2019 11:12:33 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 06D7F1A02BD; Tue, 6 Aug 2019 17:12:29 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ED6491A062C; Tue, 6 Aug 2019 17:12:28 +0200 (CEST) Received: from fsr-ub1864-103.ea.freescale.net (fsr-ub1864-103.ea.freescale.net [10.171.82.17]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 18B5C205DD; Tue, 6 Aug 2019 17:12:28 +0200 (CEST) From: Daniel Baluta To: broonie@kernel.org Cc: l.stach@pengutronix.de, mihai.serban@gmail.com, alsa-devel@alsa-project.org, timur@kernel.org, shengjiu.wang@nxp.com, angus@akkea.ca, tiwai@suse.com, nicoleotsuka@gmail.com, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, Daniel Baluta Subject: [PATCH v3 0/5] Add support for new SAI IP version Date: Tue, 6 Aug 2019 18:12:09 +0300 Message-Id: <20190806151214.6783-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So far SAI IPs integrated with imx6 only supported one data line. Starting with imx7 and imx8 SAI integration support up to 8 data lines. First patch introduce register definition to support this. New SAI IP version introduces two new registers (Version and Parmeter registers) which are placed at the beginning of register address space. For this reason we need to fix the register's address. Support for this is introduced in patch 3. Changes since v2: - removed patches regarding data line mask because I need to find a better way to describe to model data lines. Perhaps,we only need to specify how many datalines a specific SAI instance supports and then let SAI driver to activate datalines based on the number of channels. Will open the discussion on this on a separate thread. - fixed devicetree documentation as per Nicolin comments and will send a separate patch to convert it to yaml. Changes since v1: - removed patches from Lucas as they were already accepted - addressed comments from Lucas and Nicolin regarding device tree property naming - removed comment saying that "datalines" must be always consecutively enabled (this is not true, checked with IP owner) - added new patch to document newly introduced compatbile strings - removed patch introducing combined mode as I will still need some time to figure out how to properly allow users to set it. Daniel Baluta (5): ASoC: fsl_sai: Add registers definition for multiple datalines ASoC: fsl_sai: Update Tx/Rx channel enable mask ASoC: fsl_sai: Add support for SAI new version ASoC: fsl_sai: Add support for imx7ulp/imx8mq ASoC: dt-bindings: Introduce compatible strings for 7ULP and 8MQ .../devicetree/bindings/sound/fsl-sai.txt | 3 +- sound/soc/fsl/fsl_sai.c | 320 ++++++++++++------ sound/soc/fsl/fsl_sai.h | 78 +++-- 3 files changed, 273 insertions(+), 128 deletions(-) -- 2.17.1