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: correct typo in config name #9

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
213b181
dt-bindings: mmc: sdhci-of-dwcmhsc: Add T-Head TH1520 support
pdp7 Nov 14, 2023
e7b5a9b
mmc: sdhci: add __sdhci_execute_tuning() to header
pdp7 Nov 14, 2023
184924f
mmc: sdhci-of-dwcmshc: Add support for T-Head TH1520
pdp7 Nov 14, 2023
d5208c7
riscv: defconfig: Enable mmc and dma drivers for T-Head TH1520
pdp7 Nov 14, 2023
fcdb0e3
riscv: dts: thead: Add TH1520 mmc controllers and sdhci clock
pdp7 Nov 14, 2023
3afcdf3
riscv: dts: thead: Enable BeagleV Ahead eMMC and microSD
pdp7 Nov 14, 2023
ae276cd
riscv: dts: thead: Enable LicheePi 4A eMMC and microSD
pdp7 Nov 14, 2023
0a5cbd6
dt-bindings: reset: Document th1520 reset control
KwangSon Sep 4, 2023
c23a022
reset: Add th1520 reset driver support
KwangSon Sep 4, 2023
0566cd6
dt-bindings: net: snps,dwmac: allow dwmac-3.70a to set pbl properties
xhackerustc Aug 27, 2023
77d9ccc
dt-bindings: net: add T-HEAD dwmac support
xhackerustc Aug 27, 2023
d775ed0
net: stmmac: add glue layer for T-HEAD TH1520 SoC
xhackerustc Aug 27, 2023
f0c903c
fix: dwmac-thead build error
RevySR Sep 21, 2023
582ffd5
[NFU] WIP on th_net: d3e1832c7d2d riscv: mm: update T-Head memory typ…
RevySR Sep 26, 2023
6f5f0a5
dt-binding: riscv: add T-HEAD CPU reset
xhackerustc May 18, 2023
e0a8612
[NFU] th1520: add cpu reset node
RevySR Sep 21, 2023
02dc6fc
[NFU] chore: remove compression for riscv Image
RevySR Sep 21, 2023
79114ed
[NFU] revyos: init defconfig
RevySR Sep 21, 2023
9708a66
[NFU] config: mmc_block & ext4 builtin
RevySR Sep 26, 2023
04a4c71
th1520-beaglev-ahead.dts
RobertCNelson Sep 27, 2023
046a294
dt-bindings: usb: Add T-HEAD TH1520 USB controller
xhackerustc Sep 27, 2023
910495c
usb: dwc3: add T-HEAD TH1520 usb driver
xhackerustc Sep 27, 2023
48b483e
dt-bindings: pwm: Add T-HEAD PWM controller
xhackerustc Oct 5, 2023
22a6757
pwm: add T-HEAD PWM driver
xhackerustc Oct 5, 2023
80d58ce
riscv: dts: thead: add i2c dt nodes
xhackerustc Sep 21, 2023
7591246
riscv: dts: thead: add usb dt node
xhackerustc Sep 21, 2023
1127478
riscv: dts: lpi4a: enable usb
xhackerustc Sep 21, 2023
b8c94a8
riscv: dts: th1520: add pwm node
xhackerustc Sep 21, 2023
5701342
riscv: dts: lpi4a: enable pwm
xhackerustc Sep 21, 2023
e2ad149
riscv: dts: th1520: add pvt dt node
xhackerustc Sep 21, 2023
bdb0ad9
riscv: dts: lpi4a: enable pvt
xhackerustc Sep 21, 2023
a7421da
riscv: dts: thead: lpi4a: enable pwm fan
xhackerustc Sep 21, 2023
411b5ab
[NFU] config: enable pvt & usb
RevySR Oct 1, 2023
f1e9609
[NFU] config: enable SVNAPOT/SVPBMT/ZICBOM/ZICBOZ
RevySR Oct 2, 2023
e7f85bf
riscv: dts: th1520, lpi4a: add sdhci and rtl8723ds nodes
chainsx Oct 11, 2023
f21d7b0
[NFU] config: enable RTW88_8723DS
RevySR Oct 16, 2023
2e608f1
riscv: dts: thead: convert isa detection to new properties
ConchuOD Oct 22, 2023
ab4946b
riscv: errata: thead: use riscv_nonstd_cache_ops for CMO
xhackerustc Oct 12, 2023
95aae79
riscv: errata: thead: use pa based instructions for CMO
xhackerustc Oct 12, 2023
d6d5dc8
riscv: select ARCH_HAS_FAST_MULTIPLIER
xhackerustc Nov 21, 2023
fa39b6b
riscv: select ARCH_USE_CMPXCHG_LOCKREF
xhackerustc Nov 25, 2023
2c4c1fe
riscv: cmpxchg: implement arch_cmpxchg64_{relaxed|acquire|release}
xhackerustc Nov 25, 2023
f71fdfd
riscv: add PREEMPT_AUTO support
xhackerustc Oct 31, 2023
be82c88
riscv: allow to enable RT
xhackerustc Oct 31, 2023
462d0f2
add TH1520 cpu frequency driver
ixgbe01 Nov 24, 2023
a507558
fix compile th1520-beaglev-ahead error
ixgbe01 Nov 27, 2023
8945a81
[NFU] configs: enable th1520 driver & enable cpu-freq
RevySR Nov 28, 2023
1532bf4
riscv: introduce RISCV_EFFICIENT_UNALIGNED_ACCESS
xhackerustc Dec 2, 2023
1f1f741
riscv: select DCACHE_WORD_ACCESS for efficient unaligned access HW
xhackerustc Dec 2, 2023
2febc63
[NFU] ci: kernel auto build on thead-gcc & mainline-gcc
RevySR Nov 11, 2023
c0ea276
riscv: Improve exception and system call latency
antonblanchard Dec 25, 2023
ed03c62
cpufreq: correct typo in config name
felixonmars Dec 29, 2023
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
112 changes: 112 additions & 0 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
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/
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ properties:
- rockchip,rk3568-dwcmshc
- rockchip,rk3588-dwcmshc
- snps,dwcmshc-sdhci
- thead,th1520-dwcmshc

