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: 155def4c47SEmmanuel Vadot enum: 165def4c47SEmmanuel Vadot - samsung,s3fwrn5-i2c 175def4c47SEmmanuel 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 30*5956d97fSEmmanuel Vadot clocks: 31*5956d97fSEmmanuel Vadot maxItems: 1 32*5956d97fSEmmanuel Vadot 336be33864SEmmanuel Vadot wake-gpios: 346be33864SEmmanuel Vadot maxItems: 1 356be33864SEmmanuel Vadot description: 366be33864SEmmanuel Vadot Output GPIO pin used to enter firmware mode and sleep/wakeup control 376be33864SEmmanuel Vadot 386be33864SEmmanuel Vadot s3fwrn5,en-gpios: 396be33864SEmmanuel Vadot maxItems: 1 406be33864SEmmanuel Vadot deprecated: true 416be33864SEmmanuel Vadot description: 426be33864SEmmanuel Vadot Use en-gpios 436be33864SEmmanuel Vadot 446be33864SEmmanuel Vadot s3fwrn5,fw-gpios: 456be33864SEmmanuel Vadot maxItems: 1 466be33864SEmmanuel Vadot deprecated: true 476be33864SEmmanuel Vadot description: 486be33864SEmmanuel Vadot Use wake-gpios 496be33864SEmmanuel Vadot 506be33864SEmmanuel VadotadditionalProperties: false 516be33864SEmmanuel Vadot 526be33864SEmmanuel Vadotrequired: 536be33864SEmmanuel Vadot - compatible 546be33864SEmmanuel Vadot - en-gpios 555def4c47SEmmanuel Vadot - wake-gpios 565def4c47SEmmanuel Vadot 575def4c47SEmmanuel VadotallOf: 585def4c47SEmmanuel Vadot - if: 595def4c47SEmmanuel Vadot properties: 605def4c47SEmmanuel Vadot compatible: 615def4c47SEmmanuel Vadot contains: 625def4c47SEmmanuel Vadot const: samsung,s3fwrn5-i2c 635def4c47SEmmanuel Vadot then: 645def4c47SEmmanuel Vadot required: 656be33864SEmmanuel Vadot - interrupts 666be33864SEmmanuel Vadot - reg 676be33864SEmmanuel Vadot 686be33864SEmmanuel Vadotexamples: 696be33864SEmmanuel Vadot - | 706be33864SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 716be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 726be33864SEmmanuel Vadot 736be33864SEmmanuel Vadot i2c4 { 746be33864SEmmanuel Vadot #address-cells = <1>; 756be33864SEmmanuel Vadot #size-cells = <0>; 766be33864SEmmanuel Vadot 776be33864SEmmanuel Vadot s3fwrn5@27 { 786be33864SEmmanuel Vadot compatible = "samsung,s3fwrn5-i2c"; 796be33864SEmmanuel Vadot reg = <0x27>; 806be33864SEmmanuel Vadot 816be33864SEmmanuel Vadot interrupt-parent = <&gpa1>; 825def4c47SEmmanuel Vadot interrupts = <3 IRQ_TYPE_EDGE_RISING>; 836be33864SEmmanuel Vadot 846be33864SEmmanuel Vadot en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>; 856be33864SEmmanuel Vadot wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>; 86*5956d97fSEmmanuel Vadot 87*5956d97fSEmmanuel Vadot clocks = <&rpmcc 20>; 886be33864SEmmanuel Vadot }; 896be33864SEmmanuel Vadot }; 905def4c47SEmmanuel Vadot # UART example on Raspberry Pi 915def4c47SEmmanuel Vadot - | 925def4c47SEmmanuel Vadot uart0 { 935def4c47SEmmanuel Vadot status = "okay"; 945def4c47SEmmanuel Vadot 955def4c47SEmmanuel Vadot nfc { 965def4c47SEmmanuel Vadot compatible = "samsung,s3fwrn82"; 975def4c47SEmmanuel Vadot 985def4c47SEmmanuel Vadot en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; 995def4c47SEmmanuel Vadot wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; 1005def4c47SEmmanuel Vadot 1015def4c47SEmmanuel Vadot status = "okay"; 1025def4c47SEmmanuel Vadot }; 1035def4c47SEmmanuel Vadot }; 104