From nobody Fri Sep 12 10:47:57 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C32BC6379F for ; Fri, 10 Feb 2023 12:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232053AbjBJM2e (ORCPT ); Fri, 10 Feb 2023 07:28:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbjBJM23 (ORCPT ); Fri, 10 Feb 2023 07:28:29 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA499735AC; Fri, 10 Feb 2023 04:28:27 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id o18so4927289wrj.3; Fri, 10 Feb 2023 04:28:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=96shaXIQtfSOpk1V2rzXl80X1bE5l20ZAqgUNK1DbvU=; b=RE/Wr27m9sEApv2s1qrJJM+eayomNFEo2RBl1PPDJP/TtxoFTGk/vOZuq/UuQ9mbLn vrTnandG9q62o+Su9jWdKwqY8MCX1PwwlgpnMz4DHlfvuA8VQTI7ha8vE7r14A0pu38D w0Xyhgh3KyR4QM5vjQ6Qayy4Jb/trLyjV0fSS03XVTGjmBHoZPgDccJKRlTK8e7Hlhyt e9b47bWYpGg3SQQ18aZyBt/BgSPt1D3nDpAB2kbGhp2nux5vPUpnhcvAFFaQYLRs0jkY 68keMPReixiEN4z2hjWy4AIeMR2LtbPlrA/YwYQs7Sz/rPDb7nCWySC0ecTPLr6rQqRm aOEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=96shaXIQtfSOpk1V2rzXl80X1bE5l20ZAqgUNK1DbvU=; b=5CMcG3ZI9s8Q/mgx3HehNMwjY2fgcWHWFJ7+jg22JlR7UVvtZpxKF4DIPlSTVFpw2Q OIgBOqxNOH7Z4g/RO+VYCznRHsQTHO8gUGxI0+hFo9wWJu/qo9IaVlNhwK8CDbMZywqG jCFxXR2ZXEApDm5GAMU00yG6rfQg8nU0nn/oPv29jzQzlN2aBq8TU2NlmgphvRe8X6aN Pf9Abnk4x47sIM5Mef4kiSvsCBthBlHX2xfMv/kdDOO8jyRrdlaowTn2pqeq8aHztc6J ot4idWCXiydMq/6gvFWcahUPa+fkyg+pdNqf7+kS6dYbBsPEhrNR6HVg0sYstXfrG13r EPCw== X-Gm-Message-State: AO0yUKWrLOmb7vNhQvSEzW1JyY3FnyD/WofutRiYQMlwJsdvXmgxkTnR /lSa60njSB5DQdlo31qFCXoqMMJSTNI4Dg== X-Google-Smtp-Source: AK7set+t0+m6XIrOzmtRzoIAnUN/GgzwO1HROtUPFwytx/bCrcDytT0e7JqMLb9G+nqozFSXrVjohQ== X-Received: by 2002:adf:f212:0:b0:2c3:f250:f217 with SMTP id p18-20020adff212000000b002c3f250f217mr14814903wro.1.1676032106485; Fri, 10 Feb 2023 04:28:26 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id i8-20020a5d4388000000b002c5493a17efsm1540989wrq.25.2023.02.10.04.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 04:28:25 -0800 (PST) From: Christian Hewitt To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt , Ferass El Hafidi Subject: [PATCH 1/3] arm64: dts: meson: gxbb-kii-pro: sort and tidy the dts Date: Fri, 10 Feb 2023 12:28:15 +0000 Message-Id: <20230210122817.1027765-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230210122817.1027765-1-christianshewitt@gmail.com> References: <20230210122817.1027765-1-christianshewitt@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Alpha-sort the nodes, move the default line in the LED node to where it's normally found, and remove excess spacing. No functional changes. Signed-off-by: Christian Hewitt Tested-by: Ferass El Hafidi Reviewed-by: Neil Armstrong --- .../boot/dts/amlogic/meson-gxbb-kii-pro.dts | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts b/arch/arm6= 4/boot/dts/amlogic/meson-gxbb-kii-pro.dts index 6d8cc00fedc7..9bfdb54d912a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts @@ -6,21 +6,22 @@ /dts-v1/; =20 #include "meson-gxbb-p20x.dtsi" - #include #include #include + / { compatible =3D "videostrong,kii-pro", "amlogic,meson-gxbb"; model =3D "Videostrong KII Pro"; =20 leds { compatible =3D "gpio-leds"; + status { gpios =3D <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>; - default-state =3D "off"; color =3D ; function =3D LED_FUNCTION_STATUS; + default-state =3D "off"; }; }; =20 @@ -34,24 +35,8 @@ button-reset { gpios =3D <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; }; }; - -}; - - - -&uart_A { - status =3D "okay"; - pinctrl-0 =3D <&uart_a_pins>, <&uart_a_cts_rts_pins>; - pinctrl-names =3D "default"; - uart-has-rtscts; - - bluetooth { - compatible =3D "brcm,bcm4335a0"; - }; }; =20 - - ðmac { status =3D "okay"; pinctrl-0 =3D <ð_rmii_pins>; @@ -78,3 +63,14 @@ eth_phy0: ethernet-phy@0 { &ir { linux,rc-map-name =3D "rc-videostrong-kii-pro"; }; + +&uart_A { + status =3D "okay"; + pinctrl-0 =3D <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names =3D "default"; + uart-has-rtscts; + + bluetooth { + compatible =3D "brcm,bcm4335a0"; + }; +}; --=20 2.34.1 From nobody Fri Sep 12 10:47:57 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 145C1C636CD for ; Fri, 10 Feb 2023 12:28:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbjBJM2h (ORCPT ); Fri, 10 Feb 2023 07:28:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231623AbjBJM2c (ORCPT ); Fri, 10 Feb 2023 07:28:32 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09C15735A5; Fri, 10 Feb 2023 04:28:30 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id j23so4959277wra.0; Fri, 10 Feb 2023 04:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=glqZSh8z1DjmHlU5auQAlpkpEjpKVs3OPkg4NeOXn1M=; b=apR+vpK19609mIwWsOVMpmcME0xNCu1tzifaKj/fHrxo5zHyutgJvE/y1iksbrWioU 7Eu/iZKcemFG1ii7R1VX7st0jR/wDAKE2UCdb6vqQWagGCzGDjsbVKSzbPZ7+plD7EN1 13gXeoHDz43EwIy/2hdWMgBAzEhTPJNo1wg3M3V6e9j+TtxlGGqFGtqXaLquELtkKbRc W1eAy/AtonsgvrUOJA+9JzkHrgiQ4UJsi8WKuDNub6aNo1HN6Pxn/uqc7v05T8JqNWmO wEwnEdRLZRReVNWt7hVuzSLTVtWXQQJJRGVQ9hf4vvr5CUFMlbql4QkfcF4uFFthQNYD dQaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=glqZSh8z1DjmHlU5auQAlpkpEjpKVs3OPkg4NeOXn1M=; b=iNEQB56eM4aTv6Gys28pO10SuyPaPesfhNuQBZOGrWezCO0LHsK7AL7lsZ9AFmPygf d9u0nY/UYWnldB2xtxof5RkJHbPq22+qhSRVdJ3qAP8cBKn2UFP7vpylk+mdXMkdKIMD sagsqetI9ozee5PKxG+cC5anCRYALJB5iW0mga7Jf0hW85BP0ReWhR1PPGJubHhvaXrE oIUTFFg9K9UfXHwev5RZvB+iGIq678uMhIXhmn/s4RypCJAGycLFDtX61rOOMgsgByM9 qIVlybFAGQ6WfOGL9/8mL+UVhJbDQ6Scrfqrp3N29Ye5VxZ8/RLejEcyaGh8nQHpRqz0 a6Ng== X-Gm-Message-State: AO0yUKVgbM3FHX62trBfWczVnfgZF5AqYeLYBDffRV9mR+31aRNoXvEU 9qbpLb8QPlRZktKdtAyc6GU= X-Google-Smtp-Source: AK7set/+DWrghsFar9DtLynYL/yBNRLOaDwUQHTKmG8xM5HBuG5OrBk4olLnD9KJF9UuRbz0+Pq6zg== X-Received: by 2002:a5d:4852:0:b0:2bf:d610:e49 with SMTP id n18-20020a5d4852000000b002bfd6100e49mr11802874wrs.16.1676032109400; Fri, 10 Feb 2023 04:28:29 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id i8-20020a5d4388000000b002c5493a17efsm1540989wrq.25.2023.02.10.04.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 04:28:28 -0800 (PST) From: Christian Hewitt To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt , Ferass El Hafidi Subject: [PATCH 2/3] arm64: dts: meson: gxbb-kii-pro: complete the bluetooth node Date: Fri, 10 Feb 2023 12:28:16 +0000 Message-Id: <20230210122817.1027765-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230210122817.1027765-1-christianshewitt@gmail.com> References: <20230210122817.1027765-1-christianshewitt@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add missing content to the bluetooth node to align it with the content used in (all) other GXBB dts files. Signed-off-by: Christian Hewitt Tested-by: Ferass El Hafidi Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts b/arch/arm6= 4/boot/dts/amlogic/meson-gxbb-kii-pro.dts index 9bfdb54d912a..435ae2aa404e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts @@ -72,5 +72,10 @@ &uart_A { =20 bluetooth { compatible =3D "brcm,bcm4335a0"; + shutdown-gpios =3D <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios =3D <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>; + max-speed =3D <2000000>; + clocks =3D <&wifi32k>; + clock-names =3D "lpo"; }; }; --=20 2.34.1 From nobody Fri Sep 12 10:47:57 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E063FC05027 for ; Fri, 10 Feb 2023 12:28:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232210AbjBJM2m (ORCPT ); Fri, 10 Feb 2023 07:28:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbjBJM2f (ORCPT ); Fri, 10 Feb 2023 07:28:35 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A527359C; Fri, 10 Feb 2023 04:28:33 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id ba1so4911292wrb.5; Fri, 10 Feb 2023 04:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aW+Xc6jE1tZtkbSgroI6jR5Bd20w7LEpIgHknzDS1U8=; b=nWAYKV6nPw+ZVJ5IpixaLlHAfGLDGphE6F1LQ3m9IFP3j+y+uWtoutMtVXS33MQ0ss 8F1M+67S6rl+ysrnS472YxWaKk5cjH/I7A2unp2HbrdNdV42D0rb1y5Dd9MucYtQmIeR 73+jlFoMcp2/eeF+vXvktxkbOyZAj2RfOdNM9qfmuU3nCJjTBueK6GLqdXD7YUtk02Kq ztEPDa5hmAoW0EG3n4hpfxgDkKCAErU+aVXQwXH1Kdt0sRN4TRJpfIHqqDcFkQffkjFw bLDl/XA1Vn3Y9oiDRrLQwIYD52/RoG55WkS3d5HZqzHdL48lAyM/cmqfpf/PSNFISeMD XtOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aW+Xc6jE1tZtkbSgroI6jR5Bd20w7LEpIgHknzDS1U8=; b=3LcoYs+1JmPL7tLkzgg3LF1E1jsvrDfYsA5asYjyA9XVdgo8Q6wQDzH9RIc3jzhIQE IUHuiaxlzp4CG1F/SFOzgPK0Z/ZIZWGB7f//Oo0ZY3Fn+dB1a5tEvwtcAqULvzANnmSm Wcjndtme8ca3aTKA5qkitMoqAyM+ty4Dl/50Q6T4wa3Lqmu9jg6ThQJzUO2G0SatMomK 3hTZon2RzMHJJ0r0BE9AdR/Ph9qbT6TSreTYkm3O1V3PIuFqlrXXKXOi0wpkx4d7y2Ib sHadqS4uCckkIyiDu3RFnkExXvJC5XRRijqThmBbyOHDIWGuhYZQHsySeUOuuD3fxl9o zmMg== X-Gm-Message-State: AO0yUKXAi9PgFh63JW2Wg8sW4t6zJlt3h4O7pn3y8O0RZDfjL5BVU92Q 51ATW2hQL4h7szWfHY/RAUQ= X-Google-Smtp-Source: AK7set+PSi1B1Ua/z60ldCA3JTes+hrolioO/IoKIlJPVXaE3QlJnMPN2LC35dlx3CQ9jKmN23Wn3w== X-Received: by 2002:adf:ef84:0:b0:2bf:bac7:30d4 with SMTP id d4-20020adfef84000000b002bfbac730d4mr14227649wro.53.1676032112223; Fri, 10 Feb 2023 04:28:32 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id i8-20020a5d4388000000b002c5493a17efsm1540989wrq.25.2023.02.10.04.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 04:28:31 -0800 (PST) From: Christian Hewitt To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt , Ferass El Hafidi Subject: [PATCH 3/3] arm64: dts: meson: gxbb-kii-pro: add initial audio support Date: Fri, 10 Feb 2023 12:28:17 +0000 Message-Id: <20230210122817.1027765-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230210122817.1027765-1-christianshewitt@gmail.com> References: <20230210122817.1027765-1-christianshewitt@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add initial support for HDMI and S/PDIF audio output. Signed-off-by: Christian Hewitt Tested-by: Ferass El Hafidi Reviewed-by: Neil Armstrong --- .../boot/dts/amlogic/meson-gxbb-kii-pro.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts b/arch/arm6= 4/boot/dts/amlogic/meson-gxbb-kii-pro.dts index 435ae2aa404e..b6ee76011d82 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts @@ -9,11 +9,19 @@ #include #include #include +#include =20 / { compatible =3D "videostrong,kii-pro", "amlogic,meson-gxbb"; model =3D "Videostrong KII Pro"; =20 + spdif_dit: audio-codec-0 { + #sound-dai-cells =3D <0>; + compatible =3D "linux,spdif-dit"; + status =3D "okay"; + sound-name-prefix =3D "DIT"; + }; + leds { compatible =3D "gpio-leds"; =20 @@ -35,6 +43,59 @@ button-reset { gpios =3D <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; }; }; + + sound { + compatible =3D "amlogic,gx-sound-card"; + model =3D "KII-PRO"; + assigned-clocks =3D <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>, + <&clkc CLKID_MPLL2>; + assigned-clock-parents =3D <0>, <0>, <0>; + assigned-clock-rates =3D <294912000>, + <270950400>, + <393216000>; + status =3D "okay"; + + dai-link-0 { + sound-dai =3D <&aiu AIU_CPU CPU_I2S_FIFO>; + }; + + dai-link-1 { + sound-dai =3D <&aiu AIU_CPU CPU_SPDIF_FIFO>; + }; + + dai-link-2 { + sound-dai =3D <&aiu AIU_CPU CPU_I2S_ENCODER>; + dai-format =3D "i2s"; + mclk-fs =3D <256>; + + codec-0 { + sound-dai =3D <&aiu AIU_HDMI CTRL_I2S>; + }; + }; + + dai-link-3 { + sound-dai =3D <&aiu AIU_CPU CPU_SPDIF_ENCODER>; + + codec-0 { + sound-dai =3D <&spdif_dit>; + }; + }; + + dai-link-4 { + sound-dai =3D <&aiu AIU_HDMI CTRL_OUT>; + + codec-0 { + sound-dai =3D <&hdmi_tx>; + }; + }; + }; +}; + +&aiu { + status =3D "okay"; + pinctrl-0 =3D <&spdif_out_y_pins>; + pinctrl-names =3D "default"; }; =20 ðmac { --=20 2.34.1