forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/omap3-n900.dts
....@@ -1,16 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
34 * 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.
85 */
96
107 /dts-v1/;
118
129 #include "omap34xx.dtsi"
1310 #include <dt-bindings/input/input.h>
11
+#include <dt-bindings/leds/common.h>
1412
1513 /*
1614 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
....@@ -22,7 +20,11 @@
2220 * but it is not widely used and to prevent kernel crash rather AES is disabled.
2321 * There is also no runtime detection code if AES is disabled in L3 firewall...
2422 */
25
-&aes {
23
+&aes1_target {
24
+ status = "disabled";
25
+};
26
+
27
+&aes2_target {
2628 status = "disabled";
2729 };
2830
....@@ -106,6 +108,14 @@
106108 gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
107109 linux,input-type = <EV_SW>;
108110 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>;
109119 linux,can-disable;
110120 };
111121 };
....@@ -485,6 +495,11 @@
485495 regulator-always-on;
486496 };
487497
498
+/* First two dma channels are reserved on secure omap3 */
499
+&sdma {
500
+ dma-channel-mask = <0xfffffffc>;
501
+};
502
+
488503 &twl {
489504 twl_audio: audio {
490505 compatible = "ti,twl4030-audio";
....@@ -616,63 +631,92 @@
616631 };
617632
618633 lp5523: lp5523@32 {
634
+ #address-cells = <1>;
635
+ #size-cells = <0>;
619636 compatible = "national,lp5523";
620637 reg = <0x32>;
621638 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 */
623640
624
- chan0 {
641
+ led@0 {
642
+ reg = <0>;
625643 chan-name = "lp5523:kb1";
626644 led-cur = /bits/ 8 <50>;
627645 max-cur = /bits/ 8 <100>;
646
+ color = <LED_COLOR_ID_WHITE>;
647
+ function = LED_FUNCTION_KBD_BACKLIGHT;
628648 };
629649
630
- chan1 {
650
+ led@1 {
651
+ reg = <1>;
631652 chan-name = "lp5523:kb2";
632653 led-cur = /bits/ 8 <50>;
633654 max-cur = /bits/ 8 <100>;
655
+ color = <LED_COLOR_ID_WHITE>;
656
+ function = LED_FUNCTION_KBD_BACKLIGHT;
634657 };
635658
636
- chan2 {
659
+ led@2 {
660
+ reg = <2>;
637661 chan-name = "lp5523:kb3";
638662 led-cur = /bits/ 8 <50>;
639663 max-cur = /bits/ 8 <100>;
664
+ color = <LED_COLOR_ID_WHITE>;
665
+ function = LED_FUNCTION_KBD_BACKLIGHT;
640666 };
641667
642
- chan3 {
668
+ led@3 {
669
+ reg = <3>;
643670 chan-name = "lp5523:kb4";
644671 led-cur = /bits/ 8 <50>;
645672 max-cur = /bits/ 8 <100>;
673
+ color = <LED_COLOR_ID_WHITE>;
674
+ function = LED_FUNCTION_KBD_BACKLIGHT;
646675 };
647676
648
- chan4 {
677
+ led@4 {
678
+ reg = <4>;
649679 chan-name = "lp5523:b";
650680 led-cur = /bits/ 8 <50>;
651681 max-cur = /bits/ 8 <100>;
682
+ color = <LED_COLOR_ID_BLUE>;
683
+ function = LED_FUNCTION_STATUS;
652684 };
653685
654
- chan5 {
686
+ led@5 {
687
+ reg = <5>;
655688 chan-name = "lp5523:g";
656689 led-cur = /bits/ 8 <50>;
657690 max-cur = /bits/ 8 <100>;
691
+ color = <LED_COLOR_ID_GREEN>;
692
+ function = LED_FUNCTION_STATUS;
658693 };
659694
660
- chan6 {
695
+ led@6 {
696
+ reg = <6>;
661697 chan-name = "lp5523:r";
662698 led-cur = /bits/ 8 <50>;
663699 max-cur = /bits/ 8 <100>;
700
+ color = <LED_COLOR_ID_RED>;
701
+ function = LED_FUNCTION_STATUS;
664702 };
665703
666
- chan7 {
704
+ led@7 {
705
+ reg = <7>;
667706 chan-name = "lp5523:kb5";
668707 led-cur = /bits/ 8 <50>;
669708 max-cur = /bits/ 8 <100>;
709
+ color = <LED_COLOR_ID_WHITE>;
710
+ function = LED_FUNCTION_KBD_BACKLIGHT;
670711 };
671712
672
- chan8 {
713
+ led@8 {
714
+ reg = <8>;
673715 chan-name = "lp5523:kb6";
674716 led-cur = /bits/ 8 <50>;
675717 max-cur = /bits/ 8 <100>;
718
+ color = <LED_COLOR_ID_WHITE>;
719
+ function = LED_FUNCTION_KBD_BACKLIGHT;
676720 };
677721 };
678722
....@@ -817,10 +861,6 @@
817861 pinctrl-0 = <&mmc1_pins>;
818862 vmmc-supply = <&vmmc1>;
819863 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 */
824864 };
825865
826866 /* most boards use vaux3, only some old versions use vmmc2 instead */
....@@ -1034,6 +1074,11 @@
10341074 };
10351075 };
10361076
1077
+/* RNG not directly accessible on n900, see omap3-rom-rng instead */
1078
+&rng_target {
1079
+ status = "disabled";
1080
+};
1081
+
10371082 &usb_otg_hs {
10381083 interface-type = <0>;
10391084 usb-phy = <&usb2_phy>;
....@@ -1068,7 +1113,7 @@
10681113 };
10691114
10701115 &dss {
1071
- status = "ok";
1116
+ status = "okay";
10721117
10731118 pinctrl-names = "default";
10741119 pinctrl-0 = <&dss_sdi_pins>;
....@@ -1091,7 +1136,7 @@
10911136 };
10921137
10931138 &venc {
1094
- status = "ok";
1139
+ status = "okay";
10951140
10961141 vdda-supply = <&vdac>;
10971142
....@@ -1104,7 +1149,7 @@
11041149 };
11051150
11061151 &mcbsp2 {
1107
- status = "ok";
1152
+ status = "okay";
11081153 };
11091154
11101155 &ssi_port1 {