mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 12:37:11 +08:00
120 lines
1.5 KiB
Devicetree
120 lines
1.5 KiB
Devicetree
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2025 Loongson Technology Corporation Limited
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "ls2k300_vanguard_pi_common.dtsi"
|
|
|
|
/ {
|
|
vdd_3v3: fixed-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd-3v3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&uart2 {
|
|
status = "ok"
|
|
};
|
|
|
|
&uart5 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&uart6 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&uart7 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&uart8 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&spi1 {
|
|
status = "okay";
|
|
|
|
spidev0@0 {
|
|
compatible = "rohm,dh2228fv";
|
|
reg = <0>;
|
|
spi-max-frequency = <25000000>;
|
|
};
|
|
};
|
|
|
|
&spi2 {
|
|
status = "ok"
|
|
pinctrl-0 = <&spi2_cs_as_gpio>;
|
|
pinctrl-names = "default";
|
|
num-chipselects = <2>;
|
|
cs-gpios = <&gpio 67 0>,
|
|
<&gpio 85 0>;
|
|
|
|
mcp3004@0 {
|
|
compatible = "mcp3004";
|
|
reg = <0>;
|
|
spi-max-frequency = <1500000>;
|
|
};
|
|
|
|
spidev1@1 {
|
|
compatible = "rohm,dh2228fv";
|
|
reg = <1>;
|
|
spi-max-frequency = <25000000>;
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
i2c-speed = <400000>;
|
|
|
|
bh1750: ambient-light-sensor@23 {
|
|
compatible = "rohm,bh1750";
|
|
reg = <0x23>;
|
|
};
|
|
|
|
bl24c32a: eeprom@50 {
|
|
compatible = "atmel,24c32";
|
|
reg = <0x50>;
|
|
};
|
|
|
|
aht20: temperature-humidity-sensor@38 {
|
|
compatible = "asair,aht20";
|
|
reg = <0x38>;
|
|
vdd-supply = <&vdd_3v3>;
|
|
};
|
|
};
|
|
|
|
&i2c2 {
|
|
i2c-speed = <400000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&can0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&can1 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&can2 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&can3 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm1 {
|
|
status = "okay";
|
|
};
|