From patchwork Sun Jul 16 22:05:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703710 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7E6AC00528 for ; Sun, 16 Jul 2023 22:08:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbjGPWIU (ORCPT ); Sun, 16 Jul 2023 18:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjGPWIE (ORCPT ); Sun, 16 Jul 2023 18:08:04 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5451EE1; Sun, 16 Jul 2023 15:08:02 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b701e41cd3so57737791fa.3; Sun, 16 Jul 2023 15:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545280; x=1692137280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Kbi4z5OwpHmDw3fNzdltzwmv9tZsIUUsK9ON0f/StLE=; b=MHjtVot+MLxS37P81JK1IL9KQsTVRv6tY+PcdA0A/HKUWOjaCSAB0zOPn2r1RnVPrs OshoTuSqtqQqH90Ez21GbQ3xnOeq52WhtuYd8jdtRcq3kHG5/UCOY8EhzmU+JfGXVNRQ sd9LzwNqgLm3kqLNQMDYX4f3UWzh+Vu5kpQdJxlOEGvUoMXp5bcmvQ0CDb6HRRHS2OOD zdj3fsNOAdAledXRqrjM3GbU+m91OUZQrz83mZJxyfJXq2yihpktPMquqqrEXFafQWvz OZHiaGS2MX5dd92AexqXOzNm/Rxc8Oo9oZYqPbnI/lZl8j7c6nrBlH+232GJhfZgzOuu TQmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545280; x=1692137280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kbi4z5OwpHmDw3fNzdltzwmv9tZsIUUsK9ON0f/StLE=; b=DhWyBIwQYcn3Wdt3WfDLWRQ6EA7cRLAZt8Kmjso8MlPiIi9Wfe9eyM+maLkKt2tgKe PBbyP1sena6eV6qTngx52BuEX3wYMP+dexG4v6yo7ZwMEzN8j7plRAEjb1dHD690Rtud C2J8Qew4mWwQyOuLJdXtPXicXrDorT9YUQ5Xly3GYORGcFQV1d9riYROe1OaY5dpIA1a 2ggT5S8OLK9i41aR+oGbT0yBPR2yWIe9GYm1NoDQEdmqL9Fo1ex2yZ4tusxE/Fd49qQA 2j/PWPXXGv+if7jncoVsWvDxV4V/CBWOEqZNHfjTGjsI4aXMso8BeqZY14Z4IvQjY1Kl 990A== X-Gm-Message-State: ABy/qLZ/6mfHWttcNKOM1qibuzQhpZid6rhm7imIvyhHo6PB7MDYGK2r VVEL3HtIX5/EwyoFUwERu1I= X-Google-Smtp-Source: APBJJlHX89VVhGlZFpr4YPnj5Qh5M5j38bPVFfe9FO60d7SLDNziW0bZZ18Ccs+88nFaaGPrvfOthg== X-Received: by 2002:a05:6512:b9b:b0:4fb:8680:138a with SMTP id b27-20020a0565120b9b00b004fb8680138amr7492520lfv.22.1689545280210; Sun, 16 Jul 2023 15:08:00 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:07:59 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 1/7] ARM: dts: exynos: k3g: Add WiFi card support Date: Mon, 17 Jul 2023 01:05:02 +0300 Message-ID: <20230716220644.22158-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This device has Broadcom BCM4354 WiFi card installed, which uses SDIO interface. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index c35261a338ff..1a11a6993ba7 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -48,6 +48,13 @@ tsp_vdd: regulator-tsp-vdd-en { gpio = <&gpy3 5 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + wlan_pwrseq: wlan-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpy7 7 GPIO_ACTIVE_LOW>; /* WIFI_EN */ + clocks = <&s2mps11_osc S2MPS11_CLK_BT>; /* Used not only for Bluetooth */ + clock-names = "ext_clock"; + }; }; &cpu0 { @@ -616,6 +623,23 @@ &mmc_0 { bus-width = <8>; }; +/* WiFi SDIO module */ +&mmc_1 { + status = "okay"; + cap-sdio-irq; + cap-sd-highspeed; + non-removable; + samsung,dw-mshc-ciu-div = <1>; + samsung,dw-mshc-sdr-timing = <0 1>; + samsung,dw-mshc-ddr-timing = <0 2>; + pinctrl-names = "default"; + pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>, + <&sd1_bus4>, <&wlan_reset>; + bus-width = <4>; + vqmmc-supply = <&ldo3_reg>; + mmc-pwrseq = <&wlan_pwrseq>; +}; + &pinctrl_0 { s2mps11_irq: s2mps11-irq-pins { samsung,pins = "gpx0-7"; @@ -628,6 +652,11 @@ touch_irq: touch-irq-pins { samsung,pins = "gpx1-6"; samsung,pin-pud = ; }; + + wlan_reset: wlan-reset { + samsung,pins = "gpy7-7"; + samsung,pin-pud = ; + }; }; &rtc { From patchwork Sun Jul 16 22:05:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703712 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DB9DC04A94 for ; Sun, 16 Jul 2023 22:08:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230243AbjGPWIR (ORCPT ); Sun, 16 Jul 2023 18:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjGPWIF (ORCPT ); Sun, 16 Jul 2023 18:08:05 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94D74DD; Sun, 16 Jul 2023 15:08:04 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b9338e4695so16638801fa.2; Sun, 16 Jul 2023 15:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545283; x=1692137283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iHngaqCrQ0FneY3+XbEOWJuLApZy3bmRMZLz2KpBf1c=; b=L4GI92GU6vM/1ZQXffG1IjEVmcWipHn8WGI40hwXgxkf8kvrWinRd2GroRzEj2qN0c xBuxSiY1Fo8mrcc3Ter7T7tSiuqxQHX5YX3GklL3bCI6z8eN29/rOvtw/0oSzv+XHg5h kcHxTN/flFBRJAM/w0HDVncdHSz7snH42641QDKTt3fAW77sQxIFWU9z0jsaBPwflaQU 2l4lZT7TSpTBq2QWh6Zj2FOSTP3jJl+Q+tR0j1XizpLMSgk6Y55leg4xEcO3dx5sfvcx XzmTGx6+U/BmAfqSYorOSPLZVF1NNt5peOAZ7OGi84VK3SyNVSNgV2UXynPSsvnpEGc/ 5Rrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545283; x=1692137283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iHngaqCrQ0FneY3+XbEOWJuLApZy3bmRMZLz2KpBf1c=; b=OFsiVsZ8REL7LtpYRRvs/N97cz4Jx8vWrLS4drSj1z+6whtOhH4aCkg8yZfCxt4ATX AhSb2Rw5WFZwtBDV2/r08bnt1GsTKX023kQDYnYjYIS2OLxjeDXh+TZp9zX+H+FLAvmY AyMRI6aps6s1RKhIm8JyZ5demhycwCXekJZDKnWGy0V+oBBo2qznaem4lAAfXlZigisD bedbpDcBIHTfxCJUWcuQMAUGA8/srCPJOeDtMW5bDoLRSOQU1I57M8z5+Y6XDTU0+1G9 BomSVwOK5x0e8FoZcLZu90HjtMwFebYl3VEc2+PVqGnFsV4pkqS9/aewuKxexNJBBL/H SR3Q== X-Gm-Message-State: ABy/qLbX9b7BICOOdisSFMWh01tCM3HejIP60QIhzfWCsf9B9ZhZVEt2 ecNKY+aRBedutbL8jW+NwcI= X-Google-Smtp-Source: APBJJlGWtrMFmsvq6yAnusvLwDBJwvhynCdN12nafWVo6Zc0QEnz1uUV5LT5R0XhkZ/t+4yNJpF/Sg== X-Received: by 2002:a05:6512:340b:b0:4fb:9f24:bba9 with SMTP id i11-20020a056512340b00b004fb9f24bba9mr8627430lfr.5.1689545282702; Sun, 16 Jul 2023 15:08:02 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:02 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 2/7] ARM: dts: exynos: k3g: Add GPIO keys support Date: Mon, 17 Jul 2023 01:05:04 +0300 Message-ID: <20230716220644.22158-4-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add the four physical buttons support, volume buttons have external pull-up resistors. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 60 ++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index 1a11a6993ba7..c3e006dc34ea 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include +#include #include #include "exynos5800.dtsi" #include "exynos5422-cpus.dtsi" @@ -21,6 +22,45 @@ / { aliases { mmc0 = &mmc_0; + mmc1 = &mmc_1; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&power_gpio &volume_up_gpio &volume_down_gpio &home_gpio>; + + key-volume-up { + label = "Volume Up"; + gpios = <&gpx0 2 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + debounce-interval = <15>; + }; + + key-volume-down { + label = "Volume Down"; + gpios = <&gpx0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-home { + label = "Home"; + gpios = <&gpx0 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + key-power { + label = "Power"; + gpios = <&gpx2 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; }; memory@20000000 { @@ -641,6 +681,21 @@ &mmc_1 { }; &pinctrl_0 { + volume_up_gpio: volume-up-pins { + samsung,pins = "gpx0-2"; + samsung,pin-pud = ; /* External pull up */ + }; + + volume_down_gpio: volume-down-pins { + samsung,pins = "gpx0-3"; + samsung,pin-pud = ; /* External pull up */ + }; + + home_gpio: home-key-pins { + samsung,pins = "gpx0-5"; + samsung,pin-pud = ; + }; + s2mps11_irq: s2mps11-irq-pins { samsung,pins = "gpx0-7"; samsung,pin-function = ; @@ -653,6 +708,11 @@ touch_irq: touch-irq-pins { samsung,pin-pud = ; }; + power_gpio: power-key-pins { + samsung,pins = "gpx2-2"; + samsung,pin-pud = ; + }; + wlan_reset: wlan-reset { samsung,pins = "gpy7-7"; samsung,pin-pud = ; From patchwork Sun Jul 16 22:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703978 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A282C0015E for ; Sun, 16 Jul 2023 22:08:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbjGPWIS (ORCPT ); Sun, 16 Jul 2023 18:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbjGPWIG (ORCPT ); Sun, 16 Jul 2023 18:08:06 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEEC3D9; Sun, 16 Jul 2023 15:08:05 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fdb3f66fd6so1854136e87.3; Sun, 16 Jul 2023 15:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545284; x=1692137284; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r81jEnIG0dKobw9ApVBDGGLSYHLrTY1Vn/rJeVXh+Ek=; b=PKdUz1CV9jo9/Vl8XyfmFV0P5/HI4OgUAqqLj5rYk2jrmP8LPtLyEDirpw5HxFPgLm yLwKFwx3Z2eNxPZaDkgyAwASRoo3Oocm3dITptMwmwlaMayTEKtcYW4pjSa8Or6hTgdl utwuxagKQnahiylqyYVDwwKs2zKt2yQvgE1HtgHiYZZt53tliucLFUGKIbNByACewaWe G29LbNh717A/ulqn7JSwEuXw03NiOM7EIo5TpJ3aMr7tzxbxkMRl95FWkhjjyjo+SMET jEpgphx8RT0ER99t1Vj+AHdfrKsYZDbHiF99jvTrFhoqRHrJ+7aezTfHgBcV8bbk3jWB CbSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545284; x=1692137284; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r81jEnIG0dKobw9ApVBDGGLSYHLrTY1Vn/rJeVXh+Ek=; b=Nb8p2XJf2aQu7GK0yeH9c751cGatkta95vvg8oh5dNDLr47DLPLmKvyD+naD8FtWfm Ogwses98FfpW25MJQuEkk6Hp23gkMbTClMc3kRa/LQ/nx+er1HM0hI0ndYNukZ3mRFd/ yIbXU4daYdYbVa6lnTuA8Rh+iBwQ8JaPDT0tVKYnUFBFW8fu/k9YW2rTmRre3pm0nJIl fsoNvFlVTVfGmDg9rc8dKgx0HqRqnHTvqBaxl/+jg5dUTmEQwE61KUZVl4QxWmEUox1F 9Kh2UoeRbXjAPO4UtyOUyQkbFczwIrQMtPteOcsE+2sVITmVFfR9fUMB7QtfCc1p85Wb 1R6A== X-Gm-Message-State: ABy/qLaxL06IyE+ekkr7v8z3luNaKziezmWmIZ3tKaO+NJkK4APibbfY obwpP1tlCZOaa2SY5ZU3rmA= X-Google-Smtp-Source: APBJJlEXxoR743OlBYK8yq3Reg7VLesJsMR7imUllu+BG8eMXsBzSGyyq1ts4aOscD9vUcOjKDIjqw== X-Received: by 2002:a05:6512:2214:b0:4f8:67aa:4f03 with SMTP id h20-20020a056512221400b004f867aa4f03mr7529377lfu.1.1689545283948; Sun, 16 Jul 2023 15:08:03 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:03 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 3/7] ARM: dts: exynos: k3g: Add fuel gauge support Date: Mon, 17 Jul 2023 01:05:05 +0300 Message-ID: <20230716220644.22158-5-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This device has Maxim MAX17048 fuel gauge, just like its Snapdragon counterpart. It inherits the double capacity issue. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index c3e006dc34ea..582faedd6aab 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -80,6 +80,30 @@ firmware@2073000 { reg = <0x02073000 0x1000>; }; + i2c-battery { + compatible = "i2c-gpio"; + + sda-gpios = <&gpb0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpb0 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <2>; + + #address-cells = <1>; + #size-cells = <0>; + + battery@36 { + compatible = "maxim,max17048"; + reg = <0x36>; + + interrupt-parent = <&gpx1>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&battery_irq>; + + maxim,double-soc; /* Reports double the capacity */ + }; + }; + tsp_vdd: regulator-tsp-vdd-en { compatible = "regulator-fixed"; regulator-name = "tsp_vdd_en"; @@ -703,6 +727,11 @@ s2mps11_irq: s2mps11-irq-pins { samsung,pin-drv = ; }; + battery_irq: battery-irq-pins { + samsung,pins = "gpx1-5"; + samsung,pin-pud = ; + }; + touch_irq: touch-irq-pins { samsung,pins = "gpx1-6"; samsung,pin-pud = ; From patchwork Sun Jul 16 22:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703979 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92512C00528 for ; Sun, 16 Jul 2023 22:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbjGPWIQ (ORCPT ); Sun, 16 Jul 2023 18:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjGPWII (ORCPT ); Sun, 16 Jul 2023 18:08:08 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B0BAD9; Sun, 16 Jul 2023 15:08:07 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b6ff1a637bso54690981fa.3; Sun, 16 Jul 2023 15:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545285; x=1692137285; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ugXpMr+bRzbd6kwqs4nSMZRO9LhGaT1WWKpkMn+sESs=; b=J902K7sDSU4Rt4aB4MsWvcY7K4BoVpmEOVfKM068i+rc9mkd96UlUVOF4S/Z7c5SIO d30NDPEq+6evbgh0oGShHZWunL6Mi+GlBhHkvxZnAlXhfHLG35Jh6PuKnJvqOvBwbfG1 JCEg+vg5y8ml4AtGDXo/+/S0S/QSwZYmRCVaMk5UEduEpjik0h7Fl8PUAjWTKSolNAfT eXoZujNz1peqDAWrcO9ZzCzetS9S4Xu+YeHwLxHr35g14wH1GGTQ06BdHaZU4mMhNsxX BsDTKjJJ14L0CkmBbW0Q2xFbkBzaPrxTLHhfNVVM+1+AUU8Jcpsf9yj3NOkZe8EScnV/ LJEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545285; x=1692137285; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ugXpMr+bRzbd6kwqs4nSMZRO9LhGaT1WWKpkMn+sESs=; b=NhUgVPo51445ZbyTp0TqO6eeXTHqB4XqaOnh5HlUUbvpTzSfffGr9yOKX2r3BfkFQ8 HgqhsoXD+GM9a4+t8BnVUp+7yE0Ou3Aznpdv7Hg05jrH3YfWaw6mIeQBbDT5gxXNh6XB XI6McukeBynoWFnEjvz7ItgS7zfSMc1BAOYIcz083JC/HeA5lnowZBaaVoU6JLgQhY1b SzxaY7vH3CDbDS3u+WzhYtyoumfHRq79QMW0l4g8zhT9UbWopp+oPU1jiGJmsk0cHjk8 1DG/B1sr3draBy11duHd+SXy2fBpVcHRO1hdlaA2whq1fp3eOjMMfFvMsjz6q8cRSj4A gItw== X-Gm-Message-State: ABy/qLZ1xgqujRHtLWw18h+zYZG9AKpS+I3BcZSIoDAOXeh0v0fUpzCy l6UpPSA1lRfxHrctjBNLaFY= X-Google-Smtp-Source: APBJJlFAXsafN5wXf769iQpJt4tz/9VY6FOtsLGjhkgPZIU8mp5Jeyq1oC/JxcKV8bqnZFNFtp8OOQ== X-Received: by 2002:a05:6512:3c92:b0:4fa:5e76:7ad4 with SMTP id h18-20020a0565123c9200b004fa5e767ad4mr8282328lfv.10.1689545285145; Sun, 16 Jul 2023 15:08:05 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:04 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 4/7] ARM: dts: exynos: k3g: Add touchkeys support Date: Mon, 17 Jul 2023 01:05:06 +0300 Message-ID: <20230716220644.22158-6-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This device has touch keys that are compatible with those installed on Samsung TM2 dev board. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index 582faedd6aab..b3576a745054 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -104,6 +104,33 @@ battery@36 { }; }; + i2c-touchkey { + compatible = "i2c-gpio"; + + sda-gpios = <&gpd1 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpd1 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <2>; + + #address-cells = <1>; + #size-cells = <0>; + + touchkey@20 { + compatible = "cypress,tm2-touchkey"; + reg = <0x20>; + + interrupt-parent = <&gpy7>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&touchkey_irq>; + + vcc-supply = <&ldo38_reg>; + vdd-supply = <&ldo30_reg>; + + linux,keycodes = ; + }; + }; + tsp_vdd: regulator-tsp-vdd-en { compatible = "regulator-fixed"; regulator-name = "tsp_vdd_en"; @@ -742,6 +769,11 @@ power_gpio: power-key-pins { samsung,pin-pud = ; }; + touchkey_irq: touchkey-irq-pins { + samsung,pins = "gpy7-1"; + samsung,pin-pud = ; + }; + wlan_reset: wlan-reset { samsung,pins = "gpy7-7"; samsung,pin-pud = ; From patchwork Sun Jul 16 22:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703713 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2CB6C001E0 for ; Sun, 16 Jul 2023 22:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbjGPWIQ (ORCPT ); Sun, 16 Jul 2023 18:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbjGPWIJ (ORCPT ); Sun, 16 Jul 2023 18:08:09 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 613D5E1; Sun, 16 Jul 2023 15:08:08 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b703d7ed3aso57702231fa.1; Sun, 16 Jul 2023 15:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545286; x=1692137286; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V4UUoDGd2gBkYu4LAt7ZJ7XPzzBg5mAAkXDFIcZ5WcE=; b=d/AeaEfDb+5v7QJ4fifmtKxiDhuwtPB3QvFaBu3pVpes5J3s4+Wlsmd2XCrrBp+IyF VHZfaV3JStUemmDEl0cR9lQaL69dicLUHM5h+1bD0X9nAlhcIStH63B+mqFSUVUjPxC1 oOl2gWVJLCwZ6XYeKBb+KbO28YskuQm6WKuGI5SbFnyLALltQOyH/qyaLiYPENQhNmxM O+jrpckbclEuaOt6C+krWVLuwDCI6HB/tu0UunvGMviOEARzgh/uEydRrXavgMTQ4BDd Q6J8S6Lpc/4pwcLIdQCn1BC/D9nkhmv0VVIhl0sBSsEBqj+hy8NzGAozBmc6X41GF1hb B9Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545286; x=1692137286; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V4UUoDGd2gBkYu4LAt7ZJ7XPzzBg5mAAkXDFIcZ5WcE=; b=MvV0FAQu6fo1iNwL5oMgpIUhPvndgdpkoZkwThk3Lki8ATw+mFwLMTzHgBuAY1uBve fEUXB7b0y5V/n/u25FrHi4rjpjrx0FW3ZN3Eh8tpe/0mW8Te33ljb2sB0kMvaQyGn0ru 2j389e86NBItQ5BGF36GEoccRvOwfpJ9aE4ytHXlvyRD6Ddpf/PmCUNOJI9pSr+eZRZf uVBvWjMWPMi2FDxKkKmiUcXCuL8hWVQSACTwZL7TO6NDVZONlAfZCHdg4ERPmmcs03LE yOarvH0/6taJYHKduDh4kfmhkL9MWyEU7+0OcV8qDBQ+nOp+dGsbUchqolxuwXAmylaQ CKKQ== X-Gm-Message-State: ABy/qLYSRHnYW71YknW7VjFvx9Fib0TjZTd0YKOwlJ+jP9M/xsb+9/h0 2Y74D10ZDd1ns+uBg1b0nxd6wWedqSs= X-Google-Smtp-Source: APBJJlHwOvb5wiCo4clFjmzDCmA1fl7RbqKHFikhsSkLSc+nFms/jPhfxiR6dFwAdT/cIGXe2kixeQ== X-Received: by 2002:a05:6512:2384:b0:4fb:8603:f6aa with SMTP id c4-20020a056512238400b004fb8603f6aamr8598156lfv.11.1689545286245; Sun, 16 Jul 2023 15:08:06 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:06 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 5/7] ARM: dts: exynos: k3g: Add notification LED support Date: Mon, 17 Jul 2023 01:05:07 +0300 Message-ID: <20230716220644.22158-7-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This device has a Texas Instruments LP5562 LED controller which controls the LEDs which are used as notification lights. It has three colors which can be combined, supports pulse mode and other various features. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 47 ++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index b3576a745054..813dbf0438de 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -10,6 +10,7 @@ #include #include #include +#include #include "exynos5800.dtsi" #include "exynos5422-cpus.dtsi" @@ -131,6 +132,52 @@ touchkey@20 { }; }; + i2c-led { + compatible = "i2c-gpio"; + + sda-gpios = <&gpy3 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpy3 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <2>; + + #address-cells = <1>; + #size-cells = <0>; + + lp5562@30 { + compatible = "ti,lp5562"; + reg = <0x30>; + + clock-mode = /bits/ 8 <2>; + label = "notification-leds"; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + chan-name = "notification-red"; + color = ; + led-cur = /bits/ 8 <0x40>; + max-cur = /bits/ 8 <0x40>; + }; + + led@1 { + reg = <1>; + chan-name = "notification-green"; + color = ; + led-cur = /bits/ 8 <0x40>; + max-cur = /bits/ 8 <0x40>; + }; + + led@2 { + reg = <2>; + chan-name = "notification-blue"; + color = ; + led-cur = /bits/ 8 <0x40>; + max-cur = /bits/ 8 <0x40>; + }; + }; + }; + tsp_vdd: regulator-tsp-vdd-en { compatible = "regulator-fixed"; regulator-name = "tsp_vdd_en"; From patchwork Sun Jul 16 22:05:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703977 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7E61C05051 for ; Sun, 16 Jul 2023 22:08:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbjGPWIT (ORCPT ); Sun, 16 Jul 2023 18:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbjGPWIK (ORCPT ); Sun, 16 Jul 2023 18:08:10 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53C05DF; Sun, 16 Jul 2023 15:08:09 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fbbfaacfc1so6038361e87.1; Sun, 16 Jul 2023 15:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545287; x=1692137287; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BRuqOpK0EekPSITqQINTY+JRczLmYXbl+EYLdJCsn+M=; b=U7Ty7kCIUKc+y0mYLry2J3cBRyWd44XiBd7tgbCbFJUBnviG+Im4Fq7j732oX/W2kb Hyr9GxBO9tO7hPPKABuN4PLaJpDIisAl6JTCpaXPZGz1bIMKsUFrP+FVXNBy7+R3TEUQ T3nbSwqP35BicPN6cBn+eyqSBkhnLn3RZrvhIqqyyc3NEhvUYTFGoweO+ahaQc58K7PW 41WDoiwBJmqbTLIasqkEOGsYFILarVxHaIKVCREgZ7uryuRNP8+VewgKFUB0yQr1kzZq s+7bJM1FvFH7cBWPT1lKX+pV8Ky3KGhfQ+yG+qVXOKWs2ehRt+euEZ+P4AN1Oxa4YjFs O4Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545287; x=1692137287; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BRuqOpK0EekPSITqQINTY+JRczLmYXbl+EYLdJCsn+M=; b=BmnYNIRDcDIDOiSpChKgC4JnRNgHf5eeb49HdtJ9BFNFlGoKNApq1ByuVzfwJz9LVO ChHckj6Zn2/LfSS1+/s9iKiw3QJIBhSkHUvhAxDR65AHSZ4nnR8p0MkSDCXavziTxS/F 7tDoxw10BL7N5UtrwRWMp01a9mcg9c+amn3bEWlIWyTq0/Owlfd4KhFyQDSTTRumK4H0 n/F48R3gu+8E95tu6XKS+YKnfkufFALyhFjBzMgCcrtJcg3lcAFlNZ4ta1cgXjVBDO2n Sp3y4suDHs1S/81tjvRCGYna1q3eZlTCR3G1giHfxYO2GvQEOuHm4ZK3XSynFKKSzitp 9j2Q== X-Gm-Message-State: ABy/qLbucMKaPgUdn+ULi/cttS4by7kf2ZWR/V5e31ojYpNmUZHd1Boh fioJOP1foLacvkyjiV9rEzk= X-Google-Smtp-Source: APBJJlEGrMjcsJb1IJWGNtvK7PtPxfRlh2ETvy31xSMPdNilQykqlVigCiLS59PbC2LH3XWryooYIw== X-Received: by 2002:a05:6512:2249:b0:4fa:79da:ca8a with SMTP id i9-20020a056512224900b004fa79daca8amr9543736lfu.7.1689545287499; Sun, 16 Jul 2023 15:08:07 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:07 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 6/7] ARM: dts: exynos: k3g: Document the devices which are not supported Date: Mon, 17 Jul 2023 01:05:08 +0300 Message-ID: <20230716220644.22158-8-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add placeholders for peripherals which we currently lack support for. This includes Maxim MAX86900 heart rate sensor and oximeter, which seems to be similar to other health sensors by Maxim, but it is not fully compatible; STM32F401 MCU which acts like a sensor hub, which can be flashed and controlled via the SPI bus, for which I made some simple firmware to check if it's possible to program with custom code, and it appears you can do so, but at the moment kernel lacks the APIs to either control sensors directly through the MCU or any standards for a sensor hub, so it's laid off; WM5110 audio codec which fails to communicate for some reason. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index 813dbf0438de..e019b630db94 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -743,6 +743,24 @@ rmi4-f12@12 { }; }; +&i2c_3 { + status = "okay"; + + /* Maxim MAX86900 heart rate sensor and oximeter on address 0x57 */ +}; + +&spi_0 { + status = "okay"; + + /* STMicroelectronics STM32F401 MCU to which sensors are connected */ +}; + +&spi_2 { + status = "okay"; + + /* Wolfson WM5110 audio codec */ +}; + /* eMMC flash */ &mmc_0 { status = "okay"; From patchwork Sun Jul 16 22:05:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 703976 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 691B0EB64DD for ; Sun, 16 Jul 2023 22:08:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbjGPWIz (ORCPT ); Sun, 16 Jul 2023 18:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233207AbjGPWIM (ORCPT ); Sun, 16 Jul 2023 18:08:12 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84841E56; Sun, 16 Jul 2023 15:08:10 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b70404a5a0so61528891fa.2; Sun, 16 Jul 2023 15:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545289; x=1692137289; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wRVc3pq+m8nwB6hJWvTXob0JDRMZoFt9HfBKXX9XoM4=; b=N3xoWZNGFZq046gPz7HiEwlcurJQEWI9WCu8DwqZbjIk9s2cFm5Qbry50AlCyN6lKU 3SRRmpIYM56IY/DsSpvn/vQAEjHmA1g4UV6e2iD3OOs0M4l44SO56o2v43J4RVI1OKTn bEooJONZeShCH8AGzJBFpJD7ISgFbrZrFxv2J8U0ybBaJUa2FxspuhuzrJl4IUEUPRnN U13QMlAM88FVCy9X+ma8URpfAsElcveF/8JtZxwguUkUusP/cCocq6/W9JPhwDvK9J6C 10sOaMFz/UmRYcm40xr6N5oFykRDAKrs0QHVkWEgxAGBYcx3wx/QOizzqKe7l0ogQXnu 9x1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545289; x=1692137289; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wRVc3pq+m8nwB6hJWvTXob0JDRMZoFt9HfBKXX9XoM4=; b=JIniTBHHyXpw2Jxjk4Gz+n0lS1RkjUj6sc+/NmSOKOcIi+8DkNEH9QUcrgU0zrKyGd ptx8ChoLscHC4J4Ud0cqH4DS7DYRhq5SAQRBk0nB2nmNX9hvGMmClbOMXVpOd4GlzWA1 tFYwGGosGTNHSa9Sqagr+BY9Rkjobzlrr6GHUxw/9Xac3ZX0dOrF7s59BSXwVpLJHMBW znoFfnNYVlnLbx0HVduCVoHIYd+8+CYIkmUMSeF7YMmnFGS21ittQl2KSNa5H8t6pNlF z84y8sLYUjz5PKy4y+ZnAzQu2JLcMTlNyiK0EWE0apiPK5dO3Wql5D2yNHqmj/PhUDXy AeGA== X-Gm-Message-State: ABy/qLbhGCvwmu4js/eYDytsGO2hiwzAOzUjzhUG6vgSa/OMNLZbwvAH aKfVOjlP5d8ZNRd0YgtPLZ0= X-Google-Smtp-Source: APBJJlGX2LJB4HoxSERRZLj5cQBszg6EUgbRvmGeHE8sfFAUGpjHhKF+7+g6TH+AO0uYrh43r687Qw== X-Received: by 2002:a05:6512:53b:b0:4fb:89bb:bcc5 with SMTP id o27-20020a056512053b00b004fb89bbbcc5mr9245997lfc.50.1689545288727; Sun, 16 Jul 2023 15:08:08 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:08 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 7/7] ARM: dts: exynos: k3g: Add display support Date: Mon, 17 Jul 2023 01:05:09 +0300 Message-ID: <20230716220644.22158-9-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This device has Samsung S6E3FA2 DSI display installed, this adds the device-tree bindings for it but two things prevent it from being fully usable: one is a bug in Exynos5 DSI subsystem, which I believe is not tested properly; the bug occurs randomly regardless of any variables, but it seems to occur less if the Exynos DRM kernel module is loaded later in the kernel boot process (the bug concludes in display filling with static) ; another issue is that efforts to support the S6E3FA2 panel are still going on, and the driver for the panel is not in the kernel tree yet. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index e019b630db94..954de392afbf 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -203,6 +203,42 @@ &cpu4 { cpu-supply = <&buck6_reg>; }; +&mixer { + status = "okay"; +}; + +&fimd { + status = "okay"; + samsung,invert-vclk; +}; + +&dsi { + status = "okay"; + + samsung,pll-clock-frequency = <24000000>; + samsung,burst-clock-frequency = <500000000>; + samsung,esc-clock-frequency = <16000000>; + + vddcore-supply = <&ldo8_reg>; + vddio-supply = <&ldo10_reg>; + + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + reg = <0>; + compatible = "samsung,s6e3fa2"; + + reset-gpios = <&gpy7 4 GPIO_ACTIVE_LOW>; + + vddio-supply = <&ldo25_reg>; + vdd-supply = <&ldo28_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&display_reset>; + }; +}; + &gpu { status = "okay"; mali-supply = <&buck4_reg>; @@ -839,6 +875,11 @@ touchkey_irq: touchkey-irq-pins { samsung,pin-pud = ; }; + display_reset: display-reset-pins { + samsung,pins = "gpy7-4"; + samsung,pin-pud = ; + }; + wlan_reset: wlan-reset { samsung,pins = "gpy7-7"; samsung,pin-pud = ;