sja1000.txt (1793B)
1Memory mapped SJA1000 CAN controller from NXP (formerly Philips) 2 3Required properties: 4 5- compatible : should be one of "nxp,sja1000", "technologic,sja1000". 6 7- reg : should specify the chip select, address offset and size required 8 to map the registers of the SJA1000. The size is usually 0x80. 9 10- interrupts: property with a value describing the interrupt source 11 (number and sensitivity) required for the SJA1000. 12 13Optional properties: 14 15- reg-io-width : Specify the size (in bytes) of the IO accesses that 16 should be performed on the device. Valid value is 1, 2 or 4. 17 This property is ignored for technologic version. 18 Default to 1 (8 bits). 19 20- nxp,external-clock-frequency : Frequency of the external oscillator 21 clock in Hz. Note that the internal clock frequency used by the 22 SJA1000 is half of that value. If not specified, a default value 23 of 16000000 (16 MHz) is used. 24 25- nxp,tx-output-mode : operation mode of the TX output control logic: 26 <0x0> : bi-phase output mode 27 <0x1> : normal output mode (default) 28 <0x2> : test output mode 29 <0x3> : clock output mode 30 31- nxp,tx-output-config : TX output pin configuration: 32 <0x01> : TX0 invert 33 <0x02> : TX0 pull-down (default) 34 <0x04> : TX0 pull-up 35 <0x06> : TX0 push-pull 36 <0x08> : TX1 invert 37 <0x10> : TX1 pull-down 38 <0x20> : TX1 pull-up 39 <0x30> : TX1 push-pull 40 41- nxp,clock-out-frequency : clock frequency in Hz on the CLKOUT pin. 42 If not specified or if the specified value is 0, the CLKOUT pin 43 will be disabled. 44 45- nxp,no-comparator-bypass : Allows to disable the CAN input comparator. 46 47For further information, please have a look to the SJA1000 data sheet. 48 49Examples: 50 51can@3,100 { 52 compatible = "nxp,sja1000"; 53 reg = <3 0x100 0x80>; 54 interrupts = <2 0>; 55 interrupt-parent = <&mpic>; 56 nxp,external-clock-frequency = <16000000>; 57}; 58