Move 1w ti board file.

This commit is contained in:
andreili 2025-08-19 15:29:11 +02:00
parent ee2dc421bc
commit f5089c2269
2 changed files with 28 additions and 16 deletions

View File

@ -225,22 +225,6 @@
regulator-name = "vcc_sd"; regulator-name = "vcc_sd";
vin-supply = <&vcc3v3_sys>; vin-supply = <&vcc3v3_sys>;
}; };
onewire: onewire {
compatible = "w1-gpio";
gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&gpio_w1>;
status = "okay";
};
};
&pinctrl {
gpio-w1 {
gpio_w1:gpio-w1 {
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
}; };
&combphy1 { &combphy1 {

View File

@ -7,6 +7,22 @@
/ { / {
model = "BigTreeTech Pi 2"; model = "BigTreeTech Pi 2";
compatible = "bigtreetech,pi2", "rockchip,rk3566"; compatible = "bigtreetech,pi2", "rockchip,rk3566";
onewire: onewire {
compatible = "w1-gpio";
gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&gpio_w1>;
status = "disabled";
};
};
&pinctrl {
gpio-w1 {
gpio_w1:gpio-w1 {
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
}; };
/* HDMI output */ /* HDMI output */
@ -60,3 +76,15 @@
&bl_dsi { &bl_dsi {
status = "okay"; status = "okay";
}; };
&sfc {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <100000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
};
};