Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpufreq: light-mpw-cpufreq: fix cpu_pll1 already disabled warning #12

Closed
wants to merge 75 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
d0c87ea
dt-bindings: pinctrl: Add thead,th1520-pinctrl bindings
esmil Dec 7, 2023
5d20049
pinctrl: Add driver for the T-Head TH1520 SoC
esmil Dec 4, 2023
a032f7b
riscv: dts: thead: Add TH1520 pin control nodes
esmil Dec 4, 2023
6e9eac5
riscv: dts: thead: Add TH1520 GPIO ranges
esmil Dec 7, 2023
ec80dc0
riscv: dts: thead: Adjust TH1520 GPIO labels
esmil Dec 8, 2023
c662e73
riscv: dts: thead: Add TH1520 pinctrl settings for UART0
esmil Dec 7, 2023
791ee03
riscv: dtb: thead: Add BeagleV Ahead LEDs
esmil Dec 10, 2023
d454f1a
mmc: sdhci-of-dwcmshc: Add support for T-Head TH1520
pdp7 Nov 10, 2023
99cc0ff
riscv: defconfig: Enable mmc and dma drivers for T-Head TH1520
pdp7 Dec 6, 2023
cc260b4
dt-bindings: pwm: Add T-HEAD PWM controller
xhackerustc Oct 5, 2023
7833af4
pwm: add T-HEAD PWM driver
xhackerustc Oct 5, 2023
c739837
riscv: dts: thead: Add TH1520 PWM node
xhackerustc Sep 21, 2023
0fee917
riscv: dts: thead: Add TH1520 PVT node
xhackerustc Sep 21, 2023
8f5cdd7
riscv: dts: thead: Enable Lichee Pi 4A PWM fan
xhackerustc Sep 21, 2023
e3dabe7
dt-bindings: net: snps,dwmac: allow dwmac-3.70a to set pbl properties
xhackerustc Aug 27, 2023
619f939
dt-bindings: net: add T-HEAD dwmac support
xhackerustc Aug 27, 2023
93a59e3
net: stmmac: add glue layer for T-HEAD TH1520 SoC
xhackerustc Aug 27, 2023
17c4768
riscv: dts: thead: Add TH1520 ethernet nodes
esmil Dec 6, 2023
0f5fb12
riscv: dts: thead: Add Lichee Pi 4A SDIO0 pins
esmil Dec 13, 2023
329134c
riscv: dts: thead: Add BeagleV Ahead SDIO0 pins
esmil Dec 13, 2023
bf08a77
dt-bindings: usb: Add T-HEAD TH1520 USB controller
xhackerustc Sep 27, 2023
04e3cd3
usb: dwc3: add T-HEAD TH1520 usb driver
xhackerustc Sep 27, 2023
9ae4f26
riscv: dts: thead: Add TH1520 I2C nodes
xhackerustc Sep 21, 2023
de1707c
riscv: dts: thead: Add TH1520 USB nodes
xhackerustc Sep 21, 2023
6e43e73
riscv: dts: thead: Add Lichee Pi 4A IO expansions
esmil Dec 13, 2023
8cfbc48
riscv: dts: thead: Enable Lichee Pi 4A USB
xhackerustc Sep 21, 2023
0494afd
[NOT-FOR-UPSTREAM] riscv: dts: thead: Add TH1520 CPU reset node
RevySR Sep 21, 2023
226947b
[NOT-FOR-UPSTREAM] remove compression for riscv Image
RevySR Sep 21, 2023
0320a30
[NFU] revyos: init defconfig
RevySR Sep 21, 2023
80a7c7f
[NFU] config: mmc_block & ext4 builtin
RevySR Sep 26, 2023
0dd5c44
[NFU] config: enable pvt & usb
RevySR Oct 1, 2023
3f8cfb3
[NFU] config: enable SVNAPOT/SVPBMT/ZICBOM/ZICBOZ
RevySR Oct 2, 2023
36f79df
riscv: select ARCH_HAS_FAST_MULTIPLIER
xhackerustc Nov 21, 2023
f101f1f
riscv: select ARCH_USE_CMPXCHG_LOCKREF
xhackerustc Nov 25, 2023
f2e144f
riscv: cmpxchg: implement arch_cmpxchg64_{relaxed|acquire|release}
xhackerustc Nov 25, 2023
ee2df3f
riscv: add PREEMPT_AUTO support
xhackerustc Oct 31, 2023
25a770a
riscv: allow to enable RT
xhackerustc Oct 31, 2023
e5e71b7
add TH1520 cpu frequency driver
ixgbe01 Nov 24, 2023
2b71a4c
fix compile th1520-beaglev-ahead error
ixgbe01 Nov 27, 2023
913f8a8
[NFU] configs: enable th1520 driver & enable cpu-freq
RevySR Nov 28, 2023
4f789ff
[NFU] configs: enable pinctrl th1520
RevySR Dec 14, 2023
32f8d38
riscv: tlb: fix __p*d_free_tlb()
xhackerustc Dec 19, 2023
ed41509
riscv: tlb: convert __p*d_free_tlb() to inline functions
xhackerustc Dec 19, 2023
c12c2bc
riscv: enable MMU_GATHER_RCU_TABLE_FREE for SMP && MMU
xhackerustc Dec 19, 2023
27ea8b9
riscv: enable HAVE_FAST_GUP if MMU
xhackerustc Dec 19, 2023
eb7ec07
riscv: Improve exception and system call latency
antonblanchard Dec 25, 2023
cc4d58d
mm/tlb: fix fullmm semantics
anadav Dec 28, 2023
506d8cf
riscv: tlb: avoid tlb flushing if fullmm == 1
xhackerustc Dec 28, 2023
88a3243
[NFU] th1520_aon: update sdk 1.4.2
RevySR Jan 6, 2024
760bd1f
[NFU] th1520_light_event: update sdk 1.4.2
RevySR Jan 6, 2024
9b8e154
[NFU] light_wdt: update sdk 1.4.2
RevySR Jan 7, 2024
c5206c8
[NFU] config: light_wdt: enable LIGHT_PMIC_WATCHDOG
RevySR Jan 7, 2024
2c80575
dt-bindings: reset: Document th1520 reset control
KwangSon Sep 18, 2023
122c525
reset: Add th1520 reset driver support
KwangSon Sep 18, 2023
1bd1d47
riscv: dts: Add th1520 reset device tree
KwangSon Sep 18, 2023
5cae498
[NFU] riscv: dts: add watchdog node
RevySR Jan 7, 2024
817d875
[NFU] panic: add thead sdk quirks
RevySR Jan 7, 2024
325a21b
[NFU] rpmsg: mailbox-client: sync thead sdk 1.4.2
RevySR Jan 7, 2024
540398e
[NFU] configs: rpmsg: RPMSG_THEAD_LIGHT=y
RevySR Jan 7, 2024
b1598f8
[NFU] dts: th1520: add mbox client node
RevySR Jan 7, 2024
29b001c
[NFU] dts: th1520: lpi4a: add rpmsg node
RevySR Jan 7, 2024
776fa64
[NFU] config: enable RTW88_8723DS
RevySR Oct 16, 2023
6568fec
[NFU] configs: builtin pinctrl th1520
RevySR Jan 8, 2024
45837ef
riscv: dts: thead: th1520: Add PMU event node
inochisa Jan 9, 2024
06419a6
[NFU] ci: kernel auto build on thead-gcc & mainline-gcc
RevySR Nov 11, 2023
fc97564
[NFU] ci: add build linux-perf as perf-th1520
RevySR Jan 9, 2024
64e55ce
[NFU] chore: dtb_install in /boot
RevySR Jan 12, 2024
bdeaab8
[NFU] riscv: dts: lpi4a 16g support
RevySR Jan 12, 2024
8d9be7a
[NFU] dts: th1520-lichee-pi-4a: add alias for emmc & sd
RevySR Jan 22, 2024
7509129
[NFU] dts: th1520-beaglev-ahead: add alias for emmc & sd
RevySR Jan 22, 2024
5f82b9a
Add th1520-lichee-cluster-4a dts support (8G/16G)
nekorouter Jan 22, 2024
6818022
[NFU] fix: reset-th1520: incomplete type
RevySR Jan 23, 2024
4e4b0c0
[NFU] fix: light-mailbox: add platform_device header
RevySR Jan 23, 2024
1229138
cpufreq: light-mpw-cpufreq: fix cpu_pll1 already disabled warning
pdp7 Jan 28, 2024
a5b5e14
cpufreq: light-mpw-cpufreq: fix -Wunused-variable in panic_cpufreq_no…
pdp7 Jan 29, 2024
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
118 changes: 118 additions & 0 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: revyos-mainline-kernel-build

