Message ID | 20181018073327.64942-8-icenowy@aosc.io (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Analogix ANX6345 RGB-(e)DP bridge support | expand |
Hi Icenowy, On Thursday, October 18, 2018 12:33:25 AM PDT Icenowy Zheng wrote: > Pinebook has an ANX6345 bridge connected to the RGB666 LCD output, and > the I2C controlling signals are connected to R_I2C bus. > > Enable it in the device tree, and add a usable EDID from the panel's > datasheet (at least 14" Pinebook used a panel without EDID). There's no EDID in dts and 14" Pinebook uses a panel with EDID. Is it leftover of old comment? Regards, Vasily > > Signed-off-by: Icenowy Zheng <icenowy@aosc.io> > --- > .../dts/allwinner/sun50i-a64-pinebook.dts | 43 +++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts > b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index > 77fac84797e9..d7c14d0d61f9 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts > @@ -66,6 +66,10 @@ > }; > }; > > +&de { > + status = "okay"; > +}; > + > &ehci0 { > phys = <&usbphy 0>; > phy-names = "usb"; > @@ -76,6 +80,10 @@ > status = "okay"; > }; > > +&mixer0 { > + status = "okay"; > +}; > + > &mmc0 { > pinctrl-names = "default"; > pinctrl-0 = <&mmc0_pins>; > @@ -127,6 +135,27 @@ > status = "okay"; > }; > > +&r_i2c { > + pinctrl-names = "default"; > + pinctrl-0 = <&r_i2c_pins_a>; > + status = "okay"; > + > + anx6345: anx6345@38 { > + compatible = "analogix,anx6345"; > + reg = <0x38>; > + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ > + panel-supply = <®_dc1sw>; > + dvdd25-supply = <®_dldo2>; > + dvdd12-supply = <®_fldo1>; > + > + port { > + anx6345_in: endpoint { > + remote-endpoint = <&tcon0_out_anx6345>; > + }; > + }; > + }; > +}; > + > &r_rsb { > status = "okay"; > > @@ -267,6 +296,20 @@ > vcc-hdmi-supply = <®_dldo1>; > }; > > +&tcon0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&lcd_rgb666_pins>; > + > + status = "okay"; > +}; > + > +&tcon0_out { > + tcon0_out_anx6345: endpoint@0 { > + reg = <0>; > + remote-endpoint = <&anx6345_in>; > + }; > +}; > + > &uart0 { > pinctrl-names = "default"; > pinctrl-0 = <&uart0_pb_pins>;
于 2018年10月18日 GMT+08:00 下午11:17:35, Vasily Khoruzhick <anarsoul@gmail.com> 写到: >Hi Icenowy, > >On Thursday, October 18, 2018 12:33:25 AM PDT Icenowy Zheng wrote: >> Pinebook has an ANX6345 bridge connected to the RGB666 LCD output, >and >> the I2C controlling signals are connected to R_I2C bus. >> >> Enable it in the device tree, and add a usable EDID from the panel's >> datasheet (at least 14" Pinebook used a panel without EDID). > >There's no EDID in dts and 14" Pinebook uses a panel with EDID. Is it >leftover >of old comment? Yes, it is. > >Regards, >Vasily > >> >> Signed-off-by: Icenowy Zheng <icenowy@aosc.io> >> --- >> .../dts/allwinner/sun50i-a64-pinebook.dts | 43 >+++++++++++++++++++ >> 1 file changed, 43 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts >> b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index >> 77fac84797e9..d7c14d0d61f9 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts >> @@ -66,6 +66,10 @@ >> }; >> }; >> >> +&de { >> + status = "okay"; >> +}; >> + >> &ehci0 { >> phys = <&usbphy 0>; >> phy-names = "usb"; >> @@ -76,6 +80,10 @@ >> status = "okay"; >> }; >> >> +&mixer0 { >> + status = "okay"; >> +}; >> + >> &mmc0 { >> pinctrl-names = "default"; >> pinctrl-0 = <&mmc0_pins>; >> @@ -127,6 +135,27 @@ >> status = "okay"; >> }; >> >> +&r_i2c { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&r_i2c_pins_a>; >> + status = "okay"; >> + >> + anx6345: anx6345@38 { >> + compatible = "analogix,anx6345"; >> + reg = <0x38>; >> + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ >> + panel-supply = <®_dc1sw>; >> + dvdd25-supply = <®_dldo2>; >> + dvdd12-supply = <®_fldo1>; >> + >> + port { >> + anx6345_in: endpoint { >> + remote-endpoint = <&tcon0_out_anx6345>; >> + }; >> + }; >> + }; >> +}; >> + >> &r_rsb { >> status = "okay"; >> >> @@ -267,6 +296,20 @@ >> vcc-hdmi-supply = <®_dldo1>; >> }; >> >> +&tcon0 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&lcd_rgb666_pins>; >> + >> + status = "okay"; >> +}; >> + >> +&tcon0_out { >> + tcon0_out_anx6345: endpoint@0 { >> + reg = <0>; >> + remote-endpoint = <&anx6345_in>; >> + }; >> +}; >> + >> &uart0 { >> pinctrl-names = "default"; >> pinctrl-0 = <&uart0_pb_pins>;
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 77fac84797e9..d7c14d0d61f9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -66,6 +66,10 @@ }; }; +&de { + status = "okay"; +}; + &ehci0 { phys = <&usbphy 0>; phy-names = "usb"; @@ -76,6 +80,10 @@ status = "okay"; }; +&mixer0 { + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; @@ -127,6 +135,27 @@ status = "okay"; }; +&r_i2c { + pinctrl-names = "default"; + pinctrl-0 = <&r_i2c_pins_a>; + status = "okay"; + + anx6345: anx6345@38 { + compatible = "analogix,anx6345"; + reg = <0x38>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ + panel-supply = <®_dc1sw>; + dvdd25-supply = <®_dldo2>; + dvdd12-supply = <®_fldo1>; + + port { + anx6345_in: endpoint { + remote-endpoint = <&tcon0_out_anx6345>; + }; + }; + }; +}; + &r_rsb { status = "okay"; @@ -267,6 +296,20 @@ vcc-hdmi-supply = <®_dldo1>; }; +&tcon0 { + pinctrl-names = "default"; + pinctrl-0 = <&lcd_rgb666_pins>; + + status = "okay"; +}; + +&tcon0_out { + tcon0_out_anx6345: endpoint@0 { + reg = <0>; + remote-endpoint = <&anx6345_in>; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;
Pinebook has an ANX6345 bridge connected to the RGB666 LCD output, and the I2C controlling signals are connected to R_I2C bus. Enable it in the device tree, and add a usable EDID from the panel's datasheet (at least 14" Pinebook used a panel without EDID). Signed-off-by: Icenowy Zheng <icenowy@aosc.io> --- .../dts/allwinner/sun50i-a64-pinebook.dts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+)