From patchwork Wed Dec 13 19:51:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 178281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8030563dys; Wed, 13 Dec 2023 11:52:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGj1gSrJbfG5Go+rog+1aFR1U/X6i57hWCiuy1aSZELinuoqV4WaRvalR2K7fMDUEfvb4Vj X-Received: by 2002:a17:902:da82:b0:1cf:d660:5b09 with SMTP id j2-20020a170902da8200b001cfd6605b09mr11041710plx.0.1702497138847; Wed, 13 Dec 2023 11:52:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702497138; cv=none; d=google.com; s=arc-20160816; b=nh8E1pRZ7QSbiimTq8w7z14ltVSitPlXucvDAxx7vcctTjrzRpaWI7NVDusUtj1YdP KkPcmyf3xZdPLnfk7jJnXDzS3dgHSe1hIsHUJvCI9y2HEu5CxMifmVR7BxPDdS8tdVlP izkU0+uLBfUbL9OrMAZCOT+GFZMtN06dDPXOH2kdr23z4sZ4rZFdv2vxS/j12hbrH6Xo VgK1F5OcJA09DRiNOpU52wQc4cvQRtN0eAM/ftkcM4o5Wg+tAFCkAy/lY7jWNoiRsPkU qUfoKBbFdTgtfRZzBCVAvoXX9UMPvz/qUSuHrml3lFTuD6j4KV4kIUJsbC/s0T1qlyY1 oTiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+bG6mHprJzSYZBwi1h+X+EBITVK9IcgyHPusQHlrEts=; fh=nzMX5Jolb3GculGR3f1Z1ReHOqdNjcdazDY5R3X+7M0=; b=Cjk7+27sA51I6LMmuPfD7s+ChOpVGZQXMYgH4WXYLJgJs4xByftPvv4BH9N/yBMaYG 9V/CPJnf23r9IE/yUg8AkDs0VdcEVBNwEBImggNS/0Nh2JoxaE1sgRQdd+rWayeY00nT EJ5FeH6TApycmhB0ANkdwah7HBCDeIgR1JfVIOZZ8VRX9Msxmb1njAhPO/1IBteudfSh zkF/Ytjyi2o1Mm+OwDi+scRoMAP1zdt+vm6MX5Hue0WeLxQA9RFU/7ehSXi3WDrh/0SZ RV3U2HQQGuu5SeQtmEkLqjXZ87KlReyeE65HlEu4GAda/CMzf3sAc2bzzod4Lzex0/Zb FV1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xny2VQsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s8-20020a170902ea0800b001cfba8ff230si10222842plg.268.2023.12.13.11.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:52:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xny2VQsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D25E1802E5F7; Wed, 13 Dec 2023 11:51:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378934AbjLMTvq (ORCPT + 99 others); Wed, 13 Dec 2023 14:51:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379053AbjLMTv3 (ORCPT ); Wed, 13 Dec 2023 14:51:29 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F839C; Wed, 13 Dec 2023 11:51:35 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40c19f5f822so41626955e9.1; Wed, 13 Dec 2023 11:51:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702497093; x=1703101893; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+bG6mHprJzSYZBwi1h+X+EBITVK9IcgyHPusQHlrEts=; b=Xny2VQsd2zixTqJrmv+cDPD994iRyDXAVmDiba13+MHosa/IAUexKkxgYEFZYxGm7Q y3LseDTXVoPoQuKxqXo+PHAChAsQJqK7b6Jz2t9coW8IViO8/Fs+2f7kTi8IBA2u425u 92i2QmSNKxX+B8yTZR9trtJITVnyqoDUEE3r/cFBdoUbWx9sK25p1RB35dB8yqcZTY2n O8AzTh/HQidtq2DKoMq/CgfF3RSxsp0eax6couuMRJg5y4sTl9a5eByLxVyPv6XzujAF arKqxaZNKkzqE6LMlZQT3+PhRukYTivB7sPa9DJ6tX0Sem32IrpqvS8yigSr0NsE4j9Q Qf9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702497093; x=1703101893; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+bG6mHprJzSYZBwi1h+X+EBITVK9IcgyHPusQHlrEts=; b=fORy3yM+1Lnj5em/sw4p2yOmAVW9s5MeBQZ1qX5bRgrh1AYo+jdN2Rh94wnZRU4JOi rnuqu/7gsn+FdBUg8jTar4JlRfbLqG8x0/91hKqSrzZje8IvpMhf9C+gowQT0xrOJ94D LJFKNdREmX3oN91l5jJO0ffz3/AqFVp2JAHxb3lddBXWkdTv1LziCxWHQMwZ16MJMRPN 02I8hkOi8RzzIpwqS3+Hw7FSCdAwK53kenlcMNqex8/fO+fTyKCI+QxQCDDWpJSZMQxT 7o/CQ9Ceu1qP19e5z9noqx8oXrjNwYZ4uXa1mJy1cbOlqyh7FfuhoZNh4VjIFOoqU8KR DkuQ== X-Gm-Message-State: AOJu0YysnTNS2WD77BRTb8LK/6Tn3xN7g2XliEK4ss7ZoWtKtLbTFVwx OakYka2pd5quXEiKk+XtoQ== X-Received: by 2002:a05:600c:3381:b0:40b:5e4a:2360 with SMTP id o1-20020a05600c338100b0040b5e4a2360mr4804554wmp.98.1702497093548; Wed, 13 Dec 2023 11:51:33 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:92dc:8b1c:e01c:b93c]) by smtp.gmail.com with ESMTPSA id fm14-20020a05600c0c0e00b00407b93d8085sm24050698wmb.27.2023.12.13.11.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:51:33 -0800 (PST) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 10/11] ARM: dts rockchip: Add HDMI node for RK3128 Date: Wed, 13 Dec 2023 20:51:24 +0100 Message-ID: <20231213195125.212923-11-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213195125.212923-1-knaerzche@gmail.com> References: <20231213195125.212923-1-knaerzche@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 11:51:57 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785197639998427825 X-GMAIL-MSGID: 1785197639998427825 RK3128 has Innosilicon based HDMI TX controller similar to the one found in RK3036. Add it and the respective port nodes to the SoC device tree. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 1a3bc8b2bc6e..fb98873fd94e 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -270,6 +270,11 @@ vop: vop@1010e000 { vop_out: port { #address-cells = <1>; #size-cells = <0>; + + vop_out_hdmi: endpoint@0 { + reg = <0>; + remote-endpoint = <&hdmi_in_vop>; + }; }; }; @@ -463,6 +468,34 @@ usb2phy_otg: otg-port { }; }; + hdmi: hdmi@20034000 { + compatible = "rockchip,rk3128-inno-hdmi"; + reg = <0x20034000 0x4000>; + interrupts = ; + clocks = <&cru PCLK_HDMI>, <&cru DCLK_VOP>; + clock-names = "pclk", "ref"; + pinctrl-names = "default"; + pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd &hdmi_cec>; + power-domains = <&power RK3128_PD_VIO>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + hdmi_in: port@0 { + reg = <0>; + hdmi_in_vop: endpoint { + remote-endpoint = <&vop_out_hdmi>; + }; + }; + + hdmi_out: port@1 { + reg = <1>; + }; + }; + }; + timer0: timer@20044000 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044000 0x20>;