From: Jon Hunter Subject: Re: [PATCH 6/7] arm64: tegra: Add the various audio devices for Tegra210 Smaug Date: Tue, 16 Aug 2016 14:38:45 +0100 Message-ID: References: <1470756082-19099-1-git-send-email-jonathanh@nvidia.com> <1470756082-19099-7-git-send-email-jonathanh@nvidia.com> <20160816131537.GD4133@ulmo.ba.sec> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160816131537.GD4133-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Thierry Reding Cc: Stephen Warren , Alexandre Courbot , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On 16/08/16 14:15, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Aug 09, 2016 at 04:21:21PM +0100, Jon Hunter wrote: >> The Tegra210 Smaug includes the Realtek RT5677 audio codec, Nuvoton >> NAU8825 headset codec and the Maxim MAX98357a audio amplifier. Add >> the nodes for these devices for the Tegra210 Smaug. >> >> Signed-off-by: Jon Hunter >> --- >> arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 44 +++++++++++++++++++++++++++ >> 1 file changed, 44 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts >> index 2c4672527d75..8cdd71f4d9ba 100644 >> --- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts >> +++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts >> @@ -1562,6 +1562,45 @@ >> }; >> }; >> >> + i2c@7000d100 { >> + status = "okay"; >> + clock-frequency = <400000>; >> + >> + nau8825@1a { >> + compatible = "nuvoton,nau8825"; >> + reg = <0x1a>; >> + interrupt-parent = <&gpio>; >> + interrupts = ; > > Any reason why this uses the interrupt-parent and interrupts properties, > whereas... > >> + clocks = <&tegra_car TEGRA210_CLK_CLK_OUT_2>; >> + clock-names = "mclk"; >> + >> + nuvoton,jkdet-enable; >> + nuvoton,jkdet-polarity = ; >> + nuvoton,vref-impedance = <2>; >> + nuvoton,micbias-voltage = <6>; >> + nuvoton,sar-threshold-num = <4>; >> + nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>; >> + nuvoton,sar-hysteresis = <1>; >> + nuvoton,sar-voltage = <0>; >> + nuvoton,sar-compare-time = <0>; >> + nuvoton,sar-sampling-time = <0>; >> + nuvoton,short-key-debounce = <2>; >> + nuvoton,jack-insert-debounce = <7>; >> + nuvoton,jack-eject-debounce = <7>; >> + status = "okay"; >> + }; >> + >> + audio-codec@2d { >> + compatible = "realtek,rt5677"; >> + reg = <0x2d>; >> + interrupts-extended = <&gpio TEGRA_GPIO(X, 0) IRQ_TYPE_LEVEL_HIGH>; > > ... this uses interrupts-extended? I'd like these to be consistent, and > I'm slightly leaning towards the former. Any objections if I change that > while applying? Good catch. I must have inherited this from the chrome-os 3.18 kernel. I agree that it is best to be consistent here. So please update when applying. Thanks Jon -- nvpublic