Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3365838imu; Mon, 7 Jan 2019 01:55:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+BuLC8ZV+tt3SPqNKcUH9v7xuX1CUPADJuYVgH76qR7FZa7uKjcnywPk3h+s2zmSrP/g2 X-Received: by 2002:a17:902:704b:: with SMTP id h11mr60972754plt.157.1546854924468; Mon, 07 Jan 2019 01:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546854924; cv=none; d=google.com; s=arc-20160816; b=Xdme2+watdJRyMI3JEG6hNxgJFMbpXbFKNl5OxdFSuWLBtLdzzH+VdiSE3TpzaBH1l 0+X/lwn0Z+Yzo/28VgdN8IO7kyi5C2t+wfPPm/bwecXhEVFxQQT+HcgSWpMGcIyFSeh6 M5l+sOl69ALEG6GNrUJnx17pyGk1l9waWnVxk7F0pG8gh8KH+zV0kAKs/oYisCBi1t3o C+/n9qQFyfZ4JVnvAXru6lPYDihlPNMiMW15ygD/lBXj1pZkVqGjnuVQJdlCxWKbdVgZ iy/mRF3aKCa5UIunafkWhr30JuUsXiHSrw18RYh/JGF4W/fyOOTMafKmUKUZSRSg5OgL 5DLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7SKzOiXnEB8V8kNaFY7oKymTvoiedc8KfN1lhPOUJLQ=; b=XVgfXet1qN45W21ct747YR7/9gwEutbO5fMX4S645b1d4emokDWWZDhRsQWphFPA71 Y3JT/Yz7f4tdkJuNP8q4i5sTRWzQbixUiHIYQdyIru97wkVhUpo0KyU0ej//2CM7lKnm 8k0OCsP1ywto4WXYYu2p/TBiST4GAOgCZ1y9Kpx/ex6wet7WfsUPNlbmWaWYrI2TD+Bl RMFyNOFyeCk48Gr9HI7+JrAr7xc/m7pgw6aO7+jX/iAU9hm2c4p6g2tbbdjXtY6pRG+L NFVJx3NZPV3MYziSkYQduRxYIsmIkRlxf7jZDwRcb6FKbxRB3HuH5NgVhQsmnLQGD/qz sj+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Y9L8sBmE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si5162110plt.26.2019.01.07.01.55.09; Mon, 07 Jan 2019 01:55:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Y9L8sBmE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbfAGJxa (ORCPT + 99 others); Mon, 7 Jan 2019 04:53:30 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40208 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfAGJxV (ORCPT ); Mon, 7 Jan 2019 04:53:21 -0500 Received: by mail-ed1-f68.google.com with SMTP id g22so247249edr.7 for ; Mon, 07 Jan 2019 01:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7SKzOiXnEB8V8kNaFY7oKymTvoiedc8KfN1lhPOUJLQ=; b=Y9L8sBmEUN0ssnruN1jgw0AIE0tp2H1pffnw2gT/arl0ktarhfuXwpE1/QgyXQoMQD naiDwBew62y9TlHWhboXrcpQ8pMhwGkV/Sfc6N6TJiftPc+BtMupzxtIeC7g+YlAAnHi B2vs04jImVZ96RoUJopKX7Y7JeMmjmnocng2hrpKR+peOKqRpMeyTSKxemDGUZsx0dn0 bagXDRaiqNWVB+xJriYjRRzg9N6uk0DeiPiDnxEdYPl73lXmYI8WVUdydVAsAdBiVIpE +8x5IEePR3U7YFwNH8RwuFKehhuNhnz1KvUuuaXuaAYPi/nPMxeNdcGKbgUCGD7gWjet 2hrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7SKzOiXnEB8V8kNaFY7oKymTvoiedc8KfN1lhPOUJLQ=; b=Up6V3N1K4EGBe1BdZdQWBjWUt2oJ+GAQIqtYpLSZOZxKxgNYH+fj0+E/Fm9YJxNv9t M20rPuY8ix2goOGvzqsOejKavY6kJ7LZqRMxh/2Egtg2gQyReDct3mUscw61uZstQB7Q E7CAMzgRz5LLufzktZMFWDlTteRSDwPliLd8Tznt6cC9R3+9a+GzlQaaPHb2zMmKbXXO dYS27Y+ipzaPNbMciB4mFAtE8p+jRp0mhfwG4FLZZxK29iWbsCT8VVuVwO9r6SVQSqo3 CavJGq6Zou6EQoIkqyzn3P48jJvDfvoYHqF7q0h5F0QoB1tqqHWrrOAc90EoG8wWHGs8 CO+g== X-Gm-Message-State: AA+aEWa7pOKhCB85w1wqqs4kX+0kCixXECduc6y7Rh6m706Ca22XdJ25 455hiCw1X+Ts8NHXlx3GVAflhg== X-Received: by 2002:a50:f098:: with SMTP id v24mr55022704edl.78.1546854800261; Mon, 07 Jan 2019 01:53:20 -0800 (PST) Received: from mjourdan-pc.numericable.fr (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id f6sm35737049ede.53.2019.01.07.01.53.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 01:53:19 -0800 (PST) From: Maxime Jourdan To: Kevin Hilman Cc: Maxime Jourdan , Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: meson-gx: add support for simplefb Date: Mon, 7 Jan 2019 10:53:07 +0100 Message-Id: <20190107095307.15233-3-mjourdan@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107095307.15233-1-mjourdan@baylibre.com> References: <20190107095307.15233-1-mjourdan@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SimpleFB allows transferring a framebuffer from the firmware/bootloader to the kernel, while making sure the related clocks and power supplies stay enabled. Add nodes for CVBS and HDMI Simple Framebuffers. Signed-off-by: Maxime Jourdan --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 22 +++++++++++++++++++++ arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 6 ++++++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 6 ++++++ 3 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 44c5c51ff1fa..a6ffdbba37b9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -50,6 +50,28 @@ }; }; + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + simplefb_cvbs: framebuffer-cvbs { + compatible = "amlogic,simple-framebuffer", + "simple-framebuffer"; + amlogic,pipeline = "vpu-cvbs"; + power-domains = <&pwrc_vpu>; + status = "disabled"; + }; + + simplefb_hdmi: framebuffer-hdmi { + compatible = "amlogic,simple-framebuffer", + "simple-framebuffer"; + amlogic,pipeline = "vpu-hdmi"; + power-domains = <&pwrc_vpu>; + status = "disabled"; + }; + }; + cpus { #address-cells = <0x2>; #size-cells = <0x0>; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index a7b883ced0a8..a60d3652beee 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -784,6 +784,12 @@ resets = <&reset RESET_SD_EMMC_C>; }; +&simplefb_hdmi { + clocks = <&clkc CLKID_HDMI_PCLK>, + <&clkc CLKID_CLK81>, + <&clkc CLKID_GCLK_VENCI_INT0>; +}; + &spicc { clocks = <&clkc CLKID_SPICC>; clock-names = "core"; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index d5c3d78aafeb..3093ae421b17 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -787,6 +787,12 @@ resets = <&reset RESET_SD_EMMC_C>; }; +&simplefb_hdmi { + clocks = <&clkc CLKID_HDMI_PCLK>, + <&clkc CLKID_CLK81>, + <&clkc CLKID_GCLK_VENCI_INT0>; +}; + &spicc { clocks = <&clkc CLKID_SPICC>; clock-names = "core"; -- 2.20.1