···5959 p) Freescale Synchronous Serial Interface6060 q) USB EHCI controllers6161 r) MDIO on GPIOs6262+ s) SPI busses62636364 VII - Marvell Discovery mv64[345]6x System Controller chips6465 1) The /system-controller node···18831882 gpios = <&qe_pio_a 1118841883 &qe_pio_c 6>;18851884 };18851885+18861886+ s) SPI (Serial Peripheral Interface) busses18871887+18881888+ SPI busses can be described with a node for the SPI master device18891889+ and a set of child nodes for each SPI slave on the bus. For this18901890+ discussion, it is assumed that the system's SPI controller is in18911891+ SPI master mode. This binding does not describe SPI controllers18921892+ in slave mode.18931893+18941894+ The SPI master node requires the following properties:18951895+ - #address-cells - number of cells required to define a chip select18961896+ address on the SPI bus.18971897+ - #size-cells - should be zero.18981898+ - compatible - name of SPI bus controller following generic names18991899+ recommended practice.19001900+ No other properties are required in the SPI bus node. It is assumed19011901+ that a driver for an SPI bus device will understand that it is an SPI bus.19021902+ However, the binding does not attempt to define the specific method for19031903+ assigning chip select numbers. Since SPI chip select configuration is19041904+ flexible and non-standardized, it is left out of this binding with the19051905+ assumption that board specific platform code will be used to manage19061906+ chip selects. Individual drivers can define additional properties to19071907+ support describing the chip select layout.19081908+19091909+ SPI slave nodes must be children of the SPI master node and can19101910+ contain the following properties.19111911+ - reg - (required) chip select address of device.19121912+ - compatible - (required) name of SPI device following generic names19131913+ recommended practice19141914+ - spi-max-frequency - (required) Maximum SPI clocking speed of device in Hz19151915+ - spi-cpol - (optional) Empty property indicating device requires19161916+ inverse clock polarity (CPOL) mode19171917+ - spi-cpha - (optional) Empty property indicating device requires19181918+ shifted clock phase (CPHA) mode19191919+19201920+ SPI example for an MPC5200 SPI bus:19211921+ spi@f00 {19221922+ #address-cells = <1>;19231923+ #size-cells = <0>;19241924+ compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";19251925+ reg = <0xf00 0x20>;19261926+ interrupts = <2 13 0 2 14 0>;19271927+ interrupt-parent = <&mpc5200_pic>;19281928+19291929+ ethernet-switch@0 {19301930+ compatible = "micrel,ks8995m";19311931+ spi-max-frequency = <1000000>;19321932+ reg = <0>;19331933+ };19341934+19351935+ codec@1 {19361936+ compatible = "ti,tlv320aic26";19371937+ spi-max-frequency = <100000>;19381938+ reg = <1>;19391939+ };19401940+ };1886194118871942VII - Marvell Discovery mv64[345]6x System Controller chips18881943===========================================================
+1-1
arch/powerpc/platforms/52xx/Kconfig
···11config PPC_MPC52xx22 bool "52xx-based boards"33 depends on PPC_MULTIPLATFORM && PPC3244- select FSL_SOC54 select PPC_CLOCK65 select PPC_PCI_CHOICE76···4748config PPC_MPC5200_GPIO4849 bool "MPC5200 GPIO support"4950 depends on PPC_MPC52xx5151+ select GENERIC_GPIO5052 select HAVE_GPIO_LIB5153 help5254 Enable gpiolib support for mpc5200 based boards
-2
drivers/of/of_i2c.c
···9191 }92929393 info.irq = irq_of_parse_and_map(node, 0);9494- if (info.irq == NO_IRQ)9595- info.irq = -1;96949795 if (of_find_i2c_driver(node, &info) < 0) {9896 irq_dispose_mapping(info.irq);