Files
t23x-public-dts/nv-platform/tegra234-p3740-0002.dtsi
Shubhi Garg aa281b277b nv-public: p3740: fix cvb eeprom bus id
Since IGX CVM eeprom uses different I2C controller than CVB, bus id
in eeprom manager should be different. Currently, CVM and CVB has bus@0,
which brings CVB eeprom inside wrong i2c controller. Fixes it by differentiating
bus ids. Now, bus@0 has CVM and bus@1 has CVB eeprom.

Bug 4625456

Change-Id: Ied4cd3c66bf0c1122bce9899b3fa749c4ff38d26
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3135834
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
2024-05-15 20:54:20 -07:00

258 lines
6.3 KiB
Devicetree

// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#include "nv-soc/tegra234-soc-audio-dai-links.dtsi"
/ {
bus@0 {
i2c@31c0000 {
typec: stusb1600@28 {
status = "okay";
compatible = "st,stusb1600";
reg = <0x28>;
vdd-supply = <&p3740_vdd_5v_sys>;
vsys-supply = <&vdd_3v3_sys>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA234_MAIN_GPIO(K, 6) IRQ_TYPE_LEVEL_LOW>;
typec_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
typec-power-opmode = "default";
port {
typec_con_ep: endpoint {
remote-endpoint = <&usb_role_switch0>;
};
};
};
};
};
i2c@c250000 {
ina3221@41 {
compatible = "ti,ina3221";
reg = <0x41>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0x0>;
label = "CVB_ATX_12V";
shunt-resistor-micro-ohms = <2000>;
};
channel@1 {
reg = <0x1>;
label = "CVB_ATX_3V3";
shunt-resistor-micro-ohms = <2000>;
};
channel@2 {
reg = <0x2>;
label = "CVB_ATX_5V";
shunt-resistor-micro-ohms = <2000>;
};
};
ina219@44 {
compatible = "ti,ina219";
reg = <0x44>;
shunt-resistor = <2000>;
label = "CVB_ATX_12V_8P";
};
f75308@4d {
compatible = "fintek,f75308";
reg = <0x4d>;
#address-cells = <1>;
#size-cells = <0>;
fan@0 {
reg = <0x0>;
type = "pwm";
duty = "manual_duty";
5seg = <100 80 60 40 20>;
};
fan@1 {
reg = <0x1>;
type = "pwm";
duty = "manual_duty";
5seg = <100 80 60 40 20>;
};
fan@2 {
reg = <0x2>;
type = "pwm";
duty = "manual_duty";
5seg = <100 80 60 40 20>;
};
fan@3 {
reg = <0x3>;
type = "pwm";
duty = "manual_duty";
5seg = <100 80 60 40 20>;
};
};
tca9539@74 {
compatible = "ti,tca9539";
reg = <0x74>;
status = "okay";
interrupt-parent = <&gpio>;
interrupts = <TEGRA234_MAIN_GPIO(G, 5) IRQ_TYPE_LEVEL_LOW>;
vcc-supply = <&vdd_3v3_ao>;
#gpio-cells = <2>;
gpio-controller;
};
};
padctl@3520000 {
ports {
usb2-0 {
port {
usb_role_switch0: endpoint {
remote-endpoint = <&typec_con_ep>;
};
};
};
};
};
};
sound {
compatible = "nvidia,tegra186-audio-graph-card",
"nvidia,tegra186-ape";
clocks = <&bpmp TEGRA234_CLK_PLLA>,
<&bpmp TEGRA234_CLK_PLLA_OUT0>,
<&bpmp TEGRA234_CLK_AUD_MCLK>;
clock-names = "pll_a", "plla_out0", "extern1";
assigned-clocks = <&bpmp TEGRA234_CLK_AUD_MCLK>;
assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLA_OUT0>;
nvidia-audio-card,name = "NVIDIA Jetson IGX Orin APE";
nvidia-audio-card,mclk-fs = <256>;
nvidia-audio-card,widgets =
"Headphone", "CVB-RT Headphone Jack",
"Microphone", "CVB-RT Mic Jack",
"Speaker", "CVB-RT Int Spk",
"Microphone", "CVB-RT Int Mic";
nvidia-audio-card,routing =
"CVB-RT Headphone Jack", "CVB-RT HPOL",
"CVB-RT Headphone Jack", "CVB-RT HPOR",
"CVB-RT IN1P", "CVB-RT Mic Jack",
"CVB-RT IN2P", "CVB-RT Mic Jack",
"CVB-RT IN2N", "CVB-RT Mic Jack",
"CVB-RT IN3P", "CVB-RT Mic Jack",
"CVB-RT Int Spk", "CVB-RT SPOLP",
"CVB-RT Int Spk", "CVB-RT SPORP",
"CVB-RT Int Spk", "CVB-RT LOUTL",
"CVB-RT Int Spk", "CVB-RT LOUTR",
"CVB-RT DMIC1", "CVB-RT Int Mic",
"CVB-RT DMIC2", "CVB-RT Int Mic";
/* I2S4 dai node */
nvidia-audio-card,dai-link@79 {
link-name = "rt5640-playback";
codec {
sound-dai = <&rt5640 0>;
prefix = "CVB-RT";
};
};
/* I2S6 dai node */
nvidia-audio-card,dai-link@81 {
bitclock-master;
frame-master;
};
};
eeprom-manager {
bus@1 {
i2c-bus = <&dp_aux_ch2_i2c>;
eeprom@0 {
slave-address = <0x55>;
label = "cvb";
};
};
};
p3740_vdd_0v95_AO: regulator-vdd-0v95-AO {
compatible = "regulator-fixed";
regulator-name = "vdd-0v95-AO";
regulator-min-microvolt = <950000>;
regulator-max-microvolt = <950000>;
};
p3740_vdd_12v_sys: regulator-vdd-12v-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-12v-sys";
regulator-min-microvolt = <12000000>;
regulator-max-microvolt = <12000000>;
};
p3740_vdd_1v05_AO: regulator-vdd-1v05-AO {
compatible = "regulator-fixed";
regulator-name = "vdd-1v05-AO";
regulator-min-microvolt = <1050000>;
regulator-max-microvolt = <1050000>;
};
p3740_vdd_1v0_sys: regulator-vdd-1v0-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-1v0-sys";
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1000000>;
};
p3740_vdd_1v1_sys: regulator-vdd-1v1-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-1v1-sys";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
};
p3740_vdd_1v8_AO: regulator-vdd-1v8-AO {
compatible = "regulator-fixed";
regulator-name = "vdd-1v8-AO";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
p3740_vdd_1v8_sys: regulator-vdd-1v8-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-1v8-sys";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
p3740_vdd_2v5_sys: regulator-vdd-2v5-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-2v5-sys";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2500000>;
};
p3740_vdd_2v8_sys: regulator-vdd-2v8-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-2v8-sys";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
p3740_vdd_3v3_AO: regulator-vdd-3v3-AO {
compatible = "regulator-fixed";
regulator-name = "vdd-3v3-AO";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
p3740_vdd_3v7_AO: regulator-vdd-3v7-AO {
compatible = "regulator-fixed";
regulator-name = "vdd-3v7-AO";
regulator-min-microvolt = <3700000>;
regulator-max-microvolt = <3700000>;
};
p3740_vdd_5v_sys: regulator-vdd-5v-sys {
compatible = "regulator-fixed";
regulator-name = "vdd-5v-sys";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};
};