From patchwork Mon Nov 21 14:19:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Ranquet X-Patchwork-Id: 2007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1620958wrr; Mon, 21 Nov 2022 06:28:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/JLIP4V5GiB2exB85xSKS0IEYTMePVdCFVlkLMS6WzW0XjqBnHTKTRDMQGNvm7Yg82/pm X-Received: by 2002:a17:906:454:b0:7ae:e889:a49d with SMTP id e20-20020a170906045400b007aee889a49dmr15750327eja.81.1669040932030; Mon, 21 Nov 2022 06:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669040932; cv=none; d=google.com; s=arc-20160816; b=1FIyHlHN+o4lk6fMXFqXUmWNCtGZXINhUWCAA0HnoeoI8uDPGMSFWuLKx6uvkCxH1o uE97cF9XMe1XWOW197pazxZlUP31i8Lo7KLoR0Q5VR/XZBmGX3Kbh/qFGJJGaJ5lbxOf jjpQONEzrVbk7yOkAM+UpM4tnCtNul4GoOX8l9X2+WJZR62DhiY0TFwir4Epw355gNa8 jlUKtSWqBUjFRLPVC+xEs91c2oRSIgUxUPkJ/KpFmA8fnsFvkVnACz8GFs+LUc7PwxOA dfZqsMYc66SWKHwq+dwLzVJSHjfQOL5kRBMWtDabJ+wKS0fRoEX4isfbSGxkk5R+GMzB DeQQ== 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=ApgbBZshAeQOw9pkeKTeXHyu/sDAx7l2fVv7nBtVMo4=; b=oci7jy9vIxS+MmStptLuRAFJkQk5ZH5t5jVyg6HM+DUjfKEdNLVsnVUEzxmgEUBYZR 3NX/0k2Zh9yk4lGEvGrAUIsGxMrH/wOEz9gj0LXfQQ0qjkci1DpsA9FCIsqCOwO+7Ow2 KH7gB5mPcSevgjTlcfoiS1gSKPdJnMnHuD/o/PJ4s0xVr9LLWPbD5NMMj7CM3dS7+TCo abyxL+WpJ7hrICaXaltj/qXvGH1itmB3DAjnxzD5oZJUCUYDXA1b+THrZNNedi8djGUs cMmdPOhXr1mcZj/b+ln/HUjfnlr0GNIkjS94hvcLGTVlX823wtaUa7/ypjF6ESFRFmU6 xKsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=JOj8ERrS; 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 k9-20020a17090646c900b007a7d22b9e0bsi8167113ejs.133.2022.11.21.06.28.25; Mon, 21 Nov 2022 06:28:52 -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=JOj8ERrS; 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 S230510AbiKUOXi (ORCPT + 99 others); Mon, 21 Nov 2022 09:23:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbiKUOXP (ORCPT ); Mon, 21 Nov 2022 09:23:15 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D9351572A for ; Mon, 21 Nov 2022 06:23:13 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id n3so3538401wrp.5 for ; Mon, 21 Nov 2022 06:23:13 -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=ApgbBZshAeQOw9pkeKTeXHyu/sDAx7l2fVv7nBtVMo4=; b=JOj8ERrSkiiFbvhLUOS10gbdm3dGjio1sc0L+J+VhUjPOtREOV5XC6V5KMnetrOj7Z MqlTFilZxnRBw5U34g0W/99jVnzlDBgjEkl0cJq9cc+zW7lCsZuKJmJLniXbj18sfn6q wjZPYk8Rpmir1EmWy0FgcKpinL7Wh/ovXYkUm8iQYBe43aScTrtTEjMDggnsI5wPLvCy /STO9raP2yYZowKD+UKXBO+Noq3BOEso0jV6VE6jRVFYIE4aG03pLMcQ/yk+hdxToHDH dSmCQEdwO+k1vwDIFKNRm+b1PG46FUK1eS4iNFo7oMMDVUb0EQzjVmcrr2ibmRamEGHY maXA== 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=ApgbBZshAeQOw9pkeKTeXHyu/sDAx7l2fVv7nBtVMo4=; b=U2/xJ8/ubDVIX23ICpfqGy2/9p9F44xb3L3wi9Sp1GnhZvz4LPCrwhyBqM0KrtfAdn 11Rqgph8b/f9qi/uUxkXJZqTRq69ZLUSAFN2IBvuZv/UYUL6DH0rby8dschN8QcCbWl4 h/0XjjK1JKKjfW/vodRuDz4+7i0286vQ6aF4xGll+nVTIPfA0kMQN01C4gtcdM3Mt73a lpi8WHFjWNbe+txIBHvKb3jg/3ukm9MC8R1G+iU19lAxABiHPxeXKJm00rEiPhvmUz7D kE43h4OkyRCNeWtuzAJAgjH7AFqVWKEITPckf+UyR1ofiu2zLNovRMC7731VKV/yzguN dSBA== X-Gm-Message-State: ANoB5pn92/OYh4V/EEPtNuYC0R0NKa/emh78bVFSTTsRiU4aF+jsQ72H +Iiv519aFxihqxX8z6rGcIMpTQ== X-Received: by 2002:adf:e303:0:b0:22e:3c66:bda1 with SMTP id b3-20020adfe303000000b0022e3c66bda1mr2684983wrj.139.1669040591732; Mon, 21 Nov 2022 06:23:11 -0800 (PST) Received: from [127.0.0.1] (2a02-8440-6441-244f-3074-96af-9642-0002.rev.sfr.net. [2a02:8440:6441:244f:3074:96af:9642:2]) by smtp.gmail.com with ESMTPSA id m7-20020a05600c4f4700b003b4fe03c881sm20206468wmq.48.2022.11.21.06.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 06:23:11 -0800 (PST) Subject: [PATCH v4 0/3] Add MT8195 HDMI phy support MIME-Version: 1.0 X-b4-tracking: H4sIAN6Ie2MC/23MTQrCMBAF4KuUWRtJ0lATV72HiOSvJtimkNRAKb27gxuhuBre432zQfE5+gLXZo PsayxxThjEqQEbdHp6Eh1m4JRzqpgiwU3xMS0vwIXRxROTdbIBN+k9jliGWJY5r9+PleG5/XBlhBIh hZCss0pS2Ru9jtFkf7bzBHfklR8IRyIFU84OYqDK/SHtgbRItKTtwLuOMn45kH3fP9SYURL4AAAA From: Guillaume Ranquet Date: Mon, 21 Nov 2022 15:19:10 +0100 Message-Id: <20220919-v4-0-bdc21e1307e9@baylibre.com> To: Philipp Zabel , Rob Herring , Vinod Koul , CK Hu , Krzysztof Kozlowski , Jitao shi , Daniel Vetter , Kishon Vijay Abraham I , Chunfeng Yun , Chun-Kuang Hu , David Airlie , Matthias Brugger Cc: Guillaume Ranquet , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, stuart.lee@mediatek.com, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , mac.shen@mediatek.com, linux-phy@lists.infradead.org, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750116264355400969?= X-GMAIL-MSGID: =?utf-8?q?1750116264355400969?= Add support for HDMI phy on MT8195. This is split from the previous v3 to contain only the phy related changes to the HDMI support for mt8195 as suggested by Vinod. This is based on top of next-20221121 To: Chunfeng Yun To: Kishon Vijay Abraham I To: Vinod Koul To: Rob Herring To: Krzysztof Kozlowski To: Matthias Brugger To: Chun-Kuang Hu To: Philipp Zabel To: David Airlie To: Daniel Vetter To: CK Hu To: Jitao shi 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 Cc: AngeloGioacchino Del Regno Cc: mac.shen@mediatek.com CC: stuart.lee@mediatek.com Signed-off-by: Guillaume Ranquet --- 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 | 541 +++++++++++++++++++++ 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, 671 insertions(+) --- base-commit: e4cd8d3ff7f9efeb97330e5e9b99eeb2a68f5cf9 change-id: 20220919-hdmi_mtk Best regards,