Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4432497pxb; Mon, 21 Feb 2022 21:26:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJCOoXbfbMDexuqln0cDWiISNbPsPuYG2u9eM3wqJzRX4PuinoUpZ4ZWs9S7iFyx29fhMr X-Received: by 2002:a17:902:f54a:b0:14f:47:a452 with SMTP id h10-20020a170902f54a00b0014f0047a452mr21695572plf.87.1645507618339; Mon, 21 Feb 2022 21:26:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507618; cv=none; d=google.com; s=arc-20160816; b=WMwJe2UjgwjDyLXFcqRggcrWoFacTe1GYicjLfgTcn9uXgK0rJFE4TjePTujBN8HeL dgNLYqOPXW9JgH+hZKvY6F4idqacKtSy8ZeCuc++kKSHoxrEgB03VQ6T2HOqdVLKZs32 jD93yKDWYHN/ItQEhHOOZRnUa8lMwE99G99doJmWvWxU88IblDsBkXo5wVSo19MJ4lDe HxNnTDlF55tPI6fHqjAW/VITmQyht5HXtsItLNp8pfEkbR9hAmLfV8vwdg8iTxlGa3b0 394kbyO44ZXy4GbT5/ve+E+/T/oo8xG5L+Y7uvtB001giflVRiQ1fZucPP1nBc6eHJ3/ aleA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=pQO7ydSB+50ZXan7KxUTGPR/+jBW3P05AbbyHsGBMKY=; b=uZgNcFpy1mhjgfgtsWTXUw1w5nfBInDSq5vbzynT6b5U6EkbyNCEiuivmOzHfyGFf6 Mw9lPfGzy91IDIaWs9O1XAeX5p+Rxw9YpVkjGNKtg0k8Syw4Q6O1GltprpcQ1/8xvlet oOoFtQesWXSFq1YbOs7Mq5DedI7uBG2w6CzhPY0C0bqkMKGzVWG/iyEja4vfm1mKIcRT QLr7KE6Aon3t+ZqAT//W1gk5bk5l5ch5EwPEKVxAJglTIz7hLIjziYgyNUYo1XCWWEDD 0DYbsgpkU4nrntiGUU5XB+rre1CMqrqDcOKaxXU1bU0WJH9bTR0TYYDyrFPG2yT4b7Gv cBkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=MiHsA54r; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f16si5650790plr.216.2022.02.21.21.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:26:58 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=MiHsA54r; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93ED0EB8; Mon, 21 Feb 2022 20:56:50 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbiBUSvt (ORCPT + 99 others); Mon, 21 Feb 2022 13:51:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233873AbiBUSvN (ORCPT ); Mon, 21 Feb 2022 13:51:13 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F7FF195; Mon, 21 Feb 2022 10:50:49 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id p15so35461872ejc.7; 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=XZPXr4sBKY2JsojxLG0WzQZWqO22FhXiOHp1HYrAD0rUnjgu99MPNdZdxZzV0xldWT xOEIdAcLODMAyRBnRMfadsyZ9jQTpr+tEWY4DQpPYJoazWDWn3v9Z935qcKMyfQdDqWA ugUWFzhhayp51kYMoARWi4PV/2TJu0iPsoLr/jhpmsgkTkztUllCzwIdzGz5S8T0oTH9 /LVDDGJ0OiJuM5TNVB1xM+jnvZi0q3w5kYleX27relohuYm0VV2YjEiHYsnRagfyki11 JtnYyOn1gsVcL50WTVraFzOJjg55p7iJKaaJCbNJVz2jtAtW8T+D+UezR0GEoN2t1Pg7 ec2A== X-Gm-Message-State: AOAM5331LodJMkV9bOSMQqPvKNTDE1yLPQVytc+uPMpYyniX1tDhWyWQ uGVlBxZkbTQiqfQUAwPtm11cluMoLtCIcub8 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 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,SPOOFED_FREEMAIL_NO_RDNS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.35.1