pinctrl: rockchip: remove gpiochip related codes

Remove gpiochip related codes from pinctrl driver, but populate gpio
platform devices from device tree data.

Change-Id: I347acaac2998a972e4c3be5c8827f77f468a7ad2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu 2021-05-10 14:25:47 +08:00 committed by Tao Huang
parent 2a120a1f7d
commit fd0a8bdb75
2 changed files with 72 additions and 1098 deletions

File diff suppressed because it is too large Load Diff

View File

@ -87,6 +87,12 @@ enum rockchip_pin_route_type {
ROUTE_TYPE_INVALID = -1,
};
enum rockchip_mux_route_location {
ROCKCHIP_ROUTE_SAME = 0,
ROCKCHIP_ROUTE_PMU,
ROCKCHIP_ROUTE_GRF,
};
/**
* @drv_type: drive strength variant using rockchip_perpin_drv_type
* @offset: if initialized to -1 it will be autocalculated, by specifying
@ -173,7 +179,7 @@ struct rockchip_mux_recalced_data {
* @bank_num: bank number.
* @pin: index at register or used to calc index.
* @func: the min pin.
* @route_type: the register type.
* @route_location: the mux route location (same, pmu, grf).
* @route_offset: the max pin.
* @route_val: the register offset.
*/
@ -181,7 +187,7 @@ struct rockchip_mux_route_data {
u8 bank_num;
u8 pin;
u8 func;
enum rockchip_pin_route_type route_type : 8;
enum rockchip_mux_route_location route_location;
u32 route_offset;
u32 route_val;
};