72 lines · plain
1NXP LPC18xx/43xx SCU pin controller Device Tree Bindings2--------------------------------------------------------3 4Required properties:5- compatible : Should be "nxp,lpc1850-scu"6- reg : Address and length of the register set for the device7- clocks : Clock specifier (see clock bindings for details)8 9The lpc1850-scu driver uses the generic pin multiplexing and generic pin10configuration documented in pinctrl-bindings.txt.11 12The following generic nodes are supported:13 - function14 - pins15 - bias-disable16 - bias-pull-up17 - bias-pull-down18 - drive-strength19 - input-enable20 - input-disable21 - input-schmitt-enable22 - input-schmitt-disable23 - slew-rate24 25NXP specific properties:26 - nxp,gpio-pin-interrupt : Assign pin to gpio pin interrupt controller27 irq number 0 to 7. See example below.28 29Not all pins support all properties so either refer to the NXP 1850/435030user manual or the pin table in the pinctrl-lpc18xx driver for supported31pin properties.32 33Example:34pinctrl: pinctrl@40086000 {35 compatible = "nxp,lpc1850-scu";36 reg = <0x40086000 0x1000>;37 clocks = <&ccu1 CLK_CPU_SCU>;38 39 i2c0_pins: i2c0-pins {40 i2c0_pins_cfg {41 pins = "i2c0_scl", "i2c0_sda";42 function = "i2c0";43 input-enable;44 };45 };46 47 uart0_pins: uart0-pins {48 uart0_rx_cfg {49 pins = "pf_11";50 function = "uart0";51 bias-disable;52 input-enable;53 };54 55 uart0_tx_cfg {56 pins = "pf_10";57 function = "uart0";58 bias-disable;59 };60 };61 62 gpio_joystick_pins: gpio-joystick-pins {63 gpio_joystick_1_cfg {64 pins = "p9_0";65 function = "gpio";66 nxp,gpio-pin-interrupt = <0>;67 input-enable;68 bias-disable;69 };70 };71};72