004-v6.2-arm64-dts-mt7986-add-i2c-node.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From b49b7dc404ded1d89cbc568d875009a5c1ed4ef6 Mon Sep 17 00:00:00 2001
  2. From: Frank Wunderlich <[email protected]>
  3. Date: Sun, 6 Nov 2022 09:50:29 +0100
  4. Subject: [PATCH 04/19] arm64: dts: mt7986: add i2c node
  5. Add i2c Node to mt7986 devicetree.
  6. Signed-off-by: Frank Wunderlich <[email protected]>
  7. Link: https://lore.kernel.org/r/[email protected]
  8. Signed-off-by: Matthias Brugger <[email protected]>
  9. ---
  10. arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 14 ++++++++++++++
  11. 1 file changed, 14 insertions(+)
  12. --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
  13. +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
  14. @@ -279,6 +279,20 @@
  15. status = "disabled";
  16. };
  17. + i2c0: i2c@11008000 {
  18. + compatible = "mediatek,mt7986-i2c";
  19. + reg = <0 0x11008000 0 0x90>,
  20. + <0 0x10217080 0 0x80>;
  21. + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
  22. + clock-div = <5>;
  23. + clocks = <&infracfg CLK_INFRA_I2C0_CK>,
  24. + <&infracfg CLK_INFRA_AP_DMA_CK>;
  25. + clock-names = "main", "dma";
  26. + #address-cells = <1>;
  27. + #size-cells = <0>;
  28. + status = "disabled";
  29. + };
  30. +
  31. ethsys: syscon@15000000 {
  32. #address-cells = <1>;
  33. #size-cells = <1>;