1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au> 4724ba675SRob Herring */ 5*12a26898SAndrew Davis 6724ba675SRob Herring/dts-v1/; 7724ba675SRob Herring 8a9ab8b23SAndrew Davis#include <dt-bindings/input/input.h> 9a9ab8b23SAndrew Davis 10724ba675SRob Herring/include/ "nspire.dtsi" 11724ba675SRob Herring 12724ba675SRob Herring&lcd { 13724ba675SRob Herring port { 14724ba675SRob Herring clcd_pads: endpoint { 15724ba675SRob Herring remote-endpoint = <&panel_in>; 16724ba675SRob Herring }; 17724ba675SRob Herring }; 18724ba675SRob Herring}; 19724ba675SRob Herring 20724ba675SRob Herring&fast_timer { 21724ba675SRob Herring /* compatible = "arm,sp804", "arm,primecell"; */ 22724ba675SRob Herring}; 23724ba675SRob Herring 24724ba675SRob Herring&uart { 25724ba675SRob Herring compatible = "arm,pl011", "arm,primecell"; 26724ba675SRob Herring 27724ba675SRob Herring clocks = <&uart_clk>, <&apb_pclk>; 28cbc2a1e5SAndrew Davis clock-names = "uartclk", "apb_pclk"; 29724ba675SRob Herring}; 30724ba675SRob Herring 31724ba675SRob Herring&timer0 { 32724ba675SRob Herring compatible = "arm,sp804", "arm,primecell"; 33724ba675SRob Herring}; 34724ba675SRob Herring 35724ba675SRob Herring&timer1 { 36724ba675SRob Herring compatible = "arm,sp804", "arm,primecell"; 37724ba675SRob Herring}; 38724ba675SRob Herring 39724ba675SRob Herring&base_clk { 40724ba675SRob Herring compatible = "lsi,nspire-cx-clock"; 41724ba675SRob Herring}; 42724ba675SRob Herring 43724ba675SRob Herring&ahb_clk { 44724ba675SRob Herring compatible = "lsi,nspire-cx-ahb-divider"; 45724ba675SRob Herring}; 46724ba675SRob Herring 47724ba675SRob Herring&keypad { 48724ba675SRob Herring linux,keymap = < 49a9ab8b23SAndrew Davis MATRIX_KEY(0, 0, 0x1c) 50a9ab8b23SAndrew Davis MATRIX_KEY(0, 1, 0x1c) 51a9ab8b23SAndrew Davis MATRIX_KEY(0, 4, 0x39) 52a9ab8b23SAndrew Davis MATRIX_KEY(0, 5, 0x2c) 53a9ab8b23SAndrew Davis MATRIX_KEY(0, 6, 0x15) 54a9ab8b23SAndrew Davis MATRIX_KEY(0, 7, 0x0b) 55a9ab8b23SAndrew Davis MATRIX_KEY(0, 8, 0x0f) 56a9ab8b23SAndrew Davis MATRIX_KEY(1, 0, 0x2d) 57a9ab8b23SAndrew Davis MATRIX_KEY(1, 1, 0x11) 58a9ab8b23SAndrew Davis MATRIX_KEY(1, 2, 0x2f) 59a9ab8b23SAndrew Davis MATRIX_KEY(1, 3, 0x04) 60a9ab8b23SAndrew Davis MATRIX_KEY(1, 4, 0x16) 61a9ab8b23SAndrew Davis MATRIX_KEY(1, 5, 0x14) 62a9ab8b23SAndrew Davis MATRIX_KEY(1, 6, 0x1f) 63a9ab8b23SAndrew Davis MATRIX_KEY(1, 7, 0x02) 64a9ab8b23SAndrew Davis MATRIX_KEY(1, 10, 0x6a) 65a9ab8b23SAndrew Davis MATRIX_KEY(2, 0, 0x13) 66a9ab8b23SAndrew Davis MATRIX_KEY(2, 1, 0x10) 67a9ab8b23SAndrew Davis MATRIX_KEY(2, 2, 0x19) 68a9ab8b23SAndrew Davis MATRIX_KEY(2, 3, 0x07) 69a9ab8b23SAndrew Davis MATRIX_KEY(2, 4, 0x18) 70a9ab8b23SAndrew Davis MATRIX_KEY(2, 5, 0x31) 71a9ab8b23SAndrew Davis MATRIX_KEY(2, 6, 0x32) 72a9ab8b23SAndrew Davis MATRIX_KEY(2, 7, 0x05) 73a9ab8b23SAndrew Davis MATRIX_KEY(2, 8, 0x28) 74a9ab8b23SAndrew Davis MATRIX_KEY(2, 9, 0x6c) 75a9ab8b23SAndrew Davis MATRIX_KEY(3, 0, 0x26) 76a9ab8b23SAndrew Davis MATRIX_KEY(3, 1, 0x25) 77a9ab8b23SAndrew Davis MATRIX_KEY(3, 2, 0x24) 78a9ab8b23SAndrew Davis MATRIX_KEY(3, 3, 0x0a) 79a9ab8b23SAndrew Davis MATRIX_KEY(3, 4, 0x17) 80a9ab8b23SAndrew Davis MATRIX_KEY(3, 5, 0x23) 81a9ab8b23SAndrew Davis MATRIX_KEY(3, 6, 0x22) 82a9ab8b23SAndrew Davis MATRIX_KEY(3, 7, 0x08) 83a9ab8b23SAndrew Davis MATRIX_KEY(3, 8, 0x35) 84a9ab8b23SAndrew Davis MATRIX_KEY(3, 9, 0x69) 85a9ab8b23SAndrew Davis MATRIX_KEY(4, 0, 0x21) 86a9ab8b23SAndrew Davis MATRIX_KEY(4, 1, 0x12) 87a9ab8b23SAndrew Davis MATRIX_KEY(4, 2, 0x20) 88a9ab8b23SAndrew Davis MATRIX_KEY(4, 4, 0x2e) 89a9ab8b23SAndrew Davis MATRIX_KEY(4, 5, 0x30) 90a9ab8b23SAndrew Davis MATRIX_KEY(4, 6, 0x1e) 91a9ab8b23SAndrew Davis MATRIX_KEY(4, 7, 0x0d) 92a9ab8b23SAndrew Davis MATRIX_KEY(4, 8, 0x37) 93a9ab8b23SAndrew Davis MATRIX_KEY(4, 9, 0x67) 94a9ab8b23SAndrew Davis MATRIX_KEY(5, 1, 0x38) 95a9ab8b23SAndrew Davis MATRIX_KEY(5, 2, 0x0c) 96a9ab8b23SAndrew Davis MATRIX_KEY(5, 3, 0x1b) 97a9ab8b23SAndrew Davis MATRIX_KEY(5, 4, 0x34) 98a9ab8b23SAndrew Davis MATRIX_KEY(5, 5, 0x1a) 99a9ab8b23SAndrew Davis MATRIX_KEY(5, 6, 0x06) 100a9ab8b23SAndrew Davis MATRIX_KEY(5, 8, 0x27) 101a9ab8b23SAndrew Davis MATRIX_KEY(5, 9, 0x0e) 102a9ab8b23SAndrew Davis MATRIX_KEY(5, 10, 0x6f) 103a9ab8b23SAndrew Davis MATRIX_KEY(6, 0, 0x2b) 104a9ab8b23SAndrew Davis MATRIX_KEY(6, 2, 0x4e) 105a9ab8b23SAndrew Davis MATRIX_KEY(6, 3, 0x68) 106a9ab8b23SAndrew Davis MATRIX_KEY(6, 4, 0x03) 107a9ab8b23SAndrew Davis MATRIX_KEY(6, 5, 0x6d) 108a9ab8b23SAndrew Davis MATRIX_KEY(6, 6, 0x09) 109a9ab8b23SAndrew Davis MATRIX_KEY(6, 7, 0x01) 110a9ab8b23SAndrew Davis MATRIX_KEY(6, 9, 0x0f) 111a9ab8b23SAndrew Davis MATRIX_KEY(7, 8, 0x2a) 112a9ab8b23SAndrew Davis MATRIX_KEY(7, 9, 0x1d) 113a9ab8b23SAndrew Davis MATRIX_KEY(7, 10, 0x33) 114a9ab8b23SAndrew Davis >; 115724ba675SRob Herring}; 116724ba675SRob Herring 117724ba675SRob Herring&vbus_reg { 118724ba675SRob Herring gpio = <&gpio 2 0>; 119724ba675SRob Herring}; 120724ba675SRob Herring 121724ba675SRob Herring/ { 122724ba675SRob Herring model = "TI-NSPIRE CX"; 123724ba675SRob Herring compatible = "ti,nspire-cx"; 124724ba675SRob Herring 125724ba675SRob Herring memory { 126724ba675SRob Herring device_type = "memory"; 127724ba675SRob Herring reg = <0x10000000 0x4000000>; /* 64 MB */ 128724ba675SRob Herring }; 129724ba675SRob Herring 130724ba675SRob Herring uart_clk: uart_clk { 131724ba675SRob Herring #clock-cells = <0>; 132724ba675SRob Herring compatible = "fixed-clock"; 133724ba675SRob Herring clock-frequency = <12000000>; 134724ba675SRob Herring }; 135724ba675SRob Herring 136724ba675SRob Herring ahb { 137724ba675SRob Herring #address-cells = <1>; 138724ba675SRob Herring #size-cells = <1>; 139724ba675SRob Herring 140724ba675SRob Herring intc: interrupt-controller@dc000000 { 141724ba675SRob Herring compatible = "arm,pl190-vic"; 142724ba675SRob Herring interrupt-controller; 143724ba675SRob Herring reg = <0xdc000000 0x1000>; 144724ba675SRob Herring #interrupt-cells = <1>; 145724ba675SRob Herring }; 146724ba675SRob Herring 147724ba675SRob Herring apb@90000000 { 148724ba675SRob Herring #address-cells = <1>; 149724ba675SRob Herring #size-cells = <1>; 150724ba675SRob Herring 151724ba675SRob Herring i2c@90050000 { 152724ba675SRob Herring compatible = "snps,designware-i2c"; 153724ba675SRob Herring reg = <0x90050000 0x1000>; 154724ba675SRob Herring interrupts = <20>; 155724ba675SRob Herring }; 156724ba675SRob Herring }; 157724ba675SRob Herring }; 158724ba675SRob Herring 159724ba675SRob Herring panel { 160724ba675SRob Herring compatible = "ti,nspire-cx-lcd-panel"; 161724ba675SRob Herring port { 162724ba675SRob Herring panel_in: endpoint { 163724ba675SRob Herring remote-endpoint = <&clcd_pads>; 164724ba675SRob Herring }; 165724ba675SRob Herring }; 166724ba675SRob Herring }; 167724ba675SRob Herring chosen { 168724ba675SRob Herring bootargs = "debug earlyprintk console=tty0 console=ttyAMA0,115200n8 root=/dev/ram0"; 169724ba675SRob Herring }; 170724ba675SRob Herring}; 171