Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2282011ybf; Mon, 2 Mar 2020 05:40:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzY006GjHbjhrIDbqN5BFKG237OzHKEVxmVNSgk2Ih54w0E8RPWiaZy90L7X/rrTSj8Q1rY X-Received: by 2002:a54:4e96:: with SMTP id c22mr12063937oiy.110.1583156446303; Mon, 02 Mar 2020 05:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583156446; cv=none; d=google.com; s=arc-20160816; b=L/mzzi9Wsw/OZOZmU2r8CzdDgPNBaCARurvv0J5BDBFohSgoTDq8IdnymeUNbGFSuO NDGsLJx0//ATgHKzIuYJExpIJSzQCXBQ1SlhVhxn6f8Jf+Ta9gKgSoYZo86lu8wSLtjU RxC5pxB4EK+jSwRHMQSHrVqvWRARtJvhJ61VA1gn7qCIi11+xmUPxAWinN0zTO+3aQPM giYwE/comQvCHtzPgEcRc5DtQmiRJXW/LcqDzqy4W42hfnKXG9eeBgI/JBL1DcAGKMYS mpyo8maW6UiLppvYrs6fNaWj3kFLpnjVKTJGlIvV9C/RJcpznqqn/mD8LsMJ6v8z1MYW sFZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=iJlA7qfOWLSFzjfsRKRkOi85dGztjhyK8DNqMlV78Vs=; b=nts90QlkMWUFPVbTbrSLU5kgSpihemjBB+o2LW57EJsfFjJ6SravbQQd6Qcw8XQYFk vrV0Jxt+NXSHsSS3wGptY2pY1am3K5Jex5NQCVW7Ar76Csm61zDmJDayoi0EGvi2c1X0 Mb2GiigQsGwjbYV+0/heAZ1S9IU2XCIAqFarQz8Wdu+PZxRoIv99HEqVt6FTBxe2jJnq 72+x3a1Tl4YRUDeS90DHX0QHMtP5R4m080eDZXSBno0FVrZY+/UtQiR4AVccyqcGoal6 hdz6OK5x1N/otSVG8XCiCm4SVnAFfJHAGPacbX9g0vsJuTp1FQ49VcbssMq2lpXOkHcD snQA== 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 g18si6112289otp.61.2020.03.02.05.40.33; Mon, 02 Mar 2020 05:40:46 -0800 (PST) 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 S1727978AbgCBNk0 (ORCPT + 99 others); Mon, 2 Mar 2020 08:40:26 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:57521 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727734AbgCBNk0 (ORCPT ); Mon, 2 Mar 2020 08:40:26 -0500 Received: from mail.cetitecgmbh.com ([87.190.42.90]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MGgRW-1jDlV93PvO-00Dkhz; Mon, 02 Mar 2020 14:40:13 +0100 Received: from pflvmailgateway.corp.cetitec.com (unknown [127.0.0.1]) by mail.cetitecgmbh.com (Postfix) with ESMTP id EB3F164FF0D; Mon, 2 Mar 2020 13:40:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at cetitec.com Received: from mail.cetitecgmbh.com ([127.0.0.1]) by pflvmailgateway.corp.cetitec.com (pflvmailgateway.corp.cetitec.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WWMbcQw5Ey6r; Mon, 2 Mar 2020 14:40:12 +0100 (CET) Received: from pfwsexchange.corp.cetitec.com (unknown [10.10.1.99]) by mail.cetitecgmbh.com (Postfix) with ESMTPS id 4199864ED3F; Mon, 2 Mar 2020 14:40:12 +0100 (CET) Received: from pflmari.corp.cetitec.com (10.10.2.141) by PFWSEXCHANGE.corp.cetitec.com (10.10.1.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Mar 2020 14:40:11 +0100 Received: by pflmari.corp.cetitec.com (Postfix, from userid 1000) id E5D86804EF; Mon, 2 Mar 2020 14:40:11 +0100 (CET) Date: Mon, 2 Mar 2020 14:40:11 +0100 From: Alex Riesen To: Geert Uytterhoeven CC: Kieran Bingham , Mauro Carvalho Chehab , Hans Verkuil , "Laurent Pinchart" , Rob Herring , Mark Rutland , driverdevel , Linux Media Mailing List , Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas Subject: Re: [PATCH 8/8] arm64: dts: renesas: salvator: add a connection from adv748x codec (HDMI input) to the R-Car SoC Message-ID: <20200302134011.GA3717@pflmari> Mail-Followup-To: Alex Riesen , Geert Uytterhoeven , Kieran Bingham , Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , Rob Herring , Mark Rutland , driverdevel , Linux Media Mailing List , Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas References: <20200113141556.GI3606@pflmari> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.10.2.141] X-ClientProxiedBy: PFWSEXCHANGE.corp.cetitec.com (10.10.1.99) To PFWSEXCHANGE.corp.cetitec.com (10.10.1.99) X-EsetResult: clean, is OK X-EsetId: 37303A29536F936F63776B X-Provags-ID: V03:K1:gvQ7Is8n0lpg67NQuR/HsSkPH2SLWS727/gSY2xDGIs3RA0zszq c41zsFwgNphFi0WrOkpGBh3AzzHd3Tyc1STiHmPaS9Jo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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Geert Uytterhoeven, Mon, Mar 02, 2020 13:28:13 +0100: > Hi Alex, > > Thanks for your patch! > > On Mon, Jan 13, 2020 at 3:24 PM Alex Riesen > wrote: > > Not sure if all variants of the Salvator board have the HDMI decoder > > chip (the ADV7482) connected to the SSI4 on R-Car SoC, as it is on > > Salvator-X ES1, so the the ADV7482 endpoint and connection definitions > > are placed in the board file. > > Both Salvator-X and Salvator-XS have SSI4 wired to the ADV7482. > > > I do assume though that all Salvator variants have the CLK_C clock line > > hard-wired to the ADV7482 HDMI decoder, and remove it from the list of > > clocks provided by the R-Car sound system. > > Yes, both Salvator-X and Salvator-XS have it wired that way. Ok, seems like I can move that part into the common file as well. Integrations of ADV7482 and R-Car which use salvator-common.dts can still redefine the endpoint settings in their board files, right? > But please see below. ... > > The I2C wiring is also likely to persist across the variants (similar > > to ak4613, connected to the same interface), so that is in the common > > file. > > > > Signed-off-by: Alexander Riesen > > Below are my comments w.r.t. the board-specific wiring. > I'll defer to the multimedia people for commenting on the audio parts. > > BTW, what is the status of the other patches in this series? "Submitted", at the moment. Besides you and Rob Herring no one said anything yet (either that or I missed the replies). > > --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi > > +++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi > > @@ -322,6 +322,10 @@ > > clock-frequency = <22579200>; > > }; > > > > +&audio_clk_c { > > + clock-frequency = <12288000>; > > +}; > > Does the ADV7482 always generate a 12.288 MHz clock signal? > Or is this programmable? Oops. It looks like it is and the value is derived from the sampling rate (48kHz) and the master clock multiplier. Both hard-coded in the board file. > > video-receiver@70 { > > compatible = "adi,adv7482"; > > ... > > + clocks = <&rcar_sound 3>, <&audio_clk_c>; > > + clock-names = "clk-hdmi-video", "clk-hdmi-i2s-mclk"; > > The above declares the Audio CLK C to be a clock input of the ADV7482, while > it is an output. I would gladly give it right direction if I *really* understood what I was doing... > Furthermore, the DT bindings do not document that clocks can be specified. Should the DT bindings document that the clock cannot be specified than? > > @@ -686,7 +700,8 @@ > > }; > > > > sound_pins: sound { > > - groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a"; > > + groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a", > > + "ssi4_data"; > > Missing "ss4_ctrl", for the SCK4 and WS4 pins. I'll add them. As the device seems to function even without thoes, does this mean the pins in the group are used "on demand" by whatever needs them? > > @@ -760,8 +775,18 @@ > > <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>, > > <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>, > > <&audio_clk_a>, <&cs2000>, > > - <&audio_clk_c>, > > Why remove it? This is the list of clock inputs, not outputs. ...probably because I was thinking the specification was exactly the other way around. Does a "clocks = ..." statement always mean input clocks? I shall correct that and re-test (might take a while, I don't have the hardware anymore). Thanks for looking! Regards, Alex