reg:
maxItems: 1
Expand Down
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 @@ -586,6 +587,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>;
};
};
};
44 changes: 44 additions & 0 deletions Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/thead,th1520-pwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: T-HEAD TH1520 PWM

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

allOf:
- $ref: pwm.yaml#

properties:
compatible:
enum:
- thead,th1520-pwm

reg:
maxItems: 1

clocks:
maxItems: 1

"#pwm-cells":
const: 3

required:
- compatible
- reg
- clocks

additionalProperties: false

examples:
- |

pwm@ec01c000 {
compatible = "thead,th1520-pwm";
reg = <0xec01c000 0x1000>;
clocks = <&clk 1>;
#pwm-cells = <3>;
};
39 changes: 39 additions & 0 deletions Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/reset/thead,th1520-reset.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: T-HEAD th1520 SoC Reset Controller

maintainers:
- Kwanghoon Son <k.son@samsung.com>

properties:
compatible:
- items:
- const: thead,th1520-reset
- const: syscon

reg:
maxItems: 1

'#reset-cells':
const: 1

required:
- compatible
- reg
- '#reset-cells'

additionalProperties: false

examples:
- |
#include <dt-bindings/reset/th1520-reset.h>

reset-controller@ffef014000 {
compatible = "thead,th1520-reset", "syscon";
reg = <0xff 0xef014000 0x0 0x1000>;
#reset-cells = <1>;
};
69 changes: 69 additions & 0 deletions Documentation/devicetree/bindings/riscv/thead,cpu-reset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/riscv/thead,cpu-reset.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: T-HEAD cpu reset controller

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

description: |
The secondary CPUs in T-HEAD SMP capable platforms need some special
handling. The first one is to write the warm reset entry to entry
register. The second one is write a SoC specific control value to
a SoC specific control reg. The last one is to clone some CSRs for
secondary CPUs to ensure these CSRs' values are the same as the
main boot CPU.

properties:
$nodename:
pattern: "^cpurst"

compatible:
oneOf:
- description: CPU reset on T-HEAD TH1520 SoC
items:
- const: thead,reset-th1520

entry-reg:
$ref: /schemas/types.yaml#/definitions/uint64
description: |
The entry reg address.

entry-cnt:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
The entry reg count.

control-reg:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
The control reg address.

control-val:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
The value to be set into the control reg.

csr-copy:
$ref: /schemas/types.yaml#/definitions/uint32-array
description: |
The CSR registers to be cloned during CPU warm reset.

required:
- compatible

additionalProperties: false

examples:
- |
cpurst: cpurst@ffff019050 {
compatible = "thead,reset-th1520";
entry-reg = <0xff 0xff019050>;
entry-cnt = <4>;
control-reg = <0xff 0xff015004>;
control-val = <0x1c>;
csr-copy = <0x7f3 0x7c0 0x7c1 0x7c2 0x7c3 0x7c5 0x7cc>;
};
Loading