Skip to content

Commit

Permalink
[Telink] Update Zephyr HASH to check CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 authored and BorysNykytiuk committed Nov 28, 2024
1 parent c68f2cc commit bae04e0
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: telink
# - name: Update Zephyr to specific revision (for developers purpose)
# shell: bash
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 8b29ee6b118ebe6eeec3224dbe343474e11403d8"
- name: Update Zephyr to specific revision (for developers purpose)
shell: bash
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py f46b0f337986bbef33cafc0a87373a3e64deb3e6"
- name: CI Examples Telink
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
with:
gh-context: ${{ toJson(github) }}

# - name: Update Zephyr to specific revision (for developers purpose)
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 8b29ee6b118ebe6eeec3224dbe343474e11403d8"
- name: Update Zephyr to specific revision (for developers purpose)
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py f46b0f337986bbef33cafc0a87373a3e64deb3e6"

- name: Build example Telink (B92 retention) Air Quality Sensor App
# Run test for master and s07641069 PRs
Expand Down
61 changes: 61 additions & 0 deletions src/platform/telink/tl3218x.overlay
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)>;
};
};

0 comments on commit bae04e0

Please sign in to comment.