From patchwork Sat Feb 18 11:17:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13145540 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA4F910E2 for ; Sat, 18 Feb 2023 11:17:21 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id bd10so310009pfb.3 for ; Sat, 18 Feb 2023 03:17:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gEF8FEuNLVayQdE5QI9MaMd8Q/7gQJSqUO9M+81Oa5M=; b=IaruHdGy8cyFLDUGIOX5pZOCfDLvKQZpLOUwXva2yFbitViwuTKQidiLFpOtPWhzcu suiJ6uJgAz2TngEijk5zQdejLa23H2xeo9jIswDVjTdRDMV/LGUV9eYlX3+ou4kJqg+8 Pi9/8dmPnYdds+GD+VqOdlM6LCxjqZ45E1Hbo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gEF8FEuNLVayQdE5QI9MaMd8Q/7gQJSqUO9M+81Oa5M=; b=M7j1Ed/0Lw7NlbQTyqBHmPRY8PtlqvzYVXWOykcyik5a/RRW129A7+fiUuGM0eg0OX i+xni55nwMcSZnVrlWOuDIzEb+GbDr3bAKZR+/EZfWUsIRFrZQ1eQGfPHqw579cuSrbh 63A9w3cDNAhcgt7b2Z+Vz6Dmi/E3K24ohQPWYmlpH0sKDfqJPKSmHks23XQ9bDfUrNs0 ikOiKvB2L/u5s22L/9F/XEG7SZaP1ty5quiuqFOububvV5n27JuexQ1aKJrMLmaoF0Ro l0O0nbKoyR5n87eVZU9B5raTjDWCoZ4e29Ex4/hBljETGP38U6yAGsY9mnmOS5zFQiRW HfZw== X-Gm-Message-State: AO0yUKWEYkOQGUutwUgk+rJ0qvqWBKwfpHI9b0wXidy7bvQNTu6efgFS 5ytArKWhcJ67fYIkbSFEFWsbN+b8F0bP5vS5 X-Google-Smtp-Source: AK7set+WyXQ3bNUcWSBc3Z7xIjr8Et8u/2+vAwZMWp1xbM5SWXK9wjjgnemRxkn9IVSvnVIBAgswew== X-Received: by 2002:a62:1b48:0:b0:5ab:bf5d:a0d1 with SMTP id b69-20020a621b48000000b005abbf5da0d1mr2435384pfb.7.1676719041279; Sat, 18 Feb 2023 03:17:21 -0800 (PST) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:88dd:be84:8f65:fec2]) by smtp.gmail.com with ESMTPSA id 23-20020aa79157000000b005a8686b72fcsm4457829pfi.75.2023.02.18.03.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Feb 2023 03:17:20 -0800 (PST) From: Pin-yen Lin To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Benson Leung Cc: Chun-Kuang Hu , devicetree@vger.kernel.org, Nicolas Boichat , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, Guenter Roeck , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Philipp Zabel , linux-arm-kernel@lists.infradead.org, Pin-yen Lin Subject: [PATCH v3 0/5] Add generic-display-mux driver and bindings Date: Sat, 18 Feb 2023 19:17:07 +0800 Message-Id: <20230218111712.2380225-1-treapking@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This series is developed for and tested on MT8173 board, and the layout is: /-- anx7688 -- MT8173 HDMI bridge -- GPIO mux \-- native HDMI v2: https://lore.kernel.org/all/20230116110820.2615650-1-treapking@chromium.org/ v1: https://patchwork.kernel.org/project/dri-devel/cover/20191211061911.238393-1-hsinyi@chromium.org/ Changes in v3: - Removed ddc-i2c-bus in the gpio-mux bridge bindings - Added .get_edid callback in generic-gpio-mux driver - Removed .get_edid callback in mtk_hdmi.c - Modified anx7688 driver and binding to add a .get_edid callback Changes in v2: - Referenced existing dt-binding schemas from graph.yaml - Added ddc-i2c-bus into the bindings - Dropped attach/mode_set/enable/disable callbacks - Fixed style issues - Removed the special case for the HDMI connector - Made the driver only read the GPIO status in IRQ handler - Rebased to drm-misc-next - Update the license: "GPL v2" --> "GPL" Nicolas Boichat (2): dt-bindings: display: bridge: Add GPIO display mux binding drm: bridge: Generic GPIO mux driver Pin-yen Lin (3): dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688 drm/bridge: Add .get_edid callback for anx7688 driver drm/mediatek: Remove .get_edid callback .../bridge/google,cros-ec-anx7688.yaml | 5 + .../bindings/display/bridge/gpio-mux.yaml | 90 +++++++ drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/cros-ec-anx7688.c | 24 ++ drivers/gpu/drm/bridge/generic-gpio-mux.c | 222 ++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_hdmi.c | 53 +---- 7 files changed, 365 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml create mode 100644 drivers/gpu/drm/bridge/generic-gpio-mux.c