1/* 2 * Copyright (c) 2024 ITE Corporation. All Rights Reserved. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <ite/it8801-mfd-gpiocr.dtsi> 8#include <zephyr/dt-bindings/mfd/mfd_it8801_altctrl.h> 9 10 11/ { 12 /* GPIO pin mapping to alternate function */ 13 it8801-mfd-map { 14 compatible = "ite,it8801-mfd-map"; 15 16 /* PWM alternate function */ 17 pwm1_gp12_default: pwm1_gp12_default { 18 altctrls = <&it8801_gpio1 2 IT8801_ALT_FUNC_2>; 19 }; 20 pwm2_gp13_default: pwm2_gp13_default { 21 altctrls = <&it8801_gpio1 3 IT8801_ALT_FUNC_2>; 22 }; 23 pwm3_gp14_default: pwm3_gp14_default { 24 altctrls = <&it8801_gpio1 4 IT8801_ALT_FUNC_2>; 25 }; 26 pwm4_gp15_default: pwm4_gp15_default { 27 altctrls = <&it8801_gpio1 5 IT8801_ALT_FUNC_2>; 28 }; 29 pwm7_gp20_default: pwm7_gp20_default { 30 altctrls = <&it8801_gpio2 0 IT8801_ALT_FUNC_2>; 31 }; 32 pwm8_gp23_default: pwm8_gp23_default { 33 altctrls = <&it8801_gpio2 3 IT8801_ALT_FUNC_3>; 34 }; 35 pwm9_gp22_default: pwm9_gp22_default { 36 altctrls = <&it8801_gpio2 2 IT8801_ALT_FUNC_3>; 37 }; 38 39 /* Keyboard alternate function */ 40 kso18_gp01_default: kso18_gp01_default { 41 altctrls = <&it8801_gpio0 1 IT8801_ALT_FUNC_2>; 42 }; 43 kso19_gp00_default: kso19_gp00_default { 44 altctrls = <&it8801_gpio0 0 IT8801_ALT_FUNC_2>; 45 }; 46 kso20_gp23_default: kso20_gp23_default { 47 altctrls = <&it8801_gpio2 3 IT8801_ALT_FUNC_2>; 48 }; 49 kso21_gp22_default: kso21_gp22_default { 50 altctrls = <&it8801_gpio2 2 IT8801_ALT_FUNC_2>; 51 }; 52 kso22_gp21_default: kso22_gp21_default { 53 altctrls = <&it8801_gpio2 1 IT8801_ALT_FUNC_2>; 54 }; 55 }; 56}; 57