From patchwork Tue Oct 25 14:59:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 13019409 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02C61C38A2D for ; Tue, 25 Oct 2022 15:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pgFfmts0kaRTZtHRRm9l6iWtcnStTFwNEhOkm2rnp5k=; b=MLGr9qdlIS5F6g SCwKYd7ThKboctfc5+51rTMCZo/AiecEud8yG2TJayYoPGZAY5nEWEICtXBcKpAol2pRihxn+Kl5x rOd924xgDDNrYeeQfmCv1RRs93GNuqp5WTuenuFIkDZBTAtlD+FntqM5JZCtUQmvqrDL1ErPG9GN7 AZE+tgd8h9bAntcIivBoQFvfW+MqlPsvD/yI6GaNrB7Td8lUmjflQ+15uZNanAC9TokmM+vvnoISH 7BwkLd6MP6p1TQRhhYsJZFvRe25bFGOesU0GGZAn3W5aylmeLsUFFrndSdLp19hwgAVxHrdsWsZH9 E3357X7EiAhOj/HyoCwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onLP5-005wgf-4P; Tue, 25 Oct 2022 14:59:43 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onLOs-005wcd-Tv for linux-arm-kernel@lists.infradead.org; Tue, 25 Oct 2022 14:59:32 +0000 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 810F2D6E; Tue, 25 Oct 2022 07:59:24 -0700 (PDT) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B312B3F71A; Tue, 25 Oct 2022 07:59:16 -0700 (PDT) From: Andre Przywara To: Jernej Skrabec , Samuel Holland , Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, soc@kernel.org, Icenowy Zheng , =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Subject: [PATCH 0/3] ARM: dts: Add Lctech Pi F1C200s board support Date: Tue, 25 Oct 2022 15:59:06 +0100 Message-Id: <20221025145909.2837939-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221025_075931_049680_8577C34A X-CRM114-Status: GOOD ( 13.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, The Lctech Pi F1C200s is a small development board with the eponymous Allwinner SoC. It ships with SPI NAND flash, but I couldn't get that to work: ============ spi-nand spi0.0: unknown raw ID 00000000 spi-nand: probe of spi0.0 failed with error -524 ============ I leave in the DT node anyway (minus partitions), matching the schematic. The boards has two USB-C ports, one of which is connected to a USB serial adapter chip. Since the other one (connected to the MUSB controller) lacks any CC pin connections, I need to fix the OTG role here, and went with peripheral. Forcing host mode worked as well, but requires a separate power supply (although the other USB port works for that as well). The board was apparently also sold under the "Cherry Pi" brand before. Patches 1 and 2 add the required DT bindings for the vendor and board name strings, patch 3 adds the .dts file. Please have a look! Cheers, Andre Andre Przywara (3): dt-bindings: vendor-prefixes: add Lctech name dt-bindings: arm: sunxi: add compatible strings for Lctech Pi ARM: dts: suniv: Add Lctech Pi F1C200s devicetree .../devicetree/bindings/arm/sunxi.yaml | 6 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/suniv-f1c100s.dtsi | 5 ++ arch/arm/boot/dts/suniv-f1c200s-lctech-pi.dts | 80 +++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 arch/arm/boot/dts/suniv-f1c200s-lctech-pi.dts