From patchwork Wed Jan 17 18:48:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10170445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9C47060386 for ; Wed, 17 Jan 2018 18:49:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EFE21FFFF for ; Wed, 17 Jan 2018 18:49:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81A7B200DF; Wed, 17 Jan 2018 18:49: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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 12E8E1FFFF for ; Wed, 17 Jan 2018 18:49:07 +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:Subject:References: In-Reply-To:Message-ID:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FVglTYiG5dpYL5r/MAzsqpSKuYXvs17FzQj/uuLl/Xk=; b=Oj1UaroSTCg1XS OnilakqptFcGYy490Om3zc39rYfG/l+Cb8nldw7x3RJh8sf9dfA5+DOoxZpwrG1Wfx3rEWhsHtuhZ D2F5vZE4lvGPyKT2iAUsIxPpjMlGsqROk6L0AKrqbixH/T0YRbF2fDIWstYe8HA//NKTE42mZlsmZ CMVOrxt9bStN4Bw0ZygGPyXwnXLABwaziSAx9XJUvaxrnT3hfsCJqGnH1fdt2B2zztvA2Q2dNvL3J hHmXkGVTgKnRVrgtQmSXzN0o+fxIyZjBTkcG+qgBN/ssLIubjirSJbZ3BY2NSv/hcgNKeg6Zsu71n 7zUS7ysnDktswSdKmvKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ebslk-0006US-16; Wed, 17 Jan 2018 18:49:04 +0000 Received: from mout.kundenserver.de ([217.72.192.73]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebslf-0006TQ-Nj; Wed, 17 Jan 2018 18:49:02 +0000 Received: from null ([172.19.249.152]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MZwSd-1eGDqL1GL1-00Lo5A; Wed, 17 Jan 2018 19:48:46 +0100 Date: Wed, 17 Jan 2018 19:48:46 +0100 (CET) From: Stefan Wahren To: Sergey Suloev Message-ID: <299185620.10681.1516214926155@email.1und1.de> In-Reply-To: <3379fe3c-62ef-85a1-0073-da184e32cdf8@orpaltech.com> References: <3379fe3c-62ef-85a1-0073-da184e32cdf8@orpaltech.com> Subject: Re: DT binding for staging vchiq MIME-Version: 1.0 X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev20 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K0:yEsdggblk0pm3FKq3I8Iq8EgHHx5ccscFIdWoYCkKMNizP8gE/f ioQE9qBBpWsw8Dh4wt8jJpKiapiKLLfggQEf3sPKSHATGL5sPXiXicKZ5d5JpEGM+oGdd6D qmoO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lSQu4rWOYymuhpXiTHrj4MnVzbwlxYE1Ct3FUzflKha7M yZA0sJRxDzw== X-BeenThere: linux-arm-kernel@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-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Sergey, > Sergey Suloev hat am 17. Januar 2018 um 14:45 geschrieben: > > > Hello everyone, > > I am trying to use RPi3 VC4 gpu with Qt5 quick/qml. When I run my > application Qt5 is always complaining about missing vchiq device in the > system. I know there is vchiq driver available in staging. > > My questions are: > > 1) What is the current status of the driver ? Is it working at all? From my point of view it's still experimental. It's mostly the same driver as in downstream, but its function highly dependents on the configuration: arm/bcm2835_defconfig = should work arm/multi_v7_defconfig = may work arm64/defconfig = won't work [1] In order to the function of the driver use vchiq_test from the Raspberry Pi userland. Btw testers are always welcome :-) > > can it be used with Qt5 ? If your application works with the downstream kernel, there is a high chance. > > 2) Can I have a working example of DT binding for the driver ? This is one of my many TODOs [2] to provide a binding document. Please try the following old patch. The cache-line-size depends on the used SoC (BCM2835 = 32, BCM2836/BCM2837 = 64). Good luck [1] - https://github.com/lategoodbye/rpi-zero/issues/23 [2] - https://github.com/lategoodbye/rpi-zero/issues/8 > > Thanks > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index e55b362..7398b96 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -27,6 +27,14 @@ firmware = <&firmware>; #power-domain-cells = <1>; }; + + vchiq: vchiq { + compatible = "brcm,bcm2835-vchiq"; + reg = <0x7e00b840 0xf>; + interrupts = <0 2>; + cache-line-size = <64>; + firmware = <&firmware>; + }; }; };