Message ID | 20220919-v5-0-f346444bc459@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5787918wrr; Mon, 28 Nov 2022 08:22:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EH/FIB1RLl3eHI2HsjOjgXrT+QBEo7iD+rJo/76+UCFi7T2kSAfKF020Iew3Y8VGNDi0X X-Received: by 2002:a17:903:2112:b0:183:9254:cc70 with SMTP id o18-20020a170903211200b001839254cc70mr33615640ple.18.1669652571177; Mon, 28 Nov 2022 08:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669652571; cv=none; d=google.com; s=arc-20160816; b=sPLecPWL662m5io/coQmm0Ad1GHGJ/OLlsaHFGGXS97vygmPfVmjA+8wXtRBSPx5uA 3k5x2mL0xRzvtppHeuH/ua+pEjADMXbfM7zZDz6NXHp4U8OHO+4CKaqddMeHuG8Dv7gT OCjPGL/h624CzUPbAdECkycpXlUBLoTW/AdKw6k3pZ+dDA9izH2tQCuhAb88on9trNqt iE5nr6ZCISPFSnY30CT8gGDb4a1LfA5LfDeToaYB+bX9HNA53hD2mv/R/psCvxDMLMyP z0++rgF5Gyfx+cl727eYOykZsewF3HMkA8mzKZiYP19yceQb3kjKX2ahAQzFz+UdOcSj YyXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=qSSoTx14sBp+/R1ydiiF1swCqSgaAAS/RFqYam0nfSU=; b=hmKzHY0R3Ye326hFJcCdItmv+ciNXDec4XJQBvu2r1Xy7iuJZc16KznXoH5aCXMAmM ripwXsdejaUEY+lHJqqCbaoq179/yUehTzdVj3OzpQdEOMG7X3cF6/FL/7R71XxN2ppZ XaHtFiWR4usU/zzG2JAkQgIXugjj/0KbgO2HmXU3AvjJ+WzjLH1xni4U/j38YL17qPHY 8r1WyV+0BRw+44LM3rEuLgmxnzPHJby91vGnEoxIdEC6tP8DpqFPzYJDGNQMpv2hDPgI NTo2w9bWp/iYfawXEUdk/WHrxK7DHZ8LeHi7Kq1H1iN/Ab9hkmQZzHrkh8/tUyl63Jfv wABw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=ZRTwWarp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng15-20020a17090b1a8f00b0020c8e9efc7bsi16680549pjb.47.2022.11.28.08.22.36; Mon, 28 Nov 2022 08:22:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=ZRTwWarp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232640AbiK1QVw (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Mon, 28 Nov 2022 11:21:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232617AbiK1QVq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 28 Nov 2022 11:21:46 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3612E205D9 for <linux-kernel@vger.kernel.org>; Mon, 28 Nov 2022 08:21:45 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id l39-20020a05600c1d2700b003cf93c8156dso8756248wms.4 for <linux-kernel@vger.kernel.org>; Mon, 28 Nov 2022 08:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=qSSoTx14sBp+/R1ydiiF1swCqSgaAAS/RFqYam0nfSU=; b=ZRTwWarpwcayUpxJzRgrtg4c2XeVGb8nNkmkJpweInvESpP+xnjVD5+zc6XPcNdJuk bLgAxlNyOF62cELMAOEXshJGz+umN6jXAi6oAT8mn/aOmpf6/NWXGT6QPL232LuZa8hN F4LgeVs8+o62iVrSblFGUjzpEI8cIJN2Q+YCWrIZG/RkXVoZR/JmczlZw8csUdTor4kM EARazyWEzsNL95/hDGJwU9esHcg7DWnWWKdH+RZNDpIzRWvmZk19NNGadZQBdFXuQ9S2 gtKxALKXbg/izfheP+Sf+99Idmvqe/ZaiSCOP57u5AslA36kaG7miO8cD6XIDuw0agqu KIGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qSSoTx14sBp+/R1ydiiF1swCqSgaAAS/RFqYam0nfSU=; b=vzYLxc8BVi8n41Bz3tPX8QBbtOND3EMe2nO4rUkYwvJECVZMxe2ZETfwzeU6CUJDBM 37hMdS9PxDqhDKeQVm3DxkHILa+QmZByNT60jobwH12vXU2FH5R/0goSH78w6a58Stqk 09eEMgcj56IbqbhtOtUtA1M37+QDtqXjlMX8d638huYOGJOY2vDrUvrvwa+siUOF6HA8 Ut2StpPWAEETEMj/5v/+d3jmYX5Lqa18flsgUgiCtGMUbpDBGd8UAm4h1aF1JD/oVk8Q E9QyzBolJ/HkdCyMaHWAe6ccLJQFY2hmIX3+fgr/E/+PbKNbeSog97MJYiicY8CccY8Q ryOA== X-Gm-Message-State: ANoB5plFwVnpTFdR+Sg6ZRtAyuooQ1/e1be5jBjj8W6nzneYvukYnWiu D2nfGeqD7ThQbx+5spxbg0uwGg== X-Received: by 2002:a05:600c:4fd0:b0:3cf:70a0:f689 with SMTP id o16-20020a05600c4fd000b003cf70a0f689mr42860114wmq.161.1669652503650; Mon, 28 Nov 2022 08:21:43 -0800 (PST) Received: from [127.0.0.1] (2a02-8440-6340-f657-3074-96af-9642-0003.rev.sfr.net. [2a02:8440:6340:f657:3074:96af:9642:3]) by smtp.gmail.com with ESMTPSA id s10-20020a1cf20a000000b003cfe1376f68sm15311450wmc.9.2022.11.28.08.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 08:21:43 -0800 (PST) Subject: [PATCH v5 0/3] Add MT8195 HDMI phy support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIAB/fhGMC/23MTQrDIBAF4KsE17WosYl21XuUUvxLlSYGNBVCyN07dFOQrIb3eN9sKLsUXEbXZk PJlZDDHCFcTg0yXsWXw8FCRowwRiSV2NspPKfljWChVXZYJxWNh038jCOUPuRlTuvvY6Fw7n9cKCaY C84F7YwURNy0WsegkzubeUIP4IVVhAERnEprBj4QaQ9IW5EWiBKkHVjXEcr6A8IrwoFoaxh1tCW9kx XZ9/0LLLTAOysBAAA= From: Guillaume Ranquet <granquet@baylibre.com> Date: Mon, 28 Nov 2022 17:17:35 +0100 Message-Id: <20220919-v5-0-f346444bc459@baylibre.com> To: Chunfeng Yun <chunfeng.yun@mediatek.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, David Airlie <airlied@gmail.com>, Matthias Brugger <matthias.bgg@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Rob Herring <robh+dt@kernel.org>, Kishon Vijay Abraham I <kishon@ti.com>, Daniel Vetter <daniel@ffwll.ch>, Vinod Koul <vkoul@kernel.org>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, CK Hu <ck.hu@mediatek.com>, Jitao shi <jitao.shi@mediatek.com> Cc: mac.shen@mediatek.com, Guillaume Ranquet <granquet@baylibre.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, linux-arm-kernel@lists.infradead.org, stuart.lee@mediatek.com, kernel test robot <lkp@intel.com>, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, linux-mediatek@lists.infradead.org X-Mailer: b4 0.11.0-dev X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750757614645790601?= X-GMAIL-MSGID: =?utf-8?q?1750757614645790601?= |
Series | Add MT8195 HDMI phy support | |
Message
Guillaume Ranquet
Nov. 28, 2022, 4:17 p.m. UTC
Add support for HDMI phy on MT8195.
This is based on top of next-20221128
To: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Kishon Vijay Abraham I <kishon@ti.com>
To: Vinod Koul <vkoul@kernel.org>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Matthias Brugger <matthias.bgg@gmail.com>
To: Chun-Kuang Hu <chunkuang.hu@kernel.org>
To: Philipp Zabel <p.zabel@pengutronix.de>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
To: CK Hu <ck.hu@mediatek.com>
To: Jitao shi <jitao.shi@mediatek.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-phy@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: mac.shen@mediatek.com
CC: stuart.lee@mediatek.com
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
---
Changes in v5:
- Fix compilation errors on 32 bits platform with no support for __udivdi3.
Compile tested on mips with gcc-12
- Link to v4: https://lore.kernel.org/r/20220919-v4-0-bdc21e1307e9@baylibre.com
Changes in v4:
- Dedicated series for HDMI phy support (without the drm/ related
changes)
- Removed useless variable initializations in phy driver
- Link to v3: https://lore.kernel.org/r/20220919-v3-0-a803f2660127@baylibre.com
Changes in v3:
- phy: Grouped register and bit definition together to add clarity
- dt-bindings: Addressed comments
- Link to v2: https://lore.kernel.org/r/20220919-v2-0-8419dcf4f09d@baylibre.com
Changes in v2:
- Removed syscon requirement from the hdmi node
- Use as much as possible bit FIELD_PREP/FIELD_GET macros across all the
patches
- Make cec optional dynamically instead of hardcoded with a flag
- Renamed hdmi variants to v1 (legacy) and v2 (mt8195) while waiting for
a better name
- Rework hdmi v2 code to use a connector (same as v1)
- Remove "magic" 0x43 addr special handling in hdmi ddc code
- Link to v1: https://lore.kernel.org/r/20220919-v1-0-4844816c9808@baylibre.com
---
Guillaume Ranquet (3):
dt-bindings: phy: mediatek: hdmi-phy: Add mt8195 compatible
phy: phy-mtk-hdmi: Add generic phy configure callback
phy: mediatek: add support for phy-mtk-hdmi-mt8195
.../devicetree/bindings/phy/mediatek,hdmi-phy.yaml | 1 +
drivers/phy/mediatek/Makefile | 1 +
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 527 +++++++++++++++++++++
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h | 111 +++++
drivers/phy/mediatek/phy-mtk-hdmi.c | 15 +
drivers/phy/mediatek/phy-mtk-hdmi.h | 2 +
6 files changed, 657 insertions(+)
---
base-commit: 15f2f20ccbf2d04cb14e3e7635aa0447208c71e7
change-id: 20220919-hdmi_mtk
Best regards,