Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4099308ybg; Fri, 25 Oct 2019 13:18:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvtOJB9AzUUJ6QGWyjLhQoE7/eP1z+6Mn6Q/TucLCZtLF/U4YWF7QQ/5AraVvx5a71AsMX X-Received: by 2002:aa7:d3c4:: with SMTP id o4mr6226890edr.194.1572034723417; Fri, 25 Oct 2019 13:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572034723; cv=none; d=google.com; s=arc-20160816; b=I3YxWm8MRZKqq9WU7lpz9XyWWTpDyakHIJLO2PHqNPUfkTD0GEzkE6a4S00rUappth ALi8Me77tRVz5cG8hnybUeEKVCxwRQvlxXdTAVrvvNIDMXLq+7mBAaWjtux6LcNMWPq3 8yXWcyP1+h5JWkAESy3ntR4UVpVxNbCSbxEd1EAJBTpIkLTJwLDVc3WFhZo0Hxn2EPkP UvVfXpadZLbc8RzDQ0R1fDzCewf1Ufia4+0wYxozJXRoFUSF3z3FNU9gs24+FFgXjAmZ CZ9whcKyoCg8ArPTtV8noyaeaB3PePl4/lWZf92bhpAtjUJrqv1gkGvfEKX2gWO6AfQW VtPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pgk2VpYDvWxnQGOn4CatnKUbEjzqifjDf+V5kplLk3Y=; b=heQcl5J3JfQhkiE8VMHiDkiR1EXWIogMMe5aDJ/9clyV8fwdGE6XkOYiprxlWX25dA OrnJC9igWMl0E49LPP203ffC+fcdROus8qgNpkHc1yNv0Qh5XGe1LVinqXuO4VLwuDO9 hkmJbdCEAxfhtDxvsiAQC68yW01aZ4w6dI59LFryn3Lq1UEz+HIxqMr2Kd+bCVcOaufs Wx1FM87WGTDbfGe3uWSk5xio0XCwcWV2Xi9MX6z3ErS2mvzIJoW38bbB3s72CDiUwnTb FH/5IMDpB6j7Of5Raq9chWoqXEqbu3fQGG5ZFXbiuQGq41k08TcEEr/dILRi8JWO9RBn iGKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hkoiNtYv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qw15si1745782ejb.137.2019.10.25.13.18.20; Fri, 25 Oct 2019 13:18:43 -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; dkim=pass header.i=@chromium.org header.s=google header.b=hkoiNtYv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439380AbfJYNaX (ORCPT + 99 others); Fri, 25 Oct 2019 09:30:23 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36657 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439018AbfJYNaX (ORCPT ); Fri, 25 Oct 2019 09:30:23 -0400 Received: by mail-pg1-f196.google.com with SMTP id 23so1570230pgk.3 for ; Fri, 25 Oct 2019 06:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pgk2VpYDvWxnQGOn4CatnKUbEjzqifjDf+V5kplLk3Y=; b=hkoiNtYvvdlvP8l6YHJ0NAcOrbqzyTeM8GV5/CrfA0sqk7Un42PZnP+hIk4FRUHCIp uJrYQ2nf1MsX5xGpT+4LwiS2I3HKNvMGsveUyU2msEa+qqz8o7Wpw53WLVf2C//dpdWz NESc7oSR3+f7btvnpogS3AxngiEYpeuPmaTk8= 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:mime-version :content-transfer-encoding; bh=pgk2VpYDvWxnQGOn4CatnKUbEjzqifjDf+V5kplLk3Y=; b=HhyGE/Dtg4jZzEU5sWi8DWyDNukKnr7CJ4OR+5OqjBQqGCoi4FOyGIHF9ls37kYSwn IAUGhRmnVxIXOj2vS4aA76YbaVpz34sfsDoJzWLDTWysiztIU6bAvMAnbleCWMMjfuNE os3Ucs+sPRaUk6ka4JqF3QioB9MSUHBrLQ0u/7CBtljdHxiydVfotgbRXAYEszWtO2sJ xsQnv6p20LMQiyI2fN+TQWVcTj51nYEa0XwV7uyS39PvsSejx3nCOR9H0ZSbuBY49mZK feacxH++g71++pV1wGYkITxyccnWLroCISdR/E96oEmnJt1vXybF9yENYc+PT25iyXN1 hjMg== X-Gm-Message-State: APjAAAWW0UwiWeJFNs5W8b657o8bak3K3YL2ccBzMgfzxMrPacPtM1Lr ajmrZGJ3K7VVdmdF20eAJEK+7vYOwXPeww== X-Received: by 2002:a65:4bc3:: with SMTP id p3mr4465303pgr.188.1572010221995; Fri, 25 Oct 2019 06:30:21 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:79b4:bd83:e4a5:a720]) by smtp.gmail.com with ESMTPSA id q20sm2534518pfl.79.2019.10.25.06.30.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Oct 2019 06:30:20 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Cc: Neil Armstrong , Jerome Brunet , Jernej Skrabec , Jonas Karlman , Hans Verkuil , Mark Brown , Liam Girdwood , Takashi Iwai , Jaroslav Kysela , Russell King , Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , Heiko Stuebner , Rob Herring , Mark Rutland , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Cheng-Yi Chiang Subject: [PATCH v8 0/6] Add HDMI jack support on RK3288 Date: Fri, 25 Oct 2019 21:30:01 +0800 Message-Id: <20191025133007.11190-1-cychiang@chromium.org> X-Mailer: git-send-email 2.24.0.rc0.303.g954a862665-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series supports HDMI jack reporting on RK3288, which uses DRM dw-hdmi driver and hdmi-codec codec driver. The previous discussion about reporting jack status using hdmi-notifier and drm_audio_component is at https://lore.kernel.org/patchwork/patch/1083027/ The new approach is to use a callback mechanism that is specific to hdmi-codec. The dependent change on hdmi-codec.c 6fa5963c37a2 ASoC: hdmi-codec: Add an op to set callback function for plug event has been merged to upstream. Changes from v7 to v8: 1. rockchip_max98090: Allow three different use cases: max98090-only: For backward compatibility where DTS does not specify HDMI node. HDMI-only: For HDMI-only board like veyron-mickey. max98090 + HDMI: For other veyron boards. Pass different compatible string to specify the use case. 2. Add more maintainers to cc-list for new device property reviewing. Cheng-Yi Chiang (6): drm: bridge: dw-hdmi: Report connector status using callback ASoC: rockchip-max98090: Support usage with and without HDMI ASoC: rockchip_max98090: Optionally support HDMI use case ASoC: rockchip_max98090: Add HDMI jack support ARM: dts: rockchip: Add HDMI support to rk3288-veyron-analog-audio ARM: dts: rockchip: Add HDMI audio support to rk3288-veyron-mickey.dts .../bindings/sound/rockchip-max98090.txt | 38 +- .../boot/dts/rk3288-veyron-analog-audio.dtsi | 3 +- arch/arm/boot/dts/rk3288-veyron-mickey.dts | 7 + .../drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 11 + drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 41 +- include/drm/bridge/dw_hdmi.h | 4 + sound/soc/rockchip/Kconfig | 3 +- sound/soc/rockchip/rockchip_max98090.c | 392 +++++++++++++++--- 8 files changed, 425 insertions(+), 74 deletions(-) -- 2.24.0.rc0.303.g954a862665-goog