| /* | |
| * Copyright (C) 2017 Aravinth Panch <aravinth@senic.com> | |
| * | |
| * This file is dual-licensed: you can use it either under the terms | |
| * of the GPL or the X11 license, at your option. Note that this dual | |
| * licensing only applies to this file, and not this project as a | |
| * whole. | |
| * | |
| * a) This file is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License as | |
| * published by the Free Software Foundation; either version 2 of the | |
| * License, or (at your option) any later version. | |
| * | |
| * This file is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| * GNU General Public License for more details. | |
| * | |
| * Or, alternatively, | |
| * | |
| * b) Permission is hereby granted, free of charge, to any person | |
| * obtaining a copy of this software and associated documentation | |
| * files (the "Software"), to deal in the Software without | |
| * restriction, including without limitation the rights to use, | |
| * copy, modify, merge, publish, distribute, sublicense, and/or | |
| * sell copies of the Software, and to permit persons to whom the | |
| * Software is furnished to do so, subject to the following | |
| * conditions: | |
| * | |
| * The above copyright notice and this permission notice shall be | |
| * included in all copies or substantial portions of the Software. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
| * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
| * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
| * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
| * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
| * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
| * OTHER DEALINGS IN THE SOFTWARE. | |
| */ | |
| /dts-v1/; | |
| /plugin/; | |
| / { | |
| /* | |
| * not sure if this needs to be included | |
| * model = "Senic Hub"; | |
| */ | |
| compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3"; | |
| fragment@0 { | |
| target-path = "/aliases"; | |
| __overlay__ { | |
| uart2 = "/soc/serial@1c28800"; | |
| serial2 = &uart2; | |
| }; | |
| }; | |
| fragment@1 { | |
| target = <&leds>; | |
| __overlay__ { | |
| pinctrl-0 = <&leds_npi>, <&leds_r_npi>, <&led_senic_white>; | |
| /* White LED on Senic Hub Baseboard */ | |
| senic_white { | |
| label = "senic_white"; | |
| gpios = <&pio 6 6 0>; | |
| linux,default-trigger = "on"; | |
| }; | |
| }; | |
| }; | |
| fragment@2 { | |
| target-path = "/"; | |
| __overlay__ { | |
| gpio_keys { | |
| compatible = "gpio-keys"; | |
| input-name = "reset"; | |
| pinctrl-names = "default"; | |
| pinctrl-0 = <&button_senic_reset>; | |
| /* Reset Button Senic Hub Baseboard */ | |
| reset@0 { | |
| label = "reset"; | |
| linux,code = <0x198>; | |
| gpios = <&pio 6 7 0>; | |
| }; | |
| }; | |
| }; | |
| }; | |
| fragment@3 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&ehci1>; | |
| __overlay__ { | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@4 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&ehci2>; | |
| __overlay__ { | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@5 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&ehci3>; | |
| __overlay__ { | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@6 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&ohci1>; | |
| __overlay__ { | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@7 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&ohci2>; | |
| __overlay__ { | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@8 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&ohci3>; | |
| __overlay__ { | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@9 { | |
| /* | |
| * enable all USB | |
| */ | |
| target = <&usbphy>; | |
| __overlay__ { | |
| /* USB VBUS is always on */ | |
| status = "okay"; | |
| }; | |
| }; | |
| fragment@10 { | |
| target = <&pio>; | |
| __overlay__ { | |
| /* White LED on Senic Hub Baseboard */ | |
| led_senic_white: led_pins@0 { | |
| allwinner,pins = "PG6"; | |
| allwinner,function = "gpio_out"; | |
| allwinner,drive = <0x0>; | |
| allwinner,pull = <0x0>; | |
| }; | |
| /* Reset Button Senic Hub Baseboard */ | |
| button_senic_reset: key_pins@0 { | |
| allwinner,pins = "PG7"; | |
| allwinner,function = "gpio_in"; | |
| allwinner,drive = <0x0>; | |
| allwinner,pull = <0x0>; | |
| }; | |
| }; | |
| }; | |
| fragment@11 { | |
| target = <&uart2>; | |
| __overlay__ { | |
| pinctrl-names = "default"; | |
| pinctrl-0 = <&uart2_pins &uart2_pins_rts_cts>; | |
| status = "okay"; | |
| }; | |
| }; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment