From patchwork Mon Feb 21 19:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 12754062 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 3FD56C433EF for ; Mon, 21 Feb 2022 18:52:09 +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=Iq8l6MXbBsQsXq99tVkf2x9HI/LkLsarMDKjF7DkHTs=; b=pYSQL0cgbYs2/I BZKKzF2hlnoAY5nZz6s00rQ3HJgAQwgFmz7Hi+jtQBW12JV89M83GoPU3KYQ1o9/U9Jfe4POezqwP mKNdpToW2MwZk1+4IZZg13kMiGYIYharS5j/h9vLKJVD0VQEYDD4fx9/B+GymPVhQCZTU13X2k2Yo iG03tn8kayQGTnHv9XtrRP7G1kMmVrk91YCrtRip2QPo4r1HL6JISitZbTIcWIpCMeo7lDjBsB7bA 3aPmazYmKvn/maamdYZHjam+j30DHaYP61DBs95N+OIIW0vY9ZWUmDBIJWtUqzcWDyxru9VBpsXzc 1hVI5zd1RR86P3O7fIzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMDlu-0070sy-LO; Mon, 21 Feb 2022 18:50:54 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMDlq-0070sE-Km for linux-arm-kernel@lists.infradead.org; Mon, 21 Feb 2022 18:50:52 +0000 Received: by mail-ej1-x62b.google.com with SMTP id r13so12516975ejd.5 for ; Mon, 21 Feb 2022 10:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pQO7ydSB+50ZXan7KxUTGPR/+jBW3P05AbbyHsGBMKY=; b=MiHsA54rwzT6JJTQGupn68fWrBjqzaF61BiDr8rHkbH8QnbpbyoSumktR8sO1QRCAB rHx0ANh1OECLZVHur9t8k0XntOogV7eF9VuSxKFYr0mMHGW2wrtdXOMkVBA17kUF90uG WCqFo64y0vxipTMMEqbJyuju4cXFzaOdjwmEQ7Xl6MN59qjfPGDH0GevCTfV7h6yMHek hUMtbqmH/FAp2hddDV0GFA1qFdZ50bUfGUC8+0q2dzGGqb0++0jEsAVMOzTcibVCIQID ClDxidSt//yLe33TJ3qg80pzV28dqw568vxbEOiLWGiBgfT6NXAki/66ybGN0ghiUrh2 nZ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pQO7ydSB+50ZXan7KxUTGPR/+jBW3P05AbbyHsGBMKY=; b=MNwL3uQasBNQuyN+x1PoJe45xhleT+rYMA119yOg4DpzBSqhYMsrzbAkL6p/zUFp3Z NnzNVkcUA4ReRgrPM1jqimyp5QNzWYfCwgXl0Qc6TwHoGuf0yTXCd2fLkDKnGvdqce4u CgCD5dtL1TctubucbMN5GCDPrS2Fjxm33+FGQJIw68tZ8BrZfELtwr7Jkk1VCcLkuoUm LjvlILpNUeARgfMXnL1F0A1+40iIm0AT+s+TZnVzpZ1BS6NortO0BcUTWfB+QnzgE/as FHCEEvXMQW7hu9aWD5K5WMr5m7Gn20zYluY4K9as3ywHi+TdaK3n8ipI+IcciweSfyKf W3+A== X-Gm-Message-State: AOAM532jeqKfVE0/DtVHP5dR+eO4AEHKSI0RcwsDRxIPwd1QLlFGC3i9 A+Ax0wI2mB59uP3xH5BA0qw= X-Google-Smtp-Source: ABdhPJzFGoAnbg9Tir3q3AwivZ1RtHXAgpklM0kqVF+wy/ZDxtkkjMKtPZ8fHxt6/8Tr65w8HfFw/A== X-Received: by 2002:a17:906:a057:b0:6cf:2736:ba65 with SMTP id bg23-20020a170906a05700b006cf2736ba65mr16575265ejb.171.1645469447972; Mon, 21 Feb 2022 10:50:47 -0800 (PST) Received: from localhost.localdomain ([2a02:ab88:368f:2080:5d6e:322:57b6:5f03]) by smtp.googlemail.com with ESMTPSA id 23sm5334497ejg.209.2022.02.21.10.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 10:50:47 -0800 (PST) From: David Virag To: Cc: Sam Protsenko , phone-devel@vger.kernel.org, David Virag , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/1] Initial Samsung Galaxy A8 (2018) support Date: Mon, 21 Feb 2022 20:49:55 +0100 Message-Id: <20220221194958.117361-1-virag.david003@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220221_105050_709098_40459102 X-CRM114-Status: GOOD ( 19.37 ) 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 Add basic initial support for the Samsung Galaxy A8 (2018) smartphone. This phone is also known as "jackpotlte" and under the model name "SM-A530F". In its current state this should work on most if not all Exynos7885 phones/devices released. As of now, it supports I2C nodes (all disabled by default) and UART console with basic clock support in place. To access the UART console on the A8, there are two methods: -You can open up the device and solder directly to some debug pins close to the display connector. -Through I2C you can set the S2MU004 MFD chip to multiplex the SoC's UART lines to the d+ and d- on the USB Type-C port of the device. Note that UART works on 1.8 volts, so plugging in a normal USB cable while multiplexed to UART may fry the SoC. Everything was tested through UART by using a minimal driver that sets the S2MU004 to multiplex UART. The preferred way to boot this device is by using my Minimal S-Boot Wrapper [1] to work around some issues caused by the stock, and non-replacable Samsung S-Boot bootloader. Changes in v2: - Added R-b tags by Krzysztof Kozlowski - Moved dt-bindings patches to the beginning of the series - Fixed double : in 7885 CMU bindings - Fixed multiple double line breaks - Made Exynos850 and 7885 clock drivers share some code in a new patch - Lots of dts/dtsi fixes Changes in v3: - Fix SPDX comment style in clk-exynos-arm64.h - Fix typo in dts comment Changes in v4: - Fixed leading 0x in clock-controller nodes - Fixed missing headers in clock driver patches - "__SAMSUNG_CLK_ARM64_H" -> "__CLK_EXYNOS_ARM64_H" in clk-exynos-arm64.h everywhere (only the comment at the end had the latter by accident) - Added R-b tag by Krzysztof Kozlowski to pll1417x patch - Actually suffixed pin configuration node names with "-pins" - Seperated Cortex-A53 and Cortex-A73 PMU Changes in v5: - Only kept DTS patch as the rest have been merged. - Several fixes in DTS patch Changes in v6: - DTS patch fixes - Rebased on top of linux-next [1] https://github.com/VDavid003/minimal_sboot_wrapper David Virag (1): arm64: dts: exynos: Add initial device tree support for Exynos7885 SoC arch/arm64/boot/dts/exynos/Makefile | 9 +- .../boot/dts/exynos/exynos7885-jackpotlte.dts | 92 ++ .../boot/dts/exynos/exynos7885-pinctrl.dtsi | 855 ++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos7885.dtsi | 423 +++++++++ 4 files changed, 1375 insertions(+), 4 deletions(-) create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos7885.dtsi