Received: by 10.223.176.5 with SMTP id f5csp1092443wra; Tue, 6 Feb 2018 12:29:55 -0800 (PST) X-Google-Smtp-Source: AH8x225RGw9qoB2C3fihD2AmAjK1MmX0QBlELVceFmvCa+ao3aL7MEYXpk9Px5S5zn6zWsGraSFp X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr3556489plb.181.1517948995093; Tue, 06 Feb 2018 12:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517948995; cv=none; d=google.com; s=arc-20160816; b=oDN/mv5J0z3DGxRQX2Puj/568evHhJRul5pSdmHZXzVn7kY9OUmESks+tM1QfE6iFS 1Q/SYrgTiGzP+ZcWn/vAqrT+4Y5UgttNac0V4vdSVRMBDTalvkgRIx1cODzmZXmw+M7c YcM+NeiANWnYXskKG0qgK/ThAtGYaK6hsbkZWP2/2+Qc4gS+PhdrL+He+ur/B1pBHmfd OKdnXvee+Jb9kWWpUIYwAW6JwI+n/o86ONdZEYIIrgzKq1z1W5i5wgwIUYsWk8jzsVSm RGOLFcnWjND//b7aAICR57pjMa60yvDuO8e8v5jdNcwaMrH7jdvHvrzD/GykoOt+Mbhr OheA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ARotUm7pKCOF5K82YF3FspHGQfw+n+Nr569ZSCmL7Eg=; b=h4SSHR3uyAEGdTTUTuLCQK+sc2F5ZJsF9nz0ov2X6dDInVqr37BRFAc2DqBTt01/Nd J5wwJTe+3WbMZtk/zmeSf06XQ78UDntGcm7iRdBdPf3cPkMcMaKjSDbpseHNAkUlzL7w HJJTQ4ZInygnMpM4bHGHV1a2TPGygM4uUAnJk5jpmw9SfX312k38sg9qdRXa+Bx4jkot +W6Zcf+bK+UEQ5rncWbu/XP5ttVVQkB7cixct3htpHL/DTDhbZhoPKtAikGabe7Tne47 DlpjRnxOO2QmiJ4NgZXbz+t8rrtyINjHp/IeVAZYfYQLDWcVd/Y64//7Bsm6Bp1R7gZN 7sVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=RVFI2Gkl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m73si1692034pfj.131.2018.02.06.12.29.40; Tue, 06 Feb 2018 12:29:55 -0800 (PST) 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=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=RVFI2Gkl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753489AbeBFU2a (ORCPT + 99 others); Tue, 6 Feb 2018 15:28:30 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:46155 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753429AbeBFU2W (ORCPT ); Tue, 6 Feb 2018 15:28:22 -0500 Received: by mail-pl0-f67.google.com with SMTP id 36so1970901ple.13 for ; Tue, 06 Feb 2018 12:28:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ARotUm7pKCOF5K82YF3FspHGQfw+n+Nr569ZSCmL7Eg=; b=RVFI2GkljZbneet+Z8Lux0JGlpbsDBOn4urG4AQcCyph44Ldl2u4HdhMnKXkioEWgv KbbMm+JBWIl7UBDNNyw8wDhvnPVvtimVyLIlZ1ZOWCYo3bfsmWOtawq1DMJrKIQjtT2X RBMWT69QkqjvQmdclEm33qb0Hy1VZ4aQh3P93IMQ1QUlTY9kViKOqU+sDX9hAOy/1ACy FPXfJJWyEi/Xm6DRtoU6lPr7QD6hAoMewjQwHBm5dpoTA3j+scM68p3P9hnKKFOVTmFn PdffEArvTx7R0rTkgP/AGcGO982Z9V60ibB9vI3ZtfxUk/90V3iqegWMnqdjwH+KMLNs J8jw== 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; bh=ARotUm7pKCOF5K82YF3FspHGQfw+n+Nr569ZSCmL7Eg=; b=LGIKrRNO6IH5wrYtYG2M8KpW/oJV3JUmMDAla4NSn52z/OLSKoWmtIqMSei5NLvT4G hxBnFi+Qr/NWc7xf4Cwhs7TqFUVIY4S4LJVF/l57nCiDpEAC0he3bGFqu7bNHlnCDOBn r80u0p9J9QVRk1WGeaxaH4u4LvV5g4rBbbK4gY2wGVkvrAbkCdbohziZ70DPm30o/hV3 ouAe7/OrkzJ4XpD5OPGJZYps6oJYbXnoV9otIbX3t6bSJBwWgbsgsXg1hSezAiRPSNZ2 PvXTchwO2Hq+OyOKkB7GafJGHrDBqvjnBPCkDg/fgr75fJHTbjRuw364dcX8kbAHlw+j hong== X-Gm-Message-State: APf1xPBU3hgikZVF32gWnpcymE8ZOGRP9gD8Py9XLaNTaOafX+tscyne /KBIP1y+0y588+8APr4NEvoQKQ== X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr3653055pls.32.1517948901546; Tue, 06 Feb 2018 12:28:21 -0800 (PST) Received: from tharvey.pdc.gateworks.com (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id m9sm22943512pff.59.2018.02.06.12.28.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 12:28:20 -0800 (PST) From: Tim Harvey To: linux-media@vger.kernel.org, alsa-devel@alsa-project.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, Steve Longerbeam , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH v8 7/7] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x Date: Tue, 6 Feb 2018 12:27:54 -0800 Message-Id: <1517948874-21681-8-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517948874-21681-1-git-send-email-tharvey@gateworks.com> References: <1517948874-21681-1-git-send-email-tharvey@gateworks.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Tim Harvey --- v5: - add missing audmux config --- arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi index 30d4662..749548a 100644 --- a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi @@ -46,6 +46,8 @@ */ #include +#include +#include / { /* these are used by bootloader for disabling nodes */ @@ -98,6 +100,50 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; + + sound-digital { + compatible = "simple-audio-card"; + simple-audio-card,name = "tda1997x-audio"; + + simple-audio-card,dai-link@0 { + format = "i2s"; + + cpu { + sound-dai = <&ssi2>; + }; + + codec { + bitclock-master; + frame-master; + sound-dai = <&tda1997x>; + }; + }; + }; +}; + +&audmux { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_audmux>; /* AUD5<->tda1997x */ + status = "okay"; + + ssi1 { + fsl,audmux-port = <0>; + fsl,port-config = < + (IMX_AUDMUX_V2_PTCR_TFSDIR | + IMX_AUDMUX_V2_PTCR_TFSEL(4+8) | /* RXFS */ + IMX_AUDMUX_V2_PTCR_TCLKDIR | + IMX_AUDMUX_V2_PTCR_TCSEL(4+8) | /* RXC */ + IMX_AUDMUX_V2_PTCR_SYN) + IMX_AUDMUX_V2_PDCR_RXDSEL(4) + >; + }; + + aud5 { + fsl,audmux-port = <4>; + fsl,port-config = < + IMX_AUDMUX_V2_PTCR_SYN + IMX_AUDMUX_V2_PDCR_RXDSEL(0)>; + }; }; &can1 { @@ -263,6 +309,60 @@ #gpio-cells = <2>; }; + tda1997x: tda1997x@48 { + compatible = "nxp,tda19971"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_tda1997x>; + reg = <0x48>; + interrupt-parent = <&gpio1>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + DOVDD-supply = <®_3p3>; + AVDD-supply = <®_1p8b>; + DVDD-supply = <®_1p8a>; + #sound-dai-cells = <0>; + nxp,audout-format = "i2s"; + nxp,audout-layout = <0>; + nxp,audout-width = <16>; + nxp,audout-mclk-fs = <128>; + /* + * The 8bpp YUV422 semi-planar mode outputs CbCr[11:4] + * and Y[11:4] across 16bits in the same cycle + * which we map to VP[15:08]<->CSI_DATA[19:12] + */ + nxp,vidout-portcfg = + /*G_Y_11_8<->VP[15:12]<->CSI_DATA[19:16]*/ + < TDA1997X_VP24_V15_12 TDA1997X_G_Y_11_8 >, + /*G_Y_7_4<->VP[11:08]<->CSI_DATA[15:12]*/ + < TDA1997X_VP24_V11_08 TDA1997X_G_Y_7_4 >, + /*R_CR_CBCR_11_8<->VP[07:04]<->CSI_DATA[11:08]*/ + < TDA1997X_VP24_V07_04 TDA1997X_R_CR_CBCR_11_8 >, + /*R_CR_CBCR_7_4<->VP[03:00]<->CSI_DATA[07:04]*/ + < TDA1997X_VP24_V03_00 TDA1997X_R_CR_CBCR_7_4 >; + + port { + tda1997x_to_ipu1_csi0_mux: endpoint { + remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>; + bus-width = <16>; + hsync-active = <1>; + vsync-active = <1>; + data-active = <1>; + }; + }; + }; +}; + +&ipu1_csi0_from_ipu1_csi0_mux { + bus-width = <16>; +}; + +&ipu1_csi0_mux_from_parallel_sensor { + remote-endpoint = <&tda1997x_to_ipu1_csi0_mux>; + bus-width = <16>; +}; + +&ipu1_csi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_csi0>; }; &pcie { @@ -320,6 +420,14 @@ }; &iomuxc { + pinctrl_audmux: audmuxgrp { + fsl,pins = < + MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0 + MX6QDL_PAD_DISP0_DAT14__AUD5_RXC 0x130b0 + MX6QDL_PAD_DISP0_DAT13__AUD5_RXFS 0x130b0 + >; + }; + pinctrl_flexcan1: flexcan1grp { fsl,pins = < MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1 @@ -375,6 +483,30 @@ >; }; + pinctrl_ipu1_csi0: ipu1_csi0grp { + fsl,pins = < + MX6QDL_PAD_CSI0_DAT4__IPU1_CSI0_DATA04 0x1b0b0 + MX6QDL_PAD_CSI0_DAT5__IPU1_CSI0_DATA05 0x1b0b0 + MX6QDL_PAD_CSI0_DAT6__IPU1_CSI0_DATA06 0x1b0b0 + MX6QDL_PAD_CSI0_DAT7__IPU1_CSI0_DATA07 0x1b0b0 + MX6QDL_PAD_CSI0_DAT8__IPU1_CSI0_DATA08 0x1b0b0 + MX6QDL_PAD_CSI0_DAT9__IPU1_CSI0_DATA09 0x1b0b0 + MX6QDL_PAD_CSI0_DAT10__IPU1_CSI0_DATA10 0x1b0b0 + MX6QDL_PAD_CSI0_DAT11__IPU1_CSI0_DATA11 0x1b0b0 + MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0 + MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b0 + MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b0 + MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b0 + MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b0 + MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b0 + MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b0 + MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b0 + MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC 0x1b0b0 + MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b0 + MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC 0x1b0b0 + >; + }; + pinctrl_pcie: pciegrp { fsl,pins = < MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */ @@ -399,6 +531,12 @@ >; }; + pinctrl_tda1997x: tda1997xgrp { + fsl,pins = < + MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x1b0b0 + >; + }; + pinctrl_uart2: uart2grp { fsl,pins = < MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1 -- 2.7.4