Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp496630pxb; Thu, 20 Jan 2022 18:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHHi2hmCCAVLgSj3f1eG367yViPVI5Rhfm9GGaxB11U7c8RO3oRICb2lncj2f7YmrFlGqU X-Received: by 2002:a17:90b:3511:: with SMTP id ls17mr2315390pjb.45.1642731940331; Thu, 20 Jan 2022 18:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642731940; cv=none; d=google.com; s=arc-20160816; b=THZNDGt30ZD7FfZTuNEUO0p37KD4jkHR3yAT00Q1CQCnhjQ6Nw5rwV5p4KV4IE802M isgJwotoQZ1VovD8SjK+oAxb3ndbXhzVlKKdU+JpsFAwCcsaKJUjO5RxhmAqO5f9AAAp r64m2llXXsyPEOywONIiBhmaKrnsmL3Wjhf7UvTTTjNzwJHZfQ2+erYv2IE1gplkjFoS p00o1q+d238a//O9XOyaofYNPUyKRXKJhWfm4Rq5HwbYVyU4Y0NhnzLTX2EB1Mrm/oxQ vV3gZaon0xk6P1WW3QaYpov3Ymj727VdLGHqOhx7yFy3cD0sObfZryD/Gu1GOkcWfpCa BJ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+Hxm+2JzccdefCJ/DBlvNAX4EJt3v+TxBW2isfP1H2w=; b=GuxfAqDa7Bnutj9bbN9GGu+3ZIB1HJRPBZA82o9dmceV5kv4lTQ3dW39/YC12blFGx cxxQyGxmm+76PWffEDmP+16kKrF+QZpiISE9nMN9UJHV6diM5i1dP0+BppOXqixZjkGP 6E7JQnzOi/+flglmBOd44+FbpWpm6Y5qdX1d4xENyF/gBpOSDpMDqJY+SLw7zFPKcIH5 1vcTKMXWf+3NcW/KsM0x7Lp1OyYX0wiQsBfZPO0QLCP03n0aiM/mVq7L5ubD2yVSIems 5xg7nLacIcjAElkHnzdr9h2Se0j6bn+v21XwEy1Hkt2iXQFOQZ/byJIbP1MmXB+sGLvL UA7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@grimler.se header.s=default header.b=JVX+qQdt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si2090937pga.454.2022.01.20.18.25.28; Thu, 20 Jan 2022 18:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@grimler.se header.s=default header.b=JVX+qQdt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348500AbiARS6J (ORCPT + 99 others); Tue, 18 Jan 2022 13:58:09 -0500 Received: from h03mx16.reliablemail.org ([173.236.90.20]:61467 "EHLO h03mx16.reliablemail.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348089AbiARS6J (ORCPT ); Tue, 18 Jan 2022 13:58:09 -0500 X-Halon-Out: 91c69fdc-7890-11ec-a67c-00163c72d6d3 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=grimler.se; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+Hxm+2JzccdefCJ/DBlvNAX4EJt3v+TxBW2isfP1H2w=; b=JVX+qQdtaUYDCp2DyxvWN7lAbI yY9GlEbvCkRkBEx3rAGp2imLdyDG5twPnqJL7enNY2uzFj03srsDh0qy079EWnkUayd8RWOBLU6S5 QDZsk3FKWm6kdUq1p8TzL0sxsYG5C/Ar59nTfPnVuE9poWZnzyxvRiP/zZg3tCxfeY3NJtBoDcIMP 0iK0vd6BwVWCzQKzSEA4pm9471lmq39qUzgL4QauPNF7xFy6Zkho0yc6vjZWG/J7BkPtM/3BjcrMW SbT+lZC6pKNNbUNVTLeu8HiWv2GCmgtMoC3eqeF9709B5MPI/DksJUNB7RxttiwoFvVN0GhZ+pBQ2 wLUyF0KQ==; From: Henrik Grimler To: semen.protsenko@linaro.org, virag.david003@gmail.com, martin.juecker@gmail.com, cw00.choi@samsung.com, m.szyprowski@samsung.com, alim.akhtar@samsung.com, krzysztof.kozlowski@canonical.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Cc: Henrik Grimler Subject: [PATCH v3 0/3] Add initial support for exynos5420-chagall-wifi Date: Tue, 18 Jan 2022 19:57:43 +0100 Message-Id: <20220118185746.299832-1-henrik@grimler.se> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpsrv07.misshosting.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - grimler.se X-Get-Message-Sender-Via: cpsrv07.misshosting.com: authenticated_id: henrik@grimler.se X-Authenticated-Sender: cpsrv07.misshosting.com: henrik@grimler.se X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Samsung's tablet Galaxy Tab S 10.5" (wifi) has codename Chagall WiFi and is one of several tablets released in 2014 based on Exynos 5420. This initial devicetree adds support for accessing device over USB or UART, and allows using a rootfs in either the internal eMMC or an external sdcard. 4 out of 8 CPUs are brought up when device boots, which is the same as on the somewhat similar board exynos5420-arndale-octa. Patch 2 is necessary after a secure-firmware node is added, otherwise device hangs during the CPU1BOOT secure monitor call. Without the secure-firmware node we are not able to bring up any secondary CPUs. Changes since v3: ================= * Rename device specific regulators LDOx -> VDD_LDOx for consistency * Make LDO32 vary with device and add on/off-in-suspend to a couple of more regulators, to match vendor kernel * Fix mmc2 card-detect, with cd-gpios defined and pin config pin-pud=pin_pull_none sdcard insertion is detected and seen in dmesg * Rename sd2-cd-pins -> mmc2-cd-pins Changes since v2 ================ Addressing Krzysztof's feedback: * chagallwifi -> chagall-wifi and Chagall WiFi in messages and comments * Re-write commit message for patch 3, use commit hash and ("subject"), move hint about bootloader issue to galaxy-tab-common.dtsi * Fix s2mps11 regulator nodes, use &ldoXX_reg handle for device customisation * Re-add usbdrd supplies (works after fixing regulator nodes) * Remove unnecessary, duplicate, compatible in galaxy-tab-common.dtsi * Remove extra clocks xxti and xusbxti * Prefix key- to gpio-keys * Add pinctrl pins to mmc_2. card-detect pin is different than for other Exynos 5420 devices, so define and use mmc2_cd node under pinctrl_0 Additional changes: * Add/fix supplies of mmc_0 and mmc_2 (vmmc-supply for mmc0 is unknown) * Sort mmc_X properties alphabetically * Fix IRQ pin for s2mps11, it was wrong (gpx3-2 -> gpx3-0) * Mark LDO31 as varying between devices as well, it differs between WiFi and LTE tablet versions * Fix typo for LDO5 (regulato-name -> regulator-name) * Remove regulator-ramp-delay from buck regulators, based on exynos5420-arndale-octa there should be no need to set it Changes since v1 ================ Fix mmc_0 and usbdrd in patch 3: * Remove extra, non supported, options from mmc_0 node * Do not set usbdrd supplies. Usb networking does not work with them specified, but it works fine with dummy regulators Henrik Grimler (3): dt-bindings: arm: samsung: document Chagall WiFi board binding ARM: exynos: only do SMC_CMD_CPU1BOOT call on Exynos4 ARM: dts: Add support for Samsung Chagall WiFi .../bindings/arm/samsung/samsung-boards.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos5420-chagall-wifi.dts | 75 ++ .../dts/exynos5420-galaxy-tab-common.dtsi | 692 ++++++++++++++++++ arch/arm/mach-exynos/firmware.c | 4 +- 5 files changed, 772 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/exynos5420-chagall-wifi.dts create mode 100644 arch/arm/boot/dts/exynos5420-galaxy-tab-common.dtsi -- 2.34.1