在内核kernel/arch/arm64/boot/dts/rockchip/rk3568-core-aioj.dtsi下新增节点
之后将驱动程序添加进内核 ,使用的是萤火虫的示例代码
路径kernel/drivers/iio/adc/adc.c
/*
* Driver for pwm demo on Firefly board.
*
* Copyright (C) 2016, Zhongshan T-chip Intelligent Technology Co.,ltd.
* Copyright 2006 ZL.Guan
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/device.h>
#include "adc.h"
#include <linux/platform_device.h>
#include <linux/of_gpio.h>
#include <linux/gpio.h>
#include <linux/iio/iio.h>
#include <