16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: Samsung S3FWRN5 NCI NFC Controller 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Krzysztof Kozlowski <krzk@kernel.org> 116be33864SEmmanuel Vadot - Krzysztof Opasiak <k.opasiak@samsung.com> 126be33864SEmmanuel Vadot 136be33864SEmmanuel Vadotproperties: 146be33864SEmmanuel Vadot compatible: 15*5def4c47SEmmanuel Vadot enum: 16*5def4c47SEmmanuel Vadot - samsung,s3fwrn5-i2c 17*5def4c47SEmmanuel Vadot - samsung,s3fwrn82 186be33864SEmmanuel Vadot 196be33864SEmmanuel Vadot en-gpios: 206be33864SEmmanuel Vadot maxItems: 1 216be33864SEmmanuel Vadot description: 226be33864SEmmanuel Vadot Output GPIO pin used for enabling/disabling the chip 236be33864SEmmanuel Vadot 246be33864SEmmanuel Vadot interrupts: 256be33864SEmmanuel Vadot maxItems: 1 266be33864SEmmanuel Vadot 276be33864SEmmanuel Vadot reg: 286be33864SEmmanuel Vadot maxItems: 1 296be33864SEmmanuel Vadot 306be33864SEmmanuel Vadot wake-gpios: 316be33864SEmmanuel Vadot maxItems: 1 326be33864SEmmanuel Vadot description: 336be33864SEmmanuel Vadot Output GPIO pin used to enter firmware mode and sleep/wakeup control 346be33864SEmmanuel Vadot 356be33864SEmmanuel Vadot s3fwrn5,en-gpios: 366be33864SEmmanuel Vadot maxItems: 1 376be33864SEmmanuel Vadot deprecated: true 386be33864SEmmanuel Vadot description: 396be33864SEmmanuel Vadot Use en-gpios 406be33864SEmmanuel Vadot 416be33864SEmmanuel Vadot s3fwrn5,fw-gpios: 426be33864SEmmanuel Vadot maxItems: 1 436be33864SEmmanuel Vadot deprecated: true 446be33864SEmmanuel Vadot description: 456be33864SEmmanuel Vadot Use wake-gpios 466be33864SEmmanuel Vadot 476be33864SEmmanuel VadotadditionalProperties: false 486be33864SEmmanuel Vadot 496be33864SEmmanuel Vadotrequired: 506be33864SEmmanuel Vadot - compatible 516be33864SEmmanuel Vadot - en-gpios 52*5def4c47SEmmanuel Vadot - wake-gpios 53*5def4c47SEmmanuel Vadot 54*5def4c47SEmmanuel VadotallOf: 55*5def4c47SEmmanuel Vadot - if: 56*5def4c47SEmmanuel Vadot properties: 57*5def4c47SEmmanuel Vadot compatible: 58*5def4c47SEmmanuel Vadot contains: 59*5def4c47SEmmanuel Vadot const: samsung,s3fwrn5-i2c 60*5def4c47SEmmanuel Vadot then: 61*5def4c47SEmmanuel Vadot required: 626be33864SEmmanuel Vadot - interrupts 636be33864SEmmanuel Vadot - reg 646be33864SEmmanuel Vadot 656be33864SEmmanuel Vadotexamples: 666be33864SEmmanuel Vadot - | 676be33864SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 686be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 696be33864SEmmanuel Vadot 706be33864SEmmanuel Vadot i2c4 { 716be33864SEmmanuel Vadot #address-cells = <1>; 726be33864SEmmanuel Vadot #size-cells = <0>; 736be33864SEmmanuel Vadot 746be33864SEmmanuel Vadot s3fwrn5@27 { 756be33864SEmmanuel Vadot compatible = "samsung,s3fwrn5-i2c"; 766be33864SEmmanuel Vadot reg = <0x27>; 776be33864SEmmanuel Vadot 786be33864SEmmanuel Vadot interrupt-parent = <&gpa1>; 79*5def4c47SEmmanuel Vadot interrupts = <3 IRQ_TYPE_EDGE_RISING>; 806be33864SEmmanuel Vadot 816be33864SEmmanuel Vadot en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>; 826be33864SEmmanuel Vadot wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>; 836be33864SEmmanuel Vadot }; 846be33864SEmmanuel Vadot }; 85*5def4c47SEmmanuel Vadot # UART example on Raspberry Pi 86*5def4c47SEmmanuel Vadot - | 87*5def4c47SEmmanuel Vadot uart0 { 88*5def4c47SEmmanuel Vadot status = "okay"; 89*5def4c47SEmmanuel Vadot 90*5def4c47SEmmanuel Vadot nfc { 91*5def4c47SEmmanuel Vadot compatible = "samsung,s3fwrn82"; 92*5def4c47SEmmanuel Vadot 93*5def4c47SEmmanuel Vadot en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; 94*5def4c47SEmmanuel Vadot wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; 95*5def4c47SEmmanuel Vadot 96*5def4c47SEmmanuel Vadot status = "okay"; 97*5def4c47SEmmanuel Vadot }; 98*5def4c47SEmmanuel Vadot }; 99