diff options
author | Lu Hui <luhui@sipeed.com> | 2023-12-25 16:54:20 +0800 |
---|---|---|
committer | Han Gao/Revy/Rabenda <rabenda.cn@gmail.com> | 2023-12-26 17:08:20 +0800 |
commit | 1f45edb0fc8af2977bb2a62ae08ee443d62621c4 (patch) | |
tree | 5946ce3ceaaccc8c757875d241b4e195cc34b912 /arch | |
parent | f79d320ffaf9010946cde7945016bd6063499f61 (diff) |
defconfig: add light_lpi4a_[cluster|console]_defconfig
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/riscv/dts/light-lpi4a-laptop.dts | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/arch/riscv/dts/Makefile b/arch/riscv/dts/Makefile index d2ff046a..54601c03 100644 --- a/arch/riscv/dts/Makefile +++ b/arch/riscv/dts/Makefile @@ -6,6 +6,7 @@ dtb-$(CONFIG_TARGET_ICE_C910) += ice-c910.dtb dtb-$(CONFIG_TARGET_LIGHT_EVB_MPW_C910) += light-evb-mpw-c910.dtb dtb-$(CONFIG_TARGET_LIGHT_FPGA_FM_C910) += light-fpga-fm-c910.dtb dtb-$(CONFIG_TARGET_LIGHT_C910) += light-a-ref.dtb light-b-ref.dtb light-a-val.dtb light-b-product.dtb light-a-product.dtb light-ant-ref.dtb light-beagle.dtb light-b-power.dtb light-lpi4a.dtb light-milkv-meles.dtb +dtb-$(CONFIG_TARGET_LIGHT_C910) += light-lpi4a-laptop.dtb targets += $(dtb-y) diff --git a/arch/riscv/dts/light-lpi4a-laptop.dts b/arch/riscv/dts/light-lpi4a-laptop.dts new file mode 100644 index 00000000..3648c43b --- /dev/null +++ b/arch/riscv/dts/light-lpi4a-laptop.dts @@ -0,0 +1,45 @@ +#include "light-lpi4a.dts" + +/ { +}; + +&i2c1 { + clock-frequency = <400000>; + status = "okay"; + + pcal6408ahk_c: gpio@20 { + compatible = "nxp,pca9557"; + reg = <0x18>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&i2c3 { + clock-frequency = <400000>; + status = "okay"; + pcal6408ahk_d: gpio@20 { + compatible = "nxp,pca9557"; + reg = <0x18>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&lcd_backlight { + pwms = <&pwm 0 50000>; + brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 + 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 + 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100>; + default-brightness-level = <2>; +}; + +&panel0 { + status = "okay"; + backlight = <&lcd_backlight>; + // 5v power cycle + // TODO: move into regulator + reset-gpios = <&pcal6408ahk_c 0 0>; /* active low */ + /delete-property/ lcd-en-gpios; + /delete-property/ lcd-bias-en-gpios; +}; |