Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This document lists the code owners for all Linux repo sources, and it is
# used automatically whenever Pull Requests are created, in next way:
# - People listed as CODEOWNERS are automatically added as reviewers to all
# PRs open to branches containing this file.
# - In addition to Code Owners, other reviewers can be added.
# - There can be different code owners for different branches.
# - PRs will require the approval of at least one code owner.
#
# For more details, you can refer [GitHub CodeOwners Documentation](ttps://github.blog/2017-07-06-introducing-code-owners/)
#
# The format of CODEOWNERS is: <pattern> + <mail address of one/more owners>
#
# In case of multiple matches, the last pattern matched will take precedence.

##### Global code owners (for folders with no later match) #####

* nuno.sa@analog.com michael.hennerich@analog.com dragos.bogdan@analog.com bogdan.togorean@analog.com ciprian.hegbeli@analog.com darius.berghe@analog.com antoniu.miclaus@analog.com ramona.gradinariu@analog.com george.mois@analog.com ciprian.regus@analog.com marcelo.schmitt@analog.com stefan.popa@analog.com
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## PR Description

- Please replace this comment with a summary of your changes, and add any context
necessary to understand them. List any dependencies required for this change.
- To check the checkboxes below, insert a 'x' between square brackets (without
any space), or simply check them after publishing the PR.
- If you changes include a breaking change, please specify dependent PRs in the
description and try to push all related PRs simultaneously.

## PR Type
- [ ] Bug fix (a change that fixes an issue)
- [ ] New feature (a change that adds new functionality)
- [ ] Breaking change (a change that affects other repos or cause CIs to fail)

## PR Checklist
- [ ] I have conducted a self-review of my own code changes
- [ ] I have compiled my changes, including the documentation
- [ ] I have tested the changes on the relevant hardware
- [ ] I have updated the documentation outside this repo accordingly
- [ ] I have provided links for the relevant upstream lore
15 changes: 15 additions & 0 deletions .github/issue_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Thank you for reporting an issue with us for this repository.

We typically recommend using our forum (EngineerZone) for reporting issues.
That is where you may also find some resolutions to some questions you may have.

The link is:
https://ez.analog.com/linux-device-drivers/linux-software-drivers

You are still free to open an issue on Github, in case you prefer it here.
There are various other use-cases where this issue tracker is better suited than
the forum, such as punctual issues/items related to driver code, or keeping track
of certain tasks/items related to a particular driver changeset.

Thank you
Analog Devices, Inc. Linux Group
29 changes: 29 additions & 0 deletions .github/workflows/dispatch-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Synchronization cron

on:
workflow_dispatch:
inputs:
remote_name:
# jic23/iio
required: true
type: string
fetch_url:
# https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
required: true
type: string
branch:
# testing
required: true
type: string

jobs:
mirror:
uses: analogdevicesinc/linux/.github/workflows/mirror.yml@ci
secrets: inherit
permissions:
contents: write
actions: write
with:
remote_name: ${{ inputs.remote_name }}
fetch_url: ${{ inputs.fetch_url }}
branch: ${{ inputs.branch }}
22 changes: 22 additions & 0 deletions .github/workflows/dispatch-sync-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Synchronization sync ci

on:
workflow_dispatch:
inputs:
branches:
# '["oran-6.12-y","oran-6.12.38-y","adsp-6.12.38-y"]'
required: true
type: string

jobs:
sync_ci:
uses: analogdevicesinc/linux/.github/workflows/sync-ci.yml@ci
secrets: inherit
permissions:
contents: write
actions: write
strategy:
matrix:
branch: ${{ fromJSON(inputs.branches) }}
with:
branch: ${{ matrix.branch }}
55 changes: 55 additions & 0 deletions .github/workflows/llm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: LLM Agent

on:
workflow_dispatch:
inputs:
base-sha:
required: false
type: string
head-sha:
required: false
type: string
run-id:
required: false
type: string
prompt:
required: false
type: string
default: ""
prompt-repository:
required: false
type: string
default: ""
model-small:
required: false
type: string
default: "@vertexai-global/anthropic.claude-haiku-4-5@20251001"
model-medium:
required: false
type: string
default: "@vertexai-global/anthropic.claude-sonnet-4-5@20250929"
model-large:
required: false
type: string
default: "@vertexai-global/anthropic.claude-opus-4-5@20251101"

