Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1996060rdb; Tue, 3 Oct 2023 07:24:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPCMseHd0vG78TBcA+fAzEQVe4xngjPQdyetR4H4odBEKA4IBRv08frudwzA+PqTG6v8cr X-Received: by 2002:a17:902:7246:b0:1bd:d6b5:a54f with SMTP id c6-20020a170902724600b001bdd6b5a54fmr12966410pll.55.1696343081564; Tue, 03 Oct 2023 07:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696343081; cv=none; d=google.com; s=arc-20160816; b=c5zcVEiMjo5isqkzEEi/bcXd/+5z8cTVktsRFdcob067Fs1NBzW1694ApJUloOJB0B ZcEcVIIXkJauIDXg1jHkNIH+BvrUut3oNO84XTUIr/UKbAdR5u/P4Qg53oP1+lDQxjiU UzMEsy9VaoTUt6HfAk0QA2m4oqQ8vBxliFIgF88VL6vet7XBhEhtIekywUsyTSP3k91k 0H+P2en4C5nJfny4yIlgz+OEQEjRXZ2gAOQmjY+BMPz1VRADln5wVXCt4GqFn44Rv9bj N+Ik+xsnlvVjCV0RMkVtqT0YjQnkZv5CvDQZOfHEkQM45MivFaQ0WZCbe6bqmOOTTO5o wTog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=i9W+xcDsLhxBNouI0kvlQgnQl4ggfNC0ZxsEX/ORR1o=; fh=/VC3+P35Hyqc6SVMTFn0iEFWgn+I5X2jQRRnug/EFO8=; b=dNPPNlaDrFxGORlOQi8IDbFuPDRdfWDviIIQSJ/+BYS/78cj9cupp95FZJpmwK69pU tK3hxYe15lq0Ob40+AA+YZgp3UmIjTNB8kNxwDtxdAsTw+Vgvf1wACLPOWVLkT1JU4aR V8Hx/1J4Xtp84g1S3MAqiyfnuVInLlWn2PMUUQethuO9kdYYlIWZIKxWGzQUXfO5MUea +J8a3b+acyQgyYGONKfbxIFyV3sSKormFSAjItpb2lM5vbuWmTIw77o4Wyr0jrAkwFUQ o9DnMmSALOQ8VgXMO6zmMeXe5ml8N06/ffQ4mE9wZG/YiC3BnSQALIAgDSq/YH1Lwoyo ZLIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=uUsJDjWn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o10-20020a170903210a00b001bf20c806b0si1463362ple.175.2023.10.03.07.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:24:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=uUsJDjWn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9BCEE80EE763; Tue, 3 Oct 2023 07:24:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239769AbjJCOXz (ORCPT + 99 others); Tue, 3 Oct 2023 10:23:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238685AbjJCOXy (ORCPT ); Tue, 3 Oct 2023 10:23:54 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 657C7AB for ; Tue, 3 Oct 2023 07:23:50 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-405417465aaso10258755e9.1 for ; Tue, 03 Oct 2023 07:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1696343029; x=1696947829; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=i9W+xcDsLhxBNouI0kvlQgnQl4ggfNC0ZxsEX/ORR1o=; b=uUsJDjWnA77ThynfgbmXeVSLL1afkio3i8kwYjstpjMQqZM7j8ltwnI4DW0EvHh1N5 ZpXbY0psPztAKCgFtumn4qR4WCUjpY1diosrrOZu1InIn+Pv/Kkaz0FRWA1QUPI0yKuj 4OQYMjMv/JzF7/p5QEH3gj8U00gZAHnmf0iQifM7fkDGAitrZW9bz9qjEI02oKJgz1Yz qSuFRdojjBluPXJBb555QnRBDF5SdDBwuD4xme6oRfDRedb+SAhtnOpSImGsPc9MBBiI PpBkiw9kALRhQv4glNEbuginYOI63jN8n7JXHdQF645S/4f2DWFuJTWyGnRZf0sjUKL3 +BPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696343029; x=1696947829; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i9W+xcDsLhxBNouI0kvlQgnQl4ggfNC0ZxsEX/ORR1o=; b=o6zjtGHlBjqzlbn6Ihmatv5W/7X9eQttdo3cip5pfP4LWQa2etjC69h7CyMAwpVlaR cmVVT++5P2YrdbnIcApXzkoYLYn/ff6Rnf6M/SUonDjJ3H0rWFmQG0JGKwV2+99zuov3 mnbnOGqD5otIlyJBzSjQmLKI0ynINkeqq4JvZleVppesEoIR+4JLuiClCtf7htOmbdJ/ h/oWcBB0D/BTFYV8ipECilx+ufIdfwel9hL5OHehE9Cq2WWTCB3KnkI+2pXbZodk19bh SJCo199iXm925jSM+pXuMuiH7WU4W1lEZjZqxAYLZck2tWDhYIMRMraZeqThy2dhHHD+ yvwA== X-Gm-Message-State: AOJu0Yxi0eg9O5mLBLnxt4bJ9mO2Wf7OvAEMLt6UbhgIaJfD3tCPXCLg uyqP/Zn3IFeeOfZTvZfcqXwB8Q== X-Received: by 2002:a05:600c:2146:b0:401:b53e:6c3b with SMTP id v6-20020a05600c214600b00401b53e6c3bmr13317155wml.6.1696343028424; Tue, 03 Oct 2023 07:23:48 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:15bf:5b59:3e24:71fe]) by smtp.gmail.com with ESMTPSA id k16-20020a05600c0b5000b003fe61c33df5sm9569933wmr.3.2023.10.03.07.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:23:47 -0700 (PDT) References: <20231003121205.2870923-1-jbrunet@baylibre.com> User-agent: mu4e 1.8.13; emacs 29.1 From: Jerome Brunet To: Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Kevin Hilman , Da Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: Re: [PATCH] arm64: dts: amlogic: add spdifout on libretech potatoes Date: Tue, 03 Oct 2023 16:19:08 +0200 In-reply-to: <20231003121205.2870923-1-jbrunet@baylibre.com> Message-ID: <1jsf6ryebw.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:24:38 -0700 (PDT) On Tue 03 Oct 2023 at 14:12, Jerome Brunet wrote: > SPDIF output is available libretech's Potato v1 and v2, on a dedicated > header. Add the codec, pinmux and dai link to enable it on the sound card. After discussing further within Da, while the the schematics says SPDIF_OUT this is actually not the only use of the header. This mis-understanding is on me. Please do not merge this change. At least the information is out there. > > Signed-off-by: Jerome Brunet > --- > .../amlogic/meson-gxl-s905x-libretech-cc-v2.dts | 17 +++++++++++++++++ > .../amlogic/meson-gxl-s905x-libretech-cc.dts | 17 +++++++++++++++++ > 2 files changed, 34 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > index 2825db91e462..ca6f922d162d 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc-v2.dts > @@ -23,6 +23,13 @@ aliases { > spi0 = &spifc; > }; > > + spdif_dit: audio-codec { > + #sound-dai-cells = <0>; > + compatible = "linux,spdif-dit"; > + status = "okay"; > + sound-name-prefix = "9J2"; > + }; > + > chosen { > stdout-path = "serial0:115200n8"; > }; > @@ -189,11 +196,21 @@ codec-0 { > sound-dai = <&hdmi_tx>; > }; > }; > + > + dai-link-3 { > + sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; > + > + codec-0 { > + sound-dai = <&spdif_dit>; > + }; > + }; > }; > }; > > &aiu { > status = "okay"; > + pinctrl-0 = <&spdif_out_h_pins>; > + pinctrl-names = "default"; > }; > > &cec_AO { > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > index 27093e6ac9e2..8b3234a9cb45 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts > @@ -29,6 +29,13 @@ dio2133: analog-amplifier { > enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; > }; > > + spdif_dit: audio-codec { > + #sound-dai-cells = <0>; > + compatible = "linux,spdif-dit"; > + status = "okay"; > + sound-name-prefix = "9J1"; > + }; > + > chosen { > stdout-path = "serial0:115200n8"; > }; > @@ -183,6 +190,14 @@ codec-0 { > sound-dai = <&acodec>; > }; > }; > + > + dai-link-4 { > + sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; > + > + codec-0 { > + sound-dai = <&spdif_dit>; > + }; > + }; > }; > }; > > @@ -193,6 +208,8 @@ &acodec { > > &aiu { > status = "okay"; > + pinctrl-0 = <&spdif_out_h_pins>; > + pinctrl-names = "default"; > }; > > &cec_AO {