Skip to content
  • Martin Blumenstingl's avatar
    iio: adc: meson-saradc: add Meson8b SoC compatibility · 6c76ed31
    Martin Blumenstingl authored
    
    
    Meson GX SoCs however use some magic bits to prevent simultaneous (=
    conflicting, because only consumer should use the FIFO buffer with the
    ADC results) usage by the Linux kernel and the bootloader (the BL30
    bootloader uses the SAR ADC to read the CPU temperature).
    This patch changes guards all BL30 functionality so it is skipped on
    SoCs which don't have it. Since the hardware itself doesn't know whether
    BL30 is available the internal meson_sar_adc_data is extended so this
    information can be provided per of_device_id.data inside the driver.
    
    Additionally the clocks "adc_clk" and "adc_sel" are not provided by the
    clock-controller itself. "adc_sel" is not available at all. "adc_clk"
    is provided by the SAR ADC IP block itself on Meson8b (and earlier).
    This is already supported by the meson_saradc driver.
    
    Finally this introduces new of_device_ids for the Meson8 and Meson8b
    SoCs so the driver can be wired up in the corresponding DT.
    
    Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    6c76ed31