jobs:
llm:
uses: analogdevicesinc/linux/.github/workflows/llm.yml@ci
permissions:
contents: read
checks: read
secrets:
ANTHROPIC_CUSTOM_HEADERS: ${{ secrets.ANTHROPIC_CUSTOM_HEADERS }}
ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
ANTHROPIC_AUTH_TOKEN: ${{ secrets.ANTHROPIC_AUTH_TOKEN }}
with:
base-sha: ${{ inputs.base-sha }}
head-sha: ${{ inputs.head-sha }}
run-id: ${{ inputs.run-id }}
prompt: ${{ inputs.prompt }}
prompt-repository: ${{ inputs.prompt-repository }}
model-small: ${{ inputs.model-small }}
model-medium: ${{ inputs.model-medium }}
model-large: ${{ inputs.model-large }}

61 changes: 61 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Maintenance

on:
push:
branches:
- main

jobs:
cherry_pick_adi:
uses: analogdevicesinc/linux/.github/workflows/cherry-pick.yml@ci
secrets: inherit
permissions:
contents: write
actions: write
with:
branch: adi-6.12.0
if: ${{ github.repository_owner == 'analogdevicesinc' }}

cherry_pick_rpi:
uses: analogdevicesinc/linux/.github/workflows/cherry-pick.yml@ci
secrets: inherit
permissions:
contents: write
actions: write
with:
branch: rpi-6.12.y
filter: |
.github/*
if: ${{ github.repository_owner == 'analogdevicesinc' }}

assert:
runs-on: [self-hosted, repo-only]
permissions:
contents: read
needs:
- cherry_pick_adi
- cherry_pick_rpi

steps:
- name: Assert checks
env:
job_cherry_pick_adi: ${{ needs.cherry_pick_adi.outputs.summary }}
job_cherry_pick_rpi: ${{ needs.cherry_pick_rpi.outputs.summary }}
run: |
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o runner_env.sh \
https://raw.githubusercontent.com/analogdevicesinc/linux/ci/ci/runner_env.sh
source ./runner_env.sh
assert_job_summary

migrate_main:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0

- name: Mirror to xlnx-main
run: |
git push origin HEAD:xlnx-main --force
44 changes: 44 additions & 0 deletions .github/workflows/pr-closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
pull_request:
types: [closed]

permissions:
id-token: write
contents: read

jobs:
clean-cloudsmith:
if: github.repository == 'analogdevicesinc/linux'
runs-on: [self-hosted, repo-only]
steps:
- uses: cloudsmith-io/cloudsmith-cli-action@v1.0.5
env:
CLOUDSMITH_SERVICE_SLUG: ${{ secrets.CLOUDSMITH_SERVICE_SLUG }}
if: ${{ env.CLOUDSMITH_SERVICE_SLUG != '' && env.CLOUDSMITH_SERVICE_SLUG != ' ' }}
with:
oidc-namespace: ${{ vars.CLOUDSMITH_NAMESPACE }}
oidc-service-slug: ${{ secrets.CLOUDSMITH_SERVICE_SLUG }}
oidc-auth-only: 'true'

- name: Get Cloudsmith API Key
env:
CLOUDSMITH_SERVICE_SLUG: ${{ secrets.CLOUDSMITH_SERVICE_SLUG }}
if: ${{ env.CLOUDSMITH_SERVICE_SLUG == '' || env.CLOUDSMITH_SERVICE_SLUG == ' ' }}
run: |
CLOUDSMITH_API_KEY=$(echo "${{ secrets.CLOUDSMITH_API_KEY }}" | xargs)
echo "CLOUDSMITH_API_KEY=$CLOUDSMITH_API_KEY" >> "$GITHUB_ENV"

- name: Delete PR artifacts from Cloudsmith
run: |
curl -sO -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/main/utils/cloudsmith_utils/cloudsmith_helper.py

python3 -m venv ~/venv
source ~/venv/bin/activate
python3 -m ensurepip --upgrade
pip3 install requests
python3 cloudsmith_helper.py \
--repo sdg-linux \
--method remove_item_from_location \
--package_version "*/pr_${{ github.event.number }}/" \
--package_name "*"
Loading
Loading