mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
70 lines
1.1 KiB
Plaintext
70 lines
1.1 KiB
Plaintext
|
// Definitions for MCP23017 Gpio Extender from Microchip Semiconductor
|
||
|
|
||
|
/dts-v1/;
|
||
|
/plugin/;
|
||
|
|
||
|
/ {
|
||
|
compatible = "brcm,bcm2835";
|
||
|
|
||
|
fragment@0 {
|
||
|
target = <&i2c1>;
|
||
|
__overlay__ {
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fragment@1 {
|
||
|
target = <&gpio>;
|
||
|
__overlay__ {
|
||
|
mcp23017_pins: mcp23017_pins@20 {
|
||
|
brcm,pins = <4>;
|
||
|
brcm,function = <0>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fragment@2 {
|
||
|
target = <&i2c1>;
|
||
|
__overlay__ {
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <0>;
|
||
|
|
||
|
mcp23017: mcp@20 {
|
||
|
compatible = "microchip,mcp23017";
|
||
|
reg = <0x20>;
|
||
|
gpio-controller;
|
||
|
#gpio-cells = <2>;
|
||
|
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fragment@3 {
|
||
|
target = <&mcp23017>;
|
||
|
__dormant__ {
|
||
|
compatible = "microchip,mcp23008";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fragment@4 {
|
||
|
target = <&mcp23017>;
|
||
|
mcp23017_irq: __overlay__ {
|
||
|
#interrupt-cells=<2>;
|
||
|
interrupt-parent = <&gpio>;
|
||
|
interrupts = <4 2>;
|
||
|
interrupt-controller;
|
||
|
microchip,irq-mirror;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
__overrides__ {
|
||
|
gpiopin = <&mcp23017_pins>,"brcm,pins:0",
|
||
|
<&mcp23017_irq>,"interrupts:0";
|
||
|
addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0";
|
||
|
mcp23008 = <0>,"=3";
|
||
|
noints = <0>,"!1!4";
|
||
|
};
|
||
|
};
|
||
|
|