From patchwork Mon Dec 10 09:06:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10720879 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 188FB1731 for ; Mon, 10 Dec 2018 09:07:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06ED529D9F for ; Mon, 10 Dec 2018 09:07:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF49829DA2; Mon, 10 Dec 2018 09:07:51 +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 821D329D9F for ; Mon, 10 Dec 2018 09:07:51 +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: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:In-Reply-To:References: List-Owner; bh=oSx5iyknvWnkiALE6V6wJtIOcTarRiLgockVo9sODBM=; b=tUAiIAnKSjEsG2 6EsW2HYNZluiARXWjehBn4GuiIgSMzc0mPYHngEfYihIxMO6ut7EkofmfaG/p/8MoIwH4B7rp7iNq J01hiCX8d83kXGFYoYbcnYPWbv7t21EdgAqXWE4x5Sc/hA5NF6D7Oe8n44Kk9u56JLn50UzDAhfrU ekRPWScs6H4IUyJ4cZlB62gaAapNySqHcOyTqKiIo+dqJTWhKButlY90c+MWdYTlTxq40ZtrBH9q1 Od2KRPLQnMLTljrPijKKJI3CUrb8wATgmbm5bZV3/vGVYRFjKc/8hWTy9PDzmcbbXmwPcius0+P4g Yam55TibUgMXdvMj7FJg==; 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 1gWHXX-0000yT-Pk; Mon, 10 Dec 2018 09:07:47 +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 1gWHWm-0000E0-GE for linux-amlogic@lists.infradead.org; Mon, 10 Dec 2018 09:07:07 +0000 Received: by mail-wr1-x442.google.com with SMTP id z5so9560147wrt.11 for ; Mon, 10 Dec 2018 01:06:50 -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:mime-version :content-transfer-encoding; bh=oeULTOCMjinSO4pcUUBmFdzaevw7sbCnt/ss9FK3o1w=; b=I6sALBJbSf6Ws+I7JqLVMwcAtWQrE0bPZ/XjUMKIB5DaZXXLO4G0eDpjU2NWZqQiPn 3SX9EaaZS53obN5APJNkjQ3f6hPiXY0xzyfq66655nIxKDFMWakiF43WsmgyDVwYLcVG D6DmDs1+9BEBsQ/Qoj/VhZG6w8WUYP3hRmBVBkyFk+Xtwt5heqM8/L1BAORcuAVkaL7i A4EQDbGs8CV9skqzsVsb41DGRWXgu9j4pUj1NOOBIKRfeH5Be1V7fi+U82xCopFDimgJ 1ZmzVw2OhJGStO/n4abCHX3h10TK2EUHCvQSsnrbdzHxSsJ6abi+et1k0JIsrl6Zib+M 6UGA== 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:mime-version :content-transfer-encoding; bh=oeULTOCMjinSO4pcUUBmFdzaevw7sbCnt/ss9FK3o1w=; b=qMXFkanGl6ri7D7HCSvLKvPIGnjxHqXAcRAc8FFGY+4ETh160a8Vpim8jYJio/rrY+ k3KPcaeYDEdbTyaqmqc+7XitP1cQOU0VSN2d6ZNuRSJh0fWPSI+goshOAsimjXpO+XFs mdFyIfDy41jZsnKetVc5Ang6IrGs71Q9w2TbOgYMJepeG7Il30U9sWstqcDpGE/F7bsV v1Vcw5JSwH2+Sn2mWgSZtlMk/VNGDTpnW6rOAmcQgFC0V+L5l6tDEvVecuKNvQo9DbpQ Ghz4sCUUpbmD0ZZFpJQma2BLW8L2ihXEzeY5qI42zREA8uxozqB5qUTwzvb2+NO4VqZ7 9f3Q== X-Gm-Message-State: AA+aEWZdxi58vBsMYfE3KTBfa+oYXJ2XoFT+IjtfiPvEq4nYZwy/Qp3M erdO8egkBzOS2B8VFOUth8WExQ== X-Google-Smtp-Source: AFSGD/WJBOPUDjl+ckutJZaMe1sCrcXaNJGZkTGnLYoyGCphvlVOi0PwvL2B9J8iZ1no34lSplU4HQ== X-Received: by 2002:a05:6000:1287:: with SMTP id f7mr9572449wrx.302.1544432808854; Mon, 10 Dec 2018 01:06:48 -0800 (PST) Received: from localhost.localdomain (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id 14sm15856555wmv.36.2018.12.10.01.06.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 01:06:48 -0800 (PST) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH 1/2] dt-bindings: meson: add specific simplefb bindings Date: Mon, 10 Dec 2018 10:06:39 +0100 Message-Id: <20181210090640.4495-1-mjourdan@baylibre.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181210_010700_571726_7697CC7F X-CRM114-Status: GOOD ( 10.57 ) 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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. Signed-off-by: Maxime Jourdan --- .../display/simple-framebuffer-meson.txt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt diff --git a/Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt b/Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file mode 100644 index 000000000000..122a5c005cd9 --- /dev/null +++ b/Documentation/devicetree/bindings/display/simple-framebuffer-meson.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" +- amlogic,pipeline, one of: + "vpu-cvbs" + "vpu-hdmi" + +Example: + +chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@0 { + 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 Mon Dec 10 09:06:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10720877 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 D8C851731 for ; Mon, 10 Dec 2018 09:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C800329BBA for ; Mon, 10 Dec 2018 09:07:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC2FC29DA2; Mon, 10 Dec 2018 09:07:29 +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=unavailable 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 60ACF29BBA for ; Mon, 10 Dec 2018 09:07:29 +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=TmTPjGKXz6xfMXJPqkV1TK+PZPdK6V9er5zfYqpV5Y8=; b=li9dCmtp0o+Koe 92Iv+r80rgS33uRCa4fk/gn3wOJG8WCAhJZqNBpuOsU3Qb3Q4pNC2rkGWvbsNLotZftOqHSdDLopQ MPQN134kfT5Ljz8EiZY/yKpo+rKK5L29808nPiF0hl1xB8polRgGasiFh2zD69ql2nRJjKPlq3mJj TCDKspCWXJlarw4X7IlD/MJoUTJIy2CqQREiIt01AUDr4md/yjUqu9ACz7qtUglaB0OE/GhQwKLQT UOngF15HB244k2LUIe2o6eUI3GXF+v4N+RNJWZYdXZrSw6Wz5R8JJtgKb1kbxTSgGZpcM3x52uIE3 9DVwx+IGkEHHfA2k+Jpw==; 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 1gWHXD-0000er-V3; Mon, 10 Dec 2018 09:07:28 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gWHWn-0000ER-DD for linux-amlogic@lists.infradead.org; Mon, 10 Dec 2018 09:07:03 +0000 Received: by mail-wm1-x343.google.com with SMTP id y139so9988854wmc.5 for ; Mon, 10 Dec 2018 01:06: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=J/iFO9ro52MfQgXBg7sbtK9Q+GjTD65WMy8mc1LZAJI=; b=qnmlEEqDy9HdDvus57/G5BdLOXqj6Tt/3om5CgcTwvfsYh0W7xG0wjdTfCFqu2wtjN M+zxoyBJS5trVxIpGjE4LyQkNkxP8MvsS1QDP8aJ5xRfwFJ4M1GkGBC4at+c/0qHVyDM GDMiTgSm4lXk0wXEIzFClHj9jsnc/Wl9wDaqYyqhEr7f1EMkxWLx41mbofewNeuajK/g KKdU/xH5Tw/uzK8akj+mw1ZXhx1yrQZKHz41i/8kNvSYtc1SDN0lc24hlN0UKM18j76h zSfTxs271Pkjs5iNIpZJvdAprAxyKNj/ZfTXdkWN2MsFLGvAOVPeCtNxa61i9/to96q1 TVNg== 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=J/iFO9ro52MfQgXBg7sbtK9Q+GjTD65WMy8mc1LZAJI=; b=Wnt3pRuyR38xzM6j1zgjqgsst9Dalk9CB/6TEsMHbTmv4LiHh99Y9t9uU2ztfhICOp MvCAPmTAH8vAenbofhFnSgJt1fjbhJ/bXPLRtJGO2DmiVutcx12nMhuFQCrxD5dgI847 7PVd6y2daHVQp0VdzYa2OqJEFxbM0BjZVsfn12RciUDo3NSzoZ8vX9Mu1njry7gpGqvc S7H+Q+IN7LPUM7we/RYqHRjBX7EpCpSoNH6aJHwVJTYmkihV7mLNh2Xc2J8cRWtDl1kH x69DTn0PWMpvq1ShxR4TwFcqtMKg3RfpMLhn2hz+Qrg8gk+l4OqkJH7tTD7wWw9hXUc/ YLSA== X-Gm-Message-State: AA+aEWa8VxkirtcK5tp1daF+ufgEphCha1PYn7bzS16U+59tAPhM1AjM HIimTYrxyXZlos/1cfC8r4CwCQ== X-Google-Smtp-Source: AFSGD/VusClaUcF5HcoQLnPCwhOSfRe01bWinz30a94mxKWWkzNEdw189dXQLbo85UBX8ST5A7L8uA== X-Received: by 2002:a1c:1550:: with SMTP id 77mr10459677wmv.100.1544432809836; Mon, 10 Dec 2018 01:06:49 -0800 (PST) Received: from localhost.localdomain (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id 14sm15856555wmv.36.2018.12.10.01.06.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 01:06:49 -0800 (PST) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH 2/2] arm64: dts: meson-gx: add support for simplefb Date: Mon, 10 Dec 2018 10:06:40 +0100 Message-Id: <20181210090640.4495-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181210090640.4495-1-mjourdan@baylibre.com> References: <20181210090640.4495-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181210_010701_444468_EB64FCA3 X-CRM114-Status: GOOD ( 10.95 ) 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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-gxbb.dtsi | 25 +++++++++++++++++++++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 25 +++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 1ade7e486828..4bc7dd5ba141 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -13,6 +13,31 @@ / { compatible = "amlogic,meson-gxbb"; + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@0 { + compatible = "amlogic,simple-framebuffer", + "simple-framebuffer"; + amlogic,pipeline = "vpu-cvbs"; + power-domains = <&pwrc_vpu>; + status = "disabled"; + }; + + framebuffer@1 { + 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>; + status = "disabled"; + }; + }; + soc { usb0_phy: phy@c0000000 { compatible = "amlogic,meson-gxbb-usb2-phy"; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index 8f0bb3c44bd6..f7ef8e0cf96e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -13,6 +13,31 @@ / { compatible = "amlogic,meson-gxl"; + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@0 { + compatible = "amlogic,simple-framebuffer", + "simple-framebuffer"; + amlogic,pipeline = "vpu-cvbs"; + power-domains = <&pwrc_vpu>; + status = "disabled"; + }; + + framebuffer@1 { + 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>; + status = "disabled"; + }; + }; + soc { usb0: usb@c9000000 { status = "disabled";