forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
196 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/ { | ||
/* Short TL_Key3 (J6 pin 21) to ground */ | ||
key_pool { | ||
compatible = "gpio-keys"; | ||
|
||
inp { | ||
gpios = <&gpiob 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, | ||
<&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
|
||
key_matrix { | ||
compatible = "gpio-keys"; | ||
|
||
col { | ||
gpios = <&gpiob 6 GPIO_ACTIVE_HIGH>, | ||
<&gpiob 7 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
row { | ||
gpios = <&gpiob 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, | ||
<&gpiob 5 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; | ||
}; | ||
}; | ||
|
||
led_pool { | ||
compatible = "gpio-leds"; | ||
|
||
out { | ||
gpios = <&gpiod 0 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
|
||
pwm_pool { | ||
compatible = "pwm-leds"; | ||
out { | ||
pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>, | ||
<&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>, | ||
<&pwm0 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pwm0 { | ||
/* On board RGB LEDs */ | ||
pinctrl-ch0 = <&pwm_ch0_pb1_default>; | ||
pinctrl-ch2 = <&pwm_ch1_pb2_default>; | ||
pinctrl-ch1 = <&pwm_ch2_pb0_default>; | ||
}; | ||
|
||
&pinctrl { | ||
pwm_ch0_pb1_default: pwm_ch0_pb1_default { | ||
pinmux = <TLX_PINMUX_SET(TLX_PORT_B, TLX_PIN_1, TL321X_FUNC_PWM0)>; | ||
}; | ||
pwm_ch1_pb2_default: pwm_ch1_pb2_default { | ||
pinmux = <TLX_PINMUX_SET(TLX_PORT_B, TLX_PIN_2, TL321X_FUNC_PWM1)>; | ||
}; | ||
pwm_ch2_pb0_default: pwm_ch2_pb0_default { | ||
pinmux = <TLX_PINMUX_SET(TLX_PORT_B, TLX_PIN_0, TL321X_FUNC_PWM2)>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
&flash { | ||
reg = <0x20000000 0x200000>; | ||
|
||
partitions { | ||
/delete-node/ partition@0; | ||
/delete-node/ partition@20000; | ||
/delete-node/ partition@88000; | ||
/delete-node/ partition@f0000; | ||
/delete-node/ partition@f4000; | ||
/delete-node/ partition@fe000; | ||
boot_partition: partition@0 { | ||
label = "mcuboot"; | ||
reg = <0x00000000 0x13000>; | ||
}; | ||
slot0_partition: partition@13000 { | ||
label = "image-0"; | ||
reg = <0x13000 0xef000>; | ||
}; | ||
factory_partition: partition@102000 { | ||
label = "factory-data"; | ||
reg = <0x102000 0x1000>; | ||
}; | ||
storage_partition: partition@103000 { | ||
label = "storage"; | ||
reg = <0x103000 0xc000>; | ||
}; | ||
slot1_partition: partition@10f000 { | ||
label = "image-1"; | ||
reg = <0x10f000 0xef000>; | ||
}; | ||
vendor_partition: partition@1fe000 { | ||
label = "vendor-data"; | ||
reg = <0x1fe000 0x2000>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/ { | ||
/* | ||
* There is no way to keep GPIOs | ||
* during deep-sleep mode so output GPIOs | ||
* and PWM's are useless. | ||
*/ | ||
|
||
aliases { | ||
/delete-property/ led0; | ||
/delete-property/ led1; | ||
/delete-property/ led2; | ||
/delete-property/ led3; | ||
/delete-property/ mcuboot-led0; | ||
/delete-property/ pwm-led0; | ||
/delete-property/ pwm-0; | ||
}; | ||
|
||
/delete-node/ leds; | ||
/delete-node/ pwm_leds; | ||
}; | ||
|
||
&pwm0 { | ||
status = "disabled"; | ||
}; |