mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 09:37:17 +00:00
arm64: dts: mt8183: Add pwm and backlight node
Add pwm to mt8183 and backlight to mt8183-kukui. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20201124041253.4181273-1-hsinyi@chromium.org Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
parent
37fb78b9ae
commit
f15722c0fe
@ -19,6 +19,17 @@ chosen {
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
backlight_lcd0: backlight_lcd0 {
|
||||||
|
compatible = "pwm-backlight";
|
||||||
|
pwms = <&pwm0 0 500000>;
|
||||||
|
power-supply = <&bl_pp5000>;
|
||||||
|
enable-gpios = <&pio 176 0>;
|
||||||
|
brightness-levels = <0 1023>;
|
||||||
|
num-interpolated-steps = <1023>;
|
||||||
|
default-brightness-level = <576>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
memory@40000000 {
|
memory@40000000 {
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0 0x40000000 0 0x80000000>;
|
reg = <0 0x40000000 0 0x80000000>;
|
||||||
@ -536,6 +547,17 @@ pins_clk {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pwm0_pin_default: pwm0_pin_default {
|
||||||
|
pins1 {
|
||||||
|
pinmux = <PINMUX_GPIO176__FUNC_GPIO176>;
|
||||||
|
output-high;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
pins2 {
|
||||||
|
pinmux = <PINMUX_GPIO43__FUNC_DISP_PWM>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
scp_pins: scp {
|
scp_pins: scp {
|
||||||
pins_scp_uart {
|
pins_scp_uart {
|
||||||
pinmux = <PINMUX_GPIO110__FUNC_TP_URXD1_AO>,
|
pinmux = <PINMUX_GPIO110__FUNC_TP_URXD1_AO>,
|
||||||
@ -670,6 +692,12 @@ pins_wifi_wakeup {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pwm0 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pwm0_pin_default>;
|
||||||
|
};
|
||||||
|
|
||||||
&scp {
|
&scp {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
@ -641,6 +641,16 @@ spi0: spi@1100a000 {
|
|||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pwm0: pwm@1100e000 {
|
||||||
|
compatible = "mediatek,mt8183-disp-pwm";
|
||||||
|
reg = <0 0x1100e000 0 0x1000>;
|
||||||
|
interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
#pwm-cells = <2>;
|
||||||
|
clocks = <&topckgen CLK_TOP_MUX_DISP_PWM>,
|
||||||
|
<&infracfg CLK_INFRA_DISP_PWM>;
|
||||||
|
clock-names = "main", "mm";
|
||||||
|
};
|
||||||
|
|
||||||
i2c3: i2c@1100f000 {
|
i2c3: i2c@1100f000 {
|
||||||
compatible = "mediatek,mt8183-i2c";
|
compatible = "mediatek,mt8183-i2c";
|
||||||
reg = <0 0x1100f000 0 0x1000>,
|
reg = <0 0x1100f000 0 0x1000>,
|
||||||
|
Loading…
Reference in New Issue
Block a user