From patchwork Tue Dec 19 17:00:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 181124 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2085874dyi; Tue, 19 Dec 2023 09:10:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlx0JlwFmKLPt971fN4UBrQjXqBzX//R16838pjz6hnr6IdkxYgqOJGwhpw6bIDZ+ISX+5 X-Received: by 2002:a05:622a:148d:b0:427:7ad1:2e61 with SMTP id t13-20020a05622a148d00b004277ad12e61mr1150901qtx.20.1703005819803; Tue, 19 Dec 2023 09:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703005819; cv=none; d=google.com; s=arc-20160816; b=bPlp/5rwH41uO+/uKzuXn/Qi7upXAKr79/K3We0awIRaLNMvTfyjBpBY1AH3EnghBW dQIY3enMhBLalWkvktZZKhNVDi8yeVb+6JryqxdF/OO2ZuuTc5GPehCtkoPA0mDRndar YCouASiwRSRHFWJGBUb2iJk9K9yy9bchPc4WSrIS0PoFQ3tmy5Waq3b6UWbijXQYZxT2 P1rhWc2eBigWz53tW+UsgMxv69D8wBOZnDHn9e/icdBq+cfrdvQ/WRhgzm5W2Yf21JCP cC/9ONc22djDYL6jeAIiaUcfiX3XVlO3OadKF2mUd63iPsmEPbZNgFd73zNAIHijz69S jbxA== 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=824x2Bpa+BljPPIuTHpPefnYLDXHrvCUJjy6fbKwCl4=; fh=k7ZhfSDxugAUNAX9PFQjqQnTRGZ+rgCl5CN8/TdzbyU=; b=0388w6x+fTielO2JMq+LH4C4ISOq8Z8Umfk8o4DFWNp8xYrnVbx7V7HiR3lzOqxhXx wq+q/1RILIh102sWme/qVMQZ3EL6rG2gvbHJHz/uh5xtXEpUAB3lEIS7lW7bVg6zfgmB tyPrxYjSS1S1At/khOZCdMXG2T2rXCYpxEHa+gRhxbSf60aGfaUIMdGRZiiUBkJbUr1e jHSroYB1dJaYw4a2AhoESA1EGFxhiKbtIFU6J7lK1O6owuxuGbsCN4vt+srbm4J66Q34 mfNBh7h/EIJ5vP/0GTCZVYjY2nbE94B2saZ6LFyQDo6PvJ5lNEFM/mzhXIFka1KfWxBH ADYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NHKcMzD5; spf=pass (google.com: domain of linux-kernel+bounces-5647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ga26-20020a05622a591a00b004236ece3e88si29325150qtb.217.2023.12.19.09.10.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:10:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NHKcMzD5; spf=pass (google.com: domain of linux-kernel+bounces-5647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5647-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8CFE21C210CC for ; Tue, 19 Dec 2023 17:10:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6728746439; Tue, 19 Dec 2023 17:01:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NHKcMzD5" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 DE9D241765; Tue, 19 Dec 2023 17:01:34 +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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40c48d7a7a7so45246655e9.3; Tue, 19 Dec 2023 09:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703005293; x=1703610093; 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=824x2Bpa+BljPPIuTHpPefnYLDXHrvCUJjy6fbKwCl4=; b=NHKcMzD5kz4JJBN9t/AiBafNPcinA9wVedX1l7eCk+auyXL/DiXTmrrM+2xPJHkw+t U4i6fvrCUtxdsQhLISin4vKRe5B4DsQp2uYONVoJ4/HiPUPeB2gmQz/kP+AdDPNrgrX/ I52o995huN3kO9yPQMobuBWNzPpP5tuQxEISgGojiWsTQDHN67jY2EbRS2if7gIq0VKw htL7z3QJqXUfwbzzba5NcQ3mzVr1+X/bnFQkC3HZv9ZgIqurf3s2Tcp0XD8tUZsSHzeV HoqFW00YnsQhsVZW9iDo1KRHvERrq8FgB1enyJS2Q4O6hdZo2AsKToa07pQEsXl+ITAY GEog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703005293; x=1703610093; 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=824x2Bpa+BljPPIuTHpPefnYLDXHrvCUJjy6fbKwCl4=; b=XkujLbyTPpx+bZ9HhaDza6E9zChuMK1KDpZIB3makN3k4335HaDrh8Gfqa2K1LSW9d cwHYh1xY4S6syP875dc7DrOSUFdYgUmVTuRkomfUh67Xz5ES/wey77Jn5N9GczVh5s2Y MdPYxco7eEGgMFeYJWAYm+yUW6oASncKtcDGH086fC+mfcelgQLlyNeHMNKV4y4luomg JobP7GUXnGW6KdkDHli3ZI6yHp8cd/s5cN80tdivJLimCOMvFiGDy00BSdvFeEGl/BV2 tOLaL+qqxu7cGNmWlzSieOq7KhWTFxjfjeRRjFwqSW7WTTRJeRwtvksMgEJhdn5WmaLH MbEg== X-Gm-Message-State: AOJu0YxGydSoaKW7r7Y3uyqVS1PyvdLwJ+FiVp/qSG8vBI8bWbLza5FN bozSNdV2zPq2h34MmVcptg== X-Received: by 2002:a05:600c:4c8a:b0:40c:d3a:2447 with SMTP id g10-20020a05600c4c8a00b0040c0d3a2447mr11436802wmp.87.1703005293173; Tue, 19 Dec 2023 09:01:33 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7ae5:3e:d1c6:a138]) by smtp.gmail.com with ESMTPSA id i7-20020a05600c354700b0040d2805d158sm3225878wmq.48.2023.12.19.09.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:01:32 -0800 (PST) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v3 28/29] ARM: dts: rockchip: Add HDMI node for RK3128 Date: Tue, 19 Dec 2023 18:00:58 +0100 Message-ID: <20231219170100.188800-29-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219170100.188800-1-knaerzche@gmail.com> References: <20231219170100.188800-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: 1785731030568882865 X-GMAIL-MSGID: 1785731030568882865 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 changes in v3: - 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>;