From patchwork Wed Mar 31 15:56:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ivan Uvarov X-Patchwork-Id: 12175661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40002C433B4 for ; Wed, 31 Mar 2021 15:58:25 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D86C561005 for ; Wed, 31 Mar 2021 15:58:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D86C561005 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cognitivepilot.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=VgKyOxf29VQIl9FtuxSyyoZwoziNVKElQ3tFS0q3I+c=; b=cErhqY7Jb9ZmWWVRgGVNb/gPFr XTJaUjmmVyS6PvbGj+ZVXlYLLO3rzuw1COL1oW5Nch5rkHs/+EuLTWYOLbnXX59wqetsr/eJfXn8E akIBY1PvT2r6bUDG6lh681+nINp4Pc/ZLtjN9bJlfUtv5bYSD6YeJWUVCsi5R7yDnVMNhEwmvuFZi udgMyIKPRmPtEwJIvLdIi5rdr6W3Br4/dGKa5HIcFEgRrV6hR9kLo+baSx6gc7KVAoYj+gJWIQQCS W3rbm9PZWKTp+ggDuzmpwRg6AEao1EMLQau7Jr+MwKrA3NOQ1xxxKqdCw0ho4Hq0hH3ErQdHL7E2i ASUHmaxw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRdDB-006z63-9z; Wed, 31 Mar 2021 15:56:53 +0000 Received: from mail.cognitivepilot.com ([91.218.251.140]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRdCm-006z0f-DH for linux-arm-kernel@lists.infradead.org; Wed, 31 Mar 2021 15:56:31 +0000 Received: from mail.cognitivepilot.com (localhost [127.0.0.1]) by mail.cognitivepilot.com (Postfix) with ESMTP id 4F9WBp6HvFzpnMxm for ; Wed, 31 Mar 2021 18:56:18 +0300 (MSK) X-Virus-Scanned: amavisd-new at cognitivepilot.com Received: from mail.cognitivepilot.com ([127.0.0.1]) by mail.cognitivepilot.com (mail.cognitivepilot.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CWBn8xUf6EpB for ; Wed, 31 Mar 2021 18:56:17 +0300 (MSK) Received: from localhost.localdomain (unknown [185.68.147.27]) by mail.cognitivepilot.com (Postfix) with ESMTP id 4F9WBn1XvyzpQPL6; Wed, 31 Mar 2021 18:56:17 +0300 (MSK) From: Ivan Uvarov To: devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Jernej Skrabec , Maxime Ripard , Rob Herring , linux-arm-kernel@lists.infradead.org, Andre Przywara , Icenowy Zheng , Ivan Uvarov Subject: [PATCH v3 0/4] add devicetree for Forlinx FETA40i-C & OKA40i-C Date: Wed, 31 Mar 2021 18:56:12 +0300 Message-Id: <20210331155616.793550-1-i.uvarov@cognitivepilot.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-20210331_165628_627958_B339A2CE X-CRM114-Status: GOOD ( 15.78 ) 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 This patch series adds devicetree support for the Forlinx FETA40i-C SoM and OKA40i-C carrier board/devboard. The FETA40i-C is an "industrial/automotive" SoM by Forlinx. SoM specs: - SoC: R40 or A40i - PMIC: AXP221S - RAM: 1GiB/2GiB DDR3 (dual-rank) - eMMC: 8GB, - Mates with carrier board via four 80-pin connectors (AXK6F80337YG). OKA40i-C is a carrier board by the same manufacturer for this SoM, whose main purpose is as a development board with a variety of peripherals: - Power: DC5V barrel or USB OTG or 4.2V Lipo battery - Video out: HDMI, TV out, LVDS - WiFi+Bluetooth: RL-UM02WBS-8723BU-V1.2 (802.11 b/g/n, BT V2.1/3.0/4.0) - Ethernet: 10/100Mbps - Storage: µSD, fullsize SD, eMMC (on SoM), SATA - USB: 3 x USB2.0 Host (2 via hub, 1 native), 1 x USB2.0 OTG (micro-B) - UART: RS232, RS485, 4 3.3v uarts (of which 2 have RTS/CTS) - Other I/O: SPI x2, TWI, SDIO header, GPIO header, JTAG header - Mini PCIe slot with sim holder for WLAN modem - Smart card holder - RTC (RX8010SJ) - Two user LEDs - Three user buttons (via KeyADC). Of the board features listed above, support for the following has *NOT* been tested: - TV out & LVDS - SATA - Smart cards - KeyADC buttons (no support) The series consists of four patches, the first three of which are mutually independent (although patch 2 may refuse to apply without patch 1). The last patch depends on patches 2 and 3. Signed-off-by: Ivan Uvarov --- Changelog: v2 -> v3: * add compatible string for the SoM * move regulators aldo3, dcdc{2,3,5}, eldo{2.3} to the SoM .dtsi v1 -> v2: * split patch into series * edits to sun8i-r40.dtsi are now in separate patch * add dt bindings for compatible strings (in separate patch) * add /omit-if-no-ref/ to the new uart pin nodes * preliminary patch adds the keyword to existing nodes for UART0 & UART3 * whitespace fixes as suggested by checkpatch.pl draft2 -> v1: * fix indentation from spaces to tabs; * remove commented properties and other extraneous comments; * enable uarts 2,4,5&7 and alias uart3; * update the user-LED bindings; * remove mmc1 & add mmc3 binding; * bring together the max/min microvolts on three regulators; * The reported 2.5v value in ALDO2 comes from U-Boot, where apparently this is the KConfig default for this regulator. The correct voltage is 1.8v. * remove extraneous `always-on`s from regulators dldo1 and eldo2/3; * remove reg_dldo3 node entirely. Ivan Uvarov (4): ARM: dts: sun8i: r40: add /omit-if-no-ref/ to pinmux nodes for UARTs 0&3 ARM: dts: sun8i: r40: add pinmux settings for MMC3 and UARTs 2,4,5&7 dt-bindings: arm: add compatible strings for Forlinx OKA40i-C ARM: dts: sun8i: r40: add devicetree for Forlinx FETA40i-C & OKA40i-C .../devicetree/bindings/arm/sunxi.yaml | 6 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-r40-feta40i.dtsi | 106 +++++++++ arch/arm/boot/dts/sun8i-r40-oka40i-c.dts | 203 ++++++++++++++++++ arch/arm/boot/dts/sun8i-r40.dtsi | 43 ++++ 6 files changed, 361 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-r40-feta40i.dtsi create mode 100644 arch/arm/boot/dts/sun8i-r40-oka40i-c.dts