From patchwork Mon Dec 30 12:04:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 979 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8D8E93F03F for ; Mon, 30 Dec 2019 13:04:35 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id h2sf7936803pji.1 for ; Mon, 30 Dec 2019 04:04:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577707474; cv=pass; d=google.com; s=arc-20160816; b=svj/lMRdM0Ip7GUK4a0SpdGWCUT7dhm5xHNffevX92SIcUiEUwErNxIP7OBQn/lrYe QcVRshnE3fB/ZrsFCm1JrnRCfMFTWxZpIREHCR7Kk+lRP2qdibMuc3IjF86oscZlfIqW Foz4sjh6tuJwbPA6rm1Id9pdL4DOm5fNAfB5L13lZVGsR/oTR7mFiPLpiG/mjEKobD10 JuYtVyfgXM6Kp9nd7zqY0PNwbZ8BS9uCRaCARdI9iL94mD0rDaamvsbmTFatQOP1aeEC 0zirvTDosq3/5wtT91DjSl4hG2NQVtA65MXgNpLRp0HrTxHESqqt0PFQ4BP+geQiJrP6 bX+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sLhp+ASF7tS8a5Mvu4LcHKfYEDSEe7ppdDF8ZlJnYm4=; b=KQKYX9Qp09ViZ1At69qeq9d8ZY33AwsAO/zB9aZ1lee3ibioTVJejc2fLaPvjlyPXg Yr3TNMZbH7704Vq4k5ffbw9h7c7+uMbWk36aoHPzXwClGwGPm8T6j2nJ9AadYvtRFjLT 7zNm1OK4uqxT/LxHQYMaihTKvjJIqaqJ29XB0FWqkjsPEIUQm1OdPFeYbhvMVfkmsRPS h/FabSctS5BgYnOqb+cqS+3KmlyKhqgTphORS+CznxH1mT7KOUJiDHVtAxBVWKREs3d3 OE6CMuhs9wQYmZnlQhn6nuRv8IMwYkDuXJZdXohBVVguZOk++uyppXoYjSJMeASXhwIR oi5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l8GXdVPX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=sLhp+ASF7tS8a5Mvu4LcHKfYEDSEe7ppdDF8ZlJnYm4=; b=Zllrbvy61p0eXgJJni+t39cTnKyNeW9oCwIIfFnXQT4RCPK+UI2VtHRnwl18LaP99i 14ouqGq0qdvI4YfPHJDUnbITHr5agxo+sTMKOVwJmIUiq2lDu+8c71kMwE1opi6fQcLd l+W2roovfRibcjd5+y2b+Ciw5Zp18cskVxYwc= 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:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=sLhp+ASF7tS8a5Mvu4LcHKfYEDSEe7ppdDF8ZlJnYm4=; b=VXQMzyh7ar4PgA0idoq+mZyi++9FpMqpkbOU1P0PIvlrllsC4Eq4EKlSF/UE8D0ez5 aetdoH9XpWh1MEpBnPtuJTFGDsXgmBhYl2ymjjGwyR8RPxt8z8FlqefQhCgnXKKy3gPT V+QnwDEq3HGeCV2CmKBQybEDmtxVE8X797zzvLmRr5UR5boNIrXfZxU+lZnKGdUzcKtU zmK+FmwLMuJ7fVhCT/yw7J0dNBopxuCBv+n+72P14kc1WzZmdUS8VBPemEjgF0RoMdPY FziQZm9zd0ELWxlCkgSMZSQ5de+j4G4f4BgQCQiLLHHvEHu1Dr9zb4RCre1Bp4Rap8GS azxQ== X-Gm-Message-State: APjAAAVzgOhCGEkY3Q8PPQ/i6e3HKOV1OZdy6gWIqt4UxrJ7aUDXV7S0 IgZ46TOyncgDM4SxZS8+26iGzk+Y X-Google-Smtp-Source: APXvYqx3ulupBBu668g1u9CxijmaAYqXE4jOBc4hFLkO+qO1PVBDbIk6ZrWiW4VQX4n3trtW3tL5ag== X-Received: by 2002:a63:753:: with SMTP id 80mr65876841pgh.95.1577707474343; Mon, 30 Dec 2019 04:04:34 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8214:: with SMTP id x20ls6766163pln.15.gmail; Mon, 30 Dec 2019 04:04:34 -0800 (PST) X-Received: by 2002:a17:90a:17e5:: with SMTP id q92mr46698839pja.28.1577707473948; Mon, 30 Dec 2019 04:04:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577707473; cv=none; d=google.com; s=arc-20160816; b=p//UYdkEJ2ACWL+WE+A6J78C9sfckDF9sSdhlfuLyHtQ71HE+THVOJmCu1ppFVmWb+ Rkx4MTpo9Y3cGi+hrToht+yMpGEfNrhCu+Dfoja7G1Z3Z4klyFKMRG5KUjLtAOT3Qal8 HfCyfoJ53mWeyywsUIEg5iq8RKPrNyuVnl9hReHN5EAWmnytt0I3hTe5kFvoaezQ84nK wEnhQ9PD6/VOibF5ysKb16ndI0WCRFHMg7sZ9lAx90XES08tjA4gvda+KNu/LVsjz24g aT8TGYg9dyKmfEEEgQGPm9CPGWJcq6Fy2YTieqR4zdSwyUvc17a2JdDQyW4eUhQc8tSo bfog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=z15TVhsC6aVgAoY/1ECtIR0dastBo/t1/yTBeBel+xw=; b=W4slXOGa7zss5sfHzTrq8P896M3X8M8s9D9Id/KLARvs++UUrp4aGppCNvU4x9Wv8T EGHwZyRE413IUOsGfCCe2DNyvdavNlziDgjcpHSssz/h4DLzMOgA6ojnkyV9d1JRGaLn YGcuMgo1FVKH4B29xlSZocN+K8udMBHH/rJJHkGVMNh0MfH5oUFjdmxYfP3jA5oysQ8R dZOBT8T6rM8JEWMX3qZyNmYuTCFpbPkmB9pphRky4U3xwEP4DhzHjxWKtH4VByuXJ1Bc dWmSMcY+nAonHg4hi3riahwhaJjVu1PQQRII0Y2+ZdyyAUvAKK1UGwJWVyyvmMbkqIPa oR6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l8GXdVPX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q15sor45079548pgs.22.2019.12.30.04.04.33 for (Google Transport Security); Mon, 30 Dec 2019 04:04:33 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a65:5cc2:: with SMTP id b2mr71242533pgt.51.1577707473641; Mon, 30 Dec 2019 04:04:33 -0800 (PST) Received: from localhost.localdomain ([49.206.202.131]) by smtp.gmail.com with ESMTPSA id n7sm24552620pjq.8.2019.12.30.04.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 04:04:33 -0800 (PST) From: Jagan Teki To: Stefano Babic , Fabio Estevam , uboot-imx@nxp.com Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 4/8] dt-bindings: sound: Add fsl-imx-audmux.h from v5.4 Date: Mon, 30 Dec 2019 17:34:05 +0530 Message-Id: <20191230120409.884-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191230120409.884-1-jagan@amarulasolutions.com> References: <20191230120409.884-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l8GXdVPX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Sync fsl-imx-audmux.h from v5.4 linux-next. Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki --- include/dt-bindings/sound/fsl-imx-audmux.h | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 include/dt-bindings/sound/fsl-imx-audmux.h diff --git a/include/dt-bindings/sound/fsl-imx-audmux.h b/include/dt-bindings/sound/fsl-imx-audmux.h new file mode 100644 index 0000000000..15f138bebe --- /dev/null +++ b/include/dt-bindings/sound/fsl-imx-audmux.h @@ -0,0 +1,64 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __DT_FSL_IMX_AUDMUX_H +#define __DT_FSL_IMX_AUDMUX_H + +#define MX27_AUDMUX_HPCR1_SSI0 0 +#define MX27_AUDMUX_HPCR2_SSI1 1 +#define MX27_AUDMUX_HPCR3_SSI_PINS_4 2 +#define MX27_AUDMUX_PPCR1_SSI_PINS_1 3 +#define MX27_AUDMUX_PPCR2_SSI_PINS_2 4 +#define MX27_AUDMUX_PPCR3_SSI_PINS_3 5 + +#define MX31_AUDMUX_PORT1_SSI0 0 +#define MX31_AUDMUX_PORT2_SSI1 1 +#define MX31_AUDMUX_PORT3_SSI_PINS_3 2 +#define MX31_AUDMUX_PORT4_SSI_PINS_4 3 +#define MX31_AUDMUX_PORT5_SSI_PINS_5 4 +#define MX31_AUDMUX_PORT6_SSI_PINS_6 5 +#define MX31_AUDMUX_PORT7_SSI_PINS_7 6 + +#define MX51_AUDMUX_PORT1_SSI0 0 +#define MX51_AUDMUX_PORT2_SSI1 1 +#define MX51_AUDMUX_PORT3 2 +#define MX51_AUDMUX_PORT4 3 +#define MX51_AUDMUX_PORT5 4 +#define MX51_AUDMUX_PORT6 5 +#define MX51_AUDMUX_PORT7 6 + +/* + * TFCSEL/RFCSEL (i.MX27) or TFSEL/TCSEL/RFSEL/RCSEL (i.MX31/51/53/6Q) + * can be sourced from Rx/Tx. + */ +#define IMX_AUDMUX_RXFS 0x8 +#define IMX_AUDMUX_RXCLK 0x8 + +/* Register definitions for the i.MX21/27 Digital Audio Multiplexer */ +#define IMX_AUDMUX_V1_PCR_INMMASK(x) ((x) & 0xff) +#define IMX_AUDMUX_V1_PCR_INMEN (1 << 8) +#define IMX_AUDMUX_V1_PCR_TXRXEN (1 << 10) +#define IMX_AUDMUX_V1_PCR_SYN (1 << 12) +#define IMX_AUDMUX_V1_PCR_RXDSEL(x) (((x) & 0x7) << 13) +#define IMX_AUDMUX_V1_PCR_RFCSEL(x) (((x) & 0xf) << 20) +#define IMX_AUDMUX_V1_PCR_RCLKDIR (1 << 24) +#define IMX_AUDMUX_V1_PCR_RFSDIR (1 << 25) +#define IMX_AUDMUX_V1_PCR_TFCSEL(x) (((x) & 0xf) << 26) +#define IMX_AUDMUX_V1_PCR_TCLKDIR (1 << 30) +#define IMX_AUDMUX_V1_PCR_TFSDIR (1 << 31) + +/* Register definitions for the i.MX25/31/35/51 Digital Audio Multiplexer */ +#define IMX_AUDMUX_V2_PTCR_TFSDIR (1 << 31) +#define IMX_AUDMUX_V2_PTCR_TFSEL(x) (((x) & 0xf) << 27) +#define IMX_AUDMUX_V2_PTCR_TCLKDIR (1 << 26) +#define IMX_AUDMUX_V2_PTCR_TCSEL(x) (((x) & 0xf) << 22) +#define IMX_AUDMUX_V2_PTCR_RFSDIR (1 << 21) +#define IMX_AUDMUX_V2_PTCR_RFSEL(x) (((x) & 0xf) << 17) +#define IMX_AUDMUX_V2_PTCR_RCLKDIR (1 << 16) +#define IMX_AUDMUX_V2_PTCR_RCSEL(x) (((x) & 0xf) << 12) +#define IMX_AUDMUX_V2_PTCR_SYN (1 << 11) + +#define IMX_AUDMUX_V2_PDCR_RXDSEL(x) (((x) & 0x7) << 13) +#define IMX_AUDMUX_V2_PDCR_TXRXEN (1 << 12) +#define IMX_AUDMUX_V2_PDCR_MODE(x) (((x) & 0x3) << 8) +#define IMX_AUDMUX_V2_PDCR_INMMASK(x) ((x) & 0xff) + +#endif /* __DT_FSL_IMX_AUDMUX_H */