Skip to content

Commit

Permalink
reComputer:Add eeprom wp pin
Browse files Browse the repository at this point in the history
  • Loading branch information
is-qian committed Oct 14, 2024
1 parent 776282a commit 0e18591
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
38 changes: 24 additions & 14 deletions overlays/rpi/reComputer-R100x-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,21 @@
eeprom@50 {
compatible = "atmel,24c256";
reg = <0x50>;
wp-gpios = <&pcf857x 8 GPIO_ACTIVE_HIGH>;
};

};
};

fragment@5 {
target = <&i2c0_pins>;
__overlay__ {
brcm,pins = <44 45>;
brcm,function = <5>; /* alt1 */
};
};

fragment@6 {
target = <&uart2>;
__overlay__ {
label = "RS485_1";
Expand All @@ -185,7 +194,7 @@
};
};

fragment@6 {
fragment@7 {
target = <&uart3>;
__overlay__ {
label = "RS485_2";
Expand All @@ -196,7 +205,7 @@
};
};

fragment@7 {
fragment@8 {
target = <&uart4>;
__overlay__ {
label = "RS485_3";
Expand All @@ -207,31 +216,31 @@
};
};

fragment@8 {
fragment@9 {
target = <&uart2_pins>;
__overlay__ {
brcm,pins = <0 1 2 3>;
brcm,pull = <0 2 2 0>;
};
};

fragment@9 {
fragment@10 {
target = <&uart3_pins>;
__overlay__ {
brcm,pins = <4 5 6 7>;
brcm,pull = <0 2 2 0>;
};
};

fragment@10 {
fragment@11 {
target = <&uart4_pins>;
__overlay__ {
brcm,pins = <8 9 10 11>;
brcm,pull = <0 2 2 0>;
};
};

fragment@11 {
fragment@12 {
target = <&gpio>;
__overlay__ {
spi1_pins: spi1_pins {
Expand All @@ -246,7 +255,7 @@
};
};

spi_frag:fragment@12 {
spi_frag:fragment@13 {
target = <&spi1>;
frag1: __overlay__ {
/* needed to avoid dtc warning */
Expand Down Expand Up @@ -275,22 +284,22 @@
};
};

fragment@13 {
fragment@14 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};

fragment@14 {
fragment@15 {
target = <&spi1>;
__overlay__ {
pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
cs-gpios = <&gpio 18 1>, <&gpio 17 1>;
};
};

fragment@15 {
fragment@16 {
target = <&leds>;
__overlay__ {
compatible = "gpio-leds";
Expand Down Expand Up @@ -318,7 +327,7 @@
};
};

fragment@16 {
fragment@17 {
target-path="/";
__overlay__ {
beeper: beeper {
Expand All @@ -329,7 +338,7 @@
};
};

fragment@17 {
fragment@18 {
target-path="/";
__overlay__ {

Expand Down Expand Up @@ -462,12 +471,13 @@
};
};

/* If the hardware version is v1.1, no parameters need to be passed, if it is v1.0, the hardware will be passed uart2 or i2c0 according to the need */
__overrides__ {
uart2 = <0>,"!1!2!7!8!9!10!11!14",
uart2 = <0>,"!1!2!5!8!9!10!11!12!15",
<0>,"=21=22=23=24=25=26=27=28=29=30=31",
<&i2c_frag>, "target:0=",<&i2c3>,
<&spi_frag>, "target:0=",<&spi0>;
i2c0 = <0>,"!5!7!8!9!10!11!14",
i2c0 = <0>,"!5!6!8!9!10!11!12!15",
<0>,"=20=21=22=23=25=26=27=28=29=30=31",
<&i2c_frag>, "target:0=",<&i2c3>,
<&spi_frag>, "target:0=",<&spi0>;
Expand Down
1 change: 1 addition & 0 deletions overlays/rpi/reComputer-R110x-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
eeprom@50 {
compatible = "atmel,24c256";
reg = <0x50>;
wp-gpios = <&pcf857x 8 GPIO_ACTIVE_HIGH>;
};

};
Expand Down

0 comments on commit 0e18591

Please sign in to comment.