1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * sc7280 EC/H1 over SPI (common between IDP2 3 * sc7280 EC/H1 over SPI (common between IDP2 and CRD) 4 * 4 * 5 * Copyright (c) 2021 Qualcomm Innovation Cent 5 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. 6 */ 6 */ 7 7 8 ap_ec_spi: &spi10 { 8 ap_ec_spi: &spi10 { 9 status = "okay"; 9 status = "okay"; 10 10 11 pinctrl-0 = <&qup_spi10_data_clk>, <&q 11 pinctrl-0 = <&qup_spi10_data_clk>, <&qup_spi10_cs_gpio_init_high>, <&qup_spi10_cs_gpio>; 12 cs-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>; 12 cs-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>; 13 13 14 cros_ec: ec@0 { 14 cros_ec: ec@0 { 15 compatible = "google,cros-ec-s 15 compatible = "google,cros-ec-spi"; 16 reg = <0>; 16 reg = <0>; 17 interrupt-parent = <&tlmm>; 17 interrupt-parent = <&tlmm>; 18 interrupts = <18 IRQ_TYPE_LEVE 18 interrupts = <18 IRQ_TYPE_LEVEL_LOW>; 19 pinctrl-names = "default"; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&ap_ec_int_l>; 20 pinctrl-0 = <&ap_ec_int_l>; 21 spi-max-frequency = <3000000>; 21 spi-max-frequency = <3000000>; 22 wakeup-source; << 23 22 24 cros_ec_pwm: pwm { 23 cros_ec_pwm: pwm { 25 compatible = "google,c 24 compatible = "google,cros-ec-pwm"; 26 #pwm-cells = <1>; 25 #pwm-cells = <1>; 27 }; 26 }; 28 27 29 i2c_tunnel: i2c-tunnel { 28 i2c_tunnel: i2c-tunnel { 30 compatible = "google,c 29 compatible = "google,cros-ec-i2c-tunnel"; 31 google,remote-bus = <0 30 google,remote-bus = <0>; 32 #address-cells = <1>; 31 #address-cells = <1>; 33 #size-cells = <0>; 32 #size-cells = <0>; 34 }; 33 }; 35 34 36 typec { 35 typec { 37 compatible = "google,c 36 compatible = "google,cros-ec-typec"; 38 #address-cells = <1>; 37 #address-cells = <1>; 39 #size-cells = <0>; 38 #size-cells = <0>; 40 39 41 usb_c0: connector@0 { 40 usb_c0: connector@0 { 42 compatible = " 41 compatible = "usb-c-connector"; 43 reg = <0>; 42 reg = <0>; 44 label = "left" 43 label = "left"; 45 power-role = " 44 power-role = "dual"; 46 data-role = "h 45 data-role = "host"; 47 try-power-role 46 try-power-role = "source"; 48 }; 47 }; 49 48 50 usb_c1: connector@1 { 49 usb_c1: connector@1 { 51 compatible = " 50 compatible = "usb-c-connector"; 52 reg = <1>; 51 reg = <1>; 53 label = "right 52 label = "right"; 54 power-role = " 53 power-role = "dual"; 55 data-role = "h 54 data-role = "host"; 56 try-power-role 55 try-power-role = "source"; 57 }; 56 }; 58 }; 57 }; 59 }; 58 }; 60 }; 59 }; 61 60 62 #include <arm/cros-ec-keyboard.dtsi> 61 #include <arm/cros-ec-keyboard.dtsi> 63 #include <arm/cros-ec-sbs.dtsi> 62 #include <arm/cros-ec-sbs.dtsi> 64 63 65 ap_h1_spi: &spi14 { 64 ap_h1_spi: &spi14 { 66 status = "okay"; 65 status = "okay"; 67 66 68 pinctrl-0 = <&qup_spi14_data_clk>, <&q 67 pinctrl-0 = <&qup_spi14_data_clk>, <&qup_spi14_cs_gpio_init_high>, <&qup_spi14_cs_gpio>; 69 cs-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>; 68 cs-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>; 70 69 71 cr50: tpm@0 { 70 cr50: tpm@0 { 72 compatible = "google,cr50"; 71 compatible = "google,cr50"; 73 reg = <0>; 72 reg = <0>; 74 pinctrl-names = "default"; 73 pinctrl-names = "default"; 75 pinctrl-0 = <&h1_ap_int_odl>; 74 pinctrl-0 = <&h1_ap_int_odl>; 76 spi-max-frequency = <800000>; 75 spi-max-frequency = <800000>; 77 interrupt-parent = <&tlmm>; 76 interrupt-parent = <&tlmm>; 78 interrupts = <104 IRQ_TYPE_EDG 77 interrupts = <104 IRQ_TYPE_EDGE_RISING>; 79 }; 78 }; 80 }; 79 }; 81 80 82 &tlmm { 81 &tlmm { 83 ap_ec_int_l: ap-ec-int-l-state { 82 ap_ec_int_l: ap-ec-int-l-state { 84 pins = "gpio18"; 83 pins = "gpio18"; 85 function = "gpio"; 84 function = "gpio"; 86 bias-pull-up; 85 bias-pull-up; 87 }; 86 }; 88 87 89 h1_ap_int_odl: h1-ap-int-odl-state { 88 h1_ap_int_odl: h1-ap-int-odl-state { 90 pins = "gpio104"; 89 pins = "gpio104"; 91 function = "gpio"; 90 function = "gpio"; 92 bias-pull-up; 91 bias-pull-up; 93 }; 92 }; 94 93 95 qup_spi10_cs_gpio_init_high: qup-spi10 94 qup_spi10_cs_gpio_init_high: qup-spi10-cs-gpio-init-high-state { 96 pins = "gpio43"; 95 pins = "gpio43"; 97 function = "gpio"; 96 function = "gpio"; 98 output-high; 97 output-high; 99 }; 98 }; 100 99 101 qup_spi14_cs_gpio_init_high: qup-spi14 100 qup_spi14_cs_gpio_init_high: qup-spi14-cs-gpio-init-high-state { 102 pins = "gpio59"; 101 pins = "gpio59"; 103 function = "gpio"; 102 function = "gpio"; 104 output-high; 103 output-high; 105 }; 104 }; 106 }; 105 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.