From patchwork Thu Sep 22 10:12:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 12984918 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 B92E1C6FA82 for ; Thu, 22 Sep 2022 10:14:44 +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=tmT6aLbbbLH7buPm95bv87DQOjx/bhLnM/XMzkD+j0o=; b=hZ6771c8DlGBNl L4k8EEuqDTq6IgfaATpzjJLYccjUdftI41nxGR7FWn/W2oQwPdF2InzkAfYUBbp8gJ2ezHZ95DtST w2QasjUbJQaAXO4EEHyOFXwVOcUkc6le0v0TkU88PvsWRtuH9NxMt6gLgALAIfpJu5qOAEzl0jXxr QYiWQ3nwlcGnq/pffMXh6BPhQiwrOm5RNXgnRIZL1ZTlHSxXV3ixCRb4S8vdIOcU+4vmo1g/0RBNy yj7hMcEDwYOZ3lMvMNZb2sBd3+ETR06fbCb+B0MbrAlyRAvZm4qZJr993DZUKTxauYIXI0Eh0fBSf OeCVGLBX6sVVZYdR45Jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obJD1-00EqxC-7h; Thu, 22 Sep 2022 10:13:31 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obJCL-00EqYB-Qp; Thu, 22 Sep 2022 10:12:51 +0000 Received: (Authenticated sender: foss@0leil.net) by mail.gandi.net (Postfix) with ESMTPSA id 3B4D64000C; Thu, 22 Sep 2022 10:12:37 +0000 (UTC) From: Quentin Schulz To: Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, dmitry.torokhov@gmail.com, klaus.goger@theobroma-systems.com, foss+kernel@0leil.net, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Quentin Schulz Subject: =?unknown-8bit?q?=5BPATCH_0/3=5D_add_support_for_Theobroma_Systems_?= =?unknown-8bit?q?PX30-=C2=B5Q7_=28Ringneck=29_with_Haikou_devkit?= Date: Thu, 22 Sep 2022 12:12:08 +0200 Message-Id: <20220922101211.3215888-1-foss+kernel@0leil.net> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220922_031250_073626_3DAD696E X-CRM114-Status: GOOD ( 13.01 ) 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 From: Quentin Schulz The PX30-uQ7 (Ringneck) SoM is a µQseven-compatible (40mmx70mm, MXM-230 connector) system-on-module from Theobroma Systems[1], featuring the Rockchip PX30. It provides the following feature set: * up to 4GB DDR4 * up to 128GB on-module eMMC (with 8-bit 1.8V interface) * SD card (on a baseboard) via edge connector * Fast Ethernet with on-module TI DP83825I PHY * MIPI-DSI/LVDS * MIPI-CSI * USB - 1x USB 2.0 dual-role - 3x USB 2.0 host * on-module STM32 Cortex-M0 companion controller, implementing: - low-power RTC functionality (ISL1208 emulation) - fan controller (AMC6821 emulation) - USB<->CAN bridge controller * on-module Espressif ESP32 for Bluetooth + 2.4GHz WiFi * on-module NXP SE05x Secure Element [1] https://www.theobroma-systems.com/som-product/px30-%C2%B5q7/ The Haikou devkit has a switch "button" which allows to force the BOOTROM to load the bootloader from SD card instead of trying first from eMMC. The state of the switch is exposed to userspace via a GPIO but there's currently no support for such an event, thus it is added in the first patch of this series. The Espressif ESP32 support is not added in this patch series as there'll be some challenges around the Device Tree bindings that will require its own patch series and discussion. MIPI-DSI/CSI "consumers" will come later with an adapter board once it is designed. Cheers, Quentin Quentin Schulz (3): Input: add `SW_BOOT_ALT` arm64: dts: rockchip: add PX30-µQ7 (Ringneck) SoM with Haikou baseboard dt-bindings: arm: rockchip: add Theobroma Systems PX30-µQ7 (Ringneck) with Haikou .../devicetree/bindings/arm/rockchip.yaml | 5 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/px30-ringneck-haikou.dts | 239 ++++++++++++ .../boot/dts/rockchip/px30-ringneck.dtsi | 347 ++++++++++++++++++ include/linux/mod_devicetable.h | 2 +- include/uapi/linux/input-event-codes.h | 3 +- 6 files changed, 595 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts create mode 100644 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi