Message ID | 20180420072524.14127-1-joel@jms.id.au |
---|---|
State | Changes Requested, archived |
Headers | show |
Series | [linux,dev-4.13] ARM: dts: aspeed-g5: Add DAC MUX userspace control | expand |
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 4ca4bc463347..83b07954644a 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -158,6 +158,15 @@ }; + scratch@2c { + compatible = "aspeed,bmc-misc"; + dac_mux { + offset = <0x2c>; + bit-mask = <0x3>; + bit-shift = <16>; + }; + }; + vga_scratch: scratch@50 { compatible = "aspeed,bmc-misc"; reg = <0x50 0x20>;
This exposes SCU2C "Misc. Control Register" bits 16 and 17 which control the input to the VGA DAC. They are used to select which graphics device drives the analog output: 00: VGA mode (default) 01: Graphics CRT mode 10: Pass-through mode from Video input port-A 11: Pass-through mode from Video input port-B Signed-off-by: Joel Stanley <joel@jms.id.au> --- arch/arm/boot/dts/aspeed-g5.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)