From patchwork Tue Jul 2 16:44:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13720078 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 7F26DC30658 for ; Tue, 2 Jul 2024 16:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=yLCs5mqC5Y2R1+0MelVeW7+pWk0GZmpm5hAwC2rgETI=; b=ehl2+Ot/X4qpyNu2yH9pbhtV8B V68pLtxpF4HEMDqW9/WsfZFc74R6WCSULgU9BN42yKji5zV9JJuY5LQq8FwHOFxbTHOpkrCPFTdho eCtBv0aCEDudzgvjwcyxPNKxf9pja5Nz5X/fOcxNM7JfMgFQoGTKqNul+bkWU0jlpWL6XJ062Ig/q yii1S0Nxrsr+wS3aPuSqgqwhZ+gIC+De8gSNv79yNDbc1P3XZ0KH8ReZz5ZFnI9PStnHVRetwd++v +3+oVM2rVMWQS0K0euaeMKTG+aDYq5SuIUdDt2NiJh1WqQ+nS0PaKICXja2aZ91pPzfT3apatsA4Y /IwediEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOgcQ-00000007Q3W-3EDx; Tue, 02 Jul 2024 16:44:38 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOgc4-00000007PvX-3EX8 for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 16:44:18 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 462Gi67Y041361; Tue, 2 Jul 2024 11:44:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1719938646; bh=yLCs5mqC5Y2R1+0MelVeW7+pWk0GZmpm5hAwC2rgETI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=F1MhHh2ab/BZfLoXGg97fLiuXAl+jriZJ6W/PnOLIeqjEr7GFSZ8ga8fl2pZKMdYK aoix0KoLCF37g/lIb4qNia4/ru3iyuKUifuyKtTwADU/I1tLXwOoYwp+EtDtbbM81g XKenfN3iMYrxEu14hO60PRsKo4NkIo4II6lG3n10= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 462Gi6hL017072 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Jul 2024 11:44:06 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 2 Jul 2024 11:44:06 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 2 Jul 2024 11:44:06 -0500 Received: from fllvsmtp7.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 462Gi4YB112748; Tue, 2 Jul 2024 11:44:05 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vaishnav M A , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Michael Walle , Jason Kridner , Robert Nelson , Robert Nelson , Ayush Singh , Ayush Singh CC: , , , Andrew Davis Subject: [PATCH RFC 1/3] arm64: dts: ti: k3-am625-beagleplay: Add Grove connector pinmux options Date: Tue, 2 Jul 2024 11:44:01 -0500 Message-ID: <20240702164403.29067-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240702164403.29067-1-afd@ti.com> References: <20240702164403.29067-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_094417_003874_B3A727AE X-CRM114-Status: GOOD ( 13.66 ) 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 The Grove connector pins on BeaglePlay supports 3 different functions. Describe these here. Also move the default to be selected by a new Grove connector node. As I2C is not the only possible function, do not enable main_i2c1. It should only be enabled when a add-on board is connected that makes use of it. That enabling should be done by the add-on board's overlay. Signed-off-by: Andrew Davis --- .../arm64/boot/dts/ti/k3-am625-beagleplay.dts | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts index 70de288d728e4..004eb5c24a84c 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts @@ -227,6 +227,10 @@ simple-audio-card,codec { }; }; + grove_connector0: grove-connector0 { + pinctrl-names = "default"; + pinctrl-0 = <&grove_pins_default>; + }; }; &main_pmx0 { @@ -270,6 +274,27 @@ AM62X_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */ >; }; + grove_pins_digital: grove-digital-pins { + pinctrl-single,pins = < + AM62X_IOPAD(0x01e8, PIN_INPUT, 7) /* (B17) I2C1_SCL.GPIO1_28 */ + AM62X_IOPAD(0x01ec, PIN_INPUT, 7) /* (A17) I2C1_SDA.GPIO1_29 */ + >; + }; + + grove_pins_uart: grove-uart-pins { + pinctrl-single,pins = < + AM62X_IOPAD(0x01e8, PIN_INPUT, 1) /* (B17) I2C1_SCL.UART1_RXD */ + AM62X_IOPAD(0x01ec, PIN_OUTPUT, 1) /* (A17) I2C1_SDA.UART1_TXD */ + >; + }; + + grove_pins_i2c: grove-i2c-pins { + pinctrl-single,pins = < + AM62X_IOPAD(0x01e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */ + AM62X_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */ + >; + }; + local_i2c_pins_default: local-i2c-default-pins { bootph-all; pinctrl-single,pins = < @@ -753,13 +778,6 @@ ldo4_reg: ldo4 { }; }; -&main_i2c1 { - pinctrl-names = "default"; - pinctrl-0 = <&grove_pins_default>; - clock-frequency = <100000>; - status = "okay"; -}; - &main_i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_1v8_pins_default>; From patchwork Tue Jul 2 16:44:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13720080 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 75A01C30658 for ; Tue, 2 Jul 2024 16:45:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=YVaFzmQNxAnOPoU5K+88Hc1/hl359lTjwEE+XjlFZHg=; b=Y+r59D7VkiSunt4NFrpBBErXVr svm+Qq6Aeq8kYKU00x0ngMejjH5jSsqhkHFIUcj9i9eevwuEMEi5zb6vqsiwmjS1X3E/n142ZqcuL PKFOO/2orGHZOCpZabKbNFJFvwN4tbAYf8vE7pnPJFN/CX4ry8flYdBAJvCbjOm/3JgOeBt5MRLjE Z4miF3K91wvJD5MyYV0YEoF2YjCQfjncibix9gZ7VdfiCUqP6ZvvjR6tOhyEEUQzvV7FqrieUi7gP mftHYovuJ4i3f4V1fqr1esKla7ewCCGi75WLCmyU5pdKjiZph6oA74AGVJbL6e8tXYa5sWMlAuxIV q0QN4npw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOgcl-00000007QEc-0789; Tue, 02 Jul 2024 16:44:59 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOgc5-00000007Pvr-2auM for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 16:44:19 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 462Gi7QW041366; Tue, 2 Jul 2024 11:44:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1719938647; bh=YVaFzmQNxAnOPoU5K+88Hc1/hl359lTjwEE+XjlFZHg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Al4IMDk0HkyUlVUDM+LLyiv8JLsYRVAxXwEoHicc4B4HKggkdSYPdU+YmcATi7lEY as5SxXCXp4WmyFg3vPIJJI5wf4cJGS6dvv+kkje95oNbnSADVvIu2yRLGhcgz/W/gF ba20lH8dH1npV4m1F3e1QoLBG+4jqrhgWhN0R8E0= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 462Gi7ek030994 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Jul 2024 11:44:07 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 2 Jul 2024 11:44:07 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 2 Jul 2024 11:44:07 -0500 Received: from fllvsmtp7.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 462Gi4YC112748; Tue, 2 Jul 2024 11:44:06 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vaishnav M A , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Michael Walle , Jason Kridner , Robert Nelson , Robert Nelson , Ayush Singh , Ayush Singh CC: , , , Andrew Davis Subject: [PATCH RFC 2/3] arm64: dts: ti: k3-am625-beagleplay: Add Grove connector adapter overlays Date: Tue, 2 Jul 2024 11:44:02 -0500 Message-ID: <20240702164403.29067-3-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240702164403.29067-1-afd@ti.com> References: <20240702164403.29067-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_094417_767448_0051FBCA X-CRM114-Status: GOOD ( 17.93 ) 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 The second connector is only an example and will be removed. Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/Makefile | 2 + .../k3-am625-beagleplay-grove-connector0.dtso | 41 +++++++++++++++++++ .../k3-am625-beagleplay-grove-connector1.dtso | 22 ++++++++++ 3 files changed, 65 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector0.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector1.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index e20b27ddf9011..a859629a6072c 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -12,6 +12,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-tevi-ov5640.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-grove-connector0.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-grove-connector1.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-phyboard-lyra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-dahlia.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector0.dtso b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector0.dtso new file mode 100644 index 0000000000000..897d77a6de90a --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector0.dtso @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/** + * Gasket Overlay for BeaglePlay Grove Connector 0 + * + * Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +&{/} { + __symbols__ { + GROVE_CONNECTOR = "/grove-connector0"; + + /* Grove connector 0 Pin1 options */ + GROVE_PIN1_MUX_I2C_SCL = "/bus@f0000/pinctrl@f4000/grove-i2c-pins"; + GROVE_PIN1_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/grove-digital-pins"; + /* GROVE_PIN1_MUX_ANALOG not available on this pin on this connector on this board */ + GROVE_PIN1_MUX_UART_RX = "/bus@f0000/pinctrl@f4000/grove-uart-pins"; + + /* Grove connector 0 Pin2 options */ + GROVE_PIN2_MUX_I2C_SDA = "/bus@f0000/pinctrl@f4000/grove-i2c-pins"; + GROVE_PIN2_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/grove-digital-pins"; + /* GROVE_PIN2_MUX_ANALOG not available on this pin on this connector on this board */ + GROVE_PIN2_MUX_UART_TX = "/bus@f0000/pinctrl@f4000/grove-uart-pins"; + + /* Grove connector 0 uses main_i2c1 for I2C on BeaglePlay */ + GROVE_PIN1_I2C = "/bus@f0000/i2c@20010000"; + GROVE_PIN2_I2C = "/bus@f0000/i2c@20010000"; + + /* Grove connector 0 uses main_gpio1 for DIGITAL on BeaglePlay */ + GROVE_PIN1_DIGITAL = "/bus@f0000/gpio@601000"; + GROVE_PIN2_DIGITAL = "/bus@f0000/gpio@601000"; + + /* Grove connector 0 does not have ANALOG on BeaglePlay */ + + /* Grove connector 0 uses main_uart1 for UART on BeaglePlay */ + GROVE_PIN1_UART = "/bus@f0000/serial@2810000"; + GROVE_PIN2_UART = "/bus@f0000/serial@2810000"; + }; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector1.dtso b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector1.dtso new file mode 100644 index 0000000000000..1a0e463d4ec65 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-grove-connector1.dtso @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/** + * Gasket Overlay for BeaglePlay Grove Connector 1 + * + * Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +&{/} { + __symbols__ { + GROVE_CONNECTOR = "/grove-connector1"; + + /* This connector does not exist on BeaglePlay, this + * file is here as an example to show that add-ons cannot + * be applied when the needed pins are unavailable. No + * pin is available so all add-on overlays should fail + * to attach to this connector. + */ + }; +}; From patchwork Tue Jul 2 16:44:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13720081 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 C4E2AC30658 for ; Tue, 2 Jul 2024 16:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=KplOxOQPqHLAX8GNF7TJR+t//tYPDP1lPxEZajqtg34=; b=x0aSglkdOmmkeS6bxOKyxgmYYH m1EIov2dwhAf3Ikl474mpC2418sfCNaLwvJTWJC3zw8ZsMkt4iupvdq2WYepDwPGEsrtH/VR1bSzl KFL/mPonVbD7eoUqzRA8JD4cVj4Uyr2QqW4vKb04MYaQ01Yx5sqf13lw2yyTL0/Peirf7DEOjQ9uE QacUmdsahxilufLMYCSfRbHw05RLcUP1uXsClUIypqzLfNDkVAEoYlRbHbIk9HIUX+O0rsl79KWjJ xEbive7E//38hj+9uBThYUtgv5am5ZWLl6zm/Qox+H5/WqZkKgKS4suk6SGKDR7JS6AZND/l2y2tH F2OoACmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOgcx-00000007QMh-2Eup; Tue, 02 Jul 2024 16:45:11 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOgcC-00000007PyF-3pK1 for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 16:44:26 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 462Gi8jb051254; Tue, 2 Jul 2024 11:44:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1719938648; bh=KplOxOQPqHLAX8GNF7TJR+t//tYPDP1lPxEZajqtg34=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xZLvAIWU/kn+aQSoKm43Em0x3d8DV7Cu8/fe4BLf+aTZnUN4DiPoPahG7KUU3ZyrA L3kxmoUFJAKXNjTtVPBXEH4M22pRAJQj4vmyp7nETSPSpIH6qOhy3YslwiSmd3Ol5A 8I4q0hShqov8UoA4w88OGkRfOFB8zetZcyBSMS+g= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 462Gi8WZ008549 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Jul 2024 11:44:08 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 2 Jul 2024 11:44:07 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 2 Jul 2024 11:44:07 -0500 Received: from fllvsmtp7.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 462Gi4YD112748; Tue, 2 Jul 2024 11:44:07 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vaishnav M A , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Michael Walle , Jason Kridner , Robert Nelson , Robert Nelson , Ayush Singh , Ayush Singh CC: , , , Andrew Davis Subject: [PATCH RFC 3/3] arm64: dts: ti: grove: Add Grove Sunlight Sensor overlay Date: Tue, 2 Jul 2024 11:44:03 -0500 Message-ID: <20240702164403.29067-4-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240702164403.29067-1-afd@ti.com> References: <20240702164403.29067-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_094425_064925_0193F173 X-CRM114-Status: GOOD ( 14.67 ) 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 DT overlay for the Grove Sunlight Sensor[0]. [0] https://wiki.seeedstudio.com/Grove-Sunlight_Sensor/ Signed-off-by: Andrew Davis --- arch/arm64/boot/dts/ti/Makefile | 3 ++ .../boot/dts/ti/grove-sunlight-sensor.dtso | 31 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/grove-sunlight-sensor.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index a859629a6072c..7d1ce7a5d97bc 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -8,6 +8,9 @@ # Entries are grouped as per SoC present on the board. Groups are sorted # alphabetically. +# This needs a better directory location +dtb-$(CONFIG_OF_OVERLAY) += grove-sunlight-sensor.dtbo + # Boards with AM62x SoC dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-ov5640.dtbo diff --git a/arch/arm64/boot/dts/ti/grove-sunlight-sensor.dtso b/arch/arm64/boot/dts/ti/grove-sunlight-sensor.dtso new file mode 100644 index 0000000000000..ab2f102e1f8ab --- /dev/null +++ b/arch/arm64/boot/dts/ti/grove-sunlight-sensor.dtso @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/** + * Grove - Sunlight Sensor v1.0 + * + * https://wiki.seeedstudio.com/Grove-Sunlight_Sensor/ + * + * Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +&GROVE_CONNECTOR { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&GROVE_PIN1_MUX_I2C_SCL>, + <&GROVE_PIN2_MUX_I2C_SDA>; +}; + +&GROVE_PIN1_I2C { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + clock-frequency = <100000>; + + si1145@60 { + compatible = "si,si1145"; + reg = <0x60>; + }; +};