diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-07-08 15:17:25 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-12-22 01:24:23 +0100 |
commit | 8e7b573b7aa4c08c7e838b271677dc68a0db128e (patch) | |
tree | d70c41e0bceb6d40ed9d31003a06589363f61ea5 /target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts | |
parent | dcb5e52209e52b6004b5888d41620386a28d2567 (diff) | |
download | upstream-8e7b573b7aa4c08c7e838b271677dc68a0db128e.tar.gz upstream-8e7b573b7aa4c08c7e838b271677dc68a0db128e.tar.bz2 upstream-8e7b573b7aa4c08c7e838b271677dc68a0db128e.zip |
lantiq: dts: assign the PCI pins to the PCI controller node
Assign the PCI pins to the PCI controller node instead of using pin
hogging (where pins are assigned to the pin controller).
This is the preferred way of assigning pins upstream.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Diffstat (limited to 'target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts')
-rw-r--r-- | target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts b/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts index 6c0dad873f..424b778bb4 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7320.dts @@ -73,29 +73,6 @@ }; }; -&gpio { - pinctrl-names = "default"; - pinctrl-0 = <&state_default>; - - state_default: pinmux { - pci { - lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4"; - lantiq,function = "pci"; - }; - pci-in { - lantiq,groups = "req1", "req2", "req3", "req4"; - lantiq,output = <0>; - lantiq,open-drain = <1>; - lantiq,pull = <2>; - }; - pci-out { - lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4"; - lantiq,output = <1>; - lantiq,pull = <0>; - }; - }; -}; - &gsw { phy-mode = "mii"; mtd-mac-address = <&ath9k_cal 0xa91>; @@ -141,6 +118,12 @@ &pci0 { status = "okay"; + + pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>, + <&pci_gnt3_pins>, <&pci_gnt4_pins>, + <&pci_req1_pins>, <&pci_req2_pins>, + <&pci_req3_pins>, <&pci_req4_pins>; + req-mask = <0xf>; gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |