mirror of
git://nv-tegra.nvidia.com/device/hardware/nvidia/tegra-public-dts.git
synced 2025-12-22 09:11:55 +03:00
- change all dt file licenses to Nvidia, Nvidia Copyright, GPLv2 License - GPLv2 License: https://wiki.nvidia.com/nvwiki/index.php/SW_IP_Audit_Team/Licenses/GPLv2-only ESLC-5105 Change-Id: I069e525ebb521b986156495ec1c791f5a97a8b39 Signed-off-by: Ronit Halder <rhalder@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2383708 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Vipin Kumar <vipink@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
109 lines
2.8 KiB
Devicetree
109 lines
2.8 KiB
Devicetree
/*
|
|
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/*
|
|
* Jetson Device-tree overlay for MCP251x CAN Controller.
|
|
*/
|
|
|
|
#include <dt-bindings/pinctrl/pinctrl-tegra.h>
|
|
|
|
/ {
|
|
overlay-name = "MCP251x CAN Controller";
|
|
compatible = JETSON_COMPATIBLE;
|
|
|
|
fragment@0 {
|
|
target-path = "/";
|
|
__overlay__ {
|
|
clocks {
|
|
can_clock: can_clock {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <20000000>;
|
|
clock-accuracy = <100>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&hdr40_spi1>;
|
|
__overlay__ {
|
|
spi@0 {
|
|
compatible = "microchip,mcp2515";
|
|
reg = <0x0>;
|
|
spi-max-frequency = <10000000>;
|
|
nvidia,enable-hw-based-cs;
|
|
nvidia,rx-clk-tap-delay = <0x7>;
|
|
clocks = <&can_clock>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <HDR40_PIN31_GPIO 0x1>;
|
|
controller-data {
|
|
nvidia,cs-setup-clk-count = <0x1e>;
|
|
nvidia,cs-hold-clk-count = <0x1e>;
|
|
nvidia,rx-clk-tap-delay = <0x1f>;
|
|
nvidia,tx-clk-tap-delay = <0x0>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@2 {
|
|
target = <&pinmux>;
|
|
__overlay__ {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hdr40_pinmux>;
|
|
|
|
hdr40_pinmux: header-40pin-pinmux {
|
|
pin19 {
|
|
nvidia,pins = HDR40_PIN19;
|
|
nvidia,function = HDR40_SPI;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
|
|
};
|
|
pin21 {
|
|
nvidia,pins = HDR40_PIN21;
|
|
nvidia,function = HDR40_SPI;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
};
|
|
pin23 {
|
|
nvidia,pins = HDR40_PIN23;
|
|
nvidia,function = HDR40_SPI;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
};
|
|
pin24 {
|
|
nvidia,pins = HDR40_PIN24;
|
|
nvidia,function = HDR40_SPI;
|
|
nvidia,pull = <TEGRA_PIN_PULL_UP>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
|
|
};
|
|
pin26 {
|
|
nvidia,pins = HDR40_PIN26;
|
|
nvidia,function = HDR40_SPI;
|
|
nvidia,pull = <TEGRA_PIN_PULL_UP>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|