From patchwork Sun Jun 23 16:53:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13708700 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 7B143C2BD05 for ; Sun, 23 Jun 2024 16:53:45 +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=EBOT5XLc0yRk+IP0/PEP/yAv4pOXaaeLnMlmU59f3GY=; b=uXHKQ6USybj9mX rJsl+Tw9lcT1HAv0TIjI0b4ih/4STlM660v/zjN4x7HDyopIMD51InBfzUZTAF5sOqnbbstpu40gd GhoS9zVg0u8CesMjjzR/foP0de0kM2uxpMZ7QbuTdo6/hSQuSOUcful8gxtr5STFixjEgcRJC4UhW XuFjv2U2ZP1x0zfh3w9h60CJx0DzXsWGkSqhKjvWkLhVv8WQ80E/ScEZF9TrVouiCXyPF5MBtiByJ JaRjrr/xIVeUqV5sUxlNPykRJNwJrA49ps1tEmcLYvjOLna6J0ATCnRQq6wkLCKAZcjAE+Qsq9dQn 4jearhNKfzVWrt7jhl6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLQTB-0000000EQ1P-43g4; Sun, 23 Jun 2024 16:53:37 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLQT6-0000000EPzq-0gzu; Sun, 23 Jun 2024 16:53:33 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42189d3c7efso39260395e9.2; Sun, 23 Jun 2024 09:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719161610; x=1719766410; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2cf9yk09EjNDZwtAyhAEgmGAGgN/zlHlu+rRdJR22d0=; b=AytdC4ysIFK2hlM8OR7mZyl4yl5cy69zHCBTnMsuGo1O6HNebb89VG98LD64ujxx0L 2vkiiWWhyyH+fGfkRErXXT6vk9cRfTY+OEzwblXX2wGgXFm73s7ZvS6KFx0/6KdEy3KO TUyzjGYLvggzKdqtTnzA9afrLWA2MF4Y2BttlYga6nAQJSMkdNCFkpx0fjnt6iwqhs06 Retd8uBw5/qRkh0IWIIAniPKHlBQ2n1DoLbi1LR/mBw/Uw7R78O8WVU+be2OCfz0RAxc /1l/Yq6mw2Msx13Ya/KSCRHyIbcBu33caWuc3UGcVUzSyMkTulY+mJ7CfSBlxp5S2IP+ 5MEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719161610; x=1719766410; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2cf9yk09EjNDZwtAyhAEgmGAGgN/zlHlu+rRdJR22d0=; b=v82/lHOp5HKV6G5DXePl+y6TPIXOPkvQHuvx+6FUtAQsO/dcBeS54xSyQsy0hzfBqh CUTu3MnD1jlJMSrDN9+vvAAGMcQKI8CkwShMUaDX1taOyyXzjOs7cJ1cUrsqNWNMP5Ju a5U25x+TwPD2aYZqqHlFybHTGD/zshNwzLXpBL8n7jb8nhs7SGh3doK5npiaS/rK8Xdn dgYOs3JQirCJwTLwbyQ2cnK1cuuduZb9mgenwexf87Fec6aC2rih8PSwy4cqgQMXKWVj UX72KVeynoxHLusm9icIpt7n9fZMw+peSg0VgQPMF8yOILfCUvXkIoDdlAuA9S6dlfq1 JBfg== X-Forwarded-Encrypted: i=1; AJvYcCWRPJA0mtLgqRmcHoWhui4wLilrSGBGipSVSDi0DPL3Uxdyv7HxQU5e0Ut4kOm82BqFkO9jMTDHbiayhSNKm3Yqn1cfBfATtAtD5aJfmJp6GnFp8zh5DuCpYLrMWUfMomYrUuC12QYtnrY542kiXie6I+zmwksgqOo= X-Gm-Message-State: AOJu0YyI4tfxh147uJeL6DMXYiIDsP3ez+s2BjFEA+fUXrTia0Od9zmt HGallvyIqA2fbDmeiB+5jLnfY0Dhti1cEFTHOnqfIOBFi+f6Yf1t X-Google-Smtp-Source: AGHT+IG2txdcv0fg+r/Nqnq3RkWX9Zad/0/2DTzCjUiOnF3LoNRJPz/AmHG+E+UEuJDw/pDFb/tL0A== X-Received: by 2002:a05:600c:2146:b0:422:7a16:6986 with SMTP id 5b1f17b1804b1-4248cc27178mr18457725e9.9.1719161609436; Sun, 23 Jun 2024 09:53:29 -0700 (PDT) Received: from morpheus.home.roving-it.com (8.c.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::1c8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4247d0bea05sm144835555e9.18.2024.06.23.09.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 09:53:29 -0700 (PDT) From: Peter Robinson To: Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Peter Robinson Subject: [PATCH 1/3] arm64: dts: rockchip: Add Pinephone Pro support for GPIO LEDs Date: Sun, 23 Jun 2024 17:53:20 +0100 Message-ID: <20240623165326.1273944-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_095332_302231_55D46108 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The PinePhone Pro has a cluster of 3 single RGB GPIO LEDs. Add the GPIO entries for the 3 red/green/blue LEDs and an entry for the multi-color group to allow them to be used as a combined RGB LED. Signed-off-by: Peter Robinson --- .../dts/rockchip/rk3399-pinephone-pro.dts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts index e5709c7ee06aa..5e46f682f0f0b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts @@ -12,6 +12,7 @@ /dts-v1/; #include #include +#include #include "rk3399.dtsi" #include "rk3399-opp.dtsi" @@ -69,6 +70,34 @@ key-power { }; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&red_led_pin &green_led_pin &blue_led_pin>; + + led_red: led-0 { + color = ; + gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; + }; + + led_green: led-1 { + color = ; + gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>; + }; + + led_blue: led-2 { + color = ; + gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; + }; + }; + + multi-led { + compatible = "leds-group-multicolor"; + color = ; + function = LED_FUNCTION_INDICATOR; + leds = <&led_red>, <&led_green>, <&led_blue>; + }; + vcc_sys: vcc-sys-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -481,6 +510,20 @@ pwrbtn_pin: pwrbtn-pin { }; }; + leds { + red_led_pin: red-led-pin { + rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + green_led_pin: green-led-pin { + rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + blue_led_pin: blue-led-pin { + rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; From patchwork Sun Jun 23 16:53:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13708699 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 D77A4C27C4F for ; Sun, 23 Jun 2024 16:53:44 +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:References:In-Reply-To: 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: List-Owner; bh=9W6blPASDJTv887dAMpj4PISZ3k+R0WJry0qcGTOKuw=; b=I+NWjXXEYhqFmx K5ENgFf54pUdYr68ViLbyFWQcexrFvG9ABBsCUfY4CJk+X9ZU4Xcok/5cbltWQnfZYbjDeGT6Ur1u i5MX5D6TX7bDJjHDl5iTb4LYiKslDRO7TawmB5sTIjLnldzSrm+X2txKbcBx1XVVWRiExcXCxa6o4 MdGg3JBgDL9Fm5P6rOcNEKfhRdK41qsT1TX+BJFk9AOMVaAWUbE3iRH5hwbdGEdTGsNIAuaDyzie8 Omcv44EaKh9723SzXD/9vA1ltvayk4ZJqHZunWpwUo1p+OjSyJQsRKxmWAyBQSbW0bUv+AbAuk+QP UA8U+2bzSgpUlnbDFcuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLQTD-0000000EQ1h-0gZF; Sun, 23 Jun 2024 16:53:39 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLQT6-0000000EPzt-3b2v; Sun, 23 Jun 2024 16:53:34 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-42172ed3487so26371625e9.0; Sun, 23 Jun 2024 09:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719161610; x=1719766410; darn=lists.infradead.org; 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=0dyZkCyrKd/4PD4Jvfjt6KqBEYL4dXW/zmdctqRuUTo=; b=U9pxOXQmMNopVvWKLpJmjhJTjgKxuHmQ9YDQMTM3lWonNT9SnI4Ir8HnCns0/HCheL w6nNlsS02ryuOJIQqXOnGGiyHwJ+5oWGYeKp155P06j0Waxfq0MXJEbiYdHLSxb1fhqq jZxfCZZ1Uu2r3RiY6Est4Ngl5INzWoj4QmTZJaucCj1A2f8yHpVshJT4441hFqQSVXJB 2bjGZaSYVgJQp2r4AFozW+/ah9cXSCCvAKdr0RnM02SaDmSEpz8JISPC1FA6R890VsU6 jAaW/qstBI2fPiJTNCTsJYzEFvIif1wL90O9kMoWmypVsr0/+QkIL3aemwasTAD6OZOR uVtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719161610; x=1719766410; 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=0dyZkCyrKd/4PD4Jvfjt6KqBEYL4dXW/zmdctqRuUTo=; b=uix1/UacwNlYAY5izi3V+RGHcbI4BcGfHVL1TIg0zCy5OIdBmeCtMauvzeLIaVBaBt yUOyR10Yyt/Slj9hFpvhNVdI83jFq1279xXYZdSB/KTlRV2kxPX6+/nJA9fHVKs7jiZN Iv3EpkVwQaBo1w9YDnQnl2pef6XugENtgihk91y42j27firwVTVIpqpy9KNTkazohIjb 9a+kIvg0kZvOGcfqOzzqOM3NMxzuAOhiTxBEWdoVByA6ddr1Xj7WOJRgg+pr5MoEKpPJ fc4h7VDlnlrGB2BO8wSxOtnMmIOoGUmBSC/u8a7z9CMsl8wCZno0w8096lYMhpgn4VKa RiPQ== X-Forwarded-Encrypted: i=1; AJvYcCXoFfbiOy6KWDXvxWuTIzpU/PFJKa+W988hhh26EcK2Y6fgdR0LcfMo+IYJGS10gxfnV4Uxtla0ebuUIhUCF9MgxugWqoEo5TSVhd6HWyQFpFhLh9gZLdwpQSbMC1obICOoAZjvi0LL5FnOnCNPuw6pO2wTG683e+E= X-Gm-Message-State: AOJu0YzC18gNlI0rCBXO9rdEm1zPXVBPzAUPVJQ29DT5PaNoSAPuEJmR NameF3M53p7LmKtblzEU7YEVHsH8oqu+RbqbUPKsCuFox3TOkMLs X-Google-Smtp-Source: AGHT+IFgHhHsrKsxAy7dmmoxUFNVOL7xlboI1346xmn1iLjG/0qF876onfSoisezAZAB/qDCi0tDeA== X-Received: by 2002:a05:600c:4fc9:b0:424:8e5b:e71d with SMTP id 5b1f17b1804b1-4248e5be7d2mr11488085e9.28.1719161609998; Sun, 23 Jun 2024 09:53:29 -0700 (PDT) Received: from morpheus.home.roving-it.com (8.c.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::1c8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4247d0bea05sm144835555e9.18.2024.06.23.09.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 09:53:29 -0700 (PDT) From: Peter Robinson To: Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Peter Robinson Subject: [PATCH 2/3] arm64: dts: rockchip: Enable PinePhone Pro IMU sensor Date: Sun, 23 Jun 2024 17:53:21 +0100 Message-ID: <20240623165326.1273944-2-pbrobinson@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240623165326.1273944-1-pbrobinson@gmail.com> References: <20240623165326.1273944-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_095332_924706_F8C26AE2 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable the IMU sensor on the PinePhone Pro including the i2c4 bus that it's attached to. Signed-off-by: Peter Robinson --- .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts index 5e46f682f0f0b..fbaf0202df632 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts @@ -436,6 +436,21 @@ touchscreen@14 { }; }; +&i2c4 { + i2c-scl-rising-time-ns = <600>; + i2c-scl-falling-time-ns = <20>; + status = "okay"; + + /* Accelerometer/gyroscope */ + mpu6500@68 { + compatible = "invensense,mpu6500"; + reg = <0x68>; + interrupt-parent = <&gpio1>; + interrupts = ; + vddio-supply = <&vcc_1v8>; + }; +}; + &cluster0_opp { opp04 { status = "disabled"; From patchwork Sun Jun 23 16:53:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13708701 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 270EBC2BBCA for ; Sun, 23 Jun 2024 16:53:46 +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:References:In-Reply-To: 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: List-Owner; bh=VpgGp/0rx80j+4RyZ4w1x/LtT36V4cfZbEvSKWFErl8=; b=l7dFGw+yNtaRoB 9Zs2fYE9W/KvKyz8nFs2mXr35sj1Aq3qiLMNJBUjZg/3LhFiObCAwjLEZE5hm/BY56acaaqxpv1nd 5z/Skb5QzJLQawbbYLMGAssVRH4M8xwTsvvMT5IuYZ7+3BPIKSbSnpR62wiQf9j/R1Z4Y/rovRXWJ cyDAPdh+yToU4CSS40evCxLe0llsv4hoGG0ryzmritooL2Zk5R83e8s3iMxZl3mQ3EdMHuDulCTd4 oXkAn6Xd5n/EZhIJ4NO/9w/aS1vtIY12SEaR2xpIZ7RFfy/DO8Gi2RhGTq89Ve46TFcqblggrIjvC UbgYQet2q9iIeH2ha+zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLQTF-0000000EQ2e-2YjL; Sun, 23 Jun 2024 16:53:41 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLQT6-0000000EPzv-3gWJ; Sun, 23 Jun 2024 16:53:34 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-421820fc26dso30593385e9.2; Sun, 23 Jun 2024 09:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719161611; x=1719766411; darn=lists.infradead.org; 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=Whsw22CVzG+AEJuA+lPSpYe6KJu2sy9QKywWti8n5dw=; b=d4Fz2GRdxUEg/rEeD9gSyBk0uiCDc98S2yHNyyVHpv1f3DJ7udgCdxEKtXc8TDFzEn 2O/Q826QQJQd6Dnj17pixSu33ziE21Qd2ElBrI8MxvSqVxeY3mfAsBTMnjHrJTU/Zhrp zfkY5N3evJs/hDZWiIkovH4sqXGlwIFtH0Y6WnboHXH22HEQETFjzVMQlfWDqDSt6zEQ bDYi2oCsv1lMbYryX+W7bQqr4UU8EMYM/QE2jNhZQuUxyrTNh6lUStkun8rHxnKLcXjv EHe+YjPyFAi2hTadTelaDATwMSfgoHL5ppZLSBbSTYljQKrPhOsAf+MuBfukF2Jgx5S8 RfAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719161611; x=1719766411; 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=Whsw22CVzG+AEJuA+lPSpYe6KJu2sy9QKywWti8n5dw=; b=hzKmbNmGKWCCJEL9CBdlH3LpsxaQ3nw0QExHL9dKaQsjP5bCgjQA6rLApmO3AnZOLa BeIHvtCP5LH/AedNDLYIpqZLxHGANY8+MkPOfT1iBSv4ukOrKym8bb8P0kXOHXNNUKdj VT4pppY3ZkyuZunK3sBiWjPeqCtLFwd6tEYM0PQtXQJKGizG3nFrkAAXOXC4eb3vnDV7 zYTDUbhcmKXstlEbVyVMe7/Iyu62X/UFtk22ql8aPrpKGOdCitlFpF+o06ud8ZqBsp8w lQjysZKlVTwOuO8XV7Eh7gViZ4aFtaEm5LRklV1yaPSZQPFJDQSY1eulzNvkAX4XxWRw 0ZLQ== X-Forwarded-Encrypted: i=1; AJvYcCWAl/0US9weK9khWZzjWEchHvrWlBiFkAXMsOQ9mFJhTpI5qtBNwXXVq1RUiQXTjsVf4TJCEC8fYzwUQNDkTkrWVwY6bN36hFAdlzJdSnZ8nw/FOFYIiVIvuINvIwY64ACLzhp5kfUWhODPtagzYeLy8Q0xIWElCvo= X-Gm-Message-State: AOJu0YwIZPi5LczdREqu5fM0YmTE5uIv0aGDhgEI/3MRBM6brY7SaG6/ ldvYM4lktAnY7lu82xdghvULREEb5/wLsZthYhwEyQK76BTxwe1I X-Google-Smtp-Source: AGHT+IE9yH+wIWIpe34XkBs0GwYW8sI8C+AfF4fj0IIrlwcHW/UJhNAXwDFIFbpvoN6eQI8dxBNJcw== X-Received: by 2002:a05:600c:340a:b0:421:7caa:7a6f with SMTP id 5b1f17b1804b1-4248b9cfaa6mr29146885e9.31.1719161610621; Sun, 23 Jun 2024 09:53:30 -0700 (PDT) Received: from morpheus.home.roving-it.com (8.c.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::1c8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4247d0bea05sm144835555e9.18.2024.06.23.09.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 09:53:30 -0700 (PDT) From: Peter Robinson To: Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Peter Robinson Subject: [PATCH 3/3] arm64: dts: rockchip: Enable PinePhone Pro vibrator Date: Sun, 23 Jun 2024 17:53:22 +0100 Message-ID: <20240623165326.1273944-3-pbrobinson@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240623165326.1273944-1-pbrobinson@gmail.com> References: <20240623165326.1273944-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_095332_941563_81022018 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The PinePhone Pro has a vibrator attached via GPIO so lets enable it. Signed-off-by: Peter Robinson --- arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts index fbaf0202df632..8c2a4aaa635d0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts @@ -137,6 +137,12 @@ vcc1v8_codec: vcc1v8-codec-regulator { vin-supply = <&vcc3v3_sys>; }; + vibrator { + compatible = "gpio-vibrator"; + enable-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>; + vcc-supply = <&vcc3v3_sys>; + }; + wifi_pwrseq: sdio-wifi-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk818 1>;