forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
....@@ -1330,7 +1330,6 @@
13301330 battery: bq27742@55 {
13311331 compatible = "ti,bq27742";
13321332 reg = <0x55>;
1333
- battery-name = "battery";
13341333 };
13351334 };
13361335 };
....@@ -1340,10 +1339,29 @@
13401339 status = "okay";
13411340 clock-frequency = <1000000>;
13421341
1343
- max77620: max77620@3c {
1342
+ max77621_cpu: max77621@1b {
1343
+ compatible = "maxim,max77621";
1344
+ reg = <0x1b>;
1345
+ interrupt-parent = <&gpio>;
1346
+ interrupts = <TEGRA_GPIO(Y, 1) IRQ_TYPE_LEVEL_LOW>;
1347
+ regulator-always-on;
1348
+ regulator-boot-on;
1349
+ regulator-min-microvolt = <800000>;
1350
+ regulator-max-microvolt = <1231250>;
1351
+ regulator-name = "PPVAR_CPU";
1352
+ regulator-ramp-delay = <12500>;
1353
+ maxim,dvs-default-state = <1>;
1354
+ maxim,enable-active-discharge;
1355
+ maxim,enable-bias-control;
1356
+ maxim,enable-etr;
1357
+ maxim,enable-gpio = <&pmic 5 0>;
1358
+ maxim,externally-enable;
1359
+ };
1360
+
1361
+ pmic: pmic@3c {
13441362 compatible = "maxim,max77620";
13451363 reg = <0x3c>;
1346
- interrupts = <0 86 IRQ_TYPE_NONE>;
1364
+ interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
13471365
13481366 #interrupt-cells = <2>;
13491367 interrupt-controller;
....@@ -1354,8 +1372,8 @@
13541372 pinctrl-names = "default";
13551373 pinctrl-0 = <&max77620_default>;
13561374
1357
- max77620_default: pinmux@0 {
1358
- pin_gpio {
1375
+ max77620_default: pinmux {
1376
+ gpio0_1_2_7 {
13591377 pins = "gpio0", "gpio1", "gpio2", "gpio7";
13601378 function = "gpio";
13611379 };
....@@ -1365,7 +1383,7 @@
13651383 * sequence, So it must be sequenced up (automatically
13661384 * set by OTP) and down properly.
13671385 */
1368
- pin_gpio3 {
1386
+ gpio3 {
13691387 pins = "gpio3";
13701388 function = "fps-out";
13711389 drive-open-drain = <1>;
....@@ -1374,13 +1392,13 @@
13741392 maxim,active-fps-power-down-slot = <2>;
13751393 };
13761394
1377
- pin_gpio5_6 {
1395
+ gpio5_6 {
13781396 pins = "gpio5", "gpio6";
13791397 function = "gpio";
13801398 drive-push-pull = <1>;
13811399 };
13821400
1383
- pin_32k {
1401
+ gpio4 {
13841402 pins = "gpio4";
13851403 function = "32k-out1";
13861404 };
....@@ -1573,7 +1591,7 @@
15731591 reg = <0x1a>;
15741592 interrupt-parent = <&gpio>;
15751593 interrupts = <TEGRA_GPIO(E, 6) IRQ_TYPE_LEVEL_LOW>;
1576
- clocks = <&tegra_car TEGRA210_CLK_CLK_OUT_2>;
1594
+ clocks = <&tegra_pmc TEGRA_PMC_CLK_OUT_2>;
15771595 clock-names = "mclk";
15781596
15791597 nuvoton,jkdet-enable;
....@@ -1635,6 +1653,11 @@
16351653 padctl@7009f000 {
16361654 status = "okay";
16371655
1656
+ avdd-pll-utmip-supply = <&pp1800>;
1657
+ avdd-pll-uerefe-supply = <&pp1050_avdd>;
1658
+ dvdd-pex-pll-supply = <&avddio_1v05>;
1659
+ hvdd-pex-pll-e-supply = <&pp1800>;
1660
+
16381661 pads {
16391662 usb2 {
16401663 status = "okay";
....@@ -1673,10 +1696,22 @@
16731696 };
16741697 };
16751698
1676
- sdhci@700b0600 {
1699
+ mmc@700b0600 {
16771700 bus-width = <8>;
16781701 non-removable;
16791702 status = "okay";
1703
+ };
1704
+
1705
+ clock@70110000 {
1706
+ status = "okay";
1707
+ nvidia,cf = <6>;
1708
+ nvidia,ci = <0>;
1709
+ nvidia,cg = <2>;
1710
+ nvidia,droop-ctrl = <0x00000f00>;
1711
+ nvidia,force-mode = <1>;
1712
+ nvidia,i2c-fs-rate = <400000>;
1713
+ nvidia,sample-rate = <12500>;
1714
+ vdd-cpu-supply = <&max77621_cpu>;
16801715 };
16811716
16821717 aconnect@702c0000 {
....@@ -1686,22 +1721,15 @@
16861721 status = "okay";
16871722 };
16881723
1689
- agic@702f9000 {
1724
+ interrupt-controller@702f9000 {
16901725 status = "okay";
16911726 };
16921727 };
16931728
1694
- clocks {
1695
- compatible = "simple-bus";
1696
- #address-cells = <1>;
1697
- #size-cells = <0>;
1698
-
1699
- clk32k_in: clock@0 {
1700
- compatible = "fixed-clock";
1701
- reg = <0>;
1702
- #clock-cells = <0>;
1703
- clock-frequency = <32768>;
1704
- };
1729
+ clk32k_in: clock@0 {
1730
+ compatible = "fixed-clock";
1731
+ clock-frequency = <32768>;
1732
+ #clock-cells = <0>;
17051733 };
17061734
17071735 cpus {
....@@ -1720,11 +1748,17 @@
17201748 cpu@3 {
17211749 enable-method = "psci";
17221750 };
1751
+
1752
+ idle-states {
1753
+ cpu-sleep {
1754
+ arm,psci-suspend-param = <0x00010007>;
1755
+ status = "okay";
1756
+ };
1757
+ };
17231758 };
17241759
17251760 gpio-keys {
17261761 compatible = "gpio-keys";
1727
- gpio-keys,name = "gpio-keys";
17281762
17291763 power {
17301764 label = "Power";
....@@ -1773,88 +1807,73 @@
17731807 method = "smc";
17741808 };
17751809
1776
- regulators {
1777
- compatible = "simple-bus";
1778
- device_type = "fixed-regulators";
1779
- #address-cells = <1>;
1780
- #size-cells = <0>;
1810
+ ppvar_sys: regulator@0 {
1811
+ compatible = "regulator-fixed";
1812
+ regulator-name = "PPVAR_SYS";
1813
+ regulator-min-microvolt = <4400000>;
1814
+ regulator-max-microvolt = <4400000>;
1815
+ regulator-always-on;
1816
+ };
17811817
1782
- ppvar_sys: regulator@0 {
1783
- compatible = "regulator-fixed";
1784
- reg = <0>;
1785
- regulator-name = "PPVAR_SYS";
1786
- regulator-min-microvolt = <4400000>;
1787
- regulator-max-microvolt = <4400000>;
1788
- regulator-always-on;
1789
- };
1818
+ pplcd_vdd: regulator@1 {
1819
+ compatible = "regulator-fixed";
1820
+ regulator-name = "PPLCD_VDD";
1821
+ regulator-min-microvolt = <4400000>;
1822
+ regulator-max-microvolt = <4400000>;
1823
+ gpio = <&gpio TEGRA_GPIO(V, 4) 0>;
1824
+ enable-active-high;
1825
+ regulator-boot-on;
1826
+ };
17901827
1791
- pplcd_vdd: regulator@1 {
1792
- compatible = "regulator-fixed";
1793
- reg = <1>;
1794
- regulator-name = "PPLCD_VDD";
1795
- regulator-min-microvolt = <4400000>;
1796
- regulator-max-microvolt = <4400000>;
1797
- gpio = <&gpio TEGRA_GPIO(V, 4) 0>;
1798
- enable-active-high;
1799
- regulator-boot-on;
1800
- };
1828
+ pp3000_always: regulator@2 {
1829
+ compatible = "regulator-fixed";
1830
+ regulator-name = "PP3000_ALWAYS";
1831
+ regulator-min-microvolt = <3000000>;
1832
+ regulator-max-microvolt = <3000000>;
1833
+ regulator-always-on;
1834
+ };
18011835
1802
- pp3000_always: regulator@2 {
1803
- compatible = "regulator-fixed";
1804
- reg = <2>;
1805
- regulator-name = "PP3000_ALWAYS";
1806
- regulator-min-microvolt = <3000000>;
1807
- regulator-max-microvolt = <3000000>;
1808
- regulator-always-on;
1809
- };
1836
+ pp3300: regulator@3 {
1837
+ compatible = "regulator-fixed";
1838
+ regulator-name = "PP3300";
1839
+ regulator-min-microvolt = <3300000>;
1840
+ regulator-max-microvolt = <3300000>;
1841
+ regulator-boot-on;
1842
+ regulator-always-on;
1843
+ enable-active-high;
1844
+ };
18101845
1811
- pp3300: regulator@3 {
1812
- compatible = "regulator-fixed";
1813
- reg = <3>;
1814
- regulator-name = "PP3300";
1815
- regulator-min-microvolt = <3300000>;
1816
- regulator-max-microvolt = <3300000>;
1817
- regulator-boot-on;
1818
- regulator-always-on;
1819
- enable-active-high;
1820
- };
1846
+ pp5000: regulator@4 {
1847
+ compatible = "regulator-fixed";
1848
+ regulator-name = "PP5000";
1849
+ regulator-min-microvolt = <5000000>;
1850
+ regulator-max-microvolt = <5000000>;
1851
+ regulator-always-on;
1852
+ };
18211853
1822
- pp5000: regulator@4 {
1823
- compatible = "regulator-fixed";
1824
- reg = <4>;
1825
- regulator-name = "PP5000";
1826
- regulator-min-microvolt = <5000000>;
1827
- regulator-max-microvolt = <5000000>;
1828
- regulator-always-on;
1829
- };
1854
+ pp1800_lcdio: regulator@5 {
1855
+ compatible = "regulator-fixed";
1856
+ regulator-name = "PP1800_LCDIO";
1857
+ regulator-min-microvolt = <1800000>;
1858
+ regulator-max-microvolt = <1800000>;
1859
+ gpio = <&gpio TEGRA_GPIO(V, 3) 0>;
1860
+ enable-active-high;
1861
+ regulator-boot-on;
1862
+ };
18301863
1831
- pp1800_lcdio: regulator@5 {
1832
- compatible = "regulator-fixed";
1833
- reg = <5>;
1834
- regulator-name = "PP1800_LCDIO";
1835
- regulator-min-microvolt = <1800000>;
1836
- regulator-max-microvolt = <1800000>;
1837
- gpio = <&gpio TEGRA_GPIO(V, 3) 0>;
1838
- enable-active-high;
1839
- regulator-boot-on;
1840
- };
1864
+ pp1800_cam: regulator@6 {
1865
+ compatible = "regulator-fixed";
1866
+ regulator-name = "PP1800_CAM";
1867
+ regulator-min-microvolt = <1800000>;
1868
+ regulator-max-microvolt = <1800000>;
1869
+ gpio = <&gpio TEGRA_GPIO(K, 3) 0>;
1870
+ enable-active-high;
1871
+ };
18411872
1842
- pp1800_cam: regulator@6 {
1843
- compatible = "regulator-fixed";
1844
- reg= <6>;
1845
- regulator-name = "PP1800_CAM";
1846
- regulator-min-microvolt = <1800000>;
1847
- regulator-max-microvolt = <1800000>;
1848
- gpio = <&gpio TEGRA_GPIO(K, 3) 0>;
1849
- enable-active-high;
1850
- };
1851
-
1852
- usbc_vbus: regulator@7 {
1853
- compatible = "regulator-fixed";
1854
- reg = <7>;
1855
- regulator-name = "USBC_VBUS";
1856
- regulator-min-microvolt = <5000000>;
1857
- regulator-max-microvolt = <5000000>;
1858
- };
1873
+ usbc_vbus: regulator@7 {
1874
+ compatible = "regulator-fixed";
1875
+ regulator-name = "USBC_VBUS";
1876
+ regulator-min-microvolt = <5000000>;
1877
+ regulator-max-microvolt = <5000000>;
18591878 };
18601879 };