From patchwork Sat Mar 30 01:32:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 1918022 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-54756-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V60CS17SWz1yYF for ; Sat, 30 Mar 2024 12:33:08 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 753FB28387B for ; Sat, 30 Mar 2024 01:33:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BC121869; Sat, 30 Mar 2024 01:33:03 +0000 (UTC) X-Original-To: devicetree@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72BD515C9 for ; Sat, 30 Mar 2024 01:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711762383; cv=none; b=nZtcQ317MCb0jMw/5Cnr+syEEFyQzhfLanlaBMHgmbE7eGeV+4qq2zFB1Y/QwaiCetlV6Aqq+V08plf+5dCZGx1R5cDvevcMMUzVjDzGnWeaxYPnEfZW/T5hHYwsjLOKZYdduFJXy2Ndt484Jet++VNey5VsrY27sly9bvpy2yE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711762383; c=relaxed/simple; bh=ekNwagqEyCufCNtUolTlbriGRcBAFkOw5ZW+vUHM44s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Mj+dQNCiP5ezPNkBoFW+DifMnFJ/81nKzQ7DFvktJHECoKxJnNT06tGIC/LPnGFRENOEXYGdqtt7n65bqt3eN16aD0e7or3NCezXeDlQsg6oVsbgeKX0Ly/mKOSZ6+QH987Pca27FAwyyucRYRVzuP/B/YecAXks7hAyWSaVvBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CB135FEC; Fri, 29 Mar 2024 18:33:30 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B5C83F64C; Fri, 29 Mar 2024 18:32:56 -0700 (PDT) From: Andre Przywara To: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/2] arm64: dts: allwinner: Add Tanix TX1 support Date: Sat, 30 Mar 2024 01:32:41 +0000 Message-Id: <20240330013243.17943-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.8 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Tanix TX1 is a tiny TV box (60% of a credit card) with an Allwinner H313 SoC. This seems to be the same as the H616, just the "bad bin" version, limited to 1.3 GHz. The box has no Ethernet or SD card slot, which makes booting from it somewhat interesting: Pressing the hidden FEL button and using a USB-A to USB-A cable to upload code from a host PC is one way to run mainline. The box features a minimal set of peripherals: one USB port, 8 or 16GB of eMMC, an HDMI port and an (unsupported) SCI S9082H WiFi chip. Patch 1 adds the DT binding for the board compatible, I refrained from using the H313 name here, since it seems to be functionally identical to the H616. Patch 2 adds the devicetree. There is a blue and a red LED, both connected to the same GPIO pin, but with different polarities, so it's only either one of them enabled. I did not find a way to describe this in DT, so I omitted the red LED. Please have a look! Cheers, Andre Andre Przywara (2): dt-bindings: arm: sunxi: document Tanix TX1 name arm64: dts: allwinner: Add Tanix TX1 support .../devicetree/bindings/arm/sunxi.yaml | 5 + arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-h313-tanix-tx1.dts | 184 ++++++++++++++++++ 3 files changed, 190 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts Reviewed-by: Jernej Skrabec