Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5352001imm; Tue, 16 Oct 2018 08:57:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV61kjjlUuDdHgTW9V1OCr4C3HCArvkEAa2qJuXQRvkoPO2J0F3/2/xtU0AKpzYfSRMNLuKHE X-Received: by 2002:a17:902:6948:: with SMTP id k8-v6mr22268147plt.75.1539705474378; Tue, 16 Oct 2018 08:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539705474; cv=none; d=google.com; s=arc-20160816; b=s2a7e7Mq8pTSBvWRojriy97Iymhv388iGIHoPncD4z3BB90FJ+IZmQo+Mu8xwk32XP 7ppD0l/WuSJXCK/1lRcZLCqLj7WZGW5ukyxudnSa8/oI3zjaycYZ5enWKk6yNfHNHbu5 PXv8Aab//mL0/UogcilpmVjL/QTR7Ohuf2ee2CsRfnS3p0u46nvjGzZChOa/yXGT1Y98 4uJ6KMQ9isNi3ebCD4+fmzF/W2B/ea92ulQz9dwBLJGy48F/8owFj5pSDNU5BVJJ4bxH pPzGBxTM1VLI/rNRbwjJKOU+eoqcnjak9bpAZ10RoqxXp9BFLyl1ek0c25QoOb6e1pQi 33bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YW46tqB0+jeTs0mWd+ZDPek/U6LnD67HGXwjSepyNA4=; b=lX0DlKIq0Ajr5MtNOr8netlr47iVl9Ua9f469mddDrepEcjMOPoVWXoD/JW52IgD0x 6Zdm5FjFf+kCUPGpHtjvdyWn3B2DIs6tZ22Uv4kEwy9PMUj6w84VlRma+pp8GDYfNR9Y ayZotpAyBMT3ipaEzwumDgIM0RsHHr+I5X/xZMK09BFnlTI1rt6XBEAtkAEY9aY50dEr 9zADltmnQhtSwlNUi0h60z25jbsEpTKdm++UlKhmw+YnUtPt75aQjxY8xZ8AI6ZUiDvV iJh8EdCmL4GrOlWKUfo/MlouUp5SR91bPdftRtKya5L7M6LB+d5UhA3jOoDBq9/Xk7/t UnCw== ARC-Authentication-Results: i=1; mx.google.com; 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 c5-v6si13325939pgq.226.2018.10.16.08.57.37; Tue, 16 Oct 2018 08:57:54 -0700 (PDT) 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; 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 S1727165AbeJPXsT (ORCPT + 99 others); Tue, 16 Oct 2018 19:48:19 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:34057 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbeJPXsT (ORCPT ); Tue, 16 Oct 2018 19:48:19 -0400 Received: from [192.168.178.69] ([109.104.35.93]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MTsu0-1g3kX32pF2-00QRHK; Tue, 16 Oct 2018 17:56:49 +0200 Received: from [192.168.178.69] ([109.104.35.93]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MTsu0-1g3kX32pF2-00QRHK; Tue, 16 Oct 2018 17:56:49 +0200 Subject: Re: [PATCH 6/9] ASoC: dt-bindings: bcm2835-rpi: add onboard audio bindings To: Nicolas Saenz Julienne , gregkh@linuxfoundation.org Cc: eric@anholt.net, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, tiwai@suse.de References: <20181016150228.16994-1-nsaenzjulienne@suse.de> <20181016150228.16994-7-nsaenzjulienne@suse.de> From: Stefan Wahren Message-ID: <4039d99c-5e57-c9d3-3af5-bc160e1adb57@i2se.com> Date: Tue, 16 Oct 2018 17:56:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181016150228.16994-7-nsaenzjulienne@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: de-DE X-Provags-ID: V03:K1:M8h8wd97nUDPG6AbvpytvBnYc3Oydrxl2/VfMosyEdFa8XYLf3T 9wG3DWq7unxfvGWt10iS0mD25IIYh3BR6U8z0P1UxI2UjYs3Ss342anzJxcYY4UFEWcs5qD IrAArC3owakm/3QFuMS1bGVLEs8GtE/TbiYRj9ex69l7h0zI8NRcoUPjDngFshIRGwEBUvE Hv2hqTBgTdbk5tAhsG76A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:3bFtnh4aac0=:DvK9tKRdsWdNTo3VxWwdUl hPqGWRDfVhabzVOplSu2pQOWuvYI7EfFQRMj9D8llPoC8Hl/Gt6jC641ndCCmDXRrgaS062Sy YkVtY6oLKCoTcpzna1Ww/BSsn5G88NdYDLjVCwQi3/HrMUtVXXJ7drok030xnrwBZUpI1Kjbh jCs00AdgAVOtXp3pjhyM+l6tf3ZbPHA50DedI3Ugb3lC0fdCd1xr+LCDNB7un6uwygMNSLb2s m0B9hHZXFzV2y2ri8fOHQmHJUToUNaUTGdCQ04b8vIUTIkbV1ysYK1THvpgRiJ/P13S20mo7d g9MB4rEGXA2czYUDbTMXJSz/xgDvQt7ntmT8T27lgV74COQ9PkI7u443AoPoOpC5WymiMg/sT ePzU87Fv5QwaMH059SAAM4FTrStOlqqV1+DOAyh+OKNikYcnZ7uvDyFfiMUx1xEmGGYbUf+tI d+b14heTdsdZy5WeU2IdDR5ExpTpuE0jsUXGmfb9wSd5JSgY8LAJcvvw0V8ZnRDFHY9kIQpgZ O7Y1WEVibJv4N156vQswbiKVEyPcASzn5W9JG6dwo1AyvANJtJ94Vi1tF6kyw8XMnn06IFpye fak60xCZsRi6TZ2rycdkxfCsRcl0iqW9a7I+IH4b08OgATGGa/nNb3kX/z3895F7HUlyl3uiv t8Sx0W6fJ3KD9d3vrt3h2Y1xJ/gkzBZQJIsqhK3W1a0mULaGz7dKLB7i8xPDahwLcAXerExaa 2UKOBM86q26Ga8Sd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, Am 16.10.2018 um 17:02 schrieb Nicolas Saenz Julienne: > Adds a device tree binding file for Raspberry pi's Headphones and HDMI > audio output devices. > > Based on raspberry's downstream kernel implementation: > https://github.com/raspberrypi/linux/blob/rpi-4.14.y/arch/arm/boot/dts/bcm2708-rpi.dtsi > > Signed-off-by: Nicolas Saenz Julienne > --- > .../bindings/sound/brcm,bcm2835-audio.txt | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/brcm,bcm2835-audio.txt > > diff --git a/Documentation/devicetree/bindings/sound/brcm,bcm2835-audio.txt b/Documentation/devicetree/bindings/sound/brcm,bcm2835-audio.txt > new file mode 100644 > index 000000000000..ee6fa085aaa9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/brcm,bcm2835-audio.txt > @@ -0,0 +1,15 @@ > +Broadcom BCM283x audio device > + > +Required properties: > + > +- compatible: Should be "brcm,bcm2835-audio" > +- brcm,pwm-channels: number of PWM channels, they are behind RPi's Video Core > + IV, not actual Linux PWM devices. > + > +Example: > + > +audio: audio { > + compatible = "brcm,bcm2835-audio"; > + brcm,pwm-channels = <8>; > +}; > + i apologize but it seems to me that the TODO mentioned in the cover letter isn't update to date anymore. Phil Elwell posted an important bugfix for vchiq before [1], but only the driver part has been applied yet. After applying the DT changes i'm not sure if it still works. AFAIK the audio driver uses VCHIQ as a software interface and the binding doesn't describe the real hardware. Since the camera driver will be registered as a platform device [2], i prefer this way for the audio driver, too. I'm actually working on this here [3] (currently only compile tested). Stefan [1] - https://patchwork.ozlabs.org/cover/970434/ [2] - https://lore.kernel.org/patchwork/patch/904411/ [3] - https://github.com/anholt/linux/commits/bcm2835-audio