From patchwork Wed Jan 16 12:40:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10765881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD2DC14E5 for ; Wed, 16 Jan 2019 12:41:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB22C2D7D2 for ; Wed, 16 Jan 2019 12:41:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF2AE2D7E6; Wed, 16 Jan 2019 12:41:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BB9D72D7D2 for ; Wed, 16 Jan 2019 12:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2SNHhgWXtxIKaCjJz51JyDpq+JF41Kz8iOKurrHh684=; b=AO+PyDEwEMHNbO VY2jkmWsVWpG+L6DufmLzNquGZwXvB9Qrr4FUDU54/+pnNu9WxlpaMvmgUEd2pDg0qwEbfUiRazqH 2opsZXQ9XBCJdUbU12+ljC8Lg8PquIuFkDQYn4g2JhNk/DBHV15cjfV/wvpKwaDooYQOtuZaAvP5S 4daCQgSEKG230BlfE3a6X10G3FgPIOHnGCon1el3RJ/db/J/+AeiyZucGFeMT34Seymi+sdVuI0lq 5ndXOfMWrgdhAnE69ZD1xxZ4F2naecaAfWtOFiYk+uj2wEFAKRTTCUATZARIsSn/NETh2zfkjN8hz tOJU/svc4G6dc1b6Et/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjkVE-0000ee-Lt; Wed, 16 Jan 2019 12:41:04 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjkV2-0000Rc-OR for linux-amlogic@lists.infradead.org; Wed, 16 Jan 2019 12:40:54 +0000 Received: by mail-wr1-x442.google.com with SMTP id q18so6727970wrx.9 for ; Wed, 16 Jan 2019 04:40:51 -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=eVs0Nbg/JAhKmVo9NPvM4dEM8xg5pTYJjP6q4kBu8To=; b=LWXRqneIHEn3vagEfIheY/sgCa2folY+5yVAgjQ/BSv7krw6Uvdj9MlyZWdR70RjFk ugHDUs/9WhZlpF8E4l1fx8bJ5Lk2qg/gdsd3MWZl2IbimJcep+h22DxKeGEeyCj+giq9 7AzeCjNX7icg9s5/XcJf45kOtipQluNLoZ91sX6S4c+LIDnO1Qvbx4Xt6iI4QARNTQrN 6c7kAgztheoEAUv/My6tk7izrhRaK6luZYP+bEH6VHTqHcoFsYDlbIOty6kYjDfSEuU2 TX5x7qSJsqIZrWIU9zjRS0/JETcedbuz7hnz3IGcm/JcBoV4pvDhDtpAYR/m2KFj2TCx AKZQ== 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=eVs0Nbg/JAhKmVo9NPvM4dEM8xg5pTYJjP6q4kBu8To=; b=ubjWVWi0dVgdla40YiVG3RVo2edL2jsicUndJRcQMHdd1ManVGB9LCDjm8NL/NV19Z QHUdpZzyCB0nVcIuuN13zrEskV8Z/iszbwIJA69dS7rVou9rjX/0pzNIu79h4zxriunD vvfZWdO8mqyrPcb1SD7BDqLR/Oh99HnLJS8J1EUWH1rn50OK3ZuQNuW/83F1lW+hz11q OgH+zwL+S7JRuWWZKnchsVsdojmOnI0aOcZlks2tg17EJx92Tq1Y0JUdsMlDnJxmfIv3 5yqAwpz4R0Njl9cN15EifQCkAmo60BuWr39QcFoX0lB70F5vfhxgSf3j9lloR/PJEXJh cgQQ== X-Gm-Message-State: AJcUukcr80/vjraEko/QUpOSbnTnKam2JMWqmEJIUnNxkjhGk+iS7RYz m60c1mcxt4GWlViWXqF6C0hz5Q== X-Google-Smtp-Source: ALg8bN6ZKAuWqrOQJP9AIpFjvad4/9NfanEv3nTCFZZVz9nZ1zMrWPCOEo83+0jPTXEvWUpwY0OkYA== X-Received: by 2002:adf:ab51:: with SMTP id r17mr7460441wrc.62.1547642450280; Wed, 16 Jan 2019 04:40:50 -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 q3sm80304040wrn.84.2019.01.16.04.40.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 04:40:49 -0800 (PST) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH v3 1/2] dt-bindings: meson: add specific simplefb bindings Date: Wed, 16 Jan 2019 13:40:29 +0100 Message-Id: <20190116124030.16882-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190116124030.16882-1-mjourdan@baylibre.com> References: <20190116124030.16882-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190116_044052_793719_A2806A0D X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Jourdan , Rob Herring , Neil Armstrong , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Similar to simple-framebuffer-sunxi, we support different display pipelines that the firmware is free to choose from. This documents the "amlogic,simple-framebuffer" compatible and the "amlogic,pipeline" extension. Reviewed-by: Rob Herring Signed-off-by: Maxime Jourdan --- .../display/amlogic,simple-framebuffer.txt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/amlogic,simple-framebuffer.txt diff --git a/Documentation/devicetree/bindings/display/amlogic,simple-framebuffer.txt b/Documentation/devicetree/bindings/display/amlogic,simple-framebuffer.txt new file mode 100644 index 000000000000..aaa6c24c8e70 --- /dev/null +++ b/Documentation/devicetree/bindings/display/amlogic,simple-framebuffer.txt @@ -0,0 +1,33 @@ +Meson specific Simple Framebuffer bindings + +This binding documents meson specific extensions to the simple-framebuffer +bindings. The meson simplefb u-boot code relies on the devicetree containing +pre-populated simplefb nodes. + +These extensions are intended so that u-boot can select the right node based +on which pipeline is being used. As such they are solely intended for +firmware / bootloader use, and the OS should ignore them. + +Required properties: +- compatible: "amlogic,simple-framebuffer", "simple-framebuffer" +- amlogic,pipeline, one of: + "vpu-cvbs" + "vpu-hdmi" + +Example: + +chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + simplefb_hdmi: framebuffer-hdmi { + compatible = "amlogic,simple-framebuffer", + "simple-framebuffer"; + amlogic,pipeline = "vpu-hdmi"; + clocks = <&clkc CLKID_HDMI_PCLK>, + <&clkc CLKID_CLK81>, + <&clkc CLKID_GCLK_VENCI_INT0>; + power-domains = <&pwrc_vpu>; + }; +}; From patchwork Wed Jan 16 12:40:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10765885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3F826C2 for ; Wed, 16 Jan 2019 12:41:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD89E2D7DB for ; Wed, 16 Jan 2019 12:41:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEF1C2D7EC; Wed, 16 Jan 2019 12:41:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 426F92D7DB for ; Wed, 16 Jan 2019 12:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eUfmqOayCWL5xm6TPGnP9ljh8z/CP3AeUgB9KAMCY8U=; b=nOfcBJ2aGhbPv9 H3gt67erms6PxevwRrlZQI5RoYTYt/PfUCycoQsutk3v3jJ9MbUsbhT96Bwq78Zb9NUXmXjA7vEMO o16+oe54XOFM2O/UiC14w2YKssl+wxD9pnyH/qstLEaexiIrdRGEY2V/d0WxMBfrCiWy4+uh2XrBO ZZlnVJGDYk+oUAZLsuKDdv9kZUR5UwvdbxlOtBi12rL8223D2M17rR9gGrDrPQMBQnlkXjSjF58fe VHRHT2QCWLAwUdJ9ymDL59NA2COR8BCK6kZ+3UBcOhMVZ3VVHhx1CgUUOUcM99gxQV21tTvkk9Qo7 ux+KaGH+K8ctF+HLDx+A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjkVa-00011Y-C0; Wed, 16 Jan 2019 12:41:26 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjkV3-0000Rk-BP for linux-amlogic@lists.infradead.org; Wed, 16 Jan 2019 12:40:57 +0000 Received: by mail-wr1-x444.google.com with SMTP id 96so6773476wrb.2 for ; Wed, 16 Jan 2019 04:40:52 -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=sdNmOfjysUBiHQzQOlVgU9thQydqg7F9721m/P1nntU/bI87Q05/SdSZPbtinWIhvw YB/cfPs/Xic9YIF45uUf0Ledm7NaJXEanw2hrwp/22RG8s4Vs8jYevkn10iDOtG6Lopf Gne5XMBYU1FJM1HrpznZnwRpjepE9EZu6Obyo2cUQnBg+Lc9D68J4D+cCEcDzD3b8FyU FwUFeDf7N7cgMixQhAFXhP4t4WvqmhtHcWbF1Muqk0X8j8ycwOMnPmwbMtd+c9n6tNwe nVSegEppOLUWzhYNRRe834fre/pmExe4UI/JivQ0AHnO5LGA6qVLWlKCb8qiA1mqFA2N doyg== 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=UEm57QdeyCIiCGY/3h8XcDC/UrSTlMCkaZ+PsrFYNz8sbjUAG3A5GxGiJt7CmiCF4S ogLxKZMFTrewp0PLR9rdEpXVwVDFQaV4Gvt0Y0MSe6I3rpXcJfQ+wPula4bGixecCr6d yGnkvhUD8tu2XwbOLRbPRZgos4pphMRVN2m8uAR8cCvX6f7vvA/t6FRpSwPaRSfcAIUb ZRKauxTpuSt9cNCNF1t3AElXTMRBsRNNNGWptf5UqnFftO7bdREY4s82R6tQHf3pZINs 5CS0tNixq9NZ98yfkm5EKkjy7hwZKYLqhU0SPCkl5pnH14mGWwhrRa2Dp+2oI7sUt+Ya l2MA== X-Gm-Message-State: AJcUukcXEijYsulaX+5TkAFBR2tL+8jaAqPcMleJncoJaNVVYfvsDofP RBOyS2KNIXOoxuvguzWt5DTN3A== X-Google-Smtp-Source: ALg8bN6yLrI0OTJGtrbuy9q9DabN1JFPLpuKV1aLSXgp6noeMQiOcpXxpCoePzh9jihsnvankH7iMA== X-Received: by 2002:adf:9382:: with SMTP id 2mr7302974wrp.269.1547642451498; Wed, 16 Jan 2019 04:40:51 -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 q3sm80304040wrn.84.2019.01.16.04.40.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 04:40:50 -0800 (PST) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH v3 2/2] arm64: dts: meson-gx: add support for simplefb Date: Wed, 16 Jan 2019 13:40:30 +0100 Message-Id: <20190116124030.16882-3-mjourdan@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190116124030.16882-1-mjourdan@baylibre.com> References: <20190116124030.16882-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190116_044053_394290_4B1B6F72 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Jourdan , devicetree@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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";