From patchwork Wed Aug 21 18:58:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1975076 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=p1jb1+ti; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.199.223; helo=ny.mirrors.kernel.org; envelope-from=linux-tegra+bounces-3375-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WpwmQ3CQpz1yYZ for ; Thu, 22 Aug 2024 05:06:30 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 83F821C2138B for ; Wed, 21 Aug 2024 19:06:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6632416F0D0; Wed, 21 Aug 2024 19:06:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=terefe.re header.i=@terefe.re header.b="p1jb1+ti" X-Original-To: linux-tegra@vger.kernel.org Received: from terefe.re (terefe.re [5.255.96.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C1A916E86F; Wed, 21 Aug 2024 19:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.255.96.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724267187; cv=none; b=VwtSRTkdzbFzu6rr7+4uhUUQ7RmlIq1lhJbs4VpBKDdEvIiwHDwamWtRh1ouC5nuvS5yRXOBulqTE5bNDvnfS7WR1HyuFo20Hl3IlUKWhnrDRdOC9D8Wl3tYRF+Tg2RhLdJWchAy3vB34MSAuKZ+oeQvmoxi1+D814X/6x0b978= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724267187; c=relaxed/simple; bh=c7tSgeaLvoQaC7WKtAwIRpIwIKeaEobr9xJ0nf2lvfQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fWi3uSHocea9dHf6ybzbBkAgsIc6SYBCWkEUbXw5FhTgqmpQfh84FPQ4fJevszxrus1iw26qsqRJtCxXR0RG6B1ElQXzKrVk2Cf/OmGXqxCBmHFoG8fOW0t50LfSa0ebCgSzQH1Zygb/2SX2xJqaioAVtZFyqNZK8uS/5uR49e0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=terefe.re; spf=pass smtp.mailfrom=terefe.re; dkim=pass (2048-bit key) header.d=terefe.re header.i=@terefe.re header.b=p1jb1+ti; arc=none smtp.client-ip=5.255.96.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=terefe.re Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=terefe.re Received: from localhost.localdomain (unknown [212.106.161.95]) by terefe.re (Postfix) with ESMTPSA id 7C9B3202CA; Wed, 21 Aug 2024 20:58:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1724266716; bh=c7tSgeaLvoQaC7WKtAwIRpIwIKeaEobr9xJ0nf2lvfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p1jb1+tiXCqgPP4fE37+Q8THQIBiYBm4i11mh5KdZ3uhtIWCmyvAfcNhdPOBeQw59 vV4vcybsuw9aIipI8olKywyTkAQgDf7JDvgeQaP+8M3NhphxWmi97fn6dBQLKZh7BG 73+Mu8cxWbkk2BJxIKpcVlIdqDvQCWf2FMjkAa2y/j461Ufq52tRRuk1Ag8WBUcYDv SMOMNhB7Hh5j/c413aI7AZ1/j0lisUnxF25bh80bjkMBJy9dQkmhfBsT2yzEGrRTJH 7rV0koPg+PwewebADh478vTIVgObeTphRP7EHzBPTX5EMjun0o65HoxVGi2OnxO4Rn u3V2mNSvo3SYg== From: Tomasz Maciej Nowak To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Nicolas Chauvet , Diogo Ivo Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Maciej Nowak Subject: [PATCH 1/3] arm64: tegra: wire up power sensors on Jetson TX1 DevKit Date: Wed, 21 Aug 2024 20:58:03 +0200 Message-ID: <20240821185829.20997-2-tmn505@terefe.re> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240821185829.20997-1-tmn505@terefe.re> References: <20240821185829.20997-1-tmn505@terefe.re> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Tomasz Maciej Nowak One INA3221 sensor is located on P2180 module and the other two are on P2597 base board. Signed-off-by: Tomasz Maciej Nowak --- .../arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 29 +++++++++++ .../arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 50 +++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi index 0ae5a44f7d07..f8b20af1fd3d 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi @@ -33,6 +33,35 @@ serial@70006000 { status = "okay"; }; + i2c@7000c400 { + status = "okay"; + + power-sensor@40 { + compatible = "ti,ina3221"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + label = "VDD_IN"; + shunt-resistor-micro-ohms = <20000>; + }; + + input@1 { + reg = <0x1>; + label = "VDD_GPU"; + shunt-resistor-micro-ohms = <10000>; + }; + + input@2 { + reg = <0x2>; + label = "VDD_CPU"; + shunt-resistor-micro-ohms = <10000>; + }; + }; + }; + i2c@7000c500 { status = "okay"; diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi index b4a1108c2dd7..e97f31c1f625 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi @@ -1319,6 +1319,56 @@ i2c@7000c400 { status = "okay"; clock-frequency = <100000>; + power-sensor@42 { + compatible = "ti,ina3221"; + reg = <0x42>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + label = "VDD_MUX"; + shunt-resistor-micro-ohms = <20000>; + }; + + input@1 { + reg = <0x1>; + label = "VDD_5V_IO_SYS"; + shunt-resistor-micro-ohms = <5000>; + }; + + input@2 { + reg = <0x2>; + label = "VDD_3V3_SYS"; + shunt-resistor-micro-ohms = <10000>; + }; + }; + + power-sensor@43 { + compatible = "ti,ina3221"; + reg = <0x43>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + label = "VDD_3V3_IO"; + shunt-resistor-micro-ohms = <10000>; + }; + + input@1 { + reg = <0x1>; + label = "VDD_1V8_IO"; + shunt-resistor-micro-ohms = <10000>; + }; + + input@2 { + reg = <0x2>; + label = "VDD_M2_IN"; + shunt-resistor-micro-ohms = <10000>; + }; + }; + exp1: gpio@74 { compatible = "ti,tca9539"; reg = <0x74>; From patchwork Wed Aug 21 18:58:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1975074 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=i8RUkTgI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-tegra+bounces-3372-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WpwmN0VrGz1yYZ for ; Thu, 22 Aug 2024 05:06:28 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CF6F7283340 for ; Wed, 21 Aug 2024 19:06:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75F7316EB4C; Wed, 21 Aug 2024 19:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=terefe.re header.i=@terefe.re header.b="i8RUkTgI" X-Original-To: linux-tegra@vger.kernel.org Received: from terefe.re (terefe.re [5.255.96.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C15D1607A1; Wed, 21 Aug 2024 19:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.255.96.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724267186; cv=none; b=QtWLXZdB9TEzpjsT7cGLV/sUobwT4PzPQxaiTcZB6KKtdVdqgFE5tOAKHymAfwlrBOvy+8WRV2g/oLu4qVo95YqKyORBjhgw3/gDE1kvfuYagjahkdCDaZe1szbV8WG4cBM30O0bWvQe5fEVHdt4lsxd5LrWBL6akLwHsCD1S0o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724267186; c=relaxed/simple; bh=fcyVkeBqILTYJFgyq9igStQjjXNj/PBSoqZEcgR5KQY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lD1SOhAIOZjws3GkE3LJj3fZyuB0EIhOEucbvaQBuucKpuQJTL4Crh96/0lTcexJ8tHCyUxeZKzjmCY5CceV3Iayu1oD7ljs96Eqbui200szwmas0gQhIpa7/iE6lBqI13YYI0AXKalBfHFFHFjxt6AyoP8uNzF44cXFrwkAopM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=terefe.re; spf=pass smtp.mailfrom=terefe.re; dkim=pass (2048-bit key) header.d=terefe.re header.i=@terefe.re header.b=i8RUkTgI; arc=none smtp.client-ip=5.255.96.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=terefe.re Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=terefe.re Received: from localhost.localdomain (unknown [212.106.161.95]) by terefe.re (Postfix) with ESMTPSA id 0FC88203EB; Wed, 21 Aug 2024 20:58:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1724266717; bh=fcyVkeBqILTYJFgyq9igStQjjXNj/PBSoqZEcgR5KQY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i8RUkTgIpf3IW2WvMJgmExcEOZOeO5Axtse78UFaZOEqdouYo3fL9USeulWJwpg6H 2PlQ6nNC4WI9Gy+l/ZYDgUei5C/Tzig6JvWiTmB2py1dgVX6hmvtcfwdAmC3W24tTK KbpckTff9+DJzpd4qZSTH8EtWGaaFwZF/Syn+PJqbeUsr9bl3tQTuDbGRbdgQKvaaF rLhfqSqRbEGuSCBeLU6Jquh1FJeTs7Vv4eQ2hJXzKuwxgcNqD/hiq1y/YV6THvWHRA rs8aljgSwaLMoPU6kdqr8jr7f7RvNE/r9iz9F+px353ib+DdPY9uZxXZMh3pCrEgk2 T6vgyNRt3gP0Q== From: Tomasz Maciej Nowak To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Nicolas Chauvet , Diogo Ivo Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Maciej Nowak Subject: [PATCH 2/3] arm64: tegra: wire up Bluetooth on Jetson TX1 module Date: Wed, 21 Aug 2024 20:58:04 +0200 Message-ID: <20240821185829.20997-3-tmn505@terefe.re> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240821185829.20997-1-tmn505@terefe.re> References: <20240821185829.20997-1-tmn505@terefe.re> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Tomasz Maciej Nowak P2180 modules have Bluetooth in form of BCM4354 chip, and kernel driver supports this one, so enable it for all users. The necessary firmware can be obtained from Jetson Linux Archive. bcm4354.hcd file is located in "Driver Package (BSP)" in nv_tegra/l4t_deb_packages/nvidia-l4t-firmware__arm64.deb archive. Signed-off-by: Tomasz Maciej Nowak --- arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi index f8b20af1fd3d..64b8668fcdcd 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi @@ -33,6 +33,22 @@ serial@70006000 { status = "okay"; }; + serial@70006300 { + /delete-property/ reg-shift; + status = "okay"; + compatible = "nvidia,tegra30-hsuart"; + reset-names = "serial"; + + bluetooth { + compatible = "brcm,bcm43540-bt"; + device-wakeup-gpios = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio>; + interrupts = ; + interrupt-names = "host-wakeup"; + }; + }; + i2c@7000c400 { status = "okay"; From patchwork Wed Aug 21 18:58:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1975077 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=dkEopwhy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-tegra+bounces-3374-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WpwmQ4Jh7z1yfb for ; Thu, 22 Aug 2024 05:06:30 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 14B121C20FDF for ; Wed, 21 Aug 2024 19:06:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0448316EBE0; Wed, 21 Aug 2024 19:06:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=terefe.re header.i=@terefe.re header.b="dkEopwhy" X-Original-To: linux-tegra@vger.kernel.org Received: from terefe.re (terefe.re [5.255.96.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C50E13A24D; Wed, 21 Aug 2024 19:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.255.96.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724267186; cv=none; b=gM/x50B/YLxeXcogBX4Ff0ejCOwQz2kACkfRa+KUGLkE25vZ1zy4PuE9phwX7Cs06rKC3vmVPvvQbYXB+A2jZzRnh3M+qgqb2nw13TW84LX3G5xcQwnS9YV3snpO3n4JlEj5XSVtS3uqs7pBFCQK81GSWnDvi5qIiYwApZATuCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724267186; c=relaxed/simple; bh=hd9wkcPN4CmAARSYR+3zLHtDIyZfHClpBM/3EtyxlK8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aJ4eWBkO3FB5monCyeSXRQV3abms8/1yz95azUNjG0mD2h6QC7jKrqJcsv8UFeiu/TKxdDHQOtwF+wvgUQeVDjJwjhDFS5QzjXZdCYb+n7sLm5HnsyqISlQSdwhq3SuHb3dn1Z1kJNr+Vz6SRL//hz5T7kGt6A2ObY97v2Kw3/s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=terefe.re; spf=pass smtp.mailfrom=terefe.re; dkim=pass (2048-bit key) header.d=terefe.re header.i=@terefe.re header.b=dkEopwhy; arc=none smtp.client-ip=5.255.96.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=terefe.re Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=terefe.re Received: from localhost.localdomain (unknown [212.106.161.95]) by terefe.re (Postfix) with ESMTPSA id 92009203EC; Wed, 21 Aug 2024 20:58:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1724266718; bh=hd9wkcPN4CmAARSYR+3zLHtDIyZfHClpBM/3EtyxlK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dkEopwhyq/Fsxyy9feLabgSDb98P3zxOLUuEhkStx/7eIFRbNsX6mvhwRKKsouMaL qcrne96JvPrzJeTiKPYonuy+GQSaLoPiUVgf76/KbHS07TN/cREakHaDAtMiUdAHg1 tTl/TWiF6Q5bB2I0UOEi+sYlkIDwPwAJfWkz7RcvwZG0Kak+OAs8/tLWrkLiWX7Q5J MQVjPrRO2r3lsMSta4gC67xplCrIFUAe2rbaT6boLqflHPbgQrbS2S+XxS5xl11wHy xpa60cP7d2adQb512FRShPPPjjOvFg4GwzW0UmRyKs4jcgugJL9q3XZHGv2Up6Xt0P f3CYYYqvSyPYQ== From: Tomasz Maciej Nowak To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Nicolas Chauvet , Diogo Ivo Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Maciej Nowak Subject: [PATCH 3/3] arm64: tegra: wire up WiFi on Jetson TX1 module Date: Wed, 21 Aug 2024 20:58:05 +0200 Message-ID: <20240821185829.20997-4-tmn505@terefe.re> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240821185829.20997-1-tmn505@terefe.re> References: <20240821185829.20997-1-tmn505@terefe.re> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Tomasz Maciej Nowak P2180 modules have WiFi in form of BCM4354 chip, and kernel driver supports this one, so enable it for all users. The necessary calibration file can be obtained from Jetson Linux Archive. nvram.txt file is located in "Driver Package (BSP)" in nv_tegra/l4t_deb_packages/nvidia-l4t-firmware__arm64.deb archive. The rest of necessary blobs can be obtained from official Linux Firmware repository or (newer ones) from Infineon ifx-linux-firmware repository (look in older releases). Signed-off-by: Tomasz Maciej Nowak --- .../arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi index 64b8668fcdcd..c00db75e3910 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi @@ -340,6 +340,25 @@ pmc@7000e400 { nvidia,sys-clock-req-active-high; }; + mmc@700b0200 { + status = "okay"; + bus-width = <4>; + non-removable; + power-gpios = <&gpio TEGRA_GPIO(H, 0) GPIO_ACTIVE_HIGH>; + vqmmc-supply = <&vdd_1v8>; + vmmc-supply = <&vdd_3v3_sys>; + #address-cells = <1>; + #size-cells = <0>; + + wifi@1 { + compatible = "brcm,bcm4354-fmac"; + reg = <1>; + interrupt-parent = <&gpio>; + interrupts = ; + interrupt-names = "host-wake"; + }; + }; + /* eMMC */ mmc@700b0600 { status = "okay";