diff options
Diffstat (limited to 'arch/arm/boot/dts/hi4511.dts')
-rw-r--r-- | arch/arm/boot/dts/hi4511.dts | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/hi4511.dts b/arch/arm/boot/dts/hi4511.dts index a124213bde0a..52914890529f 100644 --- a/arch/arm/boot/dts/hi4511.dts +++ b/arch/arm/boot/dts/hi4511.dts @@ -443,6 +443,27 @@ 0x0f0 0x1 /* GPIO (IOMG59), audio spk & earphone */ >; }; + pwm0_pmx_func: pinmux_pwm0_pins@0 { + pinctrl-single,pins = < + 0x154 0x0 /* PWM0 (IOMG82) */ + >; + }; + pwm0_pmx_idle: pinmux_pwm0_pins@1 { + pinctrl-single,pins = < + 0x154 0x1 /* GPIO149 (IOMG82) */ + >; + }; + pwm1_pmx_func: pinmux_pwm1_pins@0 { + pinctrl-single,pins = < + 0x158 0x0 /* PWM1 (IOMG83) */ + >; + }; + pwm1_pmx_idle: pinmux_pwm1_pins@1 { + pinctrl-single,pins = < + 0x158 0x1 /* GPIO150 (IOMG83) */ + >; + }; + }; pmx1: pinmux@fc803800 { @@ -784,6 +805,22 @@ pinctrl-single,bias-pulldown = <0 2 0 2>; pinctrl-single,bias-pullup = <1 1 0 1>; }; + pwm0_cfg_func: pincfg_pwm0_pins@0 { + pinctrl-single,pins = < + 0x280 0 /* PWM0 (IOCFG168) */ + >; + pinctrl-single,bias-pulldown = <2 2 0 2>; + pinctrl-single,bias-pullup = <0 1 0 1>; + pinctrl-single,drive-strength = <0x30 0xf0>; + }; + pwm1_cfg_func: pincfg_pwm1_pins@0 { + pinctrl-single,pins = < + 0x284 0 /* PWM1 (IOCFG169) */ + >; + pinctrl-single,bias-pulldown = <2 2 0 2>; + pinctrl-single,bias-pullup = <0 1 0 1>; + pinctrl-single,drive-strength = <0x30 0xf0>; + }; }; i2c0: i2c@fcb08000 { @@ -1180,6 +1217,7 @@ regulator-name = "LDO16"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <3000000>; + regulator-always-on; hisilicon,hi6421-ctrl = <0x30 0x10 0x20>; hisilicon,hi6421-vset = <0x30 0x07>; hisilicon,hi6421-n-voltages = <8>; @@ -1197,6 +1235,7 @@ regulator-name = "LDO17"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <3000000>; + regulator-always-on; hisilicon,hi6421-ctrl = <0x31 0x10 0x20>; hisilicon,hi6421-vset = <0x31 0x07>; hisilicon,hi6421-n-voltages = <8>; @@ -1392,5 +1431,44 @@ mcu: mcu@fd000000 { status = "ok"; }; + edc0: edc@fa202000 { + hisilicon,pixel-format = "RGBA8888"; + hisilicon,color-mode = <5>; + hisilicon,dsi-clock-frequency = <241000000>; /* 241MHz, not 300MHz */ + hisilicon,mipi-mode = "video"; + hisilicon,mipi-lanes = <4>; + status = "ok"; + + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <13158>; /* 13.158MHz pixel clock */ + hactive = <720>; + vactive = <1280>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + hfront-porch = <134>; + hback-porch = <53>; + hsync-len = <67>; + vfront-porch = <7>; + vback-porch = <12>; + vsync-len = <1>; + }; + }; + }; + pwm0: pwm@fca05000 { + pinctrl-names = "default", "idle"; + pinctrl-0 = <&pwm0_pmx_func &pwm0_cfg_func>; + pinctrl-1 = <&pwm0_pmx_idle &pwm0_cfg_func>; + status = "ok"; + }; + pwm1: pwm@fca06000 { + pinctrl-names = "default", "idle"; + pinctrl-0 = <&pwm1_pmx_func &pwm1_cfg_func>; + pinctrl-1 = <&pwm1_pmx_idle &pwm1_cfg_func>; + status = "ok"; + }; }; /* end of amba */ }; |