From patchwork Wed Feb 27 21:54:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 159300 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4939378jad; Wed, 27 Feb 2019 13:54:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IYPcs10fIZ4iwH23aHBw/1hwaV2ky2NiA7myvBzxlfIvpih8Mq8+WtCH1M/nJUbk25zAuUZ X-Received: by 2002:a17:902:6a2:: with SMTP id 31mr4433925plh.129.1551304492018; Wed, 27 Feb 2019 13:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551304492; cv=none; d=google.com; s=arc-20160816; b=ADJ2vfNZykobJzg+1ibGvwz5xepG8tW66JhJVvTtCCJfmkTTbY9Brtv+Jme7ANfs2v HLv86aNMwLoCUO/MyBVLQ8aBat7ffA0p/i8xmSvBiNWkbEeEgErTfZRmeomIj5L9WvKu HqxGj6SdX2m/vg2ePFBMnd4nUX55EvHB6OoyoiyOog0J5Cj8wwbYnGaTC0K+MPGw8I9D szajDEFQIHgJ8v8z7KldNPsoa5HkZnsrXUVl37KM0cu5M5qXoA9Xho5RoL918UgRoOjQ +3QXyg0XpgilGNc7QGdRoe8YJlLMF9RDhHAV6egJWubEdwuAma7jrfOVvQwcYh/c47Fc 6lmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=UeODvBemjVjIEfFVU/VquFv1jSSSAW/47SCstm1MoXA=; b=re2CgbAxFesKE/YIRA0CsdBSR1CXpaDBK7mgYL1st/Or1puT647fUwKHPY7oJuuWZL 5go28o+AOmyk972SxEmgpVtk+1J4sjFPDVcEeYZDcS/W14IGHpEm7FnCWtm1kZQsrlt8 O3TjqZiYwEfb36HoT6GzXKDEd7f+b1BM1l3LH3+AA+Xk520q/aSXWhTgnEK/sEetxG40 HQyJS+8oH85oYVKbSIzCe2KAWnpEWnHEigdZJuTXpYhEhOdutW0+Rh6QiflHKA/42AuA GCcvzOEFLB+EWCAENYHD26EgrtKL9vtys0aKkhziFFogtkmrt5lrGi4SY8amWrZQxgFS KHig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vj6LZZl0; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g84si6132260pfd.187.2019.02.27.13.54.51; Wed, 27 Feb 2019 13:54:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=vj6LZZl0; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbfB0Vyv (ORCPT + 7 others); Wed, 27 Feb 2019 16:54:51 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37296 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729986AbfB0Vyv (ORCPT ); Wed, 27 Feb 2019 16:54:51 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1RLsSYj043621; Wed, 27 Feb 2019 15:54:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1551304468; bh=UeODvBemjVjIEfFVU/VquFv1jSSSAW/47SCstm1MoXA=; h=From:To:CC:Subject:Date; b=vj6LZZl0okP4zVXxIlSJqTmTYnMEj59dQvsLukPNRHLTlSUbcJbSzJiYJvdrnhLAv rsgqLF+lGzo1eM9V/7kM3ClumyLu7+k9Fjhyr0jWY7yo6D3qAj0j+goDNYkjWWdOqy 1e7BBi2wxB2G+5bxStN/nBkmCzi/lmpv8QW1pVAA= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1RLsScC104333 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Feb 2019 15:54:28 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 27 Feb 2019 15:54:26 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 27 Feb 2019 15:54:26 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1RLsNeb017712; Wed, 27 Feb 2019 15:54:23 -0600 From: Jyri Sarha To: , CC: , , , , , , , , Subject: [PATCH v2 0/5] drm/bridge: sii902x: HDMI-audio support and some fixes Date: Wed, 27 Feb 2019 23:54:18 +0200 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Changes since first version: - Moved reviewed patches to front: - drm/bridge: sii902x: add input_bus_flags - drm/bridge: sii902x: Set output mode to HDMI or DVI according to EDID - drm/bridge: sii902x: pixel clock unit is 10kHz instead of 1kHz - Added a new fix: - drm/bridge: sii902x: Select I2C_MUX - Applied some review suggestions to - drm/bridge: sii902x: Implement HDMI audio support - use clock-names property to name mclk - move comment describing added mutex to struct sii902x and improve it - cleanup sii902x_mute() - cleanup sii902x_select_mclk_div() - fix condition for checking ENABLE_BIT from i2s_fifo_routing in sii902x_audio_codec_init() Still to do - Agree on i2s wires to HDMI audio fifo routing in dts. The current scheme is quite straight forward, but there is maybe there is even more straight forward solutions like: audio-fifo-enable = <1 1 1 1>; audio-i2s-pin-to-fifo = <0 1 2 3>; Meaning that all fifos are enabled and SD0 is routed to fifo 0, SD1 to fifo 1, etc. I am not sure if the channel swap functionality should show in dts binding. Jyri Sarha (4): drm/bridge: sii902x: Set output mode to HDMI or DVI according to EDID drm/bridge: sii902x: pixel clock unit is 10kHz instead of 1kHz drm/bridge: sii902x: Select I2C_MUX drm/bridge: sii902x: Implement HDMI audio support Tomi Valkeinen (1): drm/bridge: sii902x: add input_bus_flags .../bindings/display/bridge/sii902x.txt | 36 +- drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/sii902x.c | 472 +++++++++++++++++- include/dt-bindings/sound/sii902x-audio.h | 11 + 4 files changed, 512 insertions(+), 8 deletions(-) create mode 100644 include/dt-bindings/sound/sii902x-audio.h -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki