arm: brain: add SubLCD support for 2nd generation

This commit is contained in:
Suguru Saito 2021-10-03 20:53:18 +09:00 committed by Takumi Sueda
parent c0654c3cde
commit ad09b8e432
1 changed files with 29 additions and 0 deletions

View File

@ -95,6 +95,22 @@
status = "okay";
};
ssp2: spi@80014000 {
compatible = "fsl,imx28-spi";
pinctrl-names = "default";
pinctrl-0 = <&slcd_pins>;
clock-frequency = <16000000>;
status = "okay";
slcd@0 {
reg = <0>;
compatible = "brain,st7586";
spi-max-frequency = <16000000>;
reset-gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>;
rotation = <180>;
};
};
pinctrl@80018000 {
pinctrl-names = "default";
pinctrl-0 = <&hog_pins_3v3_pullup &hog_pins_3v3_nopull &hog_pins_1v8_nopull>;
@ -177,6 +193,19 @@
fsl,voltage = <MXS_VOLTAGE_LOW>;
fsl,pull-up = <MXS_PULL_DISABLE>;
};
slcd_pins: spi2@0 {
reg = <0>;
fsl,pinmux-ids = <
MX28_PAD_SSP2_SCK__SSP2_SCK
MX28_PAD_SSP2_MOSI__SSP2_CMD
MX28_PAD_SSP2_MISO__GPIO_2_18
MX28_PAD_SSP2_SS0__SSP2_D3
>;
fsl,drive-strength = <MXS_DRIVE_4mA>;
fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_DISABLE>;
};
};
brainlcd: lcdif@80030000 {