Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: PCI: ti,am65: Fix "ti,syscon-pcie-id"/"ti,syscon-pcie-mode" to take argument

Fix binding documentation of "ti,syscon-pcie-id" and "ti,syscon-pcie-mode"
to take phandle with argument. The argument is the register offset within
"syscon" used to configure PCIe controller. Similar change for j721e is
discussed in [1]

[1] -> http://lore.kernel.org/r/CAL_JsqKiUcO76bo1GoepWM1TusJWoty_BRy2hFSgtEVMqtrvvQ@mail.gmail.com

Link: https://lore.kernel.org/r/20211126083119.16570-2-kishon@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>

authored by

Kishon Vijay Abraham I and committed by
Lorenzo Pieralisi
d91e775e fa55b7dc

+18 -6
+6 -2
Documentation/devicetree/bindings/pci/ti,am65-pci-ep.yaml
··· 32 32 maxItems: 1 33 33 34 34 ti,syscon-pcie-mode: 35 + $ref: /schemas/types.yaml#/definitions/phandle-array 36 + items: 37 + - items: 38 + - description: Phandle to the SYSCON entry 39 + - description: pcie_ctrl register offset within SYSCON 35 40 description: Phandle to the SYSCON entry required for configuring PCIe in RC or EP mode. 36 - $ref: /schemas/types.yaml#/definitions/phandle 37 41 38 42 interrupts: 39 43 minItems: 1 ··· 69 65 <0x5506000 0x1000>; 70 66 reg-names = "app", "dbics", "addr_space", "atu"; 71 67 power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>; 72 - ti,syscon-pcie-mode = <&pcie0_mode>; 68 + ti,syscon-pcie-mode = <&scm_conf 0x4060>; 73 69 num-ib-windows = <16>; 74 70 num-ob-windows = <16>; 75 71 max-link-speed = <2>;
+12 -4
Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml
··· 33 33 maxItems: 1 34 34 35 35 ti,syscon-pcie-id: 36 + $ref: /schemas/types.yaml#/definitions/phandle-array 37 + items: 38 + - items: 39 + - description: Phandle to the SYSCON entry 40 + - description: pcie_device_id register offset within SYSCON 36 41 description: Phandle to the SYSCON entry required for getting PCIe device/vendor ID 37 - $ref: /schemas/types.yaml#/definitions/phandle 38 42 39 43 ti,syscon-pcie-mode: 44 + $ref: /schemas/types.yaml#/definitions/phandle-array 45 + items: 46 + - items: 47 + - description: Phandle to the SYSCON entry 48 + - description: pcie_ctrl register offset within SYSCON 40 49 description: Phandle to the SYSCON entry required for configuring PCIe in RC or EP mode. 41 - $ref: /schemas/types.yaml#/definitions/phandle 42 50 43 51 msi-map: true 44 52 ··· 92 84 #size-cells = <2>; 93 85 ranges = <0x81000000 0 0 0x10020000 0 0x00010000>, 94 86 <0x82000000 0 0x10030000 0x10030000 0 0x07FD0000>; 95 - ti,syscon-pcie-id = <&pcie_devid>; 96 - ti,syscon-pcie-mode = <&pcie0_mode>; 87 + ti,syscon-pcie-id = <&scm_conf 0x0210>; 88 + ti,syscon-pcie-mode = <&scm_conf 0x4060>; 97 89 bus-range = <0x0 0xff>; 98 90 num-viewport = <16>; 99 91 max-link-speed = <2>;