Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
- index 7e3006f..d5d3771 100644
- --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
- +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
- @@ -50,6 +50,7 @@
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
- +#include <dt-bindings/pwm/pwm.h>
- / {
- model = "Olimex A20-Olinuxino Micro";
- @@ -67,6 +68,16 @@
- stdout-path = "serial0:115200n8";
- };
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pinctrl-names = "default";
- + pinctrl-0 = <&bl_enable_pin>;
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
- + };
- +
- leds {
- compatible = "gpio-leds";
- pinctrl-names = "default";
- @@ -78,6 +89,135 @@
- default-state = "on";
- };
- };
- +
- + panel: panel {
- + compatible = "olimex,lcd-olinuxino-43-ts";
- + pinctrl-names = "default";
- + pinctrl-0 = <&lcd_enable_pin>;
- + enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + port {
- + backlight = <&backlight>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + panel_input: endpoint {
- + remote-endpoint = <&tcon0_out_panel>;
- + };
- + };
- + };
- +
- + tcon0: lcd-controller@1c0c000 {
- + compatible = "allwinner,sun5i-a13-tcon";
- + reg = <0x01c0c000 0x1000>;
- + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
- + resets = <&tcon0_ch0_clk 1>;
- + reset-names = "lcd";
- + clocks = <&ahb_gates 36>,
- + <&tcon0_ch0_clk>,
- + <&tcon0_ch1_clk>;
- + clock-names = "ahb",
- + "tcon-ch0",
- + "tcon-ch1";
- + clock-output-names = "tcon-pixel-clock";
- +
- + ports {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + tcon0_in: port@0 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0>;
- +
- + tcon0_in_be0: endpoint@0 {
- + reg = <0>;
- + remote-endpoint = <&be0_out_tcon0>;
- + };
- + };
- +
- + tcon0_out: port@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <1>;
- +
- + tcon0_out_panel: endpoint@0 {
- + reg = <0>;
- + remote-endpoint = <&panel_input>;
- + };
- + };
- + };
- + };
- +
- + fe0: display-frontend@1e00000 {
- + compatible = "allwinner,sun5i-a13-display-frontend";
- + reg = <0x01e00000 0x20000>;
- + interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&ahb_gates 46>, <&de_fe0_clk>,
- + <&dram_gates 25>;
- + clock-names = "ahb", "mod",
- + "ram";
- + resets = <&de_fe0_clk>;
- +
- + ports {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + fe0_out: port@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <1>;
- +
- + fe0_out_be0: endpoint {
- + remote-endpoint = <&be0_in_fe0>;
- + };
- + };
- + };
- + };
- +
- + be0: display-backend@1e60000 {
- + compatible = "allwinner,sun5i-a13-display-backend";
- + reg = <0x01e60000 0x10000>;
- + clocks = <&ahb_gates 44>, <&de_be0_clk>,
- + <&dram_gates 26>;
- + clock-names = "ahb", "mod",
- + "ram";
- + resets = <&de_be0_clk>;
- +
- + ports {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + be0_in: port@0 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0>;
- +
- + be0_in_fe0: endpoint@0 {
- + reg = <0>;
- + remote-endpoint = <&fe0_out_be0>;
- + };
- + };
- +
- + be0_out: port@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <1>;
- +
- + be0_out_tcon0: endpoint@0 {
- + reg = <0>;
- + remote-endpoint = <&tcon0_in_be0>;
- + };
- + };
- + };
- + };
- +
- + display-engine {
- + compatible = "allwinner,sun5i-a13-display-engine";
- + allwinner,pipelines = <&fe0>;
- + };
- };
- &ahci {
- @@ -226,6 +366,20 @@
- };
- &pio {
- + bl_enable_pin: bl_enable_pin@0 {
- + allwinner,pins = "PH7";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + lcd_enable_pin: lcd_enable_pin@0 {
- + allwinner,pins = "PH8";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
- allwinner,pins = "PH11";
- allwinner,function = "gpio_in";
- @@ -255,6 +409,12 @@
- };
- };
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins_a>;
- + status = "okay";
- +};
- +
- ®_ahci_5v {
- status = "okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement