19f068ac8SBaolin Wang/* 29f068ac8SBaolin Wang * Spreadtrum SC2731 PMIC dts file 39f068ac8SBaolin Wang * 49f068ac8SBaolin Wang * Copyright (C) 2018, Spreadtrum Communications Inc. 59f068ac8SBaolin Wang * 69f068ac8SBaolin Wang * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 79f068ac8SBaolin Wang */ 89f068ac8SBaolin Wang 99f068ac8SBaolin Wang&adi_bus { 109f068ac8SBaolin Wang sc2731_pmic: pmic@0 { 119f068ac8SBaolin Wang compatible = "sprd,sc2731"; 129f068ac8SBaolin Wang reg = <0>; 139f068ac8SBaolin Wang spi-max-frequency = <26000000>; 149f068ac8SBaolin Wang interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 159f068ac8SBaolin Wang interrupt-controller; 165863dbe0SBaolin Wang #interrupt-cells = <1>; 179f068ac8SBaolin Wang #address-cells = <1>; 189f068ac8SBaolin Wang #size-cells = <0>; 199f068ac8SBaolin Wang 2002c2455eSBaolin Wang led-controller@200 { 2102c2455eSBaolin Wang compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc"; 2202c2455eSBaolin Wang reg = <0x200>; 2302c2455eSBaolin Wang #address-cells = <1>; 2402c2455eSBaolin Wang #size-cells = <0>; 2502c2455eSBaolin Wang 2602c2455eSBaolin Wang led@0 { 2702c2455eSBaolin Wang label = "red"; 2802c2455eSBaolin Wang reg = <0x0>; 2902c2455eSBaolin Wang }; 3002c2455eSBaolin Wang 3102c2455eSBaolin Wang led@1 { 3202c2455eSBaolin Wang label = "green"; 3302c2455eSBaolin Wang reg = <0x1>; 3402c2455eSBaolin Wang }; 3502c2455eSBaolin Wang 3602c2455eSBaolin Wang led@2 { 3702c2455eSBaolin Wang label = "blue"; 3802c2455eSBaolin Wang reg = <0x2>; 3902c2455eSBaolin Wang }; 4002c2455eSBaolin Wang }; 4102c2455eSBaolin Wang 429f068ac8SBaolin Wang rtc@280 { 439f068ac8SBaolin Wang compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc"; 449f068ac8SBaolin Wang reg = <0x280>; 459f068ac8SBaolin Wang interrupt-parent = <&sc2731_pmic>; 465863dbe0SBaolin Wang interrupts = <2>; 479f068ac8SBaolin Wang }; 489f068ac8SBaolin Wang 491cea2c22SBaolin Wang pmic_eic: gpio@300 { 501cea2c22SBaolin Wang compatible = "sprd,sc27xx-eic"; 511cea2c22SBaolin Wang reg = <0x300>; 521cea2c22SBaolin Wang interrupt-parent = <&sc2731_pmic>; 535863dbe0SBaolin Wang interrupts = <5>; 541cea2c22SBaolin Wang gpio-controller; 551cea2c22SBaolin Wang #gpio-cells = <2>; 561cea2c22SBaolin Wang interrupt-controller; 571cea2c22SBaolin Wang #interrupt-cells = <2>; 581cea2c22SBaolin Wang }; 591cea2c22SBaolin Wang 6017a376c0SBaolin Wang efuse@380 { 6117a376c0SBaolin Wang compatible = "sprd,sc27xx-efuse", "sprd,sc2731-efuse"; 6217a376c0SBaolin Wang reg = <0x380>; 6317a376c0SBaolin Wang #address-cells = <1>; 6417a376c0SBaolin Wang #size-cells = <1>; 6517a376c0SBaolin Wang hwlocks = <&hwlock 12>; 66*640e2c51SBaolin Wang 67*640e2c51SBaolin Wang adc_big_scale: calib@24 { 68*640e2c51SBaolin Wang reg = <0x24 0x2>; 69*640e2c51SBaolin Wang }; 70*640e2c51SBaolin Wang 71*640e2c51SBaolin Wang adc_small_scale: calib@26 { 72*640e2c51SBaolin Wang reg = <0x26 0x2>; 73*640e2c51SBaolin Wang }; 7417a376c0SBaolin Wang }; 7517a376c0SBaolin Wang 76fc8e565fSBaolin Wang pmic_adc: adc@480 { 77fc8e565fSBaolin Wang compatible = "sprd,sc27xx-adc", "sprd,sc2731-adc"; 78fc8e565fSBaolin Wang reg = <0x480>; 79fc8e565fSBaolin Wang interrupt-parent = <&sc2731_pmic>; 805863dbe0SBaolin Wang interrupts = <0>; 81fc8e565fSBaolin Wang #io-channel-cells = <1>; 82fc8e565fSBaolin Wang hwlocks = <&hwlock 4>; 83*640e2c51SBaolin Wang nvmem-cell-names = "big_scale_calib", "small_scale_calib"; 84*640e2c51SBaolin Wang nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; 85fc8e565fSBaolin Wang }; 86fc8e565fSBaolin Wang 87f94cd003SBaolin Wang vibrator@ec8 { 88f94cd003SBaolin Wang compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; 89f94cd003SBaolin Wang reg = <0xec8>; 90f94cd003SBaolin Wang }; 91f94cd003SBaolin Wang 929f068ac8SBaolin Wang regulators { 939f068ac8SBaolin Wang compatible = "sprd,sc27xx-regulator"; 949f068ac8SBaolin Wang 959f068ac8SBaolin Wang vddarm0: BUCK_CPU0 { 969f068ac8SBaolin Wang regulator-name = "vddarm0"; 979f068ac8SBaolin Wang regulator-min-microvolt = <400000>; 989f068ac8SBaolin Wang regulator-max-microvolt = <1996875>; 999f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1009f068ac8SBaolin Wang regulator-always-on; 1019f068ac8SBaolin Wang }; 1029f068ac8SBaolin Wang 1039f068ac8SBaolin Wang vddarm1: BUCK_CPU1 { 1049f068ac8SBaolin Wang regulator-name = "vddarm1"; 1059f068ac8SBaolin Wang regulator-min-microvolt = <400000>; 1069f068ac8SBaolin Wang regulator-max-microvolt = <1996875>; 1079f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1089f068ac8SBaolin Wang regulator-always-on; 1099f068ac8SBaolin Wang }; 1109f068ac8SBaolin Wang 1119f068ac8SBaolin Wang dcdcrf: BUCK_RF { 1129f068ac8SBaolin Wang regulator-name = "dcdcrf"; 1139f068ac8SBaolin Wang regulator-min-microvolt = <600000>; 1149f068ac8SBaolin Wang regulator-max-microvolt = <2196875>; 1159f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1169f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1179f068ac8SBaolin Wang regulator-always-on; 1189f068ac8SBaolin Wang }; 1199f068ac8SBaolin Wang 1209f068ac8SBaolin Wang vddcama0: LDO_CAMA0 { 1219f068ac8SBaolin Wang regulator-name = "vddcama0"; 1229f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1239f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1249f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1259f068ac8SBaolin Wang }; 1269f068ac8SBaolin Wang 1279f068ac8SBaolin Wang vddcama1: LDO_CAMA1 { 1289f068ac8SBaolin Wang regulator-name = "vddcama1"; 1299f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1309f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1319f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1329f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1339f068ac8SBaolin Wang }; 1349f068ac8SBaolin Wang 1359f068ac8SBaolin Wang vddcammot: LDO_CAMMOT { 1369f068ac8SBaolin Wang regulator-name = "vddcammot"; 1379f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1389f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1399f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1409f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1419f068ac8SBaolin Wang }; 1429f068ac8SBaolin Wang 1439f068ac8SBaolin Wang vddvldo: LDO_VLDO { 1449f068ac8SBaolin Wang regulator-name = "vddvldo"; 1459f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1469f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1479f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1489f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1499f068ac8SBaolin Wang }; 1509f068ac8SBaolin Wang 1519f068ac8SBaolin Wang vddemmccore: LDO_EMMCCORE { 1529f068ac8SBaolin Wang regulator-name = "vddemmccore"; 1539f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1549f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1559f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1569f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1579f068ac8SBaolin Wang regulator-boot-on; 1589f068ac8SBaolin Wang }; 1599f068ac8SBaolin Wang 1609f068ac8SBaolin Wang vddsdcore: LDO_SDCORE { 1619f068ac8SBaolin Wang regulator-name = "vddsdcore"; 1629f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1639f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1649f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1659f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1669f068ac8SBaolin Wang }; 1679f068ac8SBaolin Wang 1689f068ac8SBaolin Wang vddsdio: LDO_SDIO { 1699f068ac8SBaolin Wang regulator-name = "vddsdio"; 1709f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1719f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1729f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1739f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1749f068ac8SBaolin Wang }; 1759f068ac8SBaolin Wang 1769f068ac8SBaolin Wang vddwifipa: LDO_WIFIPA { 1779f068ac8SBaolin Wang regulator-name = "vddwifipa"; 1789f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1799f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1809f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1819f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1829f068ac8SBaolin Wang }; 1839f068ac8SBaolin Wang 1849f068ac8SBaolin Wang vddusb33: LDO_USB33 { 1859f068ac8SBaolin Wang regulator-name = "vddusb33"; 1869f068ac8SBaolin Wang regulator-min-microvolt = <1200000>; 1879f068ac8SBaolin Wang regulator-max-microvolt = <3750000>; 1889f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1899f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1909f068ac8SBaolin Wang }; 1919f068ac8SBaolin Wang 1929f068ac8SBaolin Wang vddcamd0: LDO_CAMD0 { 1939f068ac8SBaolin Wang regulator-name = "vddcamd0"; 1949f068ac8SBaolin Wang regulator-min-microvolt = <1000000>; 1959f068ac8SBaolin Wang regulator-max-microvolt = <1793750>; 1969f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 1979f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 1989f068ac8SBaolin Wang }; 1999f068ac8SBaolin Wang 2009f068ac8SBaolin Wang vddcamd1: LDO_CAMD1 { 2019f068ac8SBaolin Wang regulator-name = "vddcamd1"; 2029f068ac8SBaolin Wang regulator-min-microvolt = <1000000>; 2039f068ac8SBaolin Wang regulator-max-microvolt = <1793750>; 2049f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 2059f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 2069f068ac8SBaolin Wang }; 2079f068ac8SBaolin Wang 2089f068ac8SBaolin Wang vddcon: LDO_CON { 2099f068ac8SBaolin Wang regulator-name = "vddcon"; 2109f068ac8SBaolin Wang regulator-min-microvolt = <1000000>; 2119f068ac8SBaolin Wang regulator-max-microvolt = <1793750>; 2129f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 2139f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 2149f068ac8SBaolin Wang }; 2159f068ac8SBaolin Wang 2169f068ac8SBaolin Wang vddcamio: LDO_CAMIO { 2179f068ac8SBaolin Wang regulator-name = "vddcamio"; 2189f068ac8SBaolin Wang regulator-min-microvolt = <1000000>; 2199f068ac8SBaolin Wang regulator-max-microvolt = <1793750>; 2209f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 2219f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 2229f068ac8SBaolin Wang }; 2239f068ac8SBaolin Wang 2249f068ac8SBaolin Wang vddsram: LDO_SRAM { 2259f068ac8SBaolin Wang regulator-name = "vddsram"; 2269f068ac8SBaolin Wang regulator-min-microvolt = <1000000>; 2279f068ac8SBaolin Wang regulator-max-microvolt = <1793750>; 2289f068ac8SBaolin Wang regulator-enable-ramp-delay = <100>; 2299f068ac8SBaolin Wang regulator-ramp-delay = <25000>; 2309f068ac8SBaolin Wang regulator-always-on; 2319f068ac8SBaolin Wang }; 2329f068ac8SBaolin Wang }; 2339f068ac8SBaolin Wang }; 2349f068ac8SBaolin Wang}; 235