| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
- /*
- * Example for a board device tree (not an overlay): the panel (U1, 0x74) on
- * i2c1 of an Orange Pi Zero (Allwinner H2+). Running on real hardware, built
- * into the board DTB.
- *
- * Include it after the mainline board file, e.g.
- *
- * #include "sun8i-h2-plus-orangepi-zero.dts"
- * #include "orangepi-zero-i2c1.dtsi"
- *
- * For another board: change the bus (&i2c1, its pinctrl).
- *
- * The keys (U2, 0x76) on the same bus are in the radio-keyboard-tca
- * repository, dts/examples/orangepi-zero-i2c1-keys.dtsi, to be included
- * after this file.
- */
- / {
- aliases {
- i2c1 = &i2c1; /* keep /dev/i2c-1 */
- };
- };
- /*
- * PA18 (SCL) / PA19 (SDA). 400 kHz relies on the pull-ups on the panel
- * board; the SoC's internal ones are too weak for that speed.
- */
- &i2c1 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins>;
- clock-frequency = <400000>;
- status = "okay";
- /* "k4be" is not a registered vendor prefix: dtbs_check warns here */
- panel@74 {
- compatible = "k4be,s1d13700-tca9539";
- reg = <0x74>;
- };
- };
|