Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755204AbdCTP4q convert rfc822-to-8bit (ORCPT ); Mon, 20 Mar 2017 11:56:46 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:40988 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753296AbdCTP4X (ORCPT ); Mon, 20 Mar 2017 11:56:23 -0400 Date: Mon, 20 Mar 2017 12:33:45 -0300 From: Mauro Carvalho Chehab To: Michael Zoran Cc: Eric Anholt , devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver Message-ID: <20170320123345.5a7ac931@vento.lan> In-Reply-To: <1490022701.11105.3.camel@crowfest.net> References: <20170127215503.13208-1-eric@anholt.net> <20170315110128.37e2bc5a@vento.lan> <87a88m19om.fsf@eliezer.anholt.net> <20170315220834.7019fd8b@vento.lan> <1489628784.8127.1.camel@crowfest.net> <20170316062900.0e835118@vento.lan> <87shmbv2w3.fsf@eliezer.anholt.net> <20170319135846.395feef8@vento.lan> <1489943068.13607.5.camel@crowfest.net> <20170319221107.05227532@vento.lan> <20170320075831.65189ed7@vento.lan> <1490008101.28090.5.camel@crowfest.net> <20170320115821.736931ee@vento.lan> <1490022701.11105.3.camel@crowfest.net> Organization: Samsung X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3900 Lines: 135 Em Mon, 20 Mar 2017 08:11:41 -0700 Michael Zoran escreveu: > On Mon, 2017-03-20 at 11:58 -0300, Mauro Carvalho Chehab wrote: > > Em Mon, 20 Mar 2017 04:08:21 -0700 > > Michael Zoran escreveu: > > > > > On Mon, 2017-03-20 at 07:58 -0300, Mauro Carvalho Chehab wrote: > > > > Em Sun, 19 Mar 2017 22:11:07 -0300 > > > > Mauro Carvalho Chehab escreveu: > > > >    > > > > > Em Sun, 19 Mar 2017 10:04:28 -0700 > > > > > Michael Zoran escreveu: > > > > >    > > > > > > A working DT that I tried this morning with the current > > > > > > firmware > > > > > > is > > > > > > posted here: > > > > > > http://lists.infradead.org/pipermail/linux-rpi-kernel/2017-Ma > > > > > > rch/ > > > > > > 005924 > > > > > > .html > > > > > > > > > > > > It even works with minecraft_pi!     > > > > > > > >    > > > > > > Hi, can you e-mail out your config.txt?  Do you have audio enabled > > > in > > > config.txt? > > > > yes, I have this: > > > > $ cat config.txt |grep -i audio > > # uncomment to force a HDMI mode rather than DVI. This can make audio > > work in > > # Enable audio (loads snd_bcm2835) > > dtparam=audio=on > > > > Full config attached. > > > > Thanks, > > Mauro > > > > Are you using Eric Anholt's HDMI Audio driver that's included in VC4? > That could well be incompatible with the firmware driver. Or are you > using a half mode of VC4 for audio and VCHIQ for video? I'm using vanilla staging Kernel, from Greg's tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next&id=7bc49cb9b9b8bad32536c4b6d1aff1824c1adc6c Plus the DWC2 fixup I wrote and DT changes you pointed (see enclosed). I can disable the audio overlay here, as I don't have anything connected to audio inputs/outputs. Regards, Mauro --- diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index 38e6050035bc..1f42190e8558 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 { + compatible = "brcm,bcm2835-vchiq"; + reg = <0x7e00b840 0xf>; + interrupts = <0 2>; + cache-line-size = <32>; + firmware = <&firmware>; + }; }; }; diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts index c309633a1e87..7e8d42904022 100644 --- a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +++ b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts @@ -17,6 +17,45 @@ gpios = <&gpio 47 0>; }; }; + + + soc { + +// hvs at 7e400000 { +// status = "disabled"; +// }; + +// v3d: v3d at 7ec00000 { +// status = "disabled"; +// }; + + vc4: gpu { + status = "disabled"; + }; + + fb: fb { + status = "disabled"; + }; + + vchiq: vchiq { + compatible = "brcm,bcm2835-vchiq"; + reg = <0x7e00b840 0xf>; + interrupts = <0 2>; + cache-line-size = <32>; + firmware = <&firmware>; + }; + + audio: audio { + compatible = "brcm,bcm2835-audio"; + brcm,pwm-channels = <8>; + }; + + }; + + __overrides__ { + cache_line_size = <&vchiq>, "cache-line-size:0"; + }; + }; Thanks, Mauro