mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ODROID-COMMON: dtb/dtbo: sort out common node entries
Since many entries in Tiny DRM device tree are common, they are moved to common file and keep 'compatible=...' to each display device tree overlay file. Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Ib4b3daac14f07ca2769450450998fa83bfa65497
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
tinydrm: lcd@0 {
|
||||
status = "okay";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <3 RK_PD1 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -1,50 +1,8 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include "display_tinydrm.dtsi"
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
lcd@0 {
|
||||
status = "okay";
|
||||
compatible = "waveshare,ws1inch47";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <3 RK_PD1 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
&tinydrm {
|
||||
compatible = "waveshare,ws1inch47";
|
||||
};
|
||||
|
||||
@@ -1,50 +1,8 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include "display_tinydrm.dtsi"
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
lcd@0 {
|
||||
status = "okay";
|
||||
compatible = "waveshare,ws1inch69";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <3 RK_PD1 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
&tinydrm {
|
||||
compatible = "waveshare,ws1inch69";
|
||||
};
|
||||
|
||||
@@ -1,50 +1,8 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include "display_tinydrm.dtsi"
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
lcd@0 {
|
||||
status = "okay";
|
||||
compatible = "jianda,jd-t18003-t01";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <2 RK_PB0 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
&tinydrm {
|
||||
compatible = "jianda,jd-t18003-t01";
|
||||
};
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
tinydrm: lcd@0 {
|
||||
status = "okay";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <2 RK_PB0 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,50 +1,8 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include "display_tinydrm.dtsi"
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
lcd@0 {
|
||||
status = "okay";
|
||||
compatible = "waveshare,ws1inch47";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <2 RK_PB0 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
&tinydrm {
|
||||
compatible = "waveshare,ws1inch47";
|
||||
};
|
||||
|
||||
@@ -1,50 +1,8 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include "display_tinydrm.dtsi"
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
lcd@0 {
|
||||
status = "okay";
|
||||
compatible = "waveshare,ws1inch69";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
|
||||
backlight = <&backlight_gpio>;
|
||||
dc-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&display_pins>;
|
||||
|
||||
display_pins: display-pins {
|
||||
rockchip,pins = <2 RK_PB0 0 &pcfg_pull_none>,
|
||||
<0 RK_PC1 0 &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
backlight_gpio: backlight-gpio {
|
||||
status = "okay";
|
||||
compatible = "gpio-backlight";
|
||||
|
||||
gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
&tinydrm {
|
||||
compatible = "waveshare,ws1inch69";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user