From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A2C843CE5C for ; Tue, 28 Jul 2026 15:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785251808; cv=none; b=HPQgMRLKVQhSD73Jcc9vCzs+6BAfF7mlKCS4qPN1tQAIpx992i1k8JSYYnylDZzhk0eg6I6l/ZrVytoeLL3JHsXdhIcOV4FmUp5sqKtIEe2nvj1HakyqhcN8Ae7dQvgBg7Jv4z4KFFVgUr3YTyb+q8uP32W+yNLsQigaef+o5Vc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785251808; c=relaxed/simple; bh=Zpf/AOcLlwqAEBJMqXfBI3Ww0n7PvZZ+fDaqtbIxm1Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=epLaPNcwj26JSOjQ5oCZGmZ0/gvZAlyFL2kOHjnIIEzxWeSmLmh/asQFOptm/KMmNjjHwREP/gY3NrNlOK40BFXGcPCvX4Wz9RQxiul2Bdpi/vRlMKd7+PWZxhvJ+QbheR2FM2TPg6v2n7rk+eIwdmLNraTu2GKpDLQfTQbF9HM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IfCs6zzU; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IfCs6zzU" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-47f904e80eeso3264061f8f.1 for ; Tue, 28 Jul 2026 08:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785251805; x=1785856605; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=7QNyWJjOlsPLUMiOSNZBEFuwctRhGOyXIhHqXv/w/08=; b=IfCs6zzUOM5FOPlGXce4m06kIoe5Bnv+Q8wMJ2/uLBNjejp5egCX06JsX16mYCASBe bLE/P9FQk9inJ8BKG8B0j3qnUBtPIHof38TyqYeSpLKpOUiaLvNGbBwmnwI/BwQCuX0g qLxDhMwMhOpcTvCrvYyCb6EbiKwRIIbLQ6ZvB63xiWnZhf57Xv1kf6HlLC6JIgrhVHF5 BORsIF2voyPB7Az7SPH8lCFAIKSwfCv+fCzTr2atSC6mKAluXZyeIDAJGinBKkacifSw vwndk7rHSFyyySigXqr94zgMNluCw+d2HJZQIkX9EMKp3epZwRnlwiyoBwhIpCNNEX4m N9Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785251805; x=1785856605; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7QNyWJjOlsPLUMiOSNZBEFuwctRhGOyXIhHqXv/w/08=; b=GXQUXsw23aKjTQIf+ja2kqSCnm7D2ptBnpnF+8GTJpagyCDXXRJafczPsE9xk7cMxq B9/HV5rqitav8656XY9WG6CfKsY7/WndJmFymxEPS4sJtoKCYqi2AXmusI2amUx+AGv2 1OndGG0eI3gedUBpy4PXIhm2jlDNjiAntoac3IH7TQUj0y7ngl59jNs6hmEU/6TLlxMB d1AYU6+HJEgBJ8q1v5ipHaP8LLT0DqfcwTgm5HiDldyt7yuMtEeck+PY2XtnDsbUWXLm K0LE0l0LDNvfSCsA7vqFWgon4/2g7EvS98chsEy5qzkhiSF9dbk0gaXYxM5ShxVd8Etn uGaA== X-Forwarded-Encrypted: i=1; AHgh+RqBUtzpbRlcT8NkLqz3A0pUlnx2sEGlZUrieIMvJ0cTlWBqIXi1OQKvo8bJH7TBSnSQ6oxWPfEQaXoPU14=@vger.kernel.org X-Gm-Message-State: AOJu0YzIvDrQmuLHTbazpAw3EUMY9Oj/kYpfwTAVt4wsJzQbgRnUrjpy MVdj+RdGYPe/f+FTAFbE2aALLd556P7qJxpJ8M/DuttL55tBexrdel1J X-Gm-Gg: AR+sD11twgqSv48vUtsONDlfQjxL+nmz1rqJfuhjiPHo4xTjtk9yY8Pvn8lWj42wzTB MeyRKcHCGdbalkiiH0jC/3uT4BTWtYZiJH/l3OQ7DFQTTM+PBoapkkYGId6RuTMpfCRrL/mavD0 3gob+noAB1rmxf9I6sA91vl2/h9QVRgHSJVSr70skQqgWIzYFRkgnjRCiRjdRO5QxJICH78LvfI N69RIsyyVQ5z6t0m5+EsO39N+PeEuoewoNToQkCH1l9s+4Kk9bq+nBkLtooxMQ68YbfsWgGMMtb r+CrDvtyp73NikA5zzDmkmLkwK9TqLkcab1kLVpzy+AXomTE5U7gqz2X8bGXZrNiGkBJ1juNnNR F0847kPZWIV97rl9P1X3Uy4O1MkQMDVvUjFqEC1C8qxMRz1ZLlPS6qL3xEF2v68cgJPkmqEVD2c 0YjZvk0nVqC61+gLpNA3m60bWwrKBwZom9jh4= X-Received: by 2002:a05:6000:430c:b0:47f:9254:d453 with SMTP id ffacd0b85a97d-47fb1ec8030mr3188995f8f.8.1785251804447; Tue, 28 Jul 2026 08:16:44 -0700 (PDT) Received: from slackboot (93-34-146-61.ip50.fastwebnet.it. [93.34.146.61]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f85c631fdsm58422500f8f.28.2026.07.28.08.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 08:16:44 -0700 (PDT) From: Alberto Robazza To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org, khilman@baylibre.com Cc: jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Alberto Robazza Subject: [PATCH v3 3/3] arm64: dts: amlogic: add support for Orbbec Zora P1 Date: Tue, 28 Jul 2026 17:16:36 +0200 Message-ID: <20260728151636.236393-4-robazzalberto@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260728151636.236393-1-robazzalberto@gmail.com> References: <20260728151636.236393-1-robazzalberto@gmail.com> Reply-To: Alberto Robazza Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Orbbec Zora P1 is an A311D (Meson G12B) board with 2/4 GiB DDR4, an Ampak AP6256 combo module (Broadcom BCM43456 Wi-Fi over SDIO and BCM4345C5 Bluetooth over UART_A). According to the original Linux dts, the board is a modded version of the ODROID-N2, with Amlogic A311D instead of the original S922X and WiFi and Bluetooth support. So the device tree builds on meson-g12b-a311d.dtsi and meson-g12b-odroid-n2.dtsi (using same vddcpu values of N2+), extended with the board-specific GPIO wiring for the AP6256 handling, and some modifications for the led, GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH and different label (it is a green led, not blue as in the Odroid N2). Add the new DTB to the Makefile. Signed-off-by: Alberto Robazza --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-zora-p1.dts | 105 ++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 57bc440fa..83fb38b94 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -40,6 +40,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-g12b-radxa-zero2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-bananapi-m2s.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-ugoos-am6.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-g12b-zora-p1.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-kii-pro.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nanopi-k2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nexbox-a95x.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts new file mode 100644 index 000000000..d003582fd --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts @@ -0,0 +1,105 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2026 Alberto Robazza + */ + +/dts-v1/; + +#include "meson-g12b-a311d.dtsi" +#include "meson-g12b-odroid-n2.dtsi" +#include + +/ { + compatible = "orbbec,zora-p1", "amlogic,a311d", "amlogic,g12b"; + model = "Orbbec Zora P1"; + + leds { + /* Status led on Zora is actually green, same pin as N2, but reversed polarity */ + led-blue { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_LOW>; + }; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio GPIOX_16 GPIO_ACTIVE_LOW>; + clocks = <&wifi32k>; + clock-names = "ext_clock"; + }; + + wifi32k: wifi32k { + compatible = "pwm-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + pwms = <&pwm_ef 0 30518 0>; + }; + + sound { + model = "ZORA-P1"; + }; +}; + +&pwm_ef { + status = "okay"; + pinctrl-0 = <&pwm_e_pins>; + pinctrl-names = "default"; +}; + +/* AP6256 Wi-Fi: Broadcom BCM43456 over SDIO. */ +&sd_emmc_a { + status = "okay"; + pinctrl-0 = <&sdio_pins>; + pinctrl-1 = <&sdio_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + #address-cells = <1>; + #size-cells = <0>; + + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <100000000>; + non-removable; + disable-wp; + keep-power-in-suspend; + + mmc-pwrseq = <&sdio_pwrseq>; + vmmc-supply = <&tflash_vdd>; + vqmmc-supply = <&vddao_1v8>; + + wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + }; +}; + +/* AP6256 Bluetooth: Broadcom BCM4345C5 over UART_A. */ +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; + + bluetooth { + compatible = "brcm,bcm4345c5"; + shutdown-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_HIGH>; + max-speed = <2000000>; + clocks = <&wifi32k>; + clock-names = "lpo"; + }; +}; + +/* vddcpu regulators same as Odroid N2+ */ +&vddcpu_a { + regulator-min-microvolt = <680000>; + regulator-max-microvolt = <1040000>; + + pwms = <&pwm_ab 0 1500 0>; +}; + +&vddcpu_b { + regulator-min-microvolt = <680000>; + regulator-max-microvolt = <1040000>; + + pwms = <&pwm_AO_cd 1 1500 0>; +}; -- 2.55.0