Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: enable touchscreen support on Cygnus

This patch enables touchscreen support on bcm958300k and bcm958305k.
Touchscreen is connected to these boards through the bcm9hmidc daughter
card, and therefore also adding bcm9hmidc.dtsi that describes the
daughter card

Signed-off-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Vikram Prakash <vikramp@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Ray Jui and committed by
Florian Fainelli
35e372a3 2e561f92

+54
+10
arch/arm/boot/dts/bcm-cygnus.dtsi
··· 32 32 33 33 #include <dt-bindings/interrupt-controller/arm-gic.h> 34 34 #include <dt-bindings/interrupt-controller/irq.h> 35 + #include <dt-bindings/clock/bcm-cygnus.h> 35 36 36 37 #include "skeleton.dtsi" 37 38 ··· 257 256 258 257 interrupt-controller; 259 258 interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; 259 + }; 260 + 261 + touchscreen: tsc@180a6000 { 262 + compatible = "brcm,iproc-touchscreen"; 263 + reg = <0x180a6000 0x40>; 264 + clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>; 265 + clock-names = "tsc_clk"; 266 + interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; 267 + status = "disabled"; 260 268 }; 261 269 }; 262 270 };
+1
arch/arm/boot/dts/bcm958300k.dts
··· 33 33 /dts-v1/; 34 34 35 35 #include "bcm-cygnus.dtsi" 36 + #include "bcm9hmidc.dtsi" 36 37 37 38 / { 38 39 model = "Cygnus SVK (BCM958300K)";
+1
arch/arm/boot/dts/bcm958305k.dts
··· 33 33 /dts-v1/; 34 34 35 35 #include "bcm-cygnus.dtsi" 36 + #include "bcm9hmidc.dtsi" 36 37 37 38 / { 38 39 model = "Cygnus Wireless Audio (BCM958305K)";
+42
arch/arm/boot/dts/bcm9hmidc.dtsi
··· 1 + /* 2 + * BSD LICENSE 3 + * 4 + * Copyright(c) 2015 Broadcom Corporation. All rights reserved. 5 + * 6 + * Redistribution and use in source and binary forms, with or without 7 + * modification, are permitted provided that the following conditions 8 + * are met: 9 + * 10 + * * Redistributions of source code must retain the above copyright 11 + * notice, this list of conditions and the following disclaimer. 12 + * * Redistributions in binary form must reproduce the above copyright 13 + * notice, this list of conditions and the following disclaimer in 14 + * the documentation and/or other materials provided with the 15 + * distribution. 16 + * * Neither the name of Broadcom Corporation nor the names of its 17 + * contributors may be used to endorse or promote products derived 18 + * from this software without specific prior written permission. 19 + * 20 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 + */ 32 + 33 + /* 34 + * Broadcom human machine interface daughter card (bcm9hmidc) installed on 35 + * bcm958300k/bcm958305k boards 36 + */ 37 + 38 + &touchscreen { 39 + touchscreen-inverted-x; 40 + touchscreen-inverted-y; 41 + status = "okay"; 42 + };