From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44EA5EB64D9 for ; Tue, 4 Jul 2023 18:11:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A64AC861EB; Tue, 4 Jul 2023 20:10:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="VWSuj3rQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 233D8861D6; Tue, 4 Jul 2023 20:10:29 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CAEF3861A8 for ; Tue, 4 Jul 2023 20:10:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rogerq@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BC0E961345; Tue, 4 Jul 2023 18:10:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91D7DC433C7; Tue, 4 Jul 2023 18:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688494222; bh=bZZXWqDor032aldlxlvixEYkJ/wCEZbVJxpfTY18g0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VWSuj3rQaUup5119jOohW1gF6Jy3/7b5lgfeYCiPTL3jj7zz/+kqbEv0b/w/m9ghE Pds6Ce0F81aYF4bRN3pqS6hFcR37buk1ekbg8cWMl7lxWIuszUv+3II5Mss17/NMHr M5LNNvCzmKk1fVo7CNSOMh+nKXGh6GyUd56DAa33H3XYC6nfP0Cohgit4VxMkFsJVh SgBX/2TOuTs8BG2r1FCRm5qqHNP5dal0YTUsP7wMK2qOPqd6yHXLm9uzpUbjUiJkbV Xa9NZVUduJD5o3SyQzSnC60TFUWAhdWgK7BKx3SLiqxLnhZ315bKdRz6BE/nwUhRNr ttlMkSq/WXf4g== From: Roger Quadros To: vigneshr@ti.com, trini@konsulko.com Cc: nm@ti.com, srk@ti.com, u-boot@lists.denx.de, Roger Quadros Subject: [PATCH 4/6] arm: dts: k3-am642-r5-evm: Add I2C0 and Card detect GPIOs Date: Tue, 4 Jul 2023 21:10:06 +0300 Message-Id: <20230704181008.305561-5-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230704181008.305561-1-rogerq@kernel.org> References: <20230704181008.305561-1-rogerq@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Card detect GPIOs are on I2C GPIO Expander on I2C0. Enable I2C0 and GPIO Expander for r5-evm. Signed-off-by: Roger Quadros --- arch/arm/dts/k3-am642-r5-evm.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/dts/k3-am642-r5-evm.dts b/arch/arm/dts/k3-am642-r5-evm.dts index e870492a69..01b4a61852 100644 --- a/arch/arm/dts/k3-am642-r5-evm.dts +++ b/arch/arm/dts/k3-am642-r5-evm.dts @@ -209,6 +209,13 @@ AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */ >; }; + + main_i2c0_pins_default: main-i2c0-default-pins { + pinctrl-single,pins = < + AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */ + AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */ + >; + }; }; &dmsc { @@ -267,6 +274,18 @@ /* EEPROM might be read before SYSFW is available */ &main_i2c0 { /delete-property/ power-domains; + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; + + tca9554: gpio@38 { + /* TCA9554 */ + compatible = "nxp,pca9554"; + reg = <0x38>; + gpio-controller; + #gpio-cells = <2>; + }; }; &usbss0 { -- 2.34.1