From patchwork Sat Dec 16 16:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 179894 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp318825dyi; Sat, 16 Dec 2023 08:41:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhv6RjkEM5dFX8+xDvA1juLQWe41c9Bmx9k5PQAwiySfBnHepm5amjdgFv8kANbWlrKlfa X-Received: by 2002:a17:903:32c8:b0:1bc:edd:e891 with SMTP id i8-20020a17090332c800b001bc0edde891mr18927033plr.1.1702744882533; Sat, 16 Dec 2023 08:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702744882; cv=none; d=google.com; s=arc-20160816; b=RWmFtB9sX+7A45g6jWedDawK7XWeMH/D7AY6WbhE9Qff96dTcRNyG2kOG9MripIC6w Yu2konP2BRtx4ApiSd2OLyW73PtK4OIxI7M61WEGD8o7eDA0UrgX7RixJ0VqPjJVTjXK H0AoAEoePUL8OHXrRUfVabqSdv4bFvncMTsjVVEJ17h/ypmNBL/3AwErkfIuORz9HfSy 4X4cmU54pW0XhKMe01wV7pA/shY0MW8vEAA//Gfko5LaW+6F9CbPDrkn1fJqjPPO0kGQ XRry64JaKbgdBZZML47jVcLOPtG3fcjzk8Fq2vPmTOvIkJTcpP8ZESpsT7dPnkSYu9sc g8MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gBYs3PhPVI6eUxnSZWKmlMF4qjz6lpemR7OHeO6knFA=; fh=nzMX5Jolb3GculGR3f1Z1ReHOqdNjcdazDY5R3X+7M0=; b=BYbF8kL3ZjZGAYwioTV/adFOCSAufqjEcAVM9OBqXxBMvBy7S4cf282zBJcSa3HSDn CS516QpH8oFYfT7hnfb2F5jo9TVZcelt+SLklrj2Le/938YZ03lKz7EU4+0liaQ+oayu lnYvsL8kuEKVdT0bkoZui09Dicp1LrN92f5sRY1rqmuWaueCfYw/NdLSAEoOcToHpsbK SHmAf2R8cnj/c3gFH1XCaOfdOzY7sivYs98A5fL+zlU5e6ZQWFBTyqicjq5lbBC9ZtY5 On9Izr/tDhMMKRMJuRVulY2J9YFNpJe3EmK/uw0fGCNrOK4D++LvOb62RP3Xy7yD+7fE 2C3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X4vwsXgm; spf=pass (google.com: domain of linux-kernel+bounces-2274-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2274-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m5-20020a635805000000b005c661524f67si14917824pgb.26.2023.12.16.08.41.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:41:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2274-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X4vwsXgm; spf=pass (google.com: domain of linux-kernel+bounces-2274-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2274-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2AD6EB24FC5 for ; Sat, 16 Dec 2023 16:35:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45B0042A9A; Sat, 16 Dec 2023 16:27:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X4vwsXgm" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 287D3405C9; Sat, 16 Dec 2023 16:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-54f4f7e88feso2226137a12.3; Sat, 16 Dec 2023 08:27:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702744044; x=1703348844; 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=gBYs3PhPVI6eUxnSZWKmlMF4qjz6lpemR7OHeO6knFA=; b=X4vwsXgmJtdXN2FoJGkbpqnZwDCti0O6EOx0bwYTIR/bUATGMAXRdJvtmRSSquE8Cg PzjcQznfsaUL+OYvcAquvgd4wqAbvIxzAnsqttJxZhftXmBClB5jA4slHlC7qPeNLRGN 8iJNu7oDS5yjyQ4xNMNjRrAOYmxgUhXFvwQ+SmVNesz+a9Sap3axX1E5O7ibtJeQFtiN XE5EkPX0ROGsI/QlTK7eXmLNZCY4oFSRUWUr0H+5SLaw16uMpbVmEgf+4aErHGvoM7yS XIsy6jSBT5V9XpEPaZoN7EF/8kgbNvP27/i2b0F0PgRWDIyUaOkZ3+RMdSRow6PeB1TB Drow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702744044; x=1703348844; 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=gBYs3PhPVI6eUxnSZWKmlMF4qjz6lpemR7OHeO6knFA=; b=Sq6g29FfBYJ2M/QmDSZoXCQGGmzklRkSqNf7iaF3GJeVrqUDEPo1AHncxFBZoXXmGW cktyNeqfHMQcemYMhk6YHmQDGtPhnXpSkEgTKgWbdwa4x96o3BT7DFzeslqHAXecDszK iPUdifIAJMU4hbxL6HP+WtY/ppnKQNJSFH5r9eaOt+Tpn0k1RWfg7asjsj/FgKWske7z pFH0wkgfQMFZwMyfDlYFVUQmjBZM20sXM7r40Tc7Xj64V6ua4zPNaZgYIKB59q5w1Cbq SS0ASBNLwjkAinGmS5wtwMEfV3TbguNFi9/YeYt2iiTkUilPwQ0WLu7kkBW8z3SqGzzD Hztw== X-Gm-Message-State: AOJu0YxqZmKAevokw+mUo65tqe/ouvAnHxWIQhzJdO/rsnKtJn/66bYF S5KKK7M1WTV9O45NGbuYLw== X-Received: by 2002:a17:906:3199:b0:a23:2e05:8465 with SMTP id 25-20020a170906319900b00a232e058465mr339276ejy.6.1702744044454; Sat, 16 Dec 2023 08:27:24 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:e807:d345:6f47:1db9]) by smtp.gmail.com with ESMTPSA id st10-20020a170907c08a00b00a1cd0794696sm11990362ejc.53.2023.12.16.08.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:27:24 -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 v2 26/27] ARM: dts: rockchip: Add HDMI node for RK3128 Date: Sat, 16 Dec 2023 17:26:37 +0100 Message-ID: <20231216162639.125215-27-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216162639.125215-1-knaerzche@gmail.com> References: <20231216162639.125215-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785457417871322365 X-GMAIL-MSGID: 1785457417871322365 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 --- changes in v2: - no changes 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>;