orangepi-zero-i2c1.dtsi 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Example for a board device tree (not an overlay): the panel (U1, 0x74) on
  4. * i2c1 of an Orange Pi Zero (Allwinner H2+). Running on real hardware, built
  5. * into the board DTB.
  6. *
  7. * Include it after the mainline board file, e.g.
  8. *
  9. * #include "sun8i-h2-plus-orangepi-zero.dts"
  10. * #include "orangepi-zero-i2c1.dtsi"
  11. *
  12. * For another board: change the bus (&i2c1, its pinctrl).
  13. *
  14. * The keys (U2, 0x76) on the same bus are in the radio-keyboard-tca
  15. * repository, dts/examples/orangepi-zero-i2c1-keys.dtsi, to be included
  16. * after this file.
  17. */
  18. / {
  19. aliases {
  20. i2c1 = &i2c1; /* keep /dev/i2c-1 */
  21. };
  22. };
  23. /*
  24. * PA18 (SCL) / PA19 (SDA). 400 kHz relies on the pull-ups on the panel
  25. * board; the SoC's internal ones are too weak for that speed.
  26. */
  27. &i2c1 {
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&i2c1_pins>;
  30. clock-frequency = <400000>;
  31. status = "okay";
  32. /* "k4be" is not a registered vendor prefix: dtbs_check warns here */
  33. panel@74 {
  34. compatible = "k4be,s1d13700-tca9539";
  35. reg = <0x74>;
  36. };
  37. };