on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"

env:
xuantie_toolchain: https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1698113812618
toolchain_file_name: Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.8.0-20231018.tar.gz
mainline_toolchain: https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.10.18
mainline_toolchain_file_name: riscv64-glibc-ubuntu-22.04-gcc-nightly-2023.10.18-nightly.tar.gz
wget_alias: 'wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 0'
ARCH: riscv
board: lpi4a
KBUILD_BUILD_USER: builder
KBUILD_BUILD_HOST: revyos-riscv-builder
KDEB_COMPRESS: xz
KDEB_CHANGELOG_DIST: unstable

jobs:
kernel:
strategy:
fail-fast: false
matrix:
include:
- name: thead-gcc
- name: gcc-13

runs-on: ubuntu-22.04
env:
CROSS_COMPILE: riscv64-unknown-linux-gnu-

steps:
- name: "Update APT sources"
run: |
sudo apt update

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Install software
run: |
sudo apt install -y gdisk dosfstools g++-12-riscv64-linux-gnu build-essential \
libncurses-dev gawk flex bison openssl libssl-dev tree \
dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf device-tree-compiler \
devscripts debhelper pahole

- name: Checkout kernel
uses: actions/checkout@v4
with:
path: 'kernel'

- name: Compile Kernel && Install
run: |
mkdir -p rootfs/boot
if [[ ${{ matrix.name }} = "thead-gcc" ]]; then
${wget_alias} ${xuantie_toolchain}/${toolchain_file_name}
tar -xvf ${toolchain_file_name} -C /opt
export PATH="/opt/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.8.0/bin:$PATH"
else
${wget_alias} ${mainline_toolchain}/${mainline_toolchain_file_name}
tar -xvf ${mainline_toolchain_file_name} -C /opt
export PATH="/opt/riscv/bin:$PATH"
fi
${CROSS_COMPILE}gcc -v

