1# Copyright 2022 Google LLC 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 Richtek RT1718S TCPC chip 6 7 The Richtek RT1718S chip is TCPC, but also has 3 pins, which can be used as 8 a usual GPIO. This node collects common proprties for RT1718S chip e.g. I2C 9 address. Feature-specific(GPIO, TCPC) properties should be placed in a child 10 node e.g. a number of GPIOs. 11 12 Example: 13 &i2c2_0 { 14 rt1718s_port0: rt1718s@40 { 15 compatible = "richtek,rt1718s"; 16 reg = <0x40>; 17 irq-gpios = <&gpioe 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 18 19 rt1718s_gpio_port0: rt1718s_gpio { 20 compatible = "richtek,rt1718s-gpio-port"; 21 22 gpio-controller; 23 #gpio-cells = <2>; 24 ngpios = <3>; 25 }; 26 }; 27 }; 28 29compatible: "richtek,rt1718s" 30 31include: [i2c-device.yaml] 32 33properties: 34 irq-gpios: 35 type: phandle-array 36 description: Interrupt GPIO pin connected from the chip(IRQB) 37