| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz> |
|---|
| 3 | 4 | * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 (or later) as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | /dts-v1/; |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include "omap34xx.dtsi" |
|---|
| 13 | 10 | #include <dt-bindings/input/input.h> |
|---|
| 11 | +#include <dt-bindings/leds/common.h> |
|---|
| 14 | 12 | |
|---|
| 15 | 13 | /* |
|---|
| 16 | 14 | * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall |
|---|
| .. | .. |
|---|
| 22 | 20 | * but it is not widely used and to prevent kernel crash rather AES is disabled. |
|---|
| 23 | 21 | * There is also no runtime detection code if AES is disabled in L3 firewall... |
|---|
| 24 | 22 | */ |
|---|
| 25 | | -&aes { |
|---|
| 23 | +&aes1_target { |
|---|
| 24 | + status = "disabled"; |
|---|
| 25 | +}; |
|---|
| 26 | + |
|---|
| 27 | +&aes2_target { |
|---|
| 26 | 28 | status = "disabled"; |
|---|
| 27 | 29 | }; |
|---|
| 28 | 30 | |
|---|
| .. | .. |
|---|
| 106 | 108 | gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ |
|---|
| 107 | 109 | linux,input-type = <EV_SW>; |
|---|
| 108 | 110 | linux,code = <SW_FRONT_PROXIMITY>; |
|---|
| 111 | + linux,can-disable; |
|---|
| 112 | + }; |
|---|
| 113 | + |
|---|
| 114 | + machine_cover { |
|---|
| 115 | + label = "Machine Cover"; |
|---|
| 116 | + gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */ |
|---|
| 117 | + linux,input-type = <EV_SW>; |
|---|
| 118 | + linux,code = <SW_MACHINE_COVER>; |
|---|
| 109 | 119 | linux,can-disable; |
|---|
| 110 | 120 | }; |
|---|
| 111 | 121 | }; |
|---|
| .. | .. |
|---|
| 485 | 495 | regulator-always-on; |
|---|
| 486 | 496 | }; |
|---|
| 487 | 497 | |
|---|
| 498 | +/* First two dma channels are reserved on secure omap3 */ |
|---|
| 499 | +&sdma { |
|---|
| 500 | + dma-channel-mask = <0xfffffffc>; |
|---|
| 501 | +}; |
|---|
| 502 | + |
|---|
| 488 | 503 | &twl { |
|---|
| 489 | 504 | twl_audio: audio { |
|---|
| 490 | 505 | compatible = "ti,twl4030-audio"; |
|---|
| .. | .. |
|---|
| 616 | 631 | }; |
|---|
| 617 | 632 | |
|---|
| 618 | 633 | lp5523: lp5523@32 { |
|---|
| 634 | + #address-cells = <1>; |
|---|
| 635 | + #size-cells = <0>; |
|---|
| 619 | 636 | compatible = "national,lp5523"; |
|---|
| 620 | 637 | reg = <0x32>; |
|---|
| 621 | 638 | clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */ |
|---|
| 622 | | - enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */ |
|---|
| 639 | + enable-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */ |
|---|
| 623 | 640 | |
|---|
| 624 | | - chan0 { |
|---|
| 641 | + led@0 { |
|---|
| 642 | + reg = <0>; |
|---|
| 625 | 643 | chan-name = "lp5523:kb1"; |
|---|
| 626 | 644 | led-cur = /bits/ 8 <50>; |
|---|
| 627 | 645 | max-cur = /bits/ 8 <100>; |
|---|
| 646 | + color = <LED_COLOR_ID_WHITE>; |
|---|
| 647 | + function = LED_FUNCTION_KBD_BACKLIGHT; |
|---|
| 628 | 648 | }; |
|---|
| 629 | 649 | |
|---|
| 630 | | - chan1 { |
|---|
| 650 | + led@1 { |
|---|
| 651 | + reg = <1>; |
|---|
| 631 | 652 | chan-name = "lp5523:kb2"; |
|---|
| 632 | 653 | led-cur = /bits/ 8 <50>; |
|---|
| 633 | 654 | max-cur = /bits/ 8 <100>; |
|---|
| 655 | + color = <LED_COLOR_ID_WHITE>; |
|---|
| 656 | + function = LED_FUNCTION_KBD_BACKLIGHT; |
|---|
| 634 | 657 | }; |
|---|
| 635 | 658 | |
|---|
| 636 | | - chan2 { |
|---|
| 659 | + led@2 { |
|---|
| 660 | + reg = <2>; |
|---|
| 637 | 661 | chan-name = "lp5523:kb3"; |
|---|
| 638 | 662 | led-cur = /bits/ 8 <50>; |
|---|
| 639 | 663 | max-cur = /bits/ 8 <100>; |
|---|
| 664 | + color = <LED_COLOR_ID_WHITE>; |
|---|
| 665 | + function = LED_FUNCTION_KBD_BACKLIGHT; |
|---|
| 640 | 666 | }; |
|---|
| 641 | 667 | |
|---|
| 642 | | - chan3 { |
|---|
| 668 | + led@3 { |
|---|
| 669 | + reg = <3>; |
|---|
| 643 | 670 | chan-name = "lp5523:kb4"; |
|---|
| 644 | 671 | led-cur = /bits/ 8 <50>; |
|---|
| 645 | 672 | max-cur = /bits/ 8 <100>; |
|---|
| 673 | + color = <LED_COLOR_ID_WHITE>; |
|---|
| 674 | + function = LED_FUNCTION_KBD_BACKLIGHT; |
|---|
| 646 | 675 | }; |
|---|
| 647 | 676 | |
|---|
| 648 | | - chan4 { |
|---|
| 677 | + led@4 { |
|---|
| 678 | + reg = <4>; |
|---|
| 649 | 679 | chan-name = "lp5523:b"; |
|---|
| 650 | 680 | led-cur = /bits/ 8 <50>; |
|---|
| 651 | 681 | max-cur = /bits/ 8 <100>; |
|---|
| 682 | + color = <LED_COLOR_ID_BLUE>; |
|---|
| 683 | + function = LED_FUNCTION_STATUS; |
|---|
| 652 | 684 | }; |
|---|
| 653 | 685 | |
|---|
| 654 | | - chan5 { |
|---|
| 686 | + led@5 { |
|---|
| 687 | + reg = <5>; |
|---|
| 655 | 688 | chan-name = "lp5523:g"; |
|---|
| 656 | 689 | led-cur = /bits/ 8 <50>; |
|---|
| 657 | 690 | max-cur = /bits/ 8 <100>; |
|---|
| 691 | + color = <LED_COLOR_ID_GREEN>; |
|---|
| 692 | + function = LED_FUNCTION_STATUS; |
|---|
| 658 | 693 | }; |
|---|
| 659 | 694 | |
|---|
| 660 | | - chan6 { |
|---|
| 695 | + led@6 { |
|---|
| 696 | + reg = <6>; |
|---|
| 661 | 697 | chan-name = "lp5523:r"; |
|---|
| 662 | 698 | led-cur = /bits/ 8 <50>; |
|---|
| 663 | 699 | max-cur = /bits/ 8 <100>; |
|---|
| 700 | + color = <LED_COLOR_ID_RED>; |
|---|
| 701 | + function = LED_FUNCTION_STATUS; |
|---|
| 664 | 702 | }; |
|---|
| 665 | 703 | |
|---|
| 666 | | - chan7 { |
|---|
| 704 | + led@7 { |
|---|
| 705 | + reg = <7>; |
|---|
| 667 | 706 | chan-name = "lp5523:kb5"; |
|---|
| 668 | 707 | led-cur = /bits/ 8 <50>; |
|---|
| 669 | 708 | max-cur = /bits/ 8 <100>; |
|---|
| 709 | + color = <LED_COLOR_ID_WHITE>; |
|---|
| 710 | + function = LED_FUNCTION_KBD_BACKLIGHT; |
|---|
| 670 | 711 | }; |
|---|
| 671 | 712 | |
|---|
| 672 | | - chan8 { |
|---|
| 713 | + led@8 { |
|---|
| 714 | + reg = <8>; |
|---|
| 673 | 715 | chan-name = "lp5523:kb6"; |
|---|
| 674 | 716 | led-cur = /bits/ 8 <50>; |
|---|
| 675 | 717 | max-cur = /bits/ 8 <100>; |
|---|
| 718 | + color = <LED_COLOR_ID_WHITE>; |
|---|
| 719 | + function = LED_FUNCTION_KBD_BACKLIGHT; |
|---|
| 676 | 720 | }; |
|---|
| 677 | 721 | }; |
|---|
| 678 | 722 | |
|---|
| .. | .. |
|---|
| 817 | 861 | pinctrl-0 = <&mmc1_pins>; |
|---|
| 818 | 862 | vmmc-supply = <&vmmc1>; |
|---|
| 819 | 863 | bus-width = <4>; |
|---|
| 820 | | - /* For debugging, it is often good idea to remove this GPIO. |
|---|
| 821 | | - It means you can remove back cover (to reboot by removing |
|---|
| 822 | | - battery) and still use the MMC card. */ |
|---|
| 823 | | - cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */ |
|---|
| 824 | 864 | }; |
|---|
| 825 | 865 | |
|---|
| 826 | 866 | /* most boards use vaux3, only some old versions use vmmc2 instead */ |
|---|
| .. | .. |
|---|
| 1034 | 1074 | }; |
|---|
| 1035 | 1075 | }; |
|---|
| 1036 | 1076 | |
|---|
| 1077 | +/* RNG not directly accessible on n900, see omap3-rom-rng instead */ |
|---|
| 1078 | +&rng_target { |
|---|
| 1079 | + status = "disabled"; |
|---|
| 1080 | +}; |
|---|
| 1081 | + |
|---|
| 1037 | 1082 | &usb_otg_hs { |
|---|
| 1038 | 1083 | interface-type = <0>; |
|---|
| 1039 | 1084 | usb-phy = <&usb2_phy>; |
|---|
| .. | .. |
|---|
| 1068 | 1113 | }; |
|---|
| 1069 | 1114 | |
|---|
| 1070 | 1115 | &dss { |
|---|
| 1071 | | - status = "ok"; |
|---|
| 1116 | + status = "okay"; |
|---|
| 1072 | 1117 | |
|---|
| 1073 | 1118 | pinctrl-names = "default"; |
|---|
| 1074 | 1119 | pinctrl-0 = <&dss_sdi_pins>; |
|---|
| .. | .. |
|---|
| 1091 | 1136 | }; |
|---|
| 1092 | 1137 | |
|---|
| 1093 | 1138 | &venc { |
|---|
| 1094 | | - status = "ok"; |
|---|
| 1139 | + status = "okay"; |
|---|
| 1095 | 1140 | |
|---|
| 1096 | 1141 | vdda-supply = <&vdac>; |
|---|
| 1097 | 1142 | |
|---|
| .. | .. |
|---|
| 1104 | 1149 | }; |
|---|
| 1105 | 1150 | |
|---|
| 1106 | 1151 | &mcbsp2 { |
|---|
| 1107 | | - status = "ok"; |
|---|
| 1152 | + status = "okay"; |
|---|
| 1108 | 1153 | }; |
|---|
| 1109 | 1154 | |
|---|
| 1110 | 1155 | &ssi_port1 { |
|---|