pushd kernel
make revyos_defconfig
export KDEB_PKGVERSION="$(date "+%Y.%m.%d.%H.%M")+$(git rev-parse --short HEAD)"
#if [ x"${{ matrix.name }}" = x"gcc-12" ]; then
# echo "CONFIG_THEAD_ISA=n" >> .config
#elif [ x"${{ matrix.name }}" = x"thead-gcc" ]; then
# echo "CONFIG_THEAD_ISA=y" >> .config
#fi
make -j$(nproc) bindeb-pkg LOCALVERSION="-${board}"
make -j$(nproc) dtbs

# Copy deb
sudo dcmd cp -v ../*.changes ${GITHUB_WORKSPACE}/rootfs/

# record commit-id
git rev-parse HEAD > kernel-commitid
sudo cp -v kernel-commitid ${GITHUB_WORKSPACE}/rootfs/boot

# Install DTB
sudo cp -v arch/riscv/boot/dts/thead/*.dtb ${GITHUB_WORKSPACE}/rootfs/boot/

# Build & Install perf
pushd tools/perf
make LDFLAGS=-static NO_LIBELF=1 NO_LIBTRACEEVENT=1 perf
cp -v perf ${GITHUB_WORKSPACE}/rootfs/perf-th1520
popd
popd

- name: compress
run: tar -zcvf thead-mainline-kernel-${{ matrix.name }}.tar.gz rootfs

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: thead-mainline-kernel-${{ matrix.name }}.tar.gz
path: thead-mainline-kernel-${{ matrix.name }}.tar.gz
retention-days: 30
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/net/snps,dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ properties:
- snps,dwxgmac
- snps,dwxgmac-2.10
- starfive,jh7110-dwmac
- thead,th1520-dwmac

reg:
minItems: 1
Expand Down Expand Up @@ -591,6 +592,7 @@ allOf:
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- snps,dwmac-3.50a
- snps,dwmac-3.70a
- snps,dwmac-4.10a
- snps,dwmac-4.20a
- snps,dwmac-5.20
Expand Down
77 changes: 77 additions & 0 deletions Documentation/devicetree/bindings/net/thead,dwmac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/thead,dwmac.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: T-HEAD DWMAC Ethernet controller

maintainers:
- Jisheng Zhang <jszhang@kernel.org>

select:
properties:
compatible:
contains:
enum:
- thead,th1520-dwmac
required:
- compatible

properties:
compatible:
items:
- enum:
- thead,th1520-dwmac
- const: snps,dwmac-3.70a

reg:
maxItems: 1

thead,gmacapb:
$ref: /schemas/types.yaml#/definitions/phandle
description:
The phandle to the syscon node that control ethernet
interface and timing delay.

required:
- compatible
- reg
- clocks
- clock-names
- interrupts
- interrupt-names
- phy-mode
- thead,gmacapb

allOf:
- $ref: snps,dwmac.yaml#

unevaluatedProperties: false

examples:
- |
gmac0: ethernet@e7070000 {
compatible = "thead,th1520-dwmac", "snps,dwmac-3.70a";
reg = <0xe7070000 0x2000>;
clocks = <&clk 1>, <&clk 2>;
clock-names = "stmmaceth", "pclk";
interrupts = <66>;
interrupt-names = "macirq";
phy-mode = "rgmii-id";
snps,fixed-burst;
snps,axi-config = <&stmmac_axi_setup>;
snps,pbl = <32>;
thead,gmacapb = <&gmacapb_syscon>;
phy-handle = <&phy0>;

mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";

phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
Loading