diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-07 10:10:54 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2017-11-07 10:10:54 -0500 |
commit | 9c7f85ad3f0e05f631e733c6c772fc2edc1aa96d (patch) | |
tree | 17d80fe17d88a7b42c75326032317aaf43498dc2 | |
parent | 2d2cf5283f01c854ed403dec76d098f1b1a74767 (diff) | |
parent | eb54a522f164f89587381d665307d53acf75f114 (diff) |
Merge tag 'v4.14-next-dts32-2' of https://github.com/mbgg/linux-mediatek into next/dt
Pull "Mediatek: 32-bit DTS updates for v4.15" from Matthias Brugger:
- mt7623 update nodes to binding description
- mt2701 add display pwn nodes
- mt2701 update audio node description
* tag 'v4.14-next-dts32-2' of https://github.com/mbgg/linux-mediatek:
arm: dts: mt7623: remove unused compatible string for pio node
arm: dts: mt7623: update usb related nodes
arm: dts: mt7623: update crypto node
arm: dts: mediatek: update audio node for mt2701 and mt7623
arm: dts: mt2701: enable display pwm backlight
arm: dts: mt2701: add pwm backlight device node
-rw-r--r-- | arch/arm/boot/dts/mt2701-evb.dts | 23 | ||||
-rw-r--r-- | arch/arm/boot/dts/mt2701.dtsi | 13 | ||||
-rw-r--r-- | arch/arm/boot/dts/mt7623.dtsi | 30 |
3 files changed, 52 insertions, 14 deletions
diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts index f48497354221..63af4b13a36f 100644 --- a/arch/arm/boot/dts/mt2701-evb.dts +++ b/arch/arm/boot/dts/mt2701-evb.dts | |||
@@ -56,12 +56,29 @@ | |||
56 | bt_sco_codec:bt_sco_codec { | 56 | bt_sco_codec:bt_sco_codec { |
57 | compatible = "linux,bt-sco"; | 57 | compatible = "linux,bt-sco"; |
58 | }; | 58 | }; |
59 | |||
60 | backlight_lcd: backlight_lcd { | ||
61 | compatible = "pwm-backlight"; | ||
62 | pwms = <&bls 0 100000>; | ||
63 | brightness-levels = < | ||
64 | 0 16 32 48 64 80 96 112 | ||
65 | 128 144 160 176 192 208 224 240 | ||
66 | 255 | ||
67 | >; | ||
68 | default-brightness-level = <9>; | ||
69 | }; | ||
59 | }; | 70 | }; |
60 | 71 | ||
61 | &auxadc { | 72 | &auxadc { |
62 | status = "okay"; | 73 | status = "okay"; |
63 | }; | 74 | }; |
64 | 75 | ||
76 | &bls { | ||
77 | status = "okay"; | ||
78 | pinctrl-names = "default"; | ||
79 | pinctrl-0 = <&pwm_bls_gpio>; | ||
80 | }; | ||
81 | |||
65 | &i2c0 { | 82 | &i2c0 { |
66 | pinctrl-names = "default"; | 83 | pinctrl-names = "default"; |
67 | pinctrl-0 = <&i2c0_pins_a>; | 84 | pinctrl-0 = <&i2c0_pins_a>; |
@@ -111,6 +128,12 @@ | |||
111 | }; | 128 | }; |
112 | }; | 129 | }; |
113 | 130 | ||
131 | pwm_bls_gpio: pwm_bls_gpio { | ||
132 | pins_cmd_dat { | ||
133 | pinmux = <MT2701_PIN_208_AUD_EXT_CK1__FUNC_DISP_PWM>; | ||
134 | }; | ||
135 | }; | ||
136 | |||
114 | spi_pins_a: spi0@0 { | 137 | spi_pins_a: spi0@0 { |
115 | pins_spi { | 138 | pins_spi { |
116 | pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>, | 139 | pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>, |
diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index afe12e5b51f9..965ddfbc9953 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi | |||
@@ -430,7 +430,9 @@ | |||
430 | compatible = "mediatek,mt2701-audio"; | 430 | compatible = "mediatek,mt2701-audio"; |
431 | reg = <0 0x11220000 0 0x2000>, | 431 | reg = <0 0x11220000 0 0x2000>, |
432 | <0 0x112a0000 0 0x20000>; | 432 | <0 0x112a0000 0 0x20000>; |
433 | interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>; | 433 | interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>, |
434 | <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>; | ||
435 | interrupt-names = "afe", "asys"; | ||
434 | power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; | 436 | power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; |
435 | 437 | ||
436 | clocks = <&infracfg CLK_INFRA_AUDIO>, | 438 | clocks = <&infracfg CLK_INFRA_AUDIO>, |
@@ -530,6 +532,15 @@ | |||
530 | #clock-cells = <1>; | 532 | #clock-cells = <1>; |
531 | }; | 533 | }; |
532 | 534 | ||
535 | bls: pwm@1400a000 { | ||
536 | compatible = "mediatek,mt2701-disp-pwm"; | ||
537 | reg = <0 0x1400a000 0 0x1000>; | ||
538 | #pwm-cells = <2>; | ||
539 | clocks = <&mmsys CLK_MM_MDP_BLS_26M>, <&mmsys CLK_MM_DISP_BLS>; | ||
540 | clock-names = "main", "mm"; | ||
541 | status = "disabled"; | ||
542 | }; | ||
543 | |||
533 | larb0: larb@14010000 { | 544 | larb0: larb@14010000 { |
534 | compatible = "mediatek,mt2701-smi-larb"; | 545 | compatible = "mediatek,mt2701-smi-larb"; |
535 | reg = <0 0x14010000 0 0x1000>; | 546 | reg = <0 0x14010000 0 0x1000>; |
diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index ec8a07415cb3..0640fb75bf59 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi | |||
@@ -227,8 +227,7 @@ | |||
227 | }; | 227 | }; |
228 | 228 | ||
229 | pio: pinctrl@10005000 { | 229 | pio: pinctrl@10005000 { |
230 | compatible = "mediatek,mt7623-pinctrl", | 230 | compatible = "mediatek,mt7623-pinctrl"; |
231 | "mediatek,mt2701-pinctrl"; | ||
232 | reg = <0 0x1000b000 0 0x1000>; | 231 | reg = <0 0x1000b000 0 0x1000>; |
233 | mediatek,pctl-regmap = <&syscfg_pctl_a>; | 232 | mediatek,pctl-regmap = <&syscfg_pctl_a>; |
234 | pins-are-numbered; | 233 | pins-are-numbered; |
@@ -544,7 +543,9 @@ | |||
544 | "mediatek,mt2701-audio"; | 543 | "mediatek,mt2701-audio"; |
545 | reg = <0 0x11220000 0 0x2000>, | 544 | reg = <0 0x11220000 0 0x2000>, |
546 | <0 0x112a0000 0 0x20000>; | 545 | <0 0x112a0000 0 0x20000>; |
547 | interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>; | 546 | interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>, |
547 | <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>; | ||
548 | interrupt-names = "afe", "asys"; | ||
548 | power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; | 549 | power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; |
549 | 550 | ||
550 | clocks = <&infracfg CLK_INFRA_AUDIO>, | 551 | clocks = <&infracfg CLK_INFRA_AUDIO>, |
@@ -678,7 +679,7 @@ | |||
678 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>; | 679 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>; |
679 | clocks = <&hifsys CLK_HIFSYS_USB0PHY>, | 680 | clocks = <&hifsys CLK_HIFSYS_USB0PHY>, |
680 | <&topckgen CLK_TOP_ETHIF_SEL>; | 681 | <&topckgen CLK_TOP_ETHIF_SEL>; |
681 | clock-names = "sys_ck", "free_ck"; | 682 | clock-names = "sys_ck", "ref_ck"; |
682 | power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; | 683 | power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; |
683 | phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>; | 684 | phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>; |
684 | status = "disabled"; | 685 | status = "disabled"; |
@@ -688,8 +689,6 @@ | |||
688 | compatible = "mediatek,mt7623-u3phy", | 689 | compatible = "mediatek,mt7623-u3phy", |
689 | "mediatek,mt2701-u3phy"; | 690 | "mediatek,mt2701-u3phy"; |
690 | reg = <0 0x1a1c4000 0 0x0700>; | 691 | reg = <0 0x1a1c4000 0 0x0700>; |
691 | clocks = <&clk26m>; | ||
692 | clock-names = "u3phya_ref"; | ||
693 | #address-cells = <2>; | 692 | #address-cells = <2>; |
694 | #size-cells = <2>; | 693 | #size-cells = <2>; |
695 | ranges; | 694 | ranges; |
@@ -697,12 +696,16 @@ | |||
697 | 696 | ||
698 | u2port0: usb-phy@1a1c4800 { | 697 | u2port0: usb-phy@1a1c4800 { |
699 | reg = <0 0x1a1c4800 0 0x0100>; | 698 | reg = <0 0x1a1c4800 0 0x0100>; |
699 | clocks = <&topckgen CLK_TOP_USB_PHY48M>; | ||
700 | clock-names = "ref"; | ||
700 | #phy-cells = <1>; | 701 | #phy-cells = <1>; |
701 | status = "okay"; | 702 | status = "okay"; |
702 | }; | 703 | }; |
703 | 704 | ||
704 | u3port0: usb-phy@1a1c4900 { | 705 | u3port0: usb-phy@1a1c4900 { |
705 | reg = <0 0x1a1c4900 0 0x0700>; | 706 | reg = <0 0x1a1c4900 0 0x0700>; |
707 | clocks = <&clk26m>; | ||
708 | clock-names = "ref"; | ||
706 | #phy-cells = <1>; | 709 | #phy-cells = <1>; |
707 | status = "okay"; | 710 | status = "okay"; |
708 | }; | 711 | }; |
@@ -717,7 +720,7 @@ | |||
717 | interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>; | 720 | interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>; |
718 | clocks = <&hifsys CLK_HIFSYS_USB1PHY>, | 721 | clocks = <&hifsys CLK_HIFSYS_USB1PHY>, |
719 | <&topckgen CLK_TOP_ETHIF_SEL>; | 722 | <&topckgen CLK_TOP_ETHIF_SEL>; |
720 | clock-names = "sys_ck", "free_ck"; | 723 | clock-names = "sys_ck", "ref_ck"; |
721 | power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; | 724 | power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; |
722 | phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>; | 725 | phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>; |
723 | status = "disabled"; | 726 | status = "disabled"; |
@@ -727,8 +730,6 @@ | |||
727 | compatible = "mediatek,mt7623-u3phy", | 730 | compatible = "mediatek,mt7623-u3phy", |
728 | "mediatek,mt2701-u3phy"; | 731 | "mediatek,mt2701-u3phy"; |
729 | reg = <0 0x1a244000 0 0x0700>; | 732 | reg = <0 0x1a244000 0 0x0700>; |
730 | clocks = <&clk26m>; | ||
731 | clock-names = "u3phya_ref"; | ||
732 | #address-cells = <2>; | 733 | #address-cells = <2>; |
733 | #size-cells = <2>; | 734 | #size-cells = <2>; |
734 | ranges; | 735 | ranges; |
@@ -736,12 +737,16 @@ | |||
736 | 737 | ||
737 | u2port1: usb-phy@1a244800 { | 738 | u2port1: usb-phy@1a244800 { |
738 | reg = <0 0x1a244800 0 0x0100>; | 739 | reg = <0 0x1a244800 0 0x0100>; |
740 | clocks = <&topckgen CLK_TOP_USB_PHY48M>; | ||
741 | clock-names = "ref"; | ||
739 | #phy-cells = <1>; | 742 | #phy-cells = <1>; |
740 | status = "okay"; | 743 | status = "okay"; |
741 | }; | 744 | }; |
742 | 745 | ||
743 | u3port1: usb-phy@1a244900 { | 746 | u3port1: usb-phy@1a244900 { |
744 | reg = <0 0x1a244900 0 0x0700>; | 747 | reg = <0 0x1a244900 0 0x0700>; |
748 | clocks = <&clk26m>; | ||
749 | clock-names = "ref"; | ||
745 | #phy-cells = <1>; | 750 | #phy-cells = <1>; |
746 | status = "okay"; | 751 | status = "okay"; |
747 | }; | 752 | }; |
@@ -782,16 +787,15 @@ | |||
782 | }; | 787 | }; |
783 | 788 | ||
784 | crypto: crypto@1b240000 { | 789 | crypto: crypto@1b240000 { |
785 | compatible = "mediatek,mt7623-crypto"; | 790 | compatible = "mediatek,eip97-crypto"; |
786 | reg = <0 0x1b240000 0 0x20000>; | 791 | reg = <0 0x1b240000 0 0x20000>; |
787 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>, | 792 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>, |
788 | <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>, | 793 | <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>, |
789 | <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>, | 794 | <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>, |
790 | <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>, | 795 | <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>, |
791 | <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>; | 796 | <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>; |
792 | clocks = <&topckgen CLK_TOP_ETHIF_SEL>, | 797 | clocks = <ðsys CLK_ETHSYS_CRYPTO>; |
793 | <ðsys CLK_ETHSYS_CRYPTO>; | 798 | clock-names = "cryp"; |
794 | clock-names = "ethif","cryp"; | ||
795 | power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>; | 799 | power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>; |
796 | status = "disabled"; | 800 | status = "disabled"; |
797 | }; | 801 | }; |