1*c66ec88fSEmmanuel VadotSpreadtrum SC27XX series PMICs ADC binding 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: Should be one of the following. 5*c66ec88fSEmmanuel Vadot "sprd,sc2720-adc" 6*c66ec88fSEmmanuel Vadot "sprd,sc2721-adc" 7*c66ec88fSEmmanuel Vadot "sprd,sc2723-adc" 8*c66ec88fSEmmanuel Vadot "sprd,sc2730-adc" 9*c66ec88fSEmmanuel Vadot "sprd,sc2731-adc" 10*c66ec88fSEmmanuel Vadot- reg: The address offset of ADC controller. 11*c66ec88fSEmmanuel Vadot- interrupt-parent: The interrupt controller. 12*c66ec88fSEmmanuel Vadot- interrupts: The interrupt number for the ADC device. 13*c66ec88fSEmmanuel Vadot- #io-channel-cells: Number of cells in an IIO specifier. 14*c66ec88fSEmmanuel Vadot- hwlocks: Reference to a phandle of a hwlock provider node. 15*c66ec88fSEmmanuel Vadot- nvmem-cells: A phandle to the calibration cells provided by eFuse device. 16*c66ec88fSEmmanuel Vadot- nvmem-cell-names: Should be "big_scale_calib", "small_scale_calib". 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel VadotExample: 19*c66ec88fSEmmanuel Vadot 20*c66ec88fSEmmanuel Vadot sc2731_pmic: pmic@0 { 21*c66ec88fSEmmanuel Vadot compatible = "sprd,sc2731"; 22*c66ec88fSEmmanuel Vadot reg = <0>; 23*c66ec88fSEmmanuel Vadot spi-max-frequency = <26000000>; 24*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 25*c66ec88fSEmmanuel Vadot interrupt-controller; 26*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 27*c66ec88fSEmmanuel Vadot #address-cells = <1>; 28*c66ec88fSEmmanuel Vadot #size-cells = <0>; 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel Vadot pmic_adc: adc@480 { 31*c66ec88fSEmmanuel Vadot compatible = "sprd,sc2731-adc"; 32*c66ec88fSEmmanuel Vadot reg = <0x480>; 33*c66ec88fSEmmanuel Vadot interrupt-parent = <&sc2731_pmic>; 34*c66ec88fSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 35*c66ec88fSEmmanuel Vadot #io-channel-cells = <1>; 36*c66ec88fSEmmanuel Vadot hwlocks = <&hwlock 4>; 37*c66ec88fSEmmanuel Vadot nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; 38*c66ec88fSEmmanuel Vadot nvmem-cell-names = "big_scale_calib", "small_scale_calib"; 39*c66ec88fSEmmanuel Vadot }; 40*c66ec88fSEmmanuel Vadot